/* HEGOSA 1.1 — Encabezados de páginas interiores. */
.page-intro {
    --intro-desktop: url('../img/interiores/productos.webp');
    --intro-mobile: url('../img/interiores/productos-movil.webp');
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 240px;
    padding: 50px 0;
    overflow: hidden;
    background: #eff7fb var(--intro-desktop) center center / cover no-repeat;
}
.intro-soluciones {
    --intro-desktop: url('../img/interiores/soluciones.webp');
    --intro-mobile: url('../img/interiores/soluciones-movil.webp');
}
.intro-empresa, .intro-contacto {
    --intro-desktop: url('../img/interiores/empresa.webp');
    --intro-mobile: url('../img/interiores/empresa-movil.webp');
}
.page-intro > .wrap { position: relative; z-index: 1; }
.page-intro h1 { max-width: 900px; text-wrap: balance; }
.page-intro p { max-width: 720px; color: #334e64; }
.intro-detalle h1 { font-size: clamp(1.95rem, 4vw, 3.1rem); }
/* At medium widths the content moves closer to the left edge. */
@media (max-width: 1650px) {
    .page-intro { background-size: cover; }
    .page-intro::before {
        content: ''; position: absolute; inset: 0; pointer-events: none;
        background: linear-gradient(90deg, rgba(240,248,252,.94) 0%, rgba(240,248,252,.9) 22%, rgba(240,248,252,.65) 56%, rgba(240,248,252,0) 84%);
    }
    .page-intro h1 { max-width: min(900px, 75%); }
    .page-intro p { max-width: 72%; }
}
@media (max-width: 850px) {
    .page-intro { min-height: 210px; padding: 36px 0; background-image: var(--intro-mobile); background-position: right center; background-size: auto 100%; }
    .page-intro::before { background: linear-gradient(90deg, #eff7fb 0%, rgba(239,247,251,.97) 32%, rgba(239,247,251,.8) 65%, rgba(239,247,251,.2) 100%); }
    .page-intro h1, .page-intro p { max-width: 85%; }
}
/* A dedicated photographic strip makes the artwork visible on phones without
   sacrificing contrast or forcing long page titles into narrow columns. */
@media (max-width: 550px) {
    .page-intro { display: block; min-height: 0; padding: 0 0 26px; background: linear-gradient(110deg,#eef7fa,#f9fbfd); }
    .page-intro::before { position: relative; display: block; inset: auto; height: 112px; margin-bottom: 22px; background: var(--intro-mobile) center 58% / cover no-repeat; }
    .page-intro h1, .page-intro p { max-width: 100%; }
    .page-intro h1 { margin: 6px 0 8px; font-size: clamp(1.8rem,7.2vw,2.2rem); text-wrap: initial; }
    .page-intro p { font-size: .94rem; }
}
