/* =============================================================
   IT FORENSIC — styles.css  (v8)

   Dirección: "expediente forense". La página se lee como un
   documento probatorio: monoespaciada (IBM Plex Mono) en los
   títulos, Inter para lectura, monoespaciada para todo lo que en la
   práctica va impreso como dato verificable (folios, hash, plazos).

   Dos temas: claro (por defecto) y oscuro. El tema se controla con
   el atributo data-theme en <html>; sin elección previa se respeta
   la preferencia del sistema.

   Las bandas de marca (cabecera, hero, cierre, pie) son oscuras en
   ambos temas: son la tinta del expediente, no el papel.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
    /* Marca — constantes en los dos temas */
    --brand:      #0B1B3D;   /* cabecera y pie */
    --brand-2:    #162E5C;
    --ink-band:   #0A1628;   /* hero, banda de cierre */
    --ink-band-2: #0C1D38;   /* franja de credenciales / cifras */
    --seal:       #C8952F;   /* latón: folio, sello, eyebrow sobre oscuro */
    --seal-soft:  rgba(200, 149, 47, 0.28);
    --accent:     #00E1D9;   /* cian: verificación, solo sobre oscuro */
    --whatsapp:   #25D366;

    /* Texto sobre bandas oscuras */
    --on-dark:      #D2D8E1;
    --on-dark-mid:  #B9C2D0;
    --on-dark-soft: #94A1B5;
    --line-dark:    #22314C;
    --text-light:   #FFFFFF;

    /* Superficies y texto del cuerpo (tema claro) */
    --page-bg:     #FFFFFF;
    --surface:     #F5F7FA;
    --surface-2:   #FFFFFF;
    --border:      #E1E7EF;
    --heading:     #0B1B3D;
    --text:        #16202F;
    --text-mid:    #4B5563;
    --text-soft:   #6B7280;
    --seal-deep:   #8A5A11;   /* latón legible sobre papel */
    --input-bg:    #FFFFFF;
    --input-border:#CBD5E1;
    --ok-bg:       #ECFDF5;
    --ok-border:   #A7F3D0;
    --ok-text:     #065F46;
    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.08);
    --shadow-md: 0 6px 16px rgba(10, 22, 40, 0.10);
    --shadow-lg: 0 24px 60px rgba(3, 10, 22, 0.45);

    /* Tipografía */
    /* Mono para titulares y datos (registro de máquina), sans para lectura.
       Una sola superfamilia: IBM Plex, de linaje informático. */
    --font-display: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --fs-display: clamp(1.75rem, 3.3vw, 2.75rem);
    --fs-h1:   clamp(1.5rem, 2.9vw, 2.1rem);
    --fs-h2:   clamp(1.25rem, 2.2vw, 1.7rem);
    --fs-h3:   1.05rem;
    --fs-body: 1rem;
    --fs-sm:   0.875rem;
    --fs-xs:   0.8rem;
    --fs-mono: 0.72rem;
    --lh-tight: 1.12;
    --lh-body:  1.65;

    /* Espaciado y forma */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2.5rem;
    --sp-5: 4rem;
    --sp-6: 5.5rem;
    --radius:    5px;
    --radius-sm: 3px;
    --container: 1140px;
    --gutter: clamp(1.25rem, 5vw, 4rem);

    /* Bandas de sección (hero, cifras, credenciales, cierre, banners).
       Cambian con el tema; la cabecera y el pie no, porque son la marca. */
    --band-bg:        #EEF2F8;
    --band-bg-2:      #E5EBF4;
    --band-h:         #0B1B3D;
    --band-txt:       #3A4557;
    --band-txt-mid:   #4B5563;
    --band-txt-soft:  #667085;
    --band-line:      #D2DBE8;
    --band-accent:    #0E7A72;   /* verde-teal: el cian no es legible sobre papel */
    --band-seal:      #8A5A11;
    --band-seal-soft: rgba(138, 90, 17, 0.3);
    --band-grid:      rgba(11, 27, 61, 0.06);
    --band-glow:      rgba(126, 156, 204, 0.28);
    --band-beam:      rgba(14, 122, 114, 0.06);
    --band-beam-2:    rgba(138, 90, 17, 0.06);
    --band-beam-line: rgba(14, 122, 114, 0.14);
    --band-veil:      linear-gradient(90deg, #EEF2F8 6%, rgba(238, 242, 248, 0.88) 42%, rgba(238, 242, 248, 0.55) 78%, rgba(238, 242, 248, 0.7)),
                      linear-gradient(180deg, rgba(238, 242, 248, 0.6), transparent 35%, rgba(238, 242, 248, 0.75));
    --band-veil-movil: linear-gradient(180deg, rgba(238, 242, 248, 0.78), rgba(238, 242, 248, 0.9));
    --band-photo-blend: multiply;
    --band-photo-op:  0.12;
    --band-surface:      #FFFFFF;
    --band-surface-line: #D7DEEA;
    --band-cell:      rgba(11, 27, 61, 0.055);
    --band-cell-rec:  rgba(200, 149, 47, 0.5);
    --band-cell-ver:  rgba(14, 122, 114, 0.38);
    --band-platter:   rgba(11, 27, 61, 0.13);
    --band-platter-2: rgba(11, 27, 61, 0.06);

    color-scheme: light;
}

/* Tema oscuro — elección explícita */
:root[data-theme="dark"] {
    --page-bg:     #080F1A;
    --surface:     #101C2C;
    --surface-2:   #0C1723;
    --border:      #1F2D44;
    --heading:     #EDF1F8;
    --text:        #DCE4EF;
    --text-mid:    #A7B3C4;
    --text-soft:   #8896A9;
    --seal-deep:   #DFAE55;   /* latón claro: legible sobre superficie oscura */
    --input-bg:    #0C1723;
    --input-border:#2A3A54;
    --ok-bg:       #06251C;
    --ok-border:   #14513C;
    --ok-text:     #7EE2B8;
    --ink-band:    #060C16;
    --ink-band-2:  #0A1424;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --band-bg:        #060C16;
    --band-bg-2:      #0A1424;
    --band-h:         #FFFFFF;
    --band-txt:       #D2D8E1;
    --band-txt-mid:   #B9C2D0;
    --band-txt-soft:  #94A1B5;
    --band-line:      #22314C;
    --band-accent:    #00E1D9;
    --band-seal:      #C8952F;
    --band-seal-soft: rgba(200, 149, 47, 0.28);
    --band-grid:      rgba(255, 255, 255, 0.034);
    --band-glow:      rgba(22, 46, 92, 0.7);
    --band-beam:      rgba(0, 225, 217, 0.05);
    --band-beam-2:    rgba(200, 149, 47, 0.05);
    --band-beam-line: rgba(0, 225, 217, 0.1);
    --band-veil:      linear-gradient(90deg, #060C16 6%, rgba(10, 22, 40, 0.86) 42%, rgba(10, 22, 40, 0.5) 78%, rgba(10, 22, 40, 0.66)),
                      linear-gradient(180deg, rgba(10, 22, 40, 0.55), transparent 35%, rgba(10, 22, 40, 0.7));
    --band-veil-movil: linear-gradient(180deg, rgba(10, 22, 40, 0.72), rgba(10, 22, 40, 0.86));
    --band-photo-blend: screen;
    --band-photo-op:  0.2;
    --band-surface:      rgba(0, 0, 0, 0.3);
    --band-surface-line: rgba(255, 255, 255, 0.09);
    --band-cell:      rgba(255, 255, 255, 0.05);
    --band-cell-rec:  rgba(200, 149, 47, 0.42);
    --band-cell-ver:  rgba(0, 225, 217, 0.34);
    --band-platter:   rgba(255, 255, 255, 0.09);
    --band-platter-2: rgba(255, 255, 255, 0.05);
    color-scheme: dark;
}

/* Tema oscuro — preferencia del sistema, mientras no haya elección */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --page-bg:     #080F1A;
        --surface:     #101C2C;
        --surface-2:   #0C1723;
        --border:      #1F2D44;
        --heading:     #EDF1F8;
        --text:        #DCE4EF;
        --text-mid:    #A7B3C4;
        --text-soft:   #8896A9;
        --seal-deep:   #DFAE55;
        --input-bg:    #0C1723;
        --input-border:#2A3A54;
        --ok-bg:       #06251C;
        --ok-border:   #14513C;
        --ok-text:     #7EE2B8;
            --ink-band:    #060C16;
        --ink-band-2:  #0A1424;
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
        --shadow-md: 0 8px 22px rgba(0, 0, 0, 0.45);
        --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
        --band-bg:        #060C16;
        --band-bg-2:      #0A1424;
        --band-h:         #FFFFFF;
        --band-txt:       #D2D8E1;
        --band-txt-mid:   #B9C2D0;
        --band-txt-soft:  #94A1B5;
        --band-line:      #22314C;
        --band-accent:    #00E1D9;
        --band-seal:      #C8952F;
        --band-seal-soft: rgba(200, 149, 47, 0.28);
        --band-grid:      rgba(255, 255, 255, 0.034);
        --band-glow:      rgba(22, 46, 92, 0.7);
        --band-beam:      rgba(0, 225, 217, 0.05);
        --band-beam-2:    rgba(200, 149, 47, 0.05);
        --band-beam-line: rgba(0, 225, 217, 0.1);
        --band-veil:      linear-gradient(90deg, #060C16 6%, rgba(10, 22, 40, 0.86) 42%, rgba(10, 22, 40, 0.5) 78%, rgba(10, 22, 40, 0.66)),
                          linear-gradient(180deg, rgba(10, 22, 40, 0.55), transparent 35%, rgba(10, 22, 40, 0.7));
        --band-veil-movil: linear-gradient(180deg, rgba(10, 22, 40, 0.72), rgba(10, 22, 40, 0.86));
        --band-photo-blend: screen;
        --band-photo-op:  0.2;
        --band-surface:      rgba(0, 0, 0, 0.3);
        --band-surface-line: rgba(255, 255, 255, 0.09);
        --band-cell:      rgba(255, 255, 255, 0.05);
        --band-cell-rec:  rgba(200, 149, 47, 0.42);
        --band-cell-ver:  rgba(0, 225, 217, 0.34);
        --band-platter:   rgba(255, 255, 255, 0.09);
        --band-platter-2: rgba(255, 255, 255, 0.05);
        color-scheme: dark;
    }
}

/* Alias retrocompatibles: páginas antiguas siguen funcionando */
:root {
    --primary:         var(--brand);
    --secondary:       var(--brand-2);
    --secondary-white: var(--page-bg);
    --secondary-bg:    var(--surface);
    --bg-light:        var(--surface);
    --navy-900:        var(--ink-band);
    --navy-850:        var(--ink-band-2);
    --text-dark:       var(--text);
    --line:            var(--border);
}

/* ---------- 2. Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--page-bg);
    line-height: var(--lh-body);
    font-size: var(--fs-body);
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}
img { max-width: 100%; height: auto; }
h1, h2 {
    font-family: var(--font-display);
    font-weight: 600; letter-spacing: -0.03em;
}
/* Subtitulos de tarjeta en sans: la mono cansa en listas largas */
h3, h4 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.005em; }
strong { font-weight: 600; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible,
.info-card:focus-visible {
    outline: 2px solid var(--seal);
    outline-offset: 2px;
}
main a:focus-visible, main button:focus-visible { outline-color: var(--seal-deep); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Etiqueta monoespaciada reutilizable (folios, plazos, eyebrows) */
.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}

/* ---------- 3. Skip link ---------- */
.skip-link {
    position: absolute; top: -48px; left: 0;
    background: var(--seal); color: #12100A;
    padding: 10px 18px; font-weight: 700; font-size: 14px;
    z-index: 9999; text-decoration: none;
    border-radius: 0 0 var(--radius-sm) 0; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ---------- 4. Cabecera ---------- */
header {
    background: var(--brand);
    padding: 0.9rem var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-3);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo-container { display: flex; align-items: center; flex: none; }
.logo-img { height: 58px; width: auto; object-fit: contain; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: var(--radius-sm); cursor: pointer;
    color: #FFFFFF;
}
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; }
.nav-toggle:hover { border-color: var(--seal); color: var(--seal); }
.nav-toggle .nav-icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-icon-close { display: block; }

.header-end { display: flex; align-items: center; gap: var(--sp-3); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.35rem; }
nav a {
    color: rgba(255, 255, 255, 0.86); text-decoration: none;
    font-size: 0.94rem; font-weight: 450;
    padding: 6px 0; border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
nav a:hover { color: var(--seal); }
nav a.active { color: #FFFFFF; border-bottom-color: var(--seal); }

/* Controles de la cabecera: idioma y tema */
.header-tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.lang-switch {
    display: inline-flex; align-items: stretch;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm); overflow: hidden;
}
.lang-switch button {
    font-family: var(--font-mono);
    font-size: 0.7rem; letter-spacing: 0.1em; font-weight: 500;
    min-width: 44px; min-height: 36px; padding: 0 0.6rem;
    background: transparent; color: rgba(255, 255, 255, 0.7);
    border: none; cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button + button { border-left: 1px solid rgba(255, 255, 255, 0.18); }
.lang-switch button:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.lang-switch button[aria-pressed="true"] { background: var(--seal); color: #12100A; }

.theme-toggle {
    width: 44px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.theme-toggle:hover { color: var(--seal); border-color: var(--seal); background: rgba(200, 149, 47, 0.1); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-dark { display: none; }
/* Se muestra el icono de la acción disponible, no del estado actual */
:root[data-theme="dark"] .theme-toggle .icon-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-dark { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-light { display: none; }
}

@media (max-width: 960px) {
    header { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .header-end {
        display: none; order: 3;
        width: 100%; flex-direction: column; align-items: flex-start;
        gap: var(--sp-2); padding-top: var(--sp-2);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
    .header-end.is-open { display: flex; }
    nav { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
    nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    nav a.active { border-bottom-color: var(--seal); }
}

/* ---------- 5. Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 48px;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 600; font-size: 0.97rem;
    text-decoration: none !important;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    line-height: 1.2;
}
.btn .icon { width: 18px; height: 18px; flex: none; }

.btn--light   { background: #FFFFFF; color: var(--brand) !important; }
.btn--light:hover { background: #E6ECF5; }

.btn--primary { background: var(--brand); color: #FFFFFF !important; }
.btn--primary:hover { background: var(--brand-2); }
:root[data-theme="dark"] .btn--primary { background: var(--seal); color: #12100A !important; }
:root[data-theme="dark"] .btn--primary:hover { background: #DBA83C; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn--primary { background: var(--seal); color: #12100A !important; }
    :root:not([data-theme="light"]) .btn--primary:hover { background: #DBA83C; }
}

.btn--seal    { background: var(--seal); color: #12100A !important; }
.btn--seal:hover { background: #DBA83C; }

.btn--ghost {
    background: transparent; color: var(--band-h) !important;
    border-color: var(--band-seal-soft);
}
.btn--ghost:hover { border-color: var(--band-seal); background: rgba(200, 149, 47, 0.08); }

.btn--whatsapp { background: var(--whatsapp); color: #062E14 !important; }
.btn--whatsapp:hover { background: #1FB358; }

@media (max-width: 600px) { .btn { width: 100%; } }

/* =============================================================
   6. PORTADA — hero de impacto con movimiento
   ============================================================= */

/* Estados iniciales solo si hay JS y no se pidió menos movimiento
   (motion.js agrega .js-motion en <html>) */
.js-motion .hero-line,
.js-motion .hero-lead,
.js-motion .hero-ctas,
.js-motion .hero-trust,
.js-motion .hero-live { opacity: 0; }

.js-motion .hero-line  { animation: subir 0.8s cubic-bezier(0.2, 0.8, 0.25, 1) both; }
.js-motion .hero-line--2 { animation-delay: 0.1s; }
.js-motion .hero-line--3 { animation-delay: 0.2s; }
.js-motion .hero-lead  { animation: subir 0.7s ease-out 0.34s both; }
.js-motion .hero-live  { animation: subir 0.7s ease-out 0.46s both; }
.js-motion .hero-ctas  { animation: subir 0.7s ease-out 0.58s both; }
.js-motion .hero-trust { animation: subir 0.7s ease-out 0.7s both; }
@keyframes subir { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero {
    position: relative;
    display: flex; align-items: center;
    min-height: min(92vh, 920px);
    padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) clamp(3rem, 7vh, 5rem);
    background: var(--band-bg);
    border-bottom: 1px solid var(--band-line);
    overflow: hidden;
    isolation: isolate;
}
/* Capa 0: fotografía de ambiente.
   Va desaturada y en modo screen: los negros de la foto se disuelven en el
   navy y solo sobreviven el brillo de la pantalla y las manos. El velo de
   encima garantiza el contraste del texto sobre la mitad izquierda. */
.hero-photo {
    position: absolute; z-index: -3;
    inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 55% 45%;
    filter: grayscale(1) contrast(1.05) brightness(0.9);
    mix-blend-mode: var(--band-photo-blend);
    opacity: var(--band-photo-op);
    mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 28%, #000 72%, transparent);
    pointer-events: none;
}
.hero-veil {
    position: absolute; inset: 0; z-index: -3;
    background: var(--band-veil);
    pointer-events: none;
}
@media (max-width: 900px) {
    /* En móvil la foto pasa a ser textura de fondo, muy tenue */
    .hero-photo { width: 100%; opacity: 0.28; object-position: 55% 40%;
        mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 92%);
        -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent 92%); }
    .hero-veil { background: var(--band-veil-movil); }
}

/* Capa 1: retícula de laboratorio */
.hero::before {
    content: ""; position: absolute; inset: -1px; z-index: -2;
    background-image:
        linear-gradient(var(--band-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--band-grid) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(125% 105% at 28% 0%, #000 18%, transparent 76%);
    -webkit-mask-image: radial-gradient(125% 105% at 28% 0%, #000 18%, transparent 76%);
}
/* Capa 2: halo frío */
.hero::after {
    content: ""; position: absolute; z-index: -2;
    width: 78vw; aspect-ratio: 1; right: -22vw; top: -26vw;
    background: radial-gradient(circle, var(--band-glow), transparent 62%);
    pointer-events: none;
}
/* Capa 3: barrido de lectura, continuo y lento */
.hero-beam {
    position: absolute; inset-inline: 0; z-index: -1;
    height: 40%; top: -40%;
    background: linear-gradient(180deg,
        transparent, var(--band-beam) 46%, var(--band-beam-2) 56%, transparent);
    border-bottom: 1px solid var(--band-beam-line);
    pointer-events: none;
}
.js-motion .hero-beam { animation: barrido 11s linear infinite; }
@keyframes barrido { from { transform: translateY(0); } to { transform: translateY(350%); } }

.hero-inner { position: relative; width: 100%; max-width: var(--container); margin: 0 auto; }
.hero-grid {
    position: relative; width: 100%;
    max-width: var(--container); margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1, .hero-lead, .hero-live, .hero-trust { max-width: 24ch; }
.hero-lead, .hero-live { max-width: 42ch; }
.hero-trust { max-width: none; }

/* --- Imagen hero: mapa de sectores en adquisición (SVG, sin archivo) --- */
.hero-figure { margin: 0; justify-self: end; width: 100%; max-width: 440px; }
.scanmap { display: block; width: 100%; height: auto; overflow: hidden; }
.js-motion .scanmap { animation: subir 0.9s ease-out 0.3s both; }

.scanmap .platter circle,
.scanmap .platter line {
    fill: none; stroke: var(--band-platter); stroke-width: 1;
}
.scanmap .platter line { stroke: var(--band-platter-2); }
.scanmap .platter { transform-box: fill-box; transform-origin: center; }
.js-motion .scanmap .platter { animation: girar 48s linear infinite; }
@keyframes girar { to { rotate: 360deg; } }

.scanmap .cell { fill: var(--band-cell); }
.scanmap .cell--rec { fill: var(--band-cell-rec); stroke: var(--band-seal); stroke-width: 0.6; }
.scanmap .cell--ver { fill: var(--band-cell-ver); stroke: var(--band-accent); stroke-width: 0.6; }
.js-motion .scanmap .cell { animation: sector 4.2s ease-out infinite; }
@keyframes sector {
    0%, 3%  { opacity: 0.25; }
    9%      { opacity: 1; }
    60%     { opacity: 0.92; }
    100%    { opacity: 0.25; }
}

.scanmap .scanline rect { fill: var(--band-accent); }
.scanmap .scanline-glow { opacity: 0.1; }
.js-motion .scanmap .scanline { animation: barrer 4.2s linear infinite; }
@keyframes barrer { from { transform: translateX(0); } to { transform: translateX(356px); } }

.scanmap .plate path { fill: none; stroke: var(--band-seal); stroke-width: 1.6; opacity: 0.55; }
.scanmap .plate-label {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.12em; fill: var(--band-txt-soft);
}
.scanmap .plate-label--right { text-anchor: end; }

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1, .hero-lead, .hero-live, .hero-trust { max-width: none; }
    .hero-figure { justify-self: center; max-width: 330px; }
}

.hero .eyebrow { display: block; color: var(--band-seal); margin-bottom: clamp(1rem, 3vh, 1.75rem); }
.hero .eyebrow::before {
    content: ""; display: inline-block;
    width: 28px; height: 1px; background: var(--band-seal);
    vertical-align: middle; margin-right: 0.75rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--fs-display); line-height: 1.16;
    font-weight: 600; color: var(--band-h);
    letter-spacing: -0.035em;
    max-width: 24ch;
    margin-bottom: clamp(1.25rem, 3vh, 1.9rem);
}
.hero-line { display: block; }

/* Palabra que rota: todas comparten celda, el ancho no salta */
.rotator {
    display: inline-grid; vertical-align: bottom;
    transition: width 0.45s cubic-bezier(0.2, 0.8, 0.25, 1);
}
.rotator.is-measured { justify-items: start; overflow: hidden; }
.rot-item {
    grid-area: 1 / 1;
    color: var(--band-seal);
    white-space: nowrap;
    opacity: 0; transform: translateY(0.26em);
    /* La palabra que entra espera a que salga la anterior: sin doble imagen */
    transition: opacity 0.28s ease 0.16s, transform 0.32s cubic-bezier(0.2, 0.8, 0.25, 1) 0.16s;
}
.rot-item.is-in  { opacity: 1; transform: none; }
.rot-item.is-out {
    opacity: 0; transform: translateY(-0.26em);
    transition: opacity 0.16s ease, transform 0.2s ease;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5;
    color: var(--band-txt-mid); font-weight: 450;
    max-width: 48ch;
    margin-bottom: clamp(1.25rem, 3vh, 1.9rem);
    padding-left: 1rem; border-left: 2px solid var(--band-seal-soft);
}

/* Tira de adquisición: el hash se arma solo, una vez */
.hero-live {
    max-width: 48ch;
    margin-bottom: clamp(1.5rem, 3.5vh, 2.1rem);
    padding: 0.85rem 1rem;
    background: var(--band-surface);
    border: 1px solid var(--band-surface-line);
    border-left: 2px solid var(--band-accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.live-head {
    display: flex; align-items: center; gap: 0.55rem;
    margin-bottom: 0.5rem;
}
.live-head .eyebrow { color: var(--band-txt-soft); }
.live-head .eyebrow::before { display: none; }
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--band-accent); flex: none;
}
.js-motion .live-dot { animation: pulso 2.4s ease-out infinite; }
@keyframes pulso {
    0%   { box-shadow: 0 0 0 0 rgba(0, 225, 217, 0.45); }
    70%  { box-shadow: 0 0 0 9px rgba(0, 225, 217, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 225, 217, 0); }
}
.live-hash {
    display: block;
    font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.7;
    color: var(--band-accent); word-break: break-all;
}
.live-verify {
    display: flex; align-items: center; gap: 0.45rem;
    margin-top: 0.5rem;
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--band-seal);
    opacity: 0; transition: opacity 0.5s ease;
}
.live-verify.is-on { opacity: 1; }
.live-verify svg { width: 13px; height: 13px; flex: none; }

.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: clamp(1.5rem, 3.5vh, 2.1rem); }
.hero-trust {
    list-style: none; display: flex; flex-wrap: wrap;
    gap: 0.45rem 1.4rem;
    font-family: var(--font-mono); font-size: var(--fs-mono);
    letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--band-txt-soft);
    padding-top: var(--sp-2); border-top: 1px solid var(--band-line);
    max-width: 66ch;
}
.hero-trust li { position: relative; padding-left: 0.85rem; }
.hero-trust li::before {
    content: ""; position: absolute; left: 0; top: 0.52em;
    width: 4px; height: 4px; border-radius: 50%; background: var(--band-accent);
}
/* Indicador de que hay más abajo */
.hero-scroll {
    position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
    color: var(--band-txt-soft); line-height: 0;
}
.hero-scroll svg { width: 22px; height: 22px; stroke: currentColor; }
.js-motion .hero-scroll svg { animation: flota 2.6s ease-in-out infinite; }
@keyframes flota { 0%, 100% { transform: translateY(0); opacity: 0.45; } 50% { transform: translateY(5px); opacity: 0.9; } }

@media (max-width: 900px) {
    .hero { min-height: 0; }
    .hero h1 { max-width: none; }
    .hero-scroll { display: none; }
}

/* ---------- 6b. Banda de cifras ---------- */
.cifras {
    background: var(--band-bg-2);
    border-bottom: 1px solid var(--band-line);
    padding: var(--sp-4) var(--gutter);
}
.cifras-grid {
    max-width: var(--container); margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1px; background: var(--band-line);
}
.cifra { background: var(--band-bg-2); padding: 0.35rem var(--sp-3); }
.cifra b {
    display: block;
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.6rem, 2.9vw, 2.3rem); line-height: 1.05;
    color: var(--band-seal); letter-spacing: -0.02em;
}
.cifra span {
    display: block; margin-top: 0.4rem;
    font-size: 0.84rem; line-height: 1.45; color: var(--band-txt-mid);
    max-width: 24ch;
}
@media (max-width: 860px) {
    .cifras-grid { grid-template-columns: repeat(2, 1fr); }
    .cifra { padding: var(--sp-2); }
}
@media (max-width: 420px) { .cifras-grid { grid-template-columns: 1fr; } }

/* ---------- 6c. Revelado al entrar en pantalla ---------- */
.js-motion .reveal { opacity: 0; transform: translateY(22px); }
.js-motion .reveal.is-visible {
    opacity: 1; transform: none;
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* ---------- 6d. Ficha de adquisición ---------- */
.exhibit { margin: 0; }
.exhibit-card {
    background: linear-gradient(180deg, #0E2141 0%, #0A1628 100%);
    border: 1px solid var(--seal-soft);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.exhibit-head {
    display: flex; align-items: baseline; justify-content: space-between;
    flex-wrap: wrap; gap: 0.35rem var(--sp-2);
    padding: 0.85rem 1.15rem;
    background: rgba(200, 149, 47, 0.07);
    border-bottom: 1px solid var(--seal-soft);
}
.exhibit-head .eyebrow { color: var(--seal); }
.exhibit-folio {
    font-family: var(--font-mono); font-size: 0.74rem;
    color: var(--on-dark-mid); white-space: nowrap;
}
.exhibit-folio span { color: var(--on-dark-soft); }
.exhibit-rows { padding: 0.4rem 1.15rem; }
.exhibit-row {
    display: grid; grid-template-columns: 5.6rem 1fr;
    gap: 0.85rem; align-items: baseline;
    padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.exhibit-row:last-child { border-bottom: none; }
.exhibit-row dt {
    font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--on-dark-soft);
}
.exhibit-row dd { font-size: 0.88rem; color: #FFFFFF; }
.exhibit-row dd.mono { font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-dark); }
.exhibit-chain {
    padding: 1rem 1.15rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.18);
}
.exhibit-chain > .eyebrow { color: var(--on-dark-soft); display: block; margin-bottom: 0.7rem; }
.exhibit-steps { list-style: none; counter-reset: step; }
.exhibit-steps li {
    counter-increment: step;
    display: grid; grid-template-columns: 1.6rem 1fr auto;
    gap: 0.6rem; align-items: center;
    padding: 0.38rem 0;
    font-size: 0.85rem; color: var(--on-dark);
}
.exhibit-steps li::before {
    content: counter(step, decimal-leading-zero);
    font-family: var(--font-mono); font-size: 0.66rem; color: var(--seal);
}
.exhibit-steps svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
.js-motion .is-visible .exhibit-steps li { animation: paso 0.45s ease both; }
.js-motion .is-visible .exhibit-steps li:nth-child(1) { animation-delay: 0.15s; }
.js-motion .is-visible .exhibit-steps li:nth-child(2) { animation-delay: 0.3s; }
.js-motion .is-visible .exhibit-steps li:nth-child(3) { animation-delay: 0.45s; }
.js-motion .is-visible .exhibit-steps li:nth-child(4) { animation-delay: 0.6s; }
@keyframes paso { from { opacity: 0; transform: translateX(-7px); } to { opacity: 1; transform: none; } }
.exhibit-foot {
    padding: 0.7rem 1.15rem;
    border-top: 1px solid var(--seal-soft);
    background: rgba(200, 149, 47, 0.06);
    font-family: var(--font-mono); font-size: 0.64rem;
    letter-spacing: 0.1em; color: var(--seal);
    text-align: center;
}
.exhibit figcaption {
    margin-top: 0.85rem;
    font-size: 0.76rem; line-height: 1.5;
    color: var(--text-soft); font-style: italic;
}
@media (max-width: 480px) {
    .exhibit-row { grid-template-columns: 1fr; gap: 0.15rem; }
    .exhibit-foot { font-size: 0.58rem; letter-spacing: 0.06em; }
}

/* ---------- 7. Franja de credenciales ---------- */
.credenciales-franja {
    background: var(--band-bg-2);
    color: var(--band-txt);
    padding: var(--sp-5) var(--gutter);
    border-bottom: 1px solid var(--band-line);
}
.credenciales-franja .cred-encabezado {
    text-align: center;
    font-family: var(--font-mono); font-size: var(--fs-mono);
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--band-txt-soft); margin-bottom: var(--sp-4); font-weight: 500;
}
.credenciales-franja .cred-encabezado::after {
    content: ""; display: block; width: 40px; height: 2px;
    background: var(--band-seal); margin: 0.8rem auto 0;
}
.credenciales-franja .cred-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4); max-width: var(--container); margin: 0 auto;
}
.credenciales-franja .cred-col h3 {
    font-family: var(--font-display);
    font-size: 1.12rem; color: var(--band-h);
    margin-bottom: 0.8rem; font-weight: 600;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--band-seal-soft);
}
.credenciales-franja .cred-col p {
    font-size: 0.9rem; line-height: 1.6; margin: 0.45rem 0; color: var(--band-txt);
}
.credenciales-franja .cred-col strong { color: var(--band-h); font-weight: 600; }
.credenciales-franja .cred-col .mono {
    font-family: var(--font-mono); font-size: 0.78rem;
    letter-spacing: 0.04em; color: var(--band-accent);
}
.credenciales-franja .cred-cierre {
    text-align: center; max-width: 860px;
    margin: var(--sp-4) auto 0; padding-top: var(--sp-3);
    border-top: 1px solid var(--band-line);
    font-size: var(--fs-sm); color: var(--band-txt-soft);
}
@media (max-width: 860px) {
    .credenciales-franja .cred-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ---------- 8. Encabezado de sección ---------- */
.section-head { max-width: 760px; margin: 0 auto var(--sp-4); text-align: center; }
.section-head .eyebrow { color: var(--seal-deep); display: block; margin-bottom: 0.75rem; }
.section-head h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2); line-height: 1.25; font-weight: 600;
    color: var(--heading); margin-bottom: 0.75rem; text-wrap: balance;
}
.section-head p { font-size: var(--fs-body); color: var(--text-mid); }

/* ---------- 9. Escenarios ---------- */
.escenarios-itf { background: var(--page-bg); padding: var(--sp-6) var(--gutter); }
.escenarios-itf-inner { max-width: var(--container); margin: 0 auto; }
.escenarios-itf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.escenarios-itf-card {
    background: var(--surface-2);
    padding: var(--sp-3);
    transition: background 0.2s ease;
}
.escenarios-itf-card:hover { background: var(--surface); }
.escenarios-itf-card .card-tag {
    display: inline-block; margin-bottom: 0.85rem;
    font-family: var(--font-mono); font-size: 0.63rem;
    letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500;
    color: var(--seal-deep);
    background: rgba(200, 149, 47, 0.12);
    border: 1px solid rgba(200, 149, 47, 0.32);
    border-radius: 2px; padding: 0.25rem 0.5rem;
}
.escenarios-itf-card h3 {
    font-size: 1.12rem; font-weight: 600;
    color: var(--heading); margin-bottom: 0.55rem; line-height: 1.28;
}
.escenarios-itf-card p { font-size: 0.92rem; line-height: 1.6; color: var(--text-mid); }
.escenarios-itf-cierre {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: var(--sp-2) var(--sp-3);
    margin-top: var(--sp-4); padding-top: var(--sp-4);
    border-top: 1px solid var(--border); text-align: center;
}
.escenarios-itf-cierre p { font-size: var(--fs-body); color: var(--text-mid); }

/* ---------- 10. Proceso + ficha ---------- */
.proceso { background: var(--surface); padding: var(--sp-6) var(--gutter); border-top: 1px solid var(--border); }
.proceso-inner { max-width: var(--container); margin: 0 auto; }
.proceso-cols {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 4vw, 3.5rem); align-items: start;
}
.proceso-list { display: grid; gap: var(--sp-2); counter-reset: etapa; }
.proceso-step {
    counter-increment: etapa;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 2px solid var(--seal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--sp-3);
    display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.35rem 0.9rem;
}
.proceso-step::before {
    content: counter(etapa, decimal-leading-zero);
    grid-row: 1 / span 2;
    font-family: var(--font-mono); font-size: 0.74rem;
    letter-spacing: 0.1em; color: var(--seal-deep); padding-top: 0.2rem;
}
.proceso-step h3 { font-size: 1.1rem;
    color: var(--heading); font-weight: 600;
}
.proceso-step p { font-size: 0.92rem; line-height: 1.6; color: var(--text-mid); grid-column: 2; }
@media (max-width: 900px) {
    .proceso-cols { grid-template-columns: 1fr; }
}

/* ---------- 11. Aviso técnico ---------- */
.disclaimer-itf {
    max-width: var(--container);
    margin: var(--sp-4) auto var(--sp-3);
    padding: 1.15rem 1.35rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--seal-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: var(--fs-xs); line-height: 1.6;
    color: var(--on-dark-soft); text-align: left;
}
.disclaimer-itf strong {
    display: block; margin-bottom: 0.4rem;
    font-family: var(--font-mono); font-size: 0.66rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--seal); font-weight: 500;
}
@media (max-width: 600px) {
    .disclaimer-itf { margin: var(--sp-3) 0; padding: var(--sp-2) 1.1rem; }
}

/* ---------- 12. Pie ---------- */
footer {
    background: var(--brand);
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
    padding: var(--sp-4) var(--gutter);
    font-size: var(--fs-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.disclaimer-footer {
    font-size: 12px; color: #A0AEC0; max-width: 800px;
    margin: 0 auto 20px; line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}
footer p { margin-bottom: 10px; }
footer a { color: var(--seal); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

.social-itf { text-align: center; margin: var(--sp-3) auto var(--sp-2); }
.social-itf a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--seal); text-decoration: none;
    font-size: var(--fs-sm); font-weight: 500;
    min-height: 44px; padding: 0.5rem 1rem;
    border: 1px solid var(--seal-soft);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.social-itf a:hover { background: rgba(200, 149, 47, 0.09); border-color: var(--seal); text-decoration: none; }
.social-itf svg { width: 18px; height: 18px; fill: currentColor; }

/* =============================================================
   13. PÁGINAS INTERNAS
   ============================================================= */

/* ---------- Banner de título ---------- */
.services-hero, .contact-hero, .title-banner, body > .hero {
    background:
        radial-gradient(700px 320px at 70% 0%, var(--band-glow), transparent 70%),
        var(--band-bg);
    color: var(--band-txt);
    padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
    text-align: center;
    border-bottom: 1px solid var(--band-line);
    min-height: 0;
    display: block;
}
.services-hero h1, .contact-hero h1, .title-banner h1, body > .hero h1 {
    font-family: var(--font-display);
    font-size: var(--fs-h1);
    font-weight: 600;
    margin-bottom: 0.7rem;
    letter-spacing: -0.03em;
    line-height: 1.22;
    max-width: 26ch; margin-left: auto; margin-right: auto;
    color: var(--band-h);
    text-wrap: balance;
}
.services-hero p, .contact-hero p, .title-banner p, body > .hero p {
    font-size: var(--fs-body);
    color: var(--band-txt-mid);
    max-width: 62ch;
    margin: 0 auto;
}

/* ---------- Servicios ---------- */
.services-container {
    padding: var(--sp-5) var(--gutter);
    max-width: var(--container);
    margin: 0 auto;
    display: grid; gap: var(--sp-3);
}
.service-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 2px solid var(--seal);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: var(--sp-4) var(--sp-3);
    transition: box-shadow 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); }
.service-header h2 {
    font-family: var(--font-body);
    font-size: 1.18rem;
    color: var(--heading);
    font-weight: 600;
    margin-bottom: var(--sp-2);
    line-height: 1.35;
    letter-spacing: -0.02em;
}
.service-card p {
    font-size: 0.95rem;
    color: var(--text-mid);
    margin-bottom: var(--sp-3);
    line-height: var(--lh-body);
}
.service-meta {
    background: var(--surface);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    color: var(--text);
    margin-bottom: var(--sp-2);
}
.service-meta strong {
    font-family: var(--font-mono); font-size: 0.68rem;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--seal-deep); display: block; margin-bottom: 0.3rem; font-weight: 500;
}
.service-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.methodology-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--seal-deep);
    font-family: var(--font-body);
    font-weight: 600; font-size: var(--fs-sm);
    text-decoration: none; cursor: pointer;
    background: transparent; border: none; padding: 8px 0;
    transition: color 0.2s;
}
.methodology-link::after { content: "→"; transition: transform 0.2s; }
.methodology-link:hover { color: var(--heading); text-decoration: underline; }
.methodology-link:hover::after { transform: translateX(3px); }

.toolkit {
    background: var(--band-bg-2);
    color: var(--band-txt);
    padding: var(--sp-5) var(--gutter);
    text-align: center;
    border-top: 1px solid var(--band-line);
}
.toolkit h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2); font-weight: 600;
    margin-bottom: var(--sp-2); color: var(--band-h);
}
.toolkit p { max-width: 68ch; margin: 0 auto; font-size: 0.95rem; color: var(--band-txt); }

/* ---------- Visor de imagen ---------- */
.modal {
    display: none; position: fixed; inset: 0;
    background-color: rgba(4, 9, 18, 0.96);
    z-index: 2000;
    justify-content: center; align-items: center;
    padding: 20px;
    opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { display: flex; opacity: 1; }
.modal-content-wrapper {
    position: relative; max-width: 90%; max-height: 90vh;
    display: flex; flex-direction: column; align-items: center;
}
.modal-img {
    max-width: 100%; max-height: 78vh; object-fit: contain;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); background: #000;
}
.modal-caption {
    color: #FFFFFF; margin-top: 15px;
    font-size: var(--fs-body); text-align: center; max-width: 60ch;
}
.modal-close {
    position: absolute; top: -50px; right: 0;
    color: #FFFFFF;
    font-size: 30px; line-height: 1; cursor: pointer;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--seal); border-color: var(--seal); }

/* ---------- Infografías ---------- */
.gallery-container { padding: var(--sp-5) var(--gutter); max-width: 1400px; margin: 0 auto; }
.section-intro {
    margin-bottom: var(--sp-4); text-align: center;
    font-size: var(--fs-body); color: var(--text-mid);
}
.infographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--sp-3);
}
.info-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.info-card:hover { box-shadow: var(--shadow-md); border-color: var(--seal); transform: translateY(-2px); }
.card-image-wrapper {
    width: 100%; aspect-ratio: 4 / 3;
    background-color: var(--surface);
    overflow: hidden; position: relative;
    border-bottom: 1px solid var(--border);
}
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(10, 22, 40, 0.9);
    color: var(--seal);
    padding: 4px 9px;
    font-family: var(--font-mono); font-size: 10px; font-weight: 500;
    border-radius: 2px; text-transform: uppercase; letter-spacing: 0.1em;
}
.card-content { padding: var(--sp-3); flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 {
    font-size: 1.06rem; color: var(--heading);
    margin-bottom: 0.6rem; font-weight: 600; line-height: 1.3;
}
.card-content p { font-size: var(--fs-sm); color: var(--text-mid); margin-bottom: var(--sp-2); }
.card-footer {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--seal-deep); font-weight: 500;
    display: flex; align-items: center; gap: 6px; margin-top: auto;
    background: none; border: none; padding: 0.5rem 0 0; cursor: pointer;
    text-align: left;
}
.card-footer::after { content: "→"; }
.card-footer:hover { color: var(--heading); }

/* ---------- Sobre mí ---------- */
.content-container { padding: var(--sp-5) var(--gutter); max-width: 860px; margin: 0 auto; }
.content-container > h2 {
    font-family: var(--font-display);
    color: var(--heading); font-size: var(--fs-h2);
    margin-bottom: var(--sp-3); font-weight: 600; line-height: 1.25;
}
.content-container > p { font-size: 1.02rem; color: var(--text); margin-bottom: var(--sp-3); }
.pillars { margin-top: var(--sp-4); display: grid; gap: var(--sp-3); }
.pillar-item {
    background: var(--surface);
    padding: var(--sp-3);
    border-radius: 0 var(--radius) var(--radius) 0;
    border: 1px solid var(--border);
    border-left: 2px solid var(--seal);
}
.pillar-item h3 {
    color: var(--heading); font-size: 1.15rem;
    margin-bottom: 0.55rem; font-weight: 600;
}
.pillar-item p { font-size: 0.95rem; color: var(--text-mid); }

/* ---------- Alianzas ---------- */
.intro-text {
    font-size: 1.05rem; text-align: center; max-width: 68ch;
    margin: 0 auto var(--sp-4); color: var(--text-mid);
}
.alliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-3);
}
.alliance-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-3);
    border-top: 2px solid var(--seal);
    transition: box-shadow 0.2s ease;
}
.alliance-card:hover { box-shadow: var(--shadow-md); }
.alliance-card h3 {
    color: var(--heading); font-size: 1.15rem;
    margin-bottom: 0.7rem; font-weight: 600;
}
.alliance-card p { font-size: 0.95rem; color: var(--text-mid); }

/* ---------- Contacto ---------- */
.main-container {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    padding: var(--sp-5) var(--gutter);
    max-width: 1240px; margin: 0 auto;
}
.info-column h2 {
    font-family: var(--font-display);
    font-size: 1.3rem; color: var(--heading);
    margin-bottom: var(--sp-2); font-weight: 600; letter-spacing: -0.02em;
}
.info-column > p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: var(--sp-3); }
.data-card, .vcard-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-3);
    margin-bottom: var(--sp-2);
}
.vcard-box { text-align: center; }
.data-item { margin-bottom: 15px; }
.data-item:last-child { margin-bottom: 0; }
.data-item label {
    display: block; margin-bottom: 0.25rem;
    font-family: var(--font-mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--seal-deep); font-weight: 500;
}
.data-item p { font-size: var(--fs-body); color: var(--heading); font-weight: 500; }
.data-item a { color: var(--heading); text-decoration: none; }
.data-item a:hover { color: var(--seal-deep); text-decoration: underline; }

.btn-whatsapp {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    background-color: var(--whatsapp);
    color: #062E14 !important;
    text-align: center;
    min-height: 48px; padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600; text-decoration: none;
    font-size: var(--fs-body);
    transition: background 0.2s ease;
    margin-top: 10px;
}
.btn-whatsapp:hover { background-color: #1FB358; text-decoration: none !important; }

.btn-vcard {
    display: block;
    background-color: var(--brand);
    color: #FFFFFF !important;
    min-height: 48px; padding: 13px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600; text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 15px; width: 100%;
    transition: background 0.2s;
}
.btn-vcard:hover { background-color: var(--brand-2); }
:root[data-theme="dark"] .btn-vcard { background-color: var(--seal); color: #12100A !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-vcard { background-color: var(--seal); color: #12100A !important; }
}
.qr-container { margin-top: 10px; }
.qr-container img { max-width: 150px; height: auto; border: 5px solid #FFFFFF; box-shadow: var(--shadow-sm); }
.qr-text { font-size: 12px; color: var(--text-soft); margin-top: 8px; }
@media (max-width: 768px) { .qr-container { display: none; } }

.form-column {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-4) var(--sp-3);
}
.form-column h3 {
    font-family: var(--font-display);
    font-size: 1.32rem; color: var(--heading);
    margin-bottom: var(--sp-3); font-weight: 600;
}
.form-group { margin-bottom: var(--sp-3); }
.form-group label {
    display: block; font-size: var(--fs-sm); color: var(--text);
    font-weight: 600; margin-bottom: 8px;
}
.form-control {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    background-color: var(--input-bg);
    font-size: 0.95rem; font-family: var(--font-body);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--text-soft); }
.form-control:focus {
    outline: none;
    border-color: var(--seal-deep);
    box-shadow: 0 0 0 3px rgba(200, 149, 47, 0.2);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.captcha-container { margin-bottom: var(--sp-3); display: flex; justify-content: flex-start; }
.btn-submit {
    background-color: var(--brand);
    color: #FFFFFF;
    border: none;
    min-height: 48px; padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.97rem; font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer; width: 100%;
    transition: background-color 0.2s;
}
.btn-submit:hover { background-color: var(--brand-2); }
:root[data-theme="dark"] .btn-submit { background-color: var(--seal); color: #12100A; }
:root[data-theme="dark"] .btn-submit:hover { background-color: #DBA83C; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .btn-submit { background-color: var(--seal); color: #12100A; }
    :root:not([data-theme="light"]) .btn-submit:hover { background-color: #DBA83C; }
}
#success-message {
    display: none;
    background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text);
    border-radius: var(--radius-sm);
    padding: 18px; text-align: center;
    font-size: 0.95rem; font-weight: 500;
    margin-bottom: var(--sp-3);
}

/* ---------- Aviso de privacidad ---------- */
.privacy-container { padding: var(--sp-5) var(--gutter); max-width: 860px; margin: 0 auto; }
.privacy-note {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 2px solid var(--seal);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: var(--sp-2) var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: var(--fs-sm); color: var(--text-mid);
}
.privacy-intro {
    font-size: var(--fs-body); color: var(--text-mid);
    margin-bottom: var(--sp-4);
    border-bottom: 1px solid var(--border); padding-bottom: var(--sp-3);
}
.privacy-section { margin-bottom: var(--sp-4); }
.privacy-section h2 {
    font-family: var(--font-display);
    font-size: 1.25rem; color: var(--heading);
    margin-bottom: var(--sp-2); font-weight: 600;
    border-left: 2px solid var(--seal); padding-left: 12px;
}
.privacy-section p { font-size: 0.95rem; color: var(--text); margin-bottom: var(--sp-2); }
.privacy-section p[style] { color: var(--heading) !important; }
.privacy-list { margin-left: 22px; margin-bottom: var(--sp-3); }
.privacy-list li { font-size: 0.95rem; color: var(--text); margin-bottom: 8px; list-style-type: square; }
.contact-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--sp-3); margin-top: var(--sp-2);
}
.contact-box p { margin-bottom: 8px; font-size: 0.95rem; }
.contact-box p:last-child { margin-bottom: 0; }

/* ---------- Banda de cierre ---------- */
.cta-band {
    background:
        radial-gradient(680px 300px at 50% 0%, var(--band-glow), transparent 70%),
        var(--band-bg);
    color: var(--band-txt);
    padding: var(--sp-6) var(--gutter);
    border-top: 1px solid var(--band-line);
}
.cta-band-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.cta-band .eyebrow { display: block; color: var(--band-seal); margin-bottom: 0.8rem; }
.cta-band h2 {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.24;
    margin-bottom: var(--sp-2);
    color: var(--band-h);
    text-wrap: balance;
}
.cta-band p {
    font-size: var(--fs-body);
    color: var(--band-txt-mid);
    max-width: 62ch;
    margin: 0 auto var(--sp-3);
}
.cta-band-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem var(--sp-3);
    text-align: left;
    margin: 0 auto var(--sp-4);
    max-width: 720px;
}
.cta-band-list li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.95rem;
    color: var(--band-txt);
    line-height: 1.5;
}
.cta-band-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--band-accent);
}
.cta-band-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }

/* ---------- Responsive páginas internas ---------- */
@media (max-width: 992px) {
    .main-container { grid-template-columns: 1fr; }
    .modal-content-wrapper { max-width: 100%; }
}
@media (max-width: 768px) {
    .cta-band-list { grid-template-columns: 1fr; }
    .escenarios-itf, .proceso { padding: var(--sp-5) var(--gutter); }
}
