/* hero.css - Numeraconex S.A. de C.V. (NMC S.A. de C.V.) */
/* Hero Section - Profesional, humano e inspirador */
/* Compatible con hero.js y variables globales de init.css */

.hero-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

/* Overlay para mejorar legibilidad sobre imagen panorámica */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(97, 156, 186, 0) 0%,     /* #619CBA muy suave arriba */
        rgba(31, 87, 87, 0.15) 50%,      /* #1F5757 en la zona media */
        rgba(15, 37, 35, 0.40) 100%      /* oscuro en la parte inferior para resaltar CTAs */
    );
    z-index: 1;
}

/* Contenedor principal del contenido */
.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

/* Título principal */
.hero-title {
    font-family: var(--title-font-family);
    font-size: clamp(2.8rem, 7.5vw, 5.8rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.2px;
    margin: 0;
    max-width: 1100px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.70);
    color: white;
}

/* Subtítulo descriptivo */
.hero-subtitle {
    font-family: var(--base-font-family);
    font-size: clamp(1.25rem, 3.8vw, 1.75rem);
    font-weight: 500;
    line-height: 1.48;
    max-width: 920px;
    margin: 0;
    opacity: 0.96;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    text-align: center;
}

/* Contenedor de botones CTA */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Estilo común a ambos botones */
.hero-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.15rem 2.8rem;
    font-family: var(--button-font-family);
    font-size: 1.18rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 9999px;
    transition: all 0.32s ease;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
    min-width: 220px;
}

/* CTA Primario - Naranja vibrante (Encontrar empleo) */
.hero-buttons .cta-primary {
    background: var(--accent-color);
    color: #0f2523; /* texto oscuro para máximo contraste */
    border: 2px solid var(--accent-color);
}

.hero-buttons .cta-primary:hover,
.hero-buttons .cta-primary:focus {
    transform: translateY(-5px);
    box-shadow: 0 14px 38px rgba(255, 198, 27, 0.48);
    background: #ffca2e;
}

/* CTA Secundario - Outline blanco/teal (Contratar talento) */
.hero-buttons .cta-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.hero-buttons .cta-secondary:hover,
.hero-buttons .cta-secondary:focus {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.38);
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 992px) {
    .hero-section {
        min-height: 85vh;
        height: auto;
        padding: 140px 0 100px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 8.5vw, 5rem);
    }

    .hero-subtitle {
        font-size: clamp(1.2rem, 4.2vw, 1.65rem);
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1.4rem;
    }

    .hero-buttons a {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-container {
        padding: 0 18px;
        gap: 2rem;
    }

    .hero-title {
        font-size: clamp(2.4rem, 10vw, 4.2rem);
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 5vw, 1.45rem);
    }

    .hero-buttons a {
        padding: 1rem 2.2rem;
        font-size: 1.08rem;
    }
}