/*
 * Hoja de estilos principal para la página de aterrizaje de la bolsa de empleo
 * del CFT Magallanes.  Este archivo define la paleta de colores, la
 * tipografía y el comportamiento responsivo para replicar fielmente el
 * prototipo suministrado para escritorio y móvil.
 */

/* Variables globales */
:root {
    --primary-color: #d51c2d; /* rojo corporativo */
    --secondary-color: #202020; /* texto principal */
    --text-muted: #666666; /* texto secundario */
    --bg-light: #f7f7f7; /* fondo claro de secciones */
    --bg-dark: #0e0e0e; /* fondo oscuro del footer */
    --border-radius: 14px;
}

/* Reset básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--secondary-color);
    line-height: 1.5;
    background-color: #ffffff;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Contenedor general con ancho máximo */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

/* Encabezado */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo img {
    height: 80px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Menú hamburguesa */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: transform 0.3s ease;
}

/* =========================
   HERO (DESKTOP)
   ========================= */
.hero {
    position: relative;
    overflow: hidden;
    /* imagen y encuadre como en el mockup */
    background: #f2f2f2 url("/img/hero/hero-desktop.png") no-repeat 68% center /
        cover;
    filter: brightness(0.85);

    /* altura y layout */
    min-height: clamp(720px, 74vh, 980px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-wrapper {
    /* mismo ancho del layout + un pelín más para acercar a la izquierda */
    width: 94%;
    max-width: 1320px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 2.5rem;

    /* baja el bloque respecto del header para calzar con Figma */
    padding: 6rem 0 4.5rem;
}

/* === Bloque de texto ===
   knobs de ajuste fino si quieres moverlo 2-3px sin tocar el resto */
.hero-content {
    width: min(58vw, 900px); /* más ancho para que quepa 1 línea */
    max-width: none;
    color: #f2f2f2;
    position: relative;
    z-index: 1;

    /* mueve un poco a la IZQUIERDA y ABAJO */
    transform: translate(
        -22px,
        16px
    ); /* <- si lo quieres aún más, aumenta aquí */
}

/* título en UNA línea, grande y compacto */
.hero-content h1 {
    font-weight: 800;
    font-size: clamp(3rem, 4.9vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: 0.2px;
    white-space: nowrap; /* fuerza 1 línea */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.15rem;
}

/* descripción en UNA línea, un poco más grande */
.hero-content p {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    line-height: 1.18;
    opacity: 0.95;
    white-space: nowrap; /* 1 línea */
    margin-bottom: 1.6rem;
}

/* buscador protagonista (como en el diseño) */
.search-form {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    width: 100%;
    max-width: 640px; /* + ancho */
    height: 58px; /* + alto */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* sutil para levantarlo */
}

.search-form input {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 0.5rem;
}

.btn-search {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.35rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-search:hover {
    background-color: #b51424;
}

/* fondo rojo curvo: lo dejamos igual */
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: var(--primary-color);
    clip-path: ellipse(85% 100% at 50% 0%);
    z-index: 0;
}

/* ======= Trabajos destacados ======= */
.featured-jobs,
.featured_jobs {
    padding: 4rem 0;
    background: #fff;
}

.featured-jobs h2,
.featured_jobs h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* No hay subtítulo: solo separa el grid del título */
.featured-jobs .jobs-grid,
.featured_jobs .jobs-grid {
    margin-top: 1.5rem;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.job-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* --- Logo uniforme --- */
.logo-wrapper {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.9rem;
}

.logo-wrapper img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

/* --- Textos --- */
.job-card h3 {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0.25rem 0 0.35rem;
    color: #111;
}
.job-card .company {
    color: #666;
    margin: 0 0 0.2rem;
}
.job-card .location {
    color: #666;
    margin: 0 0 0.6rem;
}
.job-card .details-link {
    color: var(--primary-color);
    font-weight: 600;
}

/* Empresas destacadas (Desktop) */
.featured-companies {
    padding: 4rem 0;
    background-color: var(--bg-light);
}
.featured-companies h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.featured-companies .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1rem;
}
.companies-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.4rem;
    align-items: center;
    justify-items: center;
}
.company-item {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
        border-color 0.2s ease, background-color 0.2s ease;
}
.company-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #dbdbdb;
}
.company-item img {
    max-width: 85%;
    max-height: 70%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease;
}

/* Sección de testimonios y misión */
.testimonials-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.mission {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1rem;
}

.mission .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.testimonials {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.testimonial-card {
    flex: 1;
    background-color: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.testimonial-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #d9d9d9;
    margin-bottom: 1rem;
    align-self: center;
}

.testimonial-card .quote {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.testimonial-card .author,
.testimonial-card .position {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.testimonial-card .job-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: underline;
    margin-top: auto;
}

/* =========================
   Blog / Recursos CFT (estilo tipo Sinforiano, limpio)
   ========================= */

/* Más aire en catálogo/detalle */
.cft-blog--catalogo {
    padding-block: clamp(3rem, 6vw, 6rem);
}
.cft-blog--detalle {
    padding-block: clamp(3rem, 6vw, 6rem);
}

/* Prosa (detalle) */
.prose p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}
.prose h2,
.prose h3 {
    margin: 1.5rem 0 0.75rem;
    font-weight: 700;
    color: #111;
}
.prose ul {
    padding-left: 1.2rem;
}

/* Sección */
.cft-blog {
    background: #f6f4f5;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

/* Encabezados */
.cft-blog .overline {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #666666;
    margin: 0 0 0.25rem 0;
}
.cft-blog .display-6 {
    color: #2b2b2b;
}

/* Grid propio (evita conflictos con el tema) */
.cft-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .cft-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1200px) {
    .cft-blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tarjetas */
.cft-blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;                     /* 🔑 fuerza misma altura */
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* Media con proporción fija */
.cft-blog-media {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    height: 180px;                    /* 🔑 ALTURA FIJA */
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cft-blog-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;     
    display: block;
}

.cft-blog-media:hover img {
    transform: scale(1.04);
}

/* Título */
.cft-blog-title {
    font-size: 1.05rem;
    line-height: 1.35;
    color: #141414;
    font-weight: 600;
    margin: 0.85rem 0 0.75rem;
    min-height: 2.7em;
    flex-grow: 1;
}

/* Links */

.cft-blog a:hover .cft-blog-title {
    text-decoration: underline;
}

/* Botón institucional */
.btn-cft {
    --cft-red: #c1121f;
    --cft-red-dark: #9e0f19;
    background: var(--cft-red);
    color: #fff;
    border: none;
    border-radius: 0.25rem;
    padding: 0.6rem 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}
.btn-cft:hover,
.btn-cft:focus {
    background: var(--cft-red-dark);
    color: #fff;
    text-decoration: none;
}

/* CTA dentro del grid: ocupa todo el ancho y se alinea a la derecha */
.cft-blog-cta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}
@media (max-width: 767.98px) {
    .cft-blog-cta {
        justify-content: center;
    }
}

/* Responsivo */
@media (max-width: 991.98px) {
    .cft-blog-title {
        min-height: unset;
    }
}

/* =========================
   Llamado a la acción
   ========================= */

.call-to-action {
    position: relative;
    padding: 4rem 0;
    color: #333333;
    background-image: linear-gradient(135deg, #ffffff 50%, #f9f0f0 50%);
    overflow: hidden;
}

.cta-inner {
    text-align: center;
}

.call-to-action h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.call-to-action p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* ===== Footer ===== */
.site-footer {
    background: #0c0c0c;
    color: #fff;
    padding: 3rem 0 2.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.6fr; /* 4 columnas: contacto separado */
    gap: 2rem 2.25rem;
}

.footer-logo-group {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.footer-logo-group img {
    height: 56px;
    object-fit: contain;
}

.footer-heading {
    color: #fff;
    font-weight: 700;
    margin: 0 0 0.4rem;
}
.footer-desc {
    color: #ccc;
    margin: 0;
}

.footer-col h4 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 0.45rem;
}
.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-col ul li a:hover {
    color: #ff2d2d;
}

/* Contacto en lista */
.contact-list .contact-icon {
    color: #ff2d2d;
    margin-right: 8px;
}

/* Línea inferior */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

/* ===========================
   RESPONSIVO
   =========================== */

/* --- Tablet grande ↔ Desktop pequeño (≤1200px) --- */
@media (max-width: 1200px) {
    .hero {
        background-image: url("/img/hero/hero-tablet.png");
        background-position: 60% center;
        background-size: cover;
        min-height: 68vh;
    }
}

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {
    /* Menú móvil */
    .main-nav {
        position: absolute;
        top: 80px;
        right: 0;
        background-color: #ffffff;
        width: 70%;
        max-width: 260px;
        padding: 1rem;
        border: 1px solid #e6e6e6;
        border-radius: var(--border-radius);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    .main-nav ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .burger {
        display: flex;
    }
    .main-nav.open {
        transform: translateX(0);
    }

    /* Hero móvil */
    .hero {
        background-image: url("/img/hero/hero-mobile.png");
        background-position: center top;
        background-size: cover;
        min-height: 560px;
    }
    .hero-wrapper {
        padding: 3.25rem 1rem 1.25rem;
        align-items: flex-start;
    }
    .hero-content {
        max-width: 100%;
        transform: none;
        color: #fff;
    }
    .hero-content h1 {
        font-size: clamp(1.6rem, 6.2vw, 2.2rem);
        line-height: 1.15;
        letter-spacing: 0.1px;
        white-space: normal;
        margin-bottom: 0.75rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    .hero-content p {
        font-size: clamp(0.9rem, 3.6vw, 1rem);
        line-height: 1.35;
        white-space: normal;
        margin-bottom: 1rem;
        opacity: 0.95;
    }

    /* Buscador móvil */
    .search-form {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        max-width: 100%;
        height: 44px;
        border-radius: 12px;
        padding: 0 0.5rem 0 0.75rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    .search-form input {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        font-size: 0.8rem;
        line-height: 1;
        padding: 0;
        text-overflow: ellipsis;
    }
    .search-form input::placeholder {
        font-size: 0.8rem;
        opacity: 0.85;
    }
    .btn-search {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 86px;
        height: 40px;
        padding: 0 0.9rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }

    /* Grillas base móvil */
    .jobs-grid {
        grid-template-columns: 1fr;
    }

    /* Empresas destacadas (carrusel horizontal) */
    .featured-companies {
        position: relative;
        padding: 2.5rem 0 2rem;
    }
    .companies-row {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        padding: 0 1rem 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 0 1rem;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }
    .companies-row::-webkit-scrollbar {
        height: 0;
    }
    .company-item {
        flex: 0 0 78%;
        max-width: 78%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: center;
        padding: 20px;
        border-radius: 16px;
    }
    .company-item img {
        max-width: 85%;
        max-height: 75%;
    }
    .featured-companies::before,
    .featured-companies::after {
        content: "";
        position: absolute;
        top: 6.5rem;
        bottom: 2rem;
        width: 28px;
        pointer-events: none;
        z-index: 1;
    }
    .featured-companies::before {
        left: 0;
        background: linear-gradient(
            90deg,
            var(--bg-light) 0%,
            transparent 100%
        );
    }
    .featured-companies::after {
        right: 0;
        background: linear-gradient(
            270deg,
            var(--bg-light) 0%,
            transparent 100%
        );
    }

    /* Trabajos destacados (carrusel horizontal en mobile) */
    @media (max-width: 768px) {
        .featured-jobs,
        .featured_jobs {
            position: relative;
            padding: 2.5rem 0 2rem;
        }

        .featured-jobs .jobs-grid,
        .featured_jobs .jobs-grid {
            display: flex !important;
            flex-wrap: nowrap;
            overflow-x: auto;
            overflow-y: hidden;
            gap: 1rem;
            padding: 0 1rem 0.5rem;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scroll-padding: 0 1rem;
            scrollbar-width: none;
            scroll-behavior: smooth;
        }
        .featured-jobs .jobs-grid::-webkit-scrollbar,
        .featured_jobs .jobs-grid::-webkit-scrollbar {
            height: 0;
        }

        .featured-jobs .job-card,
        .featured_jobs .job-card {
            flex: 0 0 82%;
            max-width: 82%;
            scroll-snap-align: center;
        }

        .featured-jobs::before,
        .featured-jobs::after,
        .featured_jobs::before,
        .featured_jobs::after {
            content: "";
            position: absolute;
            top: 5.5rem;
            bottom: 2rem;
            width: 28px;
            pointer-events: none;
            z-index: 1;
        }
        .featured-jobs::before,
        .featured_jobs::before {
            left: 0;
            background: linear-gradient(
                90deg,
                var(--bg-light) 0%,
                transparent 100%
            );
        }
        .featured-jobs::after,
        .featured_jobs::after {
            right: 0;
            background: linear-gradient(
                270deg,
                var(--bg-light) 0%,
                transparent 100%
            );
        }
    }

    /* Testimonios (carrusel horizontal) */
    .testimonials {
        display: flex;
        flex-wrap: nowrap;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem 0.5rem;
        scrollbar-width: none;
    }
    .testimonials::-webkit-scrollbar {
        height: 0;
    }
    .testimonial-card {
        flex: 0 0 80%;
        min-width: 280px;
        scroll-snap-align: center;
    }

    /* Footer móvil */
    @media (max-width: 992px) {
        .footer-container {
            grid-template-columns: 1.6fr 1fr;
        }
    }
    @media (max-width: 600px) {
        .footer-container {
            grid-template-columns: 1fr;
        }
        .footer-col,
        .footer-brand {
            text-align: left;
        }
        .footer-logo-group {
            justify-content: flex-start;
        }
    }
}

/* --- Very small (≤390px) --- */
@media (max-width: 390px) {
    .hero {
        min-height: 520px;
    }

    .search-form {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0.55rem;
        gap: 0.5rem;
    }
    .btn-search {
        width: 100%;
        height: 42px;
        font-size: 0.85rem;
    }

    .testimonial-card {
        flex-basis: 85%;
        min-width: 260px;
    }
}
/* === Cinturón de seguridad global (landing) === */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* Evita desbordes accidentales de secciones grandes */
main,
.site-header,
.site-footer {
    overflow-x: hidden;
}

/* A) Menú móvil como overlay real: no expande el layout cuando está cerrado */
@media (max-width: 768px) {
    .main-nav {
        position: fixed; /* superposición real */
        top: 0;
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        max-width: 85vw;
        transform: translateX(
            100%
        ); /* fuera de vista sin afectar scrollWidth */
        background: #fff;
        border-left: 1px solid #e6e6e6;
        border-radius: 0; /* evita px extra por curvas */
        box-shadow: none; /* evita sombras que sumen ancho */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        will-change: transform;
        z-index: 1000;
    }
    .main-nav.open {
        transform: translateX(0);
    }
}

/* B) Secciones con velos/gradientes: recortan su contenido */
.featured-companies,
.featured-jobs,
.featured_jobs,
.testimonials-section {
    overflow: hidden;
}

/* C) Los contenedores que scrollean NO llevan padding (va al wrapper/sección) */
@media (max-width: 768px) {
    .companies-row,
    .featured-jobs .jobs-grid,
    .featured_jobs .jobs-grid,
    .testimonials {
        padding-left: 0;
        padding-right: 0;
        margin: 0 1rem 0.5rem; /* aire visual sin aumentar el scrollWidth */
    }

    /* Velos laterales: solo efecto visual, sin capturar eventos */
    .featured-companies::before,
    .featured-companies::after,
    .featured-jobs::before,
    .featured-jobs::after,
    .featured_jobs::before,
    .featured_jobs::after {
        pointer-events: none;
    }
}
/* === Mantener el header por encima y el menú por debajo del header === */
@media (max-width: 768px) {
    /* 1) Header siempre visible por encima del drawer */
    .site-header {
        position: sticky; /* o fixed si prefieres que no “empuje” nada */
        top: 0;
        z-index: 2000; /* mayor que el del drawer */
    }

    /* 2) Definimos la altura del header para calcular el alto del drawer */
    :root {
        --header-h: 80px;
    } /* ajusta si tu header mide otra cosa */

    /* 3) Drawer anclado por debajo del header, sin taparlo */
    .main-nav {
        position: fixed;
        top: var(--header-h);
        right: 0;
        bottom: 0;
        width: min(320px, 85vw);
        max-width: 85vw;
        height: calc(100dvh - var(--header-h));
        transform: translateX(100%);
        background: #fff;
        border-left: 1px solid #e6e6e6;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1000; /* menor que el header */
        will-change: transform;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    /* 4) Asegura que el botón burger quede clickeable por encima */
    .burger {
        position: relative;
        z-index: 2100; /* mayor que el drawer */
    }
}
