/* Portada: hero con mensaje estable y títulos de sección con la misma presencia que el H1 anterior. */

#home-hero.home-hero {
    position: relative;
    box-sizing: border-box;
    height: clamp(640px, 82svh, 780px) !important;
    min-height: 640px !important;
    max-height: 780px;
    padding: 0 !important;
    overflow: hidden;
    container-type: size;
    background-color: #111111;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* El header es fijo y transparente: el video y el poster cubren todo el hero,
   incluido el área que queda detrás del menú. */
#home-hero [id^="jarallax-container"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 0;
}

#home-hero .jarallax-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* El iframe de YouTube es 16:9. Se agranda hasta cubrir el alto y el ancho del hero.
   Jarallax escribe transform en línea; sin !important el video queda corrido. */
#home-hero [id^="jarallax-container"] iframe,
#home-hero [id^="jarallax-container"] video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    width: max(100cqi, calc(100cqb * 16 / 9)) !important;
    height: max(100cqb, calc(100cqi * 9 / 16)) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

#home-hero .home-hero__frame {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: auto;
    min-height: 0;
}

@media (min-width: 993px) {
    #home-hero .home-hero__frame {
        padding-top: 80px;
    }
}

#home-hero .de-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

#home-hero .home-hero__content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    text-align: center;
}

#home-hero h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(34px, 4.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: none;
    font-weight: 500;
}

#home-hero .home-hero__lead {
    margin: 0 auto 22px;
    max-width: 36em;
    color: #f4f4f4;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

#home-hero .home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

#home-hero .home-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-color-1, #ffff00);
    color: #111111;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

#home-hero .home-hero__cta--secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

#home-hero .home-hero__cta:hover {
    background: #ffffff;
    color: #111111;
    text-decoration: none;
}

#home-hero .home-hero__cta:focus-visible,
#home-hero .scroll-to:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

#home-hero .home-hero__cta:focus-visible {
    outline-color: #111111;
    box-shadow: 0 0 0 4px #ffffff;
}

h2.home-section-title,
#section-equipamiento h2,
#section-fun-facts-2 h2.home-section-title {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-align: center;
    text-transform: none;
}

#section-services,
#section-equipamiento,
#section-steps,
#section-contact,
#section-fun-facts-2 {
    padding-top: 48px;
    padding-bottom: 48px;
}

#section-services .separator,
#section-steps .separator,
#section-contact .separator,
#section-fun-facts-2 .separator {
    display: none;
}

#section-contact .map-container,
#section-contact .map-container.map-fullwidth iframe {
    height: 460px;
    max-height: 460px;
}

#section-fun-facts-2 h2.home-section-title {
    color: #161616;
    text-align: left;
}

#section-fun-facts-2 .accordion-item + .accordion-item {
    margin-top: 10px;
}

@media (max-width: 767px) {
    #home-hero.home-hero {
        height: auto !important;
        min-height: 560px !important;
        max-height: none;
    }

    #home-hero .home-hero__frame {
        box-sizing: border-box;
        min-height: 0;
        height: auto;
        padding: 88px 20px 56px;
    }

    #home-hero [id^="jarallax-container"] iframe,
    #home-hero [id^="jarallax-container"] video {
        width: auto !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        aspect-ratio: 16 / 9;
    }

    #section-contact .map-container,
    #section-contact .map-container.map-fullwidth iframe {
        height: 360px;
        max-height: 360px;
    }

    #home-hero h1 {
        font-size: 34px;
        letter-spacing: -0.02em;
    }

    #home-hero .home-hero__lead {
        font-size: 16px;
    }

    #home-hero .home-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    h2.home-section-title,
    #section-equipamiento h2,
    #section-fun-facts-2 h2.home-section-title {
        letter-spacing: -0.02em;
    }
}

@media (max-width: 390px) {
    h2.home-section-title {
        font-size: 28px;
        letter-spacing: -0.02em;
    }
}

@media (prefers-reduced-motion: reduce) {
    #home-hero .mouse,
    #home-hero .scroll {
        animation: none;
    }
}
