/* Banners aprobados del inicio; no cambia las portadas interiores. */
.home-hero {
    display: block;
    position: relative;
    min-height: 0;
    margin-top: var(--home-header-height, 88px);
    padding: 0;
    isolation: isolate;
    background: #302015;
    color: #fff;
}

.home-hero[data-theme="light"] {
    background: #eaf1f5;
    color: #012169;
}

.home-hero .home-hero-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1600 / 650;
    overflow: hidden;
}

.home-hero .home-hero-poster,
.home-hero .home-hero-video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-hero .home-hero-video {
    opacity: 0;
}

.home-hero.is-home-video-ready .home-hero-video {
    opacity: 1;
}

.home-hero .hero-content {
    color: inherit;
    position: absolute;
    top: 11.54%;
    left: 4.25%;
    width: 40.75%;
    max-width: 652px;
    margin: 0;
    padding: 0;
}

.home-hero[data-theme="light"] .hero-content {
    width: 27.82%;
    max-width: 445px;
}

.home-hero .hero-slide {
    max-width: none;
}

.home-hero .hero-slide h1 {
    color: inherit;
    font-family: "Futura Std", Futura, Arial, sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(32px, 2.875vw, 46px);
    line-height: 1.12 !important;
    letter-spacing: -0.8px;
    max-width: none;
    margin: 0 0 clamp(16px, 1.375vw, 22px);
    text-shadow: none;
}

.home-hero .hero-subtitle {
    color: inherit;
    font-weight: 400;
    font-size: clamp(17px, 1.3125vw, 21px);
    line-height: 1.45;
    max-width: 585px;
    margin: 0 0 clamp(18px, 1.5625vw, 25px);
    text-shadow: none;
}

.home-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
}

.home-hero .hero-actions a {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 52px;
    padding: 14px 25px;
    border: 0;
    border-radius: 35px;
    background: #ffc700;
    color: #012169;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    box-shadow: none;
}

.home-hero .hero-actions .secondary-button {
    background: #fff;
}

.home-hero .hero-actions a:hover {
    background: #ffda48;
    box-shadow: none;
    transform: none;
}

.home-hero .hero-actions .secondary-button:hover {
    background: #f4f1ea;
}

.home-hero .hero-actions a span {
    font: 22px Arial, sans-serif;
    transform: none;
}

.home-hero .hero-carousel-controls {
    position: absolute;
    left: 4.25%;
    bottom: 7.38%;
    width: auto;
    padding: 0;
    gap: 16px;
    justify-content: flex-start;
    transform: none;
    z-index: 4;
}

.home-hero .hero-carousel-button {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    padding: 0;
    border: 1px solid #01216922;
    border-radius: 50%;
    color: #012169;
    background: #fff;
    box-shadow: none;
    font: 24px Arial, sans-serif;
}

.home-hero .hero-carousel-dots {
    display: flex;
    gap: 8px;
}

.home-hero .hero-carousel-dots button {
    position: relative;
    width: 28px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.home-hero .hero-carousel-dots button::after {
    content: "";
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #fff9;
}

.home-hero[data-theme="light"] .hero-carousel-dots button::after {
    background: #01216940;
}

.home-hero .hero-carousel-dots button.is-active::after {
    background: #ffc700;
}

.home-hero a:focus-visible,
.home-hero button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

@media (max-width: 1120px) {
    .home-hero .home-hero-media {
        aspect-ratio: auto;
        min-height: 560px;
    }

    .home-hero .home-hero-poster,
    .home-hero .home-hero-video {
        object-fit: cover;
        object-position: right center;
    }

    .home-hero .home-hero-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(28, 19, 13, .94) 0%, rgba(28, 19, 13, .82) 42%, rgba(28, 19, 13, .1) 100%);
        pointer-events: none;
    }

    .home-hero[data-theme="light"] .home-hero-media::after {
        background: linear-gradient(90deg, rgba(234, 241, 245, .98) 0%, rgba(234, 241, 245, .88) 42%, rgba(234, 241, 245, .12) 100%);
    }

    .home-hero .hero-content,
    .home-hero[data-theme="light"] .hero-content {
        top: 36px;
        left: 28px;
        width: min(58%, 540px);
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .home-hero .hero-slide h1 {
        font-size: 32px;
    }

    .home-hero .hero-subtitle {
        font-size: 18px;
    }

    .home-hero .hero-carousel-controls {
        left: 28px;
        bottom: 28px;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

@media (max-width: 720px) {
    .home-hero .home-hero-media {
        min-height: max(640px, calc(40.625vw + 490px));
    }

    .home-hero .home-hero-video {
        display: none;
    }

    /* El mismo poster llena el fondo; la escena completa queda visible abajo. */
    .home-hero .home-hero-media::before {
        content: "";
        position: absolute;
        inset: -16px;
        background: var(--home-poster) right center / cover no-repeat;
        filter: blur(12px);
    }

    .home-hero .home-hero-poster {
        top: auto;
        bottom: 0;
        height: auto;
        object-fit: contain;
        mask-image: linear-gradient(180deg, transparent, #000 14%);
    }

    .home-hero .home-hero-media::after {
        background: linear-gradient(180deg, rgba(28, 19, 13, .88) 0%, rgba(28, 19, 13, .8) 62%, rgba(28, 19, 13, .12) 100%);
    }

    .home-hero[data-theme="light"] .home-hero-media::after {
        background: linear-gradient(180deg, rgba(234, 241, 245, .95) 0%, rgba(234, 241, 245, .86) 62%, rgba(234, 241, 245, .12) 100%);
    }

    .home-hero .hero-content,
    .home-hero[data-theme="light"] .hero-content {
        top: 28px;
        left: 18px;
        width: calc(100% - 36px);
        padding: 0;
    }

    .home-hero .hero-slide h1 {
        font-size: 30px;
        letter-spacing: -0.4px;
    }

    .home-hero .hero-subtitle {
        font-size: 17px;
    }

    .home-hero .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero .hero-actions a {
        width: 100%;
    }

    .home-hero .hero-carousel-controls {
        left: 18px;
        bottom: calc(40.625vw + 16px);
        gap: 10px;
        padding: 0;
    }

    .home-hero .hero-carousel-button {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .home-hero .hero-carousel-dots {
        gap: 6px;
    }

    .home-hero .hero-carousel-dots button {
        width: 24px;
    }
}
