/* Explain: Mobile hero styling adjusted for responsive typography and spacing. */
/* ============================================================
   BELTRAX® — Portada editorial full-bleed
   Escritorio / tablet: fotografía a pantalla completa con bloque
   de texto superpuesto en la esquina inferior izquierda.
   Móvil (≤767 px): una sola composición — la fotografía vertical
   9:16 llena toda la portada y el texto se apoya sobre la zona
   oscura superior, sin bloque negro separado.
   ============================================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: 82vh;
    overflow: hidden;
    background: #090B0E;
    display: flex;
    flex-direction: column;
}

/* Fotografía de fondo */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    margin: 0;
    display: block;
}

.hero__bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Degradado sutil y localizado para garantizar la lectura del texto */
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(215deg, rgba(8, 10, 13, 0.6) 0%, rgba(8, 10, 13, 0.28) 34%, rgba(8, 10, 13, 0) 56%);
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 7% 46px;
}

.hero__text {
    width: 100%;
    max-width: 310px;
    text-align: left;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-heading);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
}

.hero__kicker::before {
    content: "";
    flex: none;
    width: 22px;
    height: 1px;
    background: var(--accent-color);
}

.hero__title {
    margin-top: 0.9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__desc {
    margin-top: 0.9rem;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}

.hero__cta {
    margin-top: 1.4rem;
}

.hero__cta .btn-primary {
    width: auto;
    height: 44px;
    min-height: 44px;
    padding: 0 1.4rem;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
}

/* -------------------- Escritorio y tablet -------------------- */
@media (min-width: 768px) {
    .hero {
        min-height: 75vh;
        align-items: flex-end;
    }

    .hero__scrim {
        background:
            linear-gradient(95deg, rgba(8, 10, 13, 0.74) 0%, rgba(8, 10, 13, 0.38) 24%, rgba(8, 10, 13, 0) 50%),
            linear-gradient(0deg, rgba(8, 10, 13, 0.55) 0%, rgba(8, 10, 13, 0) 44%);
    }

    .hero__content {
        justify-content: flex-end;
        align-items: flex-start;
        padding: 150px 56px 72px;
    }

    .hero__text {
        max-width: 480px;
    }

    .hero__kicker {
        font-size: 11.5px;
        letter-spacing: 0.24em;
    }

    .hero__title {
        font-size: clamp(42px, 3.4vw, 48px);
        line-height: 1.05;
    }

    .hero__desc {
        font-size: 16.5px;
        line-height: 1.6;
    }
}

/* -------------------- Animación de entrada -------------------- */
@media (prefers-reduced-motion: no-preference) {
    .hero-anim {
        opacity: 0;
        animation: heroUp 780ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
        animation-delay: var(--d, 0ms);
    }
}

@keyframes heroUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-anim {
        opacity: 1;
        animation: none;
    }
}

/* -------------------- Móvil (≤ 767 px) --------------------
   Una sola composición: la fotografía vertical 9:16 llena toda
   la portada (min-height 100svh, debajo del menú) y el texto se
   coloca sobre la zona oscura superior. Sin bloque negro aparte. */
@media (max-width: 767px) {
    .hero {
        min-height: 100svh;
        background: #090B0E;
    }

    .hero__bg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .hero__bg img {
        object-position: center bottom;
    }

    .hero__scrim {
        display: block;
        background: linear-gradient(180deg, rgba(9, 11, 14, 0.72) 0%, rgba(9, 11, 14, 0.30) 26%, rgba(9, 11, 14, 0) 48%);
    }

    .hero__content {
        position: relative;
        z-index: 2;
        flex: 1;
        align-items: flex-start;
        justify-content: flex-start;
        max-width: 100%;
        padding: 104px 23px 40px;
    }

    .hero__text {
        max-width: 72%;
    }

    .hero__kicker {
        gap: 0.4rem;
        font-size: 9.5px;
        letter-spacing: 0.18em;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .hero__kicker::before {
        width: 15px;
    }

    .hero__title {
        margin-top: 6px;
        font-size: 24px;
        line-height: 1.05;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }

    .hero__desc {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.4;
        color: rgba(255, 255, 255, 0.9);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    }

    .hero__cta {
        margin-top: 11px;
    }

    .hero__cta .btn-primary {
        height: 38px;
        min-height: 38px;
        padding: 0 1rem;
        font-size: 0.72rem;
        letter-spacing: 0.07em;
    }
}