/* =========================================================
   IMPEWEB SOLUCIONES — style.css
   Paleta: azul navy tecnológico + acento dorado (guiño a la
   cantera/arquitectura de Guanajuato), sobre fondo claro.
   ========================================================= */

:root {
    /* Color */
    --navy-900: #0b2447;
    --navy-700: #14395f;
    --blue-500: #1f6fb2;
    --sky-400: #5ec2e8;
    --gold-500: #e8a93b;
    --gold-600: #cf8f1f;
    --bg: #f6f8fb;
    --white: #ffffff;
    --ink: #16223a;
    --muted: #5b6b85;
    --border: #e1e7f0;

    /* Type */
    --font-display: "Sora", "Segoe UI", sans-serif;
    --font-body: "Inter", "Segoe UI", sans-serif;

    /* Layout */
    --max-width: 1180px;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(11, 36, 71, 0.08);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* evita el desbordamiento horizontal (la "barra blanca" al deslizar en
   móvil): algún elemento animado o a pantalla completa sobresale del
   ancho, y esto recorta ese excedente sin afectar el scroll vertical. */
html, body { overflow-x: hidden; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--navy-900);
    text-transform: capitalize;   /* primera letra de cada palabra en mayúscula */
}
p { margin: 0 0 1em; color: var(--muted); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* Contenedor más ancho, para secciones que necesitan más aire
   (ahorita lo usa la sección de Noticias + Reels). Ajusta el max-width
   a gusto: 1400px, 1500px, o quítalo para que ocupe toda la pantalla. */
.container-ancho { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container-ancho { padding: 0 20px; } }

/* Respeta reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* -------------------- Masthead -------------------- */
.masthead-img { width: 100%; height: clamp(90px, 14vw, 170px); object-fit: cover; object-position: center; }

/* -------------------- Navbar -------------------- */
.navbar {
    background: var(--navy-900);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
/* En Inicio, el nav flota encima y solo aparece al pasar la presentación Tron.
   (La clase 'nav-flotante' se la pone js/main.js, y solo si existe el hero.) */
.navbar.nav-flotante {
    position: fixed;
    top: 0; left: 0; right: 0;
    transform: translateY(-100%);
    transition: transform .35s ease;
}
.navbar.nav-flotante.visible { transform: translateY(0); }

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 90px;
}

/* marca: logo + botón contáctanos, del lado izquierdo */
.nav-marca { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 180px; width: auto; display: block; }

.nav-contacto {
    display: inline-block;
    background: var(--gold-500);
    color: var(--navy-900);
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: background .2s ease;
}
.nav-contacto:hover { background: var(--gold-600); }

/* links a la derecha */
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.nav-links a {
    display: inline-block;
    padding: 8px 12px;
    color: #cfd9ea;
    font-weight: 500;
    font-size: .92rem;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover,
.nav-links a.activo { color: var(--white); border-color: var(--gold-500); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Mega-menú "Lo que Distribuimos" ---------- */
.nav-caret { font-size: .7em; opacity: .8; }

.nav-dropdown { position: static; }
/* puente invisible para que el mouse pueda pasar del texto al panel sin que se cierre */
.nav-dropdown::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 14px;
    display: none;
}
.nav-dropdown:hover::after { display: block; }

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(11, 36, 71, .16);
    border-top: 1px solid var(--border);
    /* oculto por defecto: no ocupa espacio y no se puede clicar */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 60;
}
.mega-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 26px 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* se muestra al pasar el mouse por el item (o con foco de teclado) */
.nav-dropdown:hover .mega-menu,
.nav-dropdown:focus-within .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-col {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}
.mega-col:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.mega-col-img {
    height: 120px;
    background: linear-gradient(135deg, #dbe6f4, #b9cde6);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mega-col-cuerpo { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.mega-col-cuerpo h4 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--navy-900);
    margin: 0 0 6px;
}
.mega-col-cuerpo p {
    font-size: .82rem;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 14px;
    flex: 1;
}
.mega-btn { align-self: flex-start; padding: 8px 16px; font-size: .82rem; }

/* la lista de sublinks solo se usa en móvil (acordeón); en desktop se oculta */
.sub-movil { display: none; }

/* Pantallas medianas: reducimos tamaños para que todo quepa en una fila */
@media (max-width: 1400px) {
    .nav-container { padding: 0 18px; gap: 12px; }
    .nav-logo img { height: 120px; }
    .nav-contacto { padding: 7px 14px; font-size: .84rem; }
    .nav-links a { padding: 7px 9px; font-size: .84rem; }
}
@media (max-width: 1150px) {
    .nav-logo img { height: 100px; }
    .nav-links a { padding: 6px 7px; font-size: .78rem; }
    .nav-marca { gap: 10px; }
}

/* Pantallas chicas: menú hamburguesa */
@media (max-width: 1000px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: 90px; left: 0; right: 0;
        background: var(--navy-900);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
        box-shadow: 0 12px 20px rgba(0,0,0,.25);
    }
    .nav-links.abierto { max-height: 900px; }
    .nav-links li { width: 100%; }
    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: .95rem;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }

    /* --- Acordeón de "Lo que Distribuimos" en móvil --- */
    /* el mega-menú con imágenes no se usa en móvil */
    .mega-menu { display: none; }

    /* la flechita indica que se puede desplegar; rota cuando está abierto */
    .nav-caret { display: inline-block; transition: transform .25s ease; font-size: .85em; }
    .nav-dropdown.abierto .nav-caret { transform: rotate(180deg); }

    /* el submenú de texto arranca cerrado y se despliega al tocar */
    .sub-movil {
        display: block;
        max-height: 0;
        overflow: hidden;
        background: rgba(0, 0, 0, .22);
        transition: max-height .3s ease;
    }
    .nav-dropdown.abierto .sub-movil { max-height: 260px; }
    .sub-movil a {
        padding: 12px 20px 12px 38px;   /* indentado, para que se vea como sub-opción */
        font-size: .9rem;
        color: #b9cae4;
    }
}

/* -------------------- Hex divider (marca registrada visual) -------------------- */
.hex-divider {
    display: flex;
    justify-content: center;
    gap: 14px;
    padding: 28px 0;
}
.hex-divider span {
    width: 14px; height: 14px;
    background: var(--gold-500);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    opacity: .55;
}
.hex-divider span:nth-child(2) { background: var(--sky-400); opacity: .8; }
.hex-divider span:nth-child(3) { background: var(--blue-500); }

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* -------------------- Noticias + Reels (dos columnas) -------------------- */
.contenido-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}
/* clave: sin esto, el track de reels (width:max-content) expande su columna
   y se come el espacio de las noticias */
.contenido-split > * { min-width: 0; }

@media (max-width: 900px) {
    .contenido-split { grid-template-columns: minmax(0, 1fr); }
}

.bloque-titulo {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy-900);
    margin-bottom: 4px;
}
.bloque-sub {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 18px;
}

/* ---- Carrusel de noticias (una nota a la vez, rota sola) ---- */
/* El marco: borde de acento + fondo oscuro, para diferenciarlo de los reels */
.noticias-caja {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--navy-900);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
/* línea dorada superior, como "marco" distintivo de la sección */
.noticias-caja::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold-500), var(--sky-400));
    z-index: 4;
}

.noticias-escenario { position: absolute; inset: 0; }

.noticia-item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px 30px 60px;
    text-decoration: none;
    color: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--navy-900);
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s ease, visibility .6s;
}
.noticia-item.activa { opacity: 1; visibility: visible; }

/* velo oscuro para que el texto se lea encima de cualquier imagen */
.noticia-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 16, 33, .25) 0%, rgba(6, 16, 33, .72) 55%, rgba(6, 16, 33, .93) 100%);
}
.noticia-contenido { position: relative; z-index: 2; }

.noticia-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.noticia-etiqueta {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--navy-900);
    background: var(--gold-500);
    padding: 4px 11px;
    border-radius: 999px;
}
.noticia-fecha { font-size: .78rem; color: #b9cae4; }
.noticia-titulo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.28;
}
.noticia-resumen {
    font-size: .95rem;
    color: #d5e0f0;
    margin: 0 0 16px;
    line-height: 1.6;
}
.noticia-mas {
    font-size: .86rem;
    font-weight: 600;
    color: var(--gold-500);
}

/* puntitos indicadores, encima de la imagen */
.noticias-puntos {
    position: absolute;
    bottom: 22px; left: 30px;
    z-index: 3;
    display: flex;
    gap: 8px;
}
.noticias-puntos button {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    cursor: pointer;
    transition: background .25s ease, width .25s ease;
}
.noticias-puntos button.activo { background: var(--gold-500); width: 24px; border-radius: 999px; }

@media (max-width: 600px) {
    .noticias-caja { aspect-ratio: 16 / 9; }
    .noticia-item { padding: 26px 22px 58px; }
    .noticia-titulo { font-size: 1.2rem; }
    .noticias-puntos { left: 22px; }
}

/* -------------------- Video shelf (slider tipo TikTok) -------------------- */
.video-shelf-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
            mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}
.video-shelf-track {
    display: flex;
    width: max-content;
    padding: 4px 0 8px;
    animation: video-shelf-mover 26s linear infinite;
}
.video-shelf-track:hover { animation-play-state: paused; }

@keyframes video-shelf-mover {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); } /* el contenido está duplicado exactamente, así el loop no se nota */
}

.video-card {
    position: relative;
    flex: 0 0 auto;
    width: 170px;
    margin-right: 16px;
    display: block;
    text-decoration: none;
    color: inherit;
}
.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: transform .2s ease;
}
.video-card:hover .video-thumb { transform: translateY(-4px); }

/* video real dentro de la tarjeta de reel (llena el recuadro vertical) */
.video-thumb video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* la tarjeta de reel es clickeable */
.video-card[data-video] { cursor: pointer; }

/* ícono de play que se ve cuando el reel está pausado; se oculta al pasar el cursor */
.video-play-icono {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(6, 16, 33, .55);
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    padding-left: 3px;
    z-index: 2;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition: opacity .2s ease;
}
.video-card:hover .video-play-icono { opacity: 0; }

/* ---------- Lightbox de reels (video grande en la misma página) ---------- */
.reel-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(6, 16, 33, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.reel-lightbox.abierto { display: flex; }
.reel-lightbox-cont {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
}
.reel-lightbox-cont video {
    max-width: min(92vw, 420px);
    max-height: 82vh;
    border-radius: 14px;
    background: #000;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.reel-lightbox-titulo {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    text-align: center;
    max-width: 420px;
}
.reel-lightbox-cerrar {
    position: absolute;
    top: 20px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: background .2s ease;
}
.reel-lightbox-cerrar:hover { background: rgba(255, 255, 255, .25); }

/* mensaje cuando todavía no hay noticias/reels publicados */
.contenido-vacio {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: .95rem;
    text-align: center;
    padding: 24px;
}

.video-play {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.video-badge {
    position: absolute;
    top: 10px; left: 10px;
    font-size: .68rem;
    font-weight: 600;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(11, 36, 71, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.video-badge.programado { background: rgba(232, 169, 59, .9); color: var(--navy-900); }

.video-title {
    margin: 10px 2px 0;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy-900);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 600px) { .video-card { width: 140px; margin-right: 14px; } }

/* -------------------- Historia de la empresa (video 40% / texto 60%) -------------------- */
.historia-split {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 40px;
    align-items: stretch;
}
@media (max-width: 860px) {
    .historia-split { grid-template-columns: 1fr; }
}

.historia-video {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 320px;
    box-shadow: var(--shadow);
    /* degradado de respaldo, se ve si todavía no hay video */
    background: linear-gradient(135deg, #14395f, #0b2447 60%, #071a30);
}
.historia-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 860px) {
    .historia-video { min-height: 240px; }
}

.historia-texto { display: flex; flex-direction: column; justify-content: center; }
.historia-texto .eyebrow {
    color: var(--blue-500);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
    margin-bottom: 10px;
}
.historia-texto h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 18px;
}
.historia-texto h2::after {
    content: '';
    display: block;
    width: 54px; height: 3px;
    margin-top: 14px;
    background: linear-gradient(90deg, var(--gold-500), var(--sky-400));
}
.historia-texto p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 14px;
    text-align: justify;
}
.historia-texto p:last-child { margin-bottom: 0; }

/* -------------------- Buttons -------------------- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-600); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-outline:hover { border-color: var(--white); }
.btn-navy { background: var(--navy-900); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); }

/* -------------------- Section titles -------------------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow {
    color: var(--blue-500);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .78rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.bg-white { background: var(--white); }

/* -------------------- Cards / grid -------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.card .icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--navy-900);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    color: var(--gold-500);
    font-size: 1.2rem;
    margin-bottom: 16px;
}
.card h3 { font-size: 1.1rem; }
.card p { margin-bottom: 0; font-size: .95rem; }

/* -------------------- Trust strip (aliados) -------------------- */
.trust-strip { background: var(--navy-900); padding: 36px 0; }
.trust-strip p { color: #9db1d0; text-align: center; margin-bottom: 20px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; align-items: center; }
.trust-logos span {
    color: #e6ecf7;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    opacity: .85;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 8px 18px;
}

/* -------------------- CTA banner -------------------- */
.cta-banner {
    background: linear-gradient(120deg, var(--blue-500), var(--navy-900));
    color: var(--white);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: #d9e4f4; max-width: 52ch; margin-inline: auto; }

/* -------------------- Values / list rows -------------------- */
.valores { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.valor { border-left: 3px solid var(--gold-500); padding-left: 18px; }
.valor h3 { font-size: 1.05rem; margin-bottom: 6px; }

.badge-explica {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.badge-explica .badge-marca {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold-500); color: var(--navy-900);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700;
}

/* -------------------- Forms -------------------- */
.form-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }

.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 14px; }
.info-item .icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--navy-900); color: var(--gold-500);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.info-item h4 { margin-bottom: 2px; font-size: 1rem; }
.info-item p { margin: 0; font-size: .92rem; }

form.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: .88rem; font-weight: 600; color: var(--navy-900); }
.campo input, .campo textarea {
    font-family: var(--font-body);
    font-size: .95rem;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--ink);
}
.campo input:focus, .campo textarea:focus {
    outline: 2px solid var(--blue-500);
    outline-offset: 1px;
    background: var(--white);
}
.campo textarea { resize: vertical; min-height: 120px; }
.form-nota { font-size: .8rem; color: var(--muted); margin: 0; }

.alerta {
    padding: 14px 18px;
    border-radius: 8px;
    font-size: .92rem;
    margin-bottom: 4px;
}
.alerta-exito { background: #e7f6ec; color: #1f6b3a; border: 1px solid #bfe6cb; }
.alerta-error { background: #fdecec; color: #9c2323; border: 1px solid #f5c2c2; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy-900); color: #c6d2e6; margin-top: 40px; }
.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.footer-izq { justify-self: start; }
.footer-centro { justify-self: center; text-align: center; }
.footer-der { justify-self: end; display: flex; align-items: center; gap: 14px; }

/* texto Contáctanos + teléfonos (izquierda) */
.footer-contacto-titulo {
    margin: 0 0 6px;
    color: var(--gold-500);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}
.footer-telefonos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.footer-telefonos a {
    color: #c6d2e6;
    font-size: .92rem;
    transition: color .2s ease;
}
.footer-telefonos a:hover { color: var(--white); }

/* eslogan (centro) */
.footer-centro p {
    margin: 0;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

/* iconos de redes (derecha) */
.footer-red { display: inline-flex; transition: transform .2s ease, opacity .2s ease; opacity: .85; }
.footer-red:hover { transform: translateY(-2px); opacity: 1; }
.footer-red img { width: 80px; height: 80px; object-fit: contain; display: block; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 14px 24px;
    text-align: center;
    font-size: .8rem;
    color: #7f92b3;
}

@media (max-width: 700px) {
    .footer-container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
    }
    .footer-izq, .footer-centro, .footer-der { justify-self: center; }
}

/* -------------------- Utility -------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
/* ---------- Submenú simple (Nosotros → Bolsa de trabajo) ---------- */
.nav-dropdown-simple { position: relative; }   /* el submenú se posiciona respecto a este */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    background: var(--white);
    box-shadow: 0 18px 40px rgba(11, 36, 71, .16);
    border: 1px solid var(--border);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 60;
}
.nav-dropdown-simple:hover .sub-menu,
.nav-dropdown-simple:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.sub-menu li { margin: 0; }
.sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--navy-900);
    text-decoration: none;
    font-size: .92rem;
    transition: background .15s ease, color .15s ease;
}
.sub-menu li a:hover {
    background: var(--bg);
    color: var(--blue-500);
}
/* en móvil el submenú flotante se oculta (se usa el acordeón sub-movil) */
@media (max-width: 980px) {
    .sub-menu { display: none; }
}