/* ═══════════════════════════════════════════════════════════════
   CyberLatus — Estilos principales
   Paleta "Escudo y radar". Todos los colores y medidas viven en
   :root y [data-theme="dark"]. Para retematizar el sitio completo
   se editan SOLO esos dos bloques.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   1. TOKENS — TEMA CLARO
───────────────────────────────────── */
:root {
  /* Marca */
  --abismo:         #071019;   /* hero, pie, tile del logotipo */
  --abismo-2:       #0C1A26;   /* secciones oscuras alternas */
  --marino:         #12283A;   /* titulos sobre claro */
  --turq:           #0B7C93;   /* acento operable sobre claro (4.9:1) */
  --turq-viva:      #2BD4EA;   /* brillos y trazos sobre oscuro */
  --turq-deep:      #085E70;
  --ambar:          #F0B93B;   /* CyberIndex y acentos sobre oscuro */
  --ambar-sobrio:   #8F6410;   /* ambar como texto sobre claro */

  /* Fondos */
  --bg:             #F4F8FA;   /* hielo */
  --bg-alt:         #E9F0F4;
  --card:           #FFFFFF;
  --dark:           #071019;
  --dark-alt:       #0C1A26;

  /* Texto */
  --text:           #12283A;
  --text-2:         #3F5060;
  --text-3:         #6B7C8C;
  --on-dark:        #EAF2F6;
  --on-dark-2:      #A9BCCB;

  /* Acento operable (botones, ligas) */
  --accent:         #0B7C93;
  --accent-hover:   #085E70;
  --accent-on:      #FFFFFF;
  --accent-soft:    rgba(11, 124, 147, 0.10);
  --accent-glow:    rgba(11, 124, 147, 0.22);

  /* Semaforo de exposicion — es el lenguaje del CyberIndex, no decoracion */
  --ok:             #15805A;
  --ok-bg:          rgba(21, 128, 90, 0.11);
  --warn:           #8F6410;
  --warn-bg:        rgba(240, 185, 59, 0.16);
  --bad:            #C8392B;
  --bad-bg:         rgba(200, 57, 43, 0.10);

  /* Bordes */
  --border:         rgba(18, 40, 58, 0.11);
  --border-2:       rgba(18, 40, 58, 0.20);

  /* Sombras (frias, hacia el marino) */
  --sh-sm:          0 1px 2px rgba(7, 16, 25, 0.05), 0 2px 8px rgba(7, 16, 25, 0.05);
  --sh-md:          0 4px 14px rgba(7, 16, 25, 0.07), 0 14px 36px rgba(7, 16, 25, 0.07);
  --sh-lg:          0 10px 28px rgba(7, 16, 25, 0.10), 0 28px 64px rgba(7, 16, 25, 0.12);
  --sh-hover:       0 12px 30px rgba(11, 124, 147, 0.14), 0 26px 60px rgba(7, 16, 25, 0.12);

  /* Navbar */
  --nav-bg:         rgba(244, 248, 250, 0.84);
  --nav-bg-solid:   rgba(244, 248, 250, 0.97);
  --nav-border:     rgba(18, 40, 58, 0.09);

  /* Gradientes y retícula del radar sobre fondo oscuro */
  --grad-dark:      linear-gradient(160deg, #071019 0%, #0C1A26 55%, #0A2A36 135%);
  --grad-turq:      linear-gradient(135deg, #0B7C93 0%, #2BD4EA 100%);
  --dots-dark:      radial-gradient(rgba(234, 242, 246, 0.07) 1px, transparent 1.6px);

  /* Tipografia */
  --font-head:      'Sora', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font:           'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:      'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Espaciado */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* Radios: mas cerrados que un SaaS generico, sin llegar a esquina viva */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-full: 9999px;

  --ease:      0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1180px;
  --nav-h: 72px;
}

/* ─────────────────────────────────────
   2. TOKENS — TEMA OSCURO
───────────────────────────────────── */
[data-theme="dark"] {
  --bg:             #08121B;
  --bg-alt:         #0D1A25;
  --card:           #111F2C;
  --dark:           #050C13;
  --dark-alt:       #0A1620;

  --text:           #EAF2F6;
  --text-2:         #A9BCCB;
  --text-3:         #7D90A0;

  --accent:         #2BD4EA;
  --accent-hover:   #5FE3F3;
  --accent-on:      #05242B;
  --accent-soft:    rgba(43, 212, 234, 0.12);
  --accent-glow:    rgba(43, 212, 234, 0.22);

  --ok:             #2FBF86;
  --ok-bg:          rgba(47, 191, 134, 0.13);
  --warn:           #F0B93B;
  --warn-bg:        rgba(240, 185, 59, 0.14);
  --bad:            #F0776C;
  --bad-bg:         rgba(240, 119, 108, 0.13);

  --border:         rgba(234, 242, 246, 0.10);
  --border-2:       rgba(234, 242, 246, 0.20);

  --sh-sm:          0 1px 2px rgba(0, 0, 0, 0.30), 0 2px 8px rgba(0, 0, 0, 0.24);
  --sh-md:          0 4px 14px rgba(0, 0, 0, 0.36), 0 14px 36px rgba(0, 0, 0, 0.30);
  --sh-lg:          0 10px 28px rgba(0, 0, 0, 0.44), 0 28px 64px rgba(0, 0, 0, 0.38);
  --sh-hover:       0 12px 30px rgba(0, 0, 0, 0.48), 0 26px 60px rgba(43, 212, 234, 0.10);

  --nav-bg:         rgba(8, 18, 27, 0.84);
  --nav-bg-solid:   rgba(8, 18, 27, 0.97);
  --nav-border:     rgba(234, 242, 246, 0.09);

  --grad-dark:      linear-gradient(160deg, #040A10 0%, #08121B 55%, #072028 135%);
}

/* ─────────────────────────────────────
   3. RESET Y BASE
───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* El [hidden] del navegador pierde contra cualquier regla de display propia
   (.btn usa inline-flex). Sin esto, ocultar desde JS con el atributo hidden
   no funciona y el defecto es dificil de ver. Hay varios lugares que dependen
   de esta regla: no quitarla. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background var(--ease), color var(--ease);
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-sm);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.28rem); letter-spacing: -0.015em; }
h4 { font-size: 1rem; letter-spacing: -0.01em; }

p { margin: 0 0 var(--sp-sm); color: var(--text-2); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }

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

ul, ol { margin: 0 0 var(--sp-sm); padding-left: 1.15rem; color: var(--text-2); }
li { margin-bottom: 0.35rem; }

strong, b { font-weight: 700; color: var(--text); }
em { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-lg) 0; }

::selection { background: var(--accent); color: var(--accent-on); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: var(--accent-on);
  font-weight: 700;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: var(--accent-on); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Sobre fondo oscuro, <strong> no puede heredar el color de texto (marino):
   se vuelve invisible. Toda seccion oscura NUEVA se suma a esta lista Y a la
   de .btn-ghost mas abajo. Son dos listas; hay que tocar las dos. */
.hero strong, .hero-mod strong, .spotlight:not(.is-light) strong,
.section-dark strong, .cta-band strong, .footer strong {
  color: #FFFFFF;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────
   4. LAYOUT
───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2rem);
}
.container.narrow { max-width: 820px; }

.section { padding: clamp(3.5rem, 8vw, var(--sp-2xl)) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--dots-dark), var(--grad-dark);
  background-size: 22px 22px, auto;
  color: var(--on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark p { color: var(--on-dark-2); }

/* Cabeceras de seccion: a la izquierda por defecto, con el kicker en mono */
.section-head {
  max-width: 760px;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 8px; height: 8px;
  background: currentColor;
  border-radius: 1px;
}
.section-dark .kicker, .hero .kicker, .hero-mod .kicker,
.spotlight:not(.is-light) .kicker, .cta-band .kicker { color: var(--turq-viva); }

.section-title { margin-bottom: 0.9rem; }

.section-desc {
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--text-2);
  max-width: 64ch;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* ─────────────────────────────────────
   5. BOTONES
───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 6px 18px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-on);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--accent-glow);
}
/* Sobre oscuro el primario usa el turquesa vivo con texto abismo: mas contraste */
.hero .btn-primary, .hero-mod .btn-primary, .cta-band .btn-primary,
.spotlight:not(.is-light) .btn-primary, .section-dark .btn-primary {
  background: var(--turq-viva);
  color: #05242B;
  box-shadow: 0 6px 20px rgba(43, 212, 234, 0.25);
}
.hero .btn-primary:hover, .hero-mod .btn-primary:hover, .cta-band .btn-primary:hover,
.spotlight:not(.is-light) .btn-primary:hover, .section-dark .btn-primary:hover {
  background: #5FE3F3;
  color: #05242B;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* Sobre fondo oscuro el boton fantasma no puede heredar --text: se vuelve
   invisible. Toda seccion oscura NUEVA tiene que sumarse a esta lista. */
.on-dark .btn-ghost, .section-dark .btn-ghost, .hero .btn-ghost,
.hero-mod .btn-ghost, .cta-band .btn-ghost, .spotlight:not(.is-light) .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(234, 242, 246, 0.28);
}
.on-dark .btn-ghost:hover, .section-dark .btn-ghost:hover, .hero .btn-ghost:hover,
.hero-mod .btn-ghost:hover, .cta-band .btn-ghost:hover, .spotlight:not(.is-light) .btn-ghost:hover {
  color: #fff;
  border-color: var(--turq-viva);
  background: rgba(43, 212, 234, 0.12);
}

.btn-sm { padding: 0.58rem 1.05rem; font-size: 0.86rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

/* ─────────────────────────────────────
   6. NAVBAR
───────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  background: var(--nav-bg-solid);
  border-bottom-color: var(--nav-border);
  box-shadow: var(--sh-sm);
}

.nav-inner {
  position: relative;   /* ancla del mega-menu y del menu de acceso */
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2rem);
}

/* Logotipo = sello (SVG) + palabra. Latus lleva el color del acento. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
  white-space: nowrap;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}
.logo:hover { color: var(--text); }
.logo .logo-mark { width: 34px; height: 34px; flex: none; }
.logo-word { display: inline-block; }
.logo-word-l { color: var(--accent); }

/* El sello va incrustado como SVG para poder tematizarlo. */
.logo-mark .lm-tile  { fill: var(--abismo); }
.logo-mark .lm-body  { fill: #F4F8FA; }
.logo-mark .lm-flank { fill: var(--turq-viva); }
[data-theme="dark"] .logo-mark .lm-tile { fill: #16283A; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.nav-links a, .nav-links button {
  padding: 0.5rem 0.7rem;
  white-space: nowrap;
  border: 0;
  background: none;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover, .nav-links button:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

/* Se muestra solo cuando el menu se vuelve desplegable (ver responsivo). */
.nav-only-mobile { display: none; }

/* Interruptor de tema */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun  { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Hamburguesa */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 2px;
  margin: 3px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ─────────────────────────────────────
   7. MEGA MENU (anclado a .nav-inner, no a .mega-wrap)
───────────────────────────────────── */
.mega-wrap { position: static; }
.mega-btn::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--ease);
}
.mega-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 90;
  width: min(92vw, 860px);
  padding: 1.25rem;
  transform: translateY(-8px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem 1.5rem; }
.mega-col h4 {
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mega-col a {
  display: block;
  padding: 0.42rem 0.6rem;
  /* .nav-links a impone nowrap para el navbar; aqui hay que devolverlo a
     normal o las descripciones no cortan linea y las columnas se salen
     del panel. Lo mismo en .mega-foot. */
  white-space: normal;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--ease), background var(--ease);
}
.mega-col a:hover { color: var(--accent); background: var(--accent-soft); }
.mega-col a b { display: block; color: inherit; font-weight: 700; }
.mega-col a span { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-3); }

.mega-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-3);
}
.mega-foot a { white-space: normal; }

/* ─────────────────────────────────────
   8. HERO — radar de fondo y panel del CyberIndex
───────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92vh, 860px);
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 7vw, 5rem);
  background: var(--grad-dark);
  color: var(--on-dark);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* El radar: barrido continuo sobre una reticula de puntos, detras de todo */
.hero-radar {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.85;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(95deg, transparent 0%, rgba(0,0,0,.25) 30%, #000 62%);
          mask-image: linear-gradient(95deg, transparent 0%, rgba(0,0,0,.25) 30%, #000 62%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero p { color: var(--on-dark-2); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  padding: 0.38rem 0.9rem 0.38rem 0.5rem;
  background: rgba(234, 242, 246, 0.06);
  border: 1px solid rgba(234, 242, 246, 0.14);
  border-radius: var(--r-full);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--turq-viva);
  box-shadow: 0 0 0 4px rgba(43, 212, 234, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(43, 212, 234, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(43, 212, 234, 0.06); }
}

.hero-title { max-width: 15ch; margin-bottom: 1.2rem; }
.hero-title .cubre { color: var(--turq-viva); }

.hero-sub {
  max-width: 54ch;
  margin-bottom: 1.8rem;
  font-size: clamp(1.02rem, 1.8vw, 1.18rem);
  line-height: 1.6;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.pill {
  padding: 0.34rem 0.8rem;
  background: rgba(234, 242, 246, 0.06);
  border: 1px solid rgba(234, 242, 246, 0.13);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-dark-2);
}

.hero-cta { margin-bottom: 2.6rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(234, 242, 246, 0.13);
}
.hero-stats .stat { margin: 0; }
.stat-number {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--turq-viva);
}
.stat-label {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--on-dark-2);
}

/* Panel del CyberIndex: el elemento de marca del hero */
.ci-panel {
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.7rem);
  background: rgba(7, 16, 25, 0.55);
  border: 1px solid rgba(234, 242, 246, 0.14);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.ci-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.ci-head .live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--turq-viva);
}
.ci-head .live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ci-gauge-wrap {
  position: relative;
  width: min(220px, 60%);
  margin: 0 auto 0.6rem;
}
.ci-gauge { width: 100%; height: auto; }
.ci-track { fill: none; stroke: rgba(234, 242, 246, 0.10); stroke-width: 9; stroke-linecap: round; }
.ci-arc   { fill: none; stroke: var(--turq-viva); stroke-width: 9; stroke-linecap: round; }
.ci-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0.4rem;
}
.ci-num {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
}
.ci-num-label {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.ci-rows { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.ci-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(234, 242, 246, 0.09);
  font-size: 0.86rem;
  color: var(--on-dark-2);
}
.ci-rows li b { color: #fff; font-weight: 600; }
.ci-rows .mono { color: #fff; }
.ci-foot {
  margin: 0.8rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: rgba(169, 188, 203, 0.7);
}

/* Insignias del semaforo de exposicion */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.62rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok   { background: var(--ok-bg);   color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad  { background: var(--bad-bg);  color: var(--bad); }
/* Sobre oscuro, los tonos de texto claro necesitan mas luz */
.hero .badge-ok, .spotlight:not(.is-light) .badge-ok, .section-dark .badge-ok     { color: #2FBF86; background: rgba(47, 191, 134, 0.14); }
.hero .badge-warn, .spotlight:not(.is-light) .badge-warn, .section-dark .badge-warn { color: var(--ambar); background: rgba(240, 185, 59, 0.14); }
.hero .badge-bad, .spotlight:not(.is-light) .badge-bad, .section-dark .badge-bad   { color: #F0776C; background: rgba(240, 119, 108, 0.14); }

/* ─────────────────────────────────────
   9. TARJETAS
───────────────────────────────────── */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.3rem, 2.4vw, 1.7rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
a.card { color: inherit; }
a.card:hover, .card.is-hover:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--sh-hover);
}

.card-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.2rem 0.55rem;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  border-radius: var(--r-md);
  color: var(--accent);
}
.icon-badge svg { width: 22px; height: 22px; }

/* Los cuatro flancos: numerados en mono, con el operador al pie */
.flancos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.flanco { padding: clamp(1.3rem, 2.4vw, 1.6rem) clamp(1.2rem, 2vw, 1.5rem); }
.flanco-num {
  display: block;
  margin-bottom: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.flanco h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }
.flanco > p { font-size: 0.9rem; }
.flanco-list {
  margin: 0.9rem 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-2);
}
.flanco-list li {
  position: relative;
  margin-bottom: 0.38rem;
  padding-left: 1.2rem;
  line-height: 1.5;
}
.flanco-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0.85;
}
.flanco-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-3);
}
.flanco-foot b { flex: none; white-space: nowrap; font-size: 0.86rem; color: var(--accent); }
.flanco-foot b::after { content: " →"; }

/* Perfiles */
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.audience h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.audience p { font-size: 0.9rem; margin-bottom: 1rem; }
.audience-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.audience-tags span {
  padding: 0.22rem 0.6rem;
  background: var(--bg-alt);
  border-radius: var(--r-sm);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ─────────────────────────────────────
   10. HOY vs. CON CYBERLATUS
───────────────────────────────────── */
.vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.vs-col {
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 4px solid var(--bad);
  border-radius: var(--r-lg);
}
.vs-col.is-nos { border-top-color: var(--accent); }
.vs-col h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bad);
}
.vs-col.is-nos h3 { color: var(--accent); }
.vs-col ul { margin: 0; padding: 0; list-style: none; }
.vs-col li {
  position: relative;
  margin-bottom: 0.7rem;
  padding-left: 1.6rem;
  font-size: 0.93rem;
  line-height: 1.55;
  color: var(--text-2);
}
.vs-col li:last-child { margin-bottom: 0; }
.vs-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--bad-bg);
  box-shadow: inset 0 0 0 2px var(--bad);
}
.vs-col.is-nos li::before { background: var(--ok-bg); box-shadow: inset 0 0 0 2px var(--ok); }
.vs-col li b { color: var(--text); }

/* ─────────────────────────────────────
   11. PANELES Y LISTAS DE VERIFICACION
───────────────────────────────────── */
.panel {
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.panel h3 { margin-bottom: 1.1rem; }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li {
  position: relative;
  margin-bottom: 0.85rem;
  padding-left: 1.9rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-2);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em;
  width: 1.25rem; height: 1.25rem;
  background: var(--ok-bg);
  border-radius: var(--r-sm);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.4rem; top: 0.42em;
  width: 0.32rem; height: 0.6rem;
  border-right: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(42deg);
}

/* ─────────────────────────────────────
   12. SPOTLIGHT (flanco destacado)
───────────────────────────────────── */
.spotlight {
  padding: clamp(3.5rem, 8vw, var(--sp-2xl)) 0;
  background: var(--dots-dark), var(--grad-dark);
  background-size: 22px 22px, auto;
  color: var(--on-dark);
}
.spotlight.is-light {
  background: var(--bg-alt);
  color: var(--text);
}
.spotlight h2, .spotlight h3 { color: var(--on-dark); }
.spotlight p { color: var(--on-dark-2); }
.spotlight.is-light h2, .spotlight.is-light h3 { color: var(--text); }
.spotlight.is-light p { color: var(--text-2); }

.spot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow-tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.75rem;
  background: rgba(43, 212, 234, 0.12);
  border: 1px solid rgba(43, 212, 234, 0.3);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--turq-viva);
}
.spotlight.is-light .eyebrow-tag {
  background: var(--accent-soft);
  border-color: rgba(11, 124, 147, 0.3);
  color: var(--accent);
}

.spot-list { margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; }
.spot-list li {
  position: relative;
  margin-bottom: 0.95rem;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--on-dark-2);
}
.spotlight.is-light .spot-list li { color: var(--text-2); }
.spot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  background: var(--turq-viva);
  border-radius: 1px;
}
.spotlight.is-light .spot-list li::before { background: var(--accent); }
.spot-list li b { color: #fff; }
.spotlight.is-light .spot-list li b { color: var(--text); }

/* Maqueta de pantalla dentro del spotlight */
.mock {
  padding: 1.15rem;
  background: rgba(234, 242, 246, 0.05);
  border: 1px solid rgba(234, 242, 246, 0.14);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
}
.spotlight.is-light .mock {
  background: var(--card);
  border-color: var(--border);
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(234, 242, 246, 0.12);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}
.spotlight.is-light .mock-head { border-bottom-color: var(--border); color: var(--text-3); }

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(234, 242, 246, 0.1);
  font-size: 0.86rem;
}
.spotlight.is-light .mock-row { border-bottom-color: var(--border); }
.mock-row:last-child { border-bottom: 0; }
.mock-row b { display: block; color: #fff; font-weight: 600; }
.spotlight.is-light .mock-row b { color: var(--text); }
.mock-row span { font-size: 0.78rem; color: var(--on-dark-2); }
.spotlight.is-light .mock-row span { color: var(--text-3); }

/* ─────────────────────────────────────
   13. PASOS
───────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  margin: 0;
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.step-num {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.55rem;
  background: var(--accent);
  border-radius: var(--r-sm);
  color: var(--accent-on);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.9rem; margin: 0; }
.step-who {
  display: block;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ─────────────────────────────────────
   14. INCLUSIONES Y ALIADOS
───────────────────────────────────── */
.incl {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.incl-row {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--border);
}
.incl-row:last-child { border-bottom: 0; }
.incl-row b { font-size: 0.95rem; font-weight: 700; }
.incl-row span { font-size: 0.89rem; color: var(--text-2); }
.incl-row i {
  font-style: normal;
  padding: 0.3rem 0.7rem;
  background: var(--ok-bg);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ok);
  white-space: nowrap;
}
.incl-row i.is-cot { background: var(--accent-soft); color: var(--accent); }

.allies { grid-template-columns: 1fr 1fr; }
.ally { padding: clamp(1.4rem, 2.6vw, 2rem); }
.ally-role {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.ally h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.ally p { font-size: 0.93rem; }
.ally-brings { margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.88rem; color: var(--text-2); }
.ally-brings li { position: relative; padding-left: 1.2rem; margin-bottom: 0.35rem; }
.ally-brings li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 1px;
}
/* El lema de la alianza: cuadro centrado bajo las dos tarjetas de aliados.
   El filete ambar es el unico guino al escudo dorado de IDT en la portada. */
.lema-band {
  max-width: 660px;
  margin: clamp(1.4rem, 3vw, 2.2rem) auto 0;
  padding: clamp(1.7rem, 3.5vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  text-align: center;
}
.lema-band::before {
  content: "";
  display: block;
  width: 44px; height: 3px;
  margin: 0 auto clamp(1rem, 2vw, 1.4rem);
  background: var(--ambar);
  border-radius: 2px;
}
.lema-frase {
  margin: 0 0 0.45rem;
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}
.lema-trad {
  margin: 0 0 clamp(1.3rem, 2.6vw, 1.8rem);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: var(--text-2);
}

/* ─────────────────────────────────────
   15. MAPA AMENAZA → FLANCO
───────────────────────────────────── */
.map {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
}
.map-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem clamp(1rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--border);
}
.map-row:last-child { border-bottom: 0; }
.map-row b { font-size: 0.95rem; font-weight: 700; }
.map-row span { font-size: 0.89rem; color: var(--text-2); }
.map-row a {
  padding: 0.35rem 0.85rem;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.map-row a:hover { background: var(--accent); color: var(--accent-on); }

.disclaimer {
  max-width: 78ch;
  margin: clamp(1.6rem, 3vw, 2.2rem) 0 0;
  font-size: 0.855rem;
  line-height: 1.6;
  color: var(--text-3);
}

/* ─────────────────────────────────────
   16. FAQ
───────────────────────────────────── */
.faq-list { display: grid; gap: 0.7rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.faq-item[open] { border-color: var(--accent); box-shadow: var(--sh-sm); }
.faq-item summary {
  position: relative;
  padding: 1.05rem 3rem 1.05rem 1.25rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 1.3rem; top: 1.45rem;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq-body { padding: 0 1.25rem 1.25rem; }
.faq-body p { font-size: 0.94rem; margin-bottom: 0.7rem; }

/* ─────────────────────────────────────
   17. CONTACTO / FORMULARIO
───────────────────────────────────── */
.section-contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.contact-points { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.contact-points li {
  position: relative;
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  font-size: 0.93rem;
  color: var(--text-2);
}
.contact-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 1px;
}
.contact-meta {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border-2);
  font-size: 0.92rem;
}
.contact-meta a { font-weight: 600; }

.form {
  padding: clamp(1.4rem, 3vw, 2.1rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  margin-bottom: 0.38rem;
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--text);
}
.field .req { color: var(--bad); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

.form-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-legal {
  margin: 0.9rem 0 1.1rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-3);
}

.form-notice {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-notice.ok  { background: var(--ok-bg);  color: var(--ok); }
.form-notice.bad { background: var(--bad-bg); color: var(--bad); }

/* ─────────────────────────────────────
   18. PIE DE PAGINA
───────────────────────────────────── */
.footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: var(--dots-dark), var(--grad-dark);
  background-size: 22px 22px, auto;
  color: var(--on-dark-2);
  font-size: 0.9rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.25fr 2.4fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(234, 242, 246, 0.12);
}
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand .logo .logo-word-l { color: var(--turq-viva); }
.footer-brand .logo .lm-tile { fill: rgba(234, 242, 246, 0.08); }
.footer-brand p { color: var(--on-dark-2); font-size: 0.88rem; }
.footer-by {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--on-dark-2);
}
.footer-by b { color: #fff; font-weight: 700; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.footer-links h4 {
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(234, 242, 246, 0.55);
}
.footer-links a {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--on-dark-2);
  font-size: 0.875rem;
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--turq-viva); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.8rem;
  font-size: 0.82rem;
  color: rgba(234, 242, 246, 0.5);
}
.footer-bottom p { margin: 0; color: inherit; }
.footer-legal-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(234, 242, 246, 0.62); }
.footer-legal-links a:hover { color: var(--turq-viva); }
.footer-disclaimer { max-width: 62ch; }

/* ─────────────────────────────────────
   19. PAGINAS INTERIORES
───────────────────────────────────── */
.hero-mod {
  position: relative;
  padding: calc(var(--nav-h) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2.5rem, 5vw, 3.75rem);
  background: var(--dots-dark), var(--grad-dark);
  background-size: 22px 22px, auto;
  color: var(--on-dark);
  overflow: hidden;
}
.hero-mod::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 44px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-mod .container { position: relative; z-index: 2; }
.hero-mod h1 { color: #fff; max-width: 20ch; margin-bottom: 1rem; }
.hero-mod p { color: var(--on-dark-2); }
.hero-lead {
  max-width: 62ch;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 1.7rem;
}
.hero-who {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ambar);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--on-dark-2);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.45rem; opacity: 0.45; }
.breadcrumb a { color: var(--on-dark-2); }
.breadcrumb a:hover { color: var(--turq-viva); }
.breadcrumb [aria-current="page"] { color: #fff; }

/* Capacidades: cuadricula de tarjetas planas */
.cap-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cap {
  padding: clamp(1.2rem, 2.2vw, 1.55rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.cap h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.02rem;
  margin-bottom: 0.45rem;
}
.cap h3::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 1px;
  background: var(--accent);
  transform: translateY(-1px);
}
.cap p { font-size: 0.91rem; margin: 0; }

/* Bloque de honestidad: lo que NO cubre */
.contra {
  padding: clamp(1.2rem, 2.2vw, 1.55rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--warn);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.contra h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.contra p { font-size: 0.91rem; margin: 0; }

/* Franja de llamada a la accion */
.cta-band {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: var(--dots-dark), var(--grad-dark);
  background-size: 22px 22px, auto;
  color: var(--on-dark);
  text-align: center;
}
.cta-band h2 { color: #fff; max-width: 24ch; margin: 0 auto 0.9rem; }
.cta-band p { color: var(--on-dark-2); max-width: 58ch; margin: 0 auto 1.6rem; }
.cta-band .btn-row { justify-content: center; }

/* Navegacion entre flancos */
.mod-nav { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: var(--bg-alt); }
.mod-nav h2 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}
.mod-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.6rem;
}
.mod-nav-grid a {
  display: block;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  transition: all var(--ease);
}
.mod-nav-grid a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.mod-nav-grid a span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 0.12rem;
}

/* Tabla comparativa — siempre con scroll propio, nunca desborda la pagina */
.tabla-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
.tabla-comp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.tabla-comp th, .tabla-comp td {
  padding: 0.9rem 1.05rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.tabla-comp thead th {
  position: sticky;
  top: 0;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.tabla-comp thead th.is-nos { color: var(--accent); }
.tabla-comp tbody th {
  font-weight: 700;
  color: var(--text);
  width: 22%;
  min-width: 190px;
}
.tabla-comp td { color: var(--text-2); }
.tabla-comp td.is-nos {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 600;
}
.tabla-comp tbody tr:last-child th, .tabla-comp tbody tr:last-child td { border-bottom: 0; }
.tabla-nota { margin-top: 0.9rem; font-size: 0.83rem; color: var(--text-3); }

/* Lista de datos clave */
.datos { display: grid; gap: 0.6rem; }
.dato {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
}
.dato b { color: var(--text); }
.dato span { color: var(--text-2); }

/* Marca de dato pendiente. Imposible de pasar por alto a proposito:
   la pagina que la contenga queda en noindex hasta que se resuelva. */
.pendiente {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  background: var(--warn-bg);
  border: 1px dashed var(--warn);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--warn);
}

/* Escala del CyberIndex (pagina /cyberindex/) */
.scale { display: grid; gap: 0.6rem; }
.scale-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--ok);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.scale-row.is-warn { border-left-color: var(--ambar); }
.scale-row.is-bad { border-left-color: var(--bad); }
.scale-row .mono { font-size: 1rem; color: var(--text); }
.scale-row b { display: block; margin-bottom: 0.15rem; }
.scale-row p { font-size: 0.9rem; margin: 0; }

/* ─────────────────────────────────────
   20. AUTODIAGNOSTICO (/que-tan-expuesto-estas/)
───────────────────────────────────── */
.dx {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.dx-barra {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}
.dx-barra-riel {
  flex: 1;
  height: 6px;
  background: var(--bg-alt);
  border-radius: var(--r-full);
  overflow: hidden;
}
.dx-barra-fill {
  height: 100%;
  width: 0;
  background: var(--grad-turq);
  border-radius: var(--r-full);
  transition: width var(--ease-slow);
}
.dx-barra-txt {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.dx-paso fieldset { margin: 0; padding: 0; border: 0; }
.dx-paso legend {
  padding: 0;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.dx-ayuda {
  margin: 0.6rem 0 1.3rem;
  font-size: 0.89rem;
  color: var(--text-3);
}

.dx-ops { display: grid; gap: 0.55rem; }
.dx-op {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.dx-op:hover { border-color: var(--accent); background: var(--accent-soft); }
.dx-op input {
  flex: none;
  width: 19px; height: 19px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.dx-op:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.dx-op input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.dx-nav {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
}
.dx-nav .dx-atras { margin-right: auto; }
.dx-nav .btn { width: auto; }

/* Resultado: nivel de exposicion con el semaforo */
.dx-res-cabeza { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.dx-res-nivel {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.dx-res-nivel.is-baja  { background: var(--ok-bg);   color: var(--ok); }
.dx-res-nivel.is-media { background: var(--warn-bg); color: var(--warn); }
.dx-res-nivel.is-alta  { background: var(--bad-bg);  color: var(--bad); }
.dx-res-cabeza h3 { margin-bottom: 0.4rem; }
.dx-res-cabeza p { max-width: 56ch; margin: 0 auto; }

.dx-grupo { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.dx-grupo > h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dx-grupo > h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.dx-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: start;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.55rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.dx-item.es-falta { border-left-color: var(--bad); }
.dx-item h4 { margin: 0 0 0.2rem; font-size: 1rem; }
.dx-item p { margin: 0; font-size: 0.865rem; line-height: 1.5; }
.dx-item .dx-mod {
  grid-row: span 2;
  align-self: center;
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  border-radius: var(--r-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.dx-item .dx-mod:hover { background: var(--accent); color: var(--accent-on); }

/* ─────────────────────────────────────
   21. ANIMACION DE ENTRADA
───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────
   22. RESPONSIVO
───────────────────────────────────── */
@media (max-width: 1080px) {
  .flancos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .split, .spot-grid, .contact-grid, .hero-inner, .allies, .vs { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .incl-row, .map-row { grid-template-columns: 1fr auto; }
  .incl-row span, .map-row span { grid-column: 1 / -1; }
  .ci-panel { max-width: 520px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 1rem clamp(1.15rem, 4vw, 2rem) 1.6rem;
    background: var(--nav-bg-solid);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: var(--sh-lg);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { padding: 0.7rem 0.6rem; text-align: left; width: 100%; }
  .mega {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    box-shadow: none;
    background: var(--bg-alt);
    margin-top: 0.4rem;
  }
  .mega[data-open="true"] { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; gap: 1rem; }
  .nav-only-mobile { display: block !important; }
  .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  /* El CTA del navbar empujaba la hamburguesa fuera de la pantalla y dejaba
     el menu inalcanzable. En movil el CTA vive dentro del menu. */
  .nav-actions > .btn { display: none; }
  .hero-radar { opacity: 0.4; }
  .flancos { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .hero { min-height: auto; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .incl-row, .map-row { grid-template-columns: 1fr; }
  .map-row a { justify-self: start; }
  .dato { grid-template-columns: 1fr; gap: 0.2rem; }
  .scale-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .dx-item { grid-template-columns: 1fr; }
  .dx-item .dx-mod { grid-row: auto; justify-self: start; }
  .dx-nav { flex-wrap: wrap; }
  .dx-nav .btn { flex: 1 1 auto; }
}

/* ─────────────────────────────────────
   23. ACCESIBILIDAD E IMPRESION
───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .hero-radar, .theme-toggle, .nav-toggle, .form { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .spotlight, .hero { padding: 1.5rem 0; background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}
