/*
 * Rediseño 2026 — Subcabecera v1.0.7
 * Figma: node 245:668.
 * Marco: export exacto del grupo 245:675 (1545 x 243).
 * Las fuentes Autography y Futura PT deben estar cargadas por el tema.
 */

.r26-subheader,
.r26-subheader * {
    box-sizing: border-box;
}

.r26-subheader {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 697;
    overflow: hidden;
    background: #fff;
    isolation: isolate;
}

.r26-subheader__media {
    position: absolute;
    z-index: 1;
    inset: 0 auto auto 0;
    width: 100%;
    height: 89.2396%; /* 622 / 697 */
    overflow: hidden;
}

.r26-subheader__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 36%;
}

/* Figma node 245:670: x 415, y 487, w 1505, padding 70/50. */
.r26-subheader__content {
    position: absolute;
    z-index: 3;
    left: 21.6146%;
    top: 69.8709%;
    width: 78.3854%;
    min-height: 30.1291%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 80px);
    padding: clamp(20px, 2.6042vw, 50px) clamp(28px, 3.6458vw, 70px);
    background: #fff;
}

/* Figma node 245:671. */
.r26-subheader .r26-subheader__title {
    display: block !important;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Autography", sans-serif !important;
    font-size: clamp(48px, 5.2083vw, 100px) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    color: #000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Figma nodes 245:672-674. */
.r26-subheader__link {
    position: relative;
    z-index: 6;
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 0;
    padding: 0;
    color: #000 !important;
    text-decoration: none !important;
    font-family: "Futura PT", "Futura_PT", Futura, sans-serif !important;
    font-size: clamp(16px, 0.9375vw, 18px) !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap;
    opacity: 1 !important;
    visibility: visible !important;
}

.r26-subheader__link:hover,
.r26-subheader__link:focus,
.r26-subheader__link:visited {
    color: #000 !important;
    text-decoration: none !important;
}

.r26-subheader__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

.r26-subheader__link-text {
    display: inline-block;
    color: inherit !important;
}

.r26-subheader__arrow {
    display: block;
    flex: 0 0 auto;
    width: 12px;
    height: 9px;
    max-width: none;
    object-fit: contain;
}

/*
 * Ilustración original de Figma (grupo 245:675).
 * x=373, y=449, w=1545, h=243 dentro del lienzo 1920 x 697.
 */
.r26-subheader__frame {
    position: absolute;
    z-index: 4;
    left: 19.4271%;
    top: 64.4189%;
    width: 80.46875%;
    height: 34.8637%;
    display: block;
    max-width: none;
    pointer-events: none;
    object-fit: fill;
}

@media (max-width: 991px) {
    .r26-subheader {
        aspect-ratio: auto;
        overflow: visible;
        background: transparent;
    }

    .r26-subheader__media {
        position: relative;
        width: 100%;
        height: clamp(320px, 62vw, 520px);
    }

    .r26-subheader__image {
        object-position: center center;
    }

    .r26-subheader__content {
        position: relative;
        left: auto;
        top: auto;
        width: calc(100% - 32px);
        min-height: 180px;
        margin: -56px 0 0 32px;
        padding: 34px 32px;
        gap: 24px;
    }

    .r26-subheader .r26-subheader__title {
        font-size: clamp(52px, 10vw, 78px) !important;
        line-height: 1.05 !important;
    }

    .r26-subheader__frame {
        left: 16px;
        top: auto;
        bottom: -5px;
        width: calc(100% - 14px);
        height: 218px;
        object-fit: fill;
        object-position: left bottom;
    }
}

@media (max-width: 640px) {
    .r26-subheader__media {
        height: min(100vw, 430px);
    }

    .r26-subheader__content {
        width: calc(100% - 20px);
        min-height: 0;
        margin: -36px 0 0 20px;
        padding: 28px 24px 30px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .r26-subheader .r26-subheader__title {
        font-size: clamp(46px, 16vw, 68px) !important;
        white-space: normal;
    }

    .r26-subheader__link {
        font-size: 16px !important;
    }

    .r26-subheader__frame {
        left: 10px;
        bottom: -5px;
        width: calc(100% - 8px);
        height: calc(100% - min(100vw, 430px) + 69px);
        min-height: 150px;
    }
}

/* ==============================================================
 * Variante SIN imagen — Figma 237:603
 * Lienzo de referencia: 1176 x 266
 * 128px de espacio superior + fila de 74px + 64px inferior.
 * ============================================================== */
.r26-subheader--no-image {
    aspect-ratio: auto;
    min-height: 266px;
    overflow: visible;
    background: #fff;
    isolation: isolate;
}

.r26-subheader--no-image .r26-subheader__content {
    position: relative;
    z-index: 1;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 128px 0 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
}

.r26-subheader--no-image .r26-subheader__title {
    flex: 1 1 auto;
    font-size: 64px !important;
    line-height: 74px !important;
    color: #151515 !important;
    white-space: normal;
}

.r26-subheader--no-image .r26-subheader__link {
    z-index: 1;
    flex: 0 0 auto;
    gap: 5px;
    font-size: 18px !important;
    line-height: 18px !important;
    color: #000 !important;
}

.r26-subheader--no-image .r26-subheader__arrow {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .r26-subheader--no-image {
        min-height: 0;
        background: #fff;
    }

    .r26-subheader--no-image .r26-subheader__content {
        width: 100%;
        margin: 0;
        padding: 80px 0 48px;
        gap: 24px;
    }

    .r26-subheader--no-image .r26-subheader__title {
        font-size: clamp(50px, 8vw, 64px) !important;
        line-height: 1.1 !important;
    }
}

@media (max-width: 640px) {
    .r26-subheader--no-image .r26-subheader__content {
        width: 100%;
        margin: 0;
        padding: 56px 0 36px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 24px;
    }

    .r26-subheader--no-image .r26-subheader__title {
        font-size: clamp(44px, 14vw, 58px) !important;
    }

    .r26-subheader--no-image .r26-subheader__link {
        font-size: 16px !important;
    }
}


/* ==============================================================
 * Parallax opcional de la imagen
 * El movimiento se aplica exclusivamente cuando el check está activo.
 * Se amplía ligeramente la imagen para que el desplazamiento no deje huecos.
 * ============================================================== */
.r26-subheader--parallax .r26-subheader__image {
    transform: translate3d(0, var(--r26-subheader-parallax-y, 0px), 0) scale(1.70);
    transform-origin: center center;
    will-change: transform;
}

@media (max-width: 991px) {
    .r26-subheader--parallax .r26-subheader__image {
        transform: translate3d(0, var(--r26-subheader-parallax-y, 0px), 0) scale(1.60);
    }
}

@media (max-width: 640px) {
    .r26-subheader--parallax .r26-subheader__image {
        transform: translate3d(0, var(--r26-subheader-parallax-y, 0px), 0) scale(1.48);
    }
}

@media (prefers-reduced-motion: reduce) {
    .r26-subheader--parallax .r26-subheader__image {
        transform: none !important;
        will-change: auto;
    }
}
