/**
 * hero.css — Hero Principal
 * RC-20 | Figma nodeId 120:713
 *
 * Specs exactos:
 *  - Gradiente: linear-gradient(160.74deg, #004E5A → #003840)
 *  - Imagen de fondo: opacity 0.30, cover
 *  - Padding lateral: 218px (posición del contenido en canvas 1600px)
 *  - Padding vertical: top 114px, bottom 80px
 *  - Título: Inter 800, 60px, blanco, lh 75px, tracking -1.2363px
 *  - Subtítulo: Inter 400, 20px, rgba(255,255,255,0.9), lh 32.5px
 *  - Gap entre elementos: 19px
 *  - Espacio extra antes del botón: ~46px (65px spacer - 19px gap)
 *  - Botón: bg #fff, texto #004E5A, Roboto 500, 20px, border-radius 66px, padding 10px 20px
 */

/* ── Sección hero ──
   Figma: gradiente como fondo base + imagen encima a opacity: 0.3
   Background spec del Figma:
     background: url(img) lightgray -0.437px -731.381px / 119.617% 273.997% no-repeat;
     opacity: 0.3 (sobre el gradiente)
── */
.hero {
    position: relative;
    width: 100%;
    min-height: 599px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #014651;
}

/* ── Capa 2 — imagen de fondo ── */
.hero__bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* ── Capa 3 — contenido ── */
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    margin-inline: auto;
    /* Padding lateral que reproduce la posición del Figma (218px en canvas 1600px)
       Escalado al container: usamos 100px + gutter del sitio */
    padding-inline: clamp(24px, 8vw, 218px);
    padding-block: 114px 80px;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 19px;
    max-width: 780px;   /* suficiente para que el H1 de 60px quede en 2 líneas */
}

/* ── Título H1 ── */
/* Figma: Inter ExtraBold 800, 60px, #fff, lh 75px, tracking -1.2363px */
.hero__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 60px;
    color: #FFFFFF;
    line-height: 75px;
    letter-spacing: -1.2363px;
    max-width: 730px;  /* Figma: width 730px — garantiza 2 líneas */
    width: 100%;
    margin: 0;
}

/* ── Subtítulo ── */
/* Figma: Inter Regular 400, 20px, rgba(255,255,255,0.9), lh 32.5px, tracking -0.4492px */
.hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 32.5px;
    letter-spacing: -0.4492px;
    max-width: 610px;
    margin: 0;
}

/* ── Botón CTA ── */
/* Figma: bg blanco, texto #004E5A, Roboto Medium 500, 20px, border-radius 66px, padding 10px 20px — SIN ícono */
.hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    color: #004E5A;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: normal;
    white-space: nowrap;
    border-radius: 66px;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    margin-block-start: 80px;
    align-self: flex-start;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.15s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
    background-color: var(--color-secondary-1);
    color: #FFFFFF;
    box-shadow: 0 6px 24px rgba(68, 138, 43, 0.4);
    transform: translateY(-2px);
}

.hero__cta:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1100px) {
    .hero__title {
        font-size: 48px;
        line-height: 60px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .hero {
        min-height: 480px;
    }

    .hero__inner {
        padding-inline: 24px;
        padding-block: 72px 56px;
    }

    .hero__content {
        max-width: 90%;
        gap: 14px;
    }

    .hero__title {
        font-size: 26px;
        line-height: 34px;
        letter-spacing: -0.5px;
        max-width: 100%;
        width: 100%;
    }

    .hero__subtitle {
        font-size: 16px;
        line-height: 26px;
        max-width: 100%;
    }

    .hero__cta {
        font-size: 15px;
        padding: 10px 24px;
        align-self: flex-start;  /* no ocupa todo el ancho */
        margin-block-start: 28px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .hero {
        min-height: 420px;
    }

    .hero__inner {
        padding-inline: 20px;
        padding-block: 60px 48px;
    }

    .hero__content {
        max-width: 90%;
    }

    .hero__title {
        font-size: 28px;
        line-height: 36px;
    }

    .hero__subtitle {
        font-size: 15px;
        line-height: 24px;
    }

    .hero__cta {
        font-size: 14px;
        padding: 9px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__cta { transition: none; }
}
