/* ═══════════════════════════════════════════════════════════════
   MexCloud — Estilos principales
   Identidad de la familia MexMail: navy y azul del logotipo, tinta
   para lo oscuro, papel frio para lo claro. 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 (espejo del logotipo) */
  --navy:           #0E1B40;   /* escudo, titulos sobre claro */
  --azul:           #0364FF;   /* sobre del escudo, acento operable (4.9:1 sobre blanco) */
  --azul-hover:     #0252D1;
  --azul-vivo:      #5B9BFF;   /* acento sobre oscuro (6.9:1 sobre tinta) */
  --tinta:          #070E22;   /* hero, spotlights, pie */
  --tinta-2:        #0F1A38;   /* tarjetas sobre oscuro */
  --ambar:          #F0B429;   /* candados y carpetas seguras, solo sobre oscuro */
  --ambar-sobrio:   #8A5B00;   /* el mismo acento como texto sobre claro */

  /* Fondos */
  --bg:             #F5F8FE;   /* papel */
  --bg-alt:         #EAF0FA;
  --card:           #FFFFFF;
  --dark:           #070E22;
  --dark-alt:       #0F1A38;

  /* Texto */
  --text:           #0E1B40;
  --text-2:         #46516E;
  --text-3:         #5C6884;
  --on-dark:        #E8EDF6;
  --on-dark-2:      #A9B4CC;
  --on-dark-3:      #7C88A8;

  /* Acento operable */
  --accent:         #0364FF;
  --accent-hover:   #0252D1;
  --accent-on:      #FFFFFF;
  --accent-soft:    rgba(3, 100, 255, 0.09);
  --accent-glow:    rgba(3, 100, 255, 0.22);

  /* Estados de los mocks: bien / bloqueado / aviso */
  --ok:             #15803D;
  --ok-bg:          rgba(21, 128, 61, 0.11);
  --warn:           #8A5B00;
  --warn-bg:        rgba(240, 180, 41, 0.16);
  --bad:            #B91C1C;
  --bad-bg:         rgba(185, 28, 28, 0.09);
  --lock:           #8A5B00;   /* candado sobre claro */
  --lock-bg:        rgba(240, 180, 41, 0.16);

  /* Bordes */
  --border:         rgba(14, 27, 64, 0.10);
  --border-2:       rgba(14, 27, 64, 0.20);

  /* Sombras (frias, hacia el navy) */
  --sh-sm:          0 1px 2px rgba(14, 27, 64, 0.05), 0 2px 8px rgba(14, 27, 64, 0.05);
  --sh-md:          0 4px 14px rgba(14, 27, 64, 0.07), 0 14px 36px rgba(14, 27, 64, 0.07);
  --sh-lg:          0 10px 28px rgba(14, 27, 64, 0.10), 0 28px 64px rgba(14, 27, 64, 0.12);
  --sh-hover:       0 12px 30px rgba(3, 100, 255, 0.14), 0 26px 60px rgba(14, 27, 64, 0.12);

  /* Navbar */
  --nav-bg:         rgba(245, 248, 254, 0.86);
  --nav-bg-solid:   rgba(245, 248, 254, 0.97);
  --nav-border:     rgba(14, 27, 64, 0.09);

  /* Fondo oscuro: tinta con un leve halo azul arriba a la derecha */
  --grad-dark:      radial-gradient(900px 520px at 85% -10%, rgba(3, 100, 255, 0.28), transparent 60%),
                    linear-gradient(170deg, #0A1330 0%, #070E22 60%, #060B1C 100%);

  /* Hero: claro en tema claro, tinta en tema oscuro */
  --hero-bg:        radial-gradient(900px 560px at 85% -10%, rgba(3, 100, 255, 0.26), transparent 62%),
                    radial-gradient(700px 480px at 5% 110%, rgba(3, 100, 255, 0.12), transparent 60%),
                    linear-gradient(170deg, #D6E3FA 0%, #E3ECFB 55%, #ECF2FC 100%);
  --hero-text:      #0E1B40;
  --hero-text-2:    #46516E;
  --hero-text-3:    #5C6884;
  --hero-line:      rgba(14, 27, 64, 0.12);
  --hero-card:      rgba(255, 255, 255, 0.90);
  --hero-card-2:    rgba(226, 235, 250, 0.9);
  --hero-card-border: rgba(14, 27, 64, 0.10);
  --hero-accent:    #0364FF;
  --hero-lock:      #8A5B00;
  --hero-lock-bg:   rgba(240, 180, 41, 0.18);
  --hero-chip:      rgba(3, 100, 255, 0.10);
  --hero-net-node:  rgba(14, 27, 64, 0.30);
  --hero-net-line:  rgba(14, 27, 64, 0.10);

  /* Logotipo (heredan hacia dentro del <use>) */
  --logo-shield:    #0E1B40;
  --logo-mail:     #0364FF;
  --logo-text:      #0E1B40;

  /* Tipografia */
  --font-head:      'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font:           'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:      'JetBrains 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: tarjetas 14, controles 8, chips 6 */
  --r-sm:   6px;
  --r-md:   8px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  --ease:      0.2s 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:             #070E22;
  --bg-alt:         #0B142C;
  --card:           #111C3A;
  --dark:           #04091A;
  --dark-alt:       #0B142C;

  --text:           #E8EDF6;
  --text-2:         #A9B4CC;
  --text-3:         #8B97B5;

  --accent:         #5B9BFF;
  --accent-hover:   #85B5FF;
  --accent-on:      #070E22;
  --accent-soft:    rgba(91, 155, 255, 0.13);
  --accent-glow:    rgba(91, 155, 255, 0.22);

  --ok:             #3DD68C;
  --ok-bg:          rgba(61, 214, 140, 0.13);
  --warn:           #F0B429;
  --warn-bg:        rgba(240, 180, 41, 0.14);
  --bad:            #FF7B72;
  --bad-bg:         rgba(255, 123, 114, 0.13);
  --lock:           #F0B429;
  --lock-bg:        rgba(240, 180, 41, 0.14);

  --border:         rgba(232, 237, 246, 0.10);
  --border-2:       rgba(232, 237, 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(91, 155, 255, 0.10);

  --nav-bg:         rgba(7, 14, 34, 0.84);
  --nav-bg-solid:   rgba(7, 14, 34, 0.97);
  --nav-border:     rgba(232, 237, 246, 0.09);

  --grad-dark:      radial-gradient(900px 520px at 85% -10%, rgba(3, 100, 255, 0.30), transparent 60%),
                    linear-gradient(170deg, #08122E 0%, #04091A 60%, #03071A 100%);

  --hero-bg:        var(--grad-dark);
  --hero-text:      #FFFFFF;
  --hero-text-2:    #A9B4CC;
  --hero-text-3:    #7C88A8;
  --hero-line:      rgba(232, 237, 246, 0.13);
  --hero-card:      rgba(15, 26, 56, 0.72);
  --hero-card-2:    rgba(7, 14, 34, 0.55);
  --hero-card-border: rgba(232, 237, 246, 0.14);
  --hero-accent:    #5B9BFF;
  --hero-lock:      #F0B429;
  --hero-lock-bg:   rgba(240, 180, 41, 0.16);
  --hero-chip:      rgba(91, 155, 255, 0.14);
  --hero-net-node:  rgba(232, 237, 246, 0.35);
  --hero-net-line:  rgba(232, 237, 246, 0.10);

  --logo-shield:    #1C2C5C;
  --logo-mail:     #3D86FF;
  --logo-text:      #FFFFFF;
}

/* ─────────────────────────────────────
   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). El sello, el formulario y la previa de la IA
   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.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; }
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 (navy):
   se vuelve invisible. Toda seccion oscura NUEVA se suma a esta lista Y a
   las de .btn-ghost, .btn-primary y .kicker mas abajo. */
[data-theme="dark"] .hero strong, .hero-mod strong, .spotlight:not(.is-light) strong,
.section-dark strong, .cta-band strong, .footer strong, .sello 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(--grad-dark);
  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, con el kicker en frase corta */
.section-head {
  max-width: 760px;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* El kicker es una frase en minusculas con un filete azul delante: dice de
   que trata el bloque sin gritar. Nada de mayusculas ni de mono. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--accent);
}
.kicker::before {
  content: "";
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-dark .kicker, [data-theme="dark"] .hero .kicker, .hero-mod .kicker,
.spotlight:not(.is-light) .kicker, .cta-band .kicker { color: var(--azul-vivo); }

.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.82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 700;
  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 es azul pleno con texto blanco: el azul del
   logotipo brilla sobre tinta (4.9:1 con blanco, y el halo hace el resto). */
[data-theme="dark"] .hero .btn-primary, .hero-mod .btn-primary, .cta-band .btn-primary,
.spotlight:not(.is-light) .btn-primary, .section-dark .btn-primary {
  background: #0364FF;
  color: #FFFFFF;
  box-shadow: 0 6px 22px rgba(3, 100, 255, 0.35);
}
[data-theme="dark"] .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: #2E7BFF;
  color: #FFFFFF;
}

.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, [data-theme="dark"] .hero .btn-ghost,
.hero-mod .btn-ghost, .cta-band .btn-ghost, .spotlight:not(.is-light) .btn-ghost {
  color: var(--on-dark);
  border-color: rgba(232, 237, 246, 0.28);
}
.on-dark .btn-ghost:hover, .section-dark .btn-ghost:hover, [data-theme="dark"] .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(--azul-vivo);
  background: rgba(91, 155, 255, 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 */
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.15rem, 4vw, 2rem);
}

/* Logotipo: escudo y wordmark desde el sprite, coloreados por --logo-*.
   Los selectores no entran al <use>, pero las propiedades personalizadas si
   heredan: por eso el color se controla desde el contexto que lo contiene. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-right: auto;
  white-space: nowrap;
  color: var(--text);
}
.logo-mark { width: 34px; height: 37px; flex: none; }
.logo-word { height: 21px; width: auto; aspect-ratio: 418 / 68.5; }
.lm-shield { fill: var(--logo-shield); }
.lm-mail  { fill: var(--logo-mail); }
.lw-mex    { fill: var(--logo-text); }
.lw-cloud  { fill: var(--logo-mail); }
/* Sobre tinta el escudo navy se pierde: se aclara un paso y el texto va blanco */
.logo-on-dark { --logo-shield: #1C2C5C; --logo-mail: #3D86FF; --logo-text: #FFFFFF; }

.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; }
.nav-only-mobile { display: none; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  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; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  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, 900px);
  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-size: 0.8rem;
  font-weight: 700;
  color: var(--text-3);
}
.mega-col a {
  display: block;
  padding: 0.42rem 0.6rem;
  /* .nav-links a impone nowrap; aqui hay que devolverlo a normal o las
     descripciones no cortan linea y las columnas se salen del panel. */
  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 — la aplicacion, la red y el sello
   Claro en tema claro y tinta en tema oscuro: todo sale de --hero-*.
───────────────────────────────────── */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(3rem, 6vw, 4.5rem);
  background: var(--hero-bg);
  color: var(--hero-text-2);
  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;
}
.hero .container { position: relative; z-index: 2; }

/* La red: modulos que se conectan y paquetes que pasan por el escudo */
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.35) 38%, #000 60%);
          mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.35) 38%, #000 60%);
}

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

.hero h1, .hero h2, .hero h3 { color: var(--hero-text); }
.hero p { color: var(--hero-text-2); }
.hero strong { color: var(--hero-text); }

.hero-kicker {
  margin-bottom: 1.1rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hero-accent);
}

.hero-title { max-width: 14ch; margin-bottom: 1.2rem; }
.hero-sub {
  max-width: 50ch;
  margin-bottom: 1.8rem;
  font-size: clamp(1.02rem, 1.8vw, 1.16rem);
  line-height: 1.6;
}
.hero-cta { margin-bottom: 2.4rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 600px;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hero-line);
}
.hero-stats .stat { margin: 0; }
.stat-number {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--hero-text);
}
.stat-label {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--hero-text-2);
}

/* — La aplicacion: una ventana con pestañas que cambian solas — */
.app {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--hero-card);
  border: 1px solid var(--hero-card-border);
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.app-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--hero-line);
  background: var(--hero-card-2);
}
.app-tab {
  padding: 0.42rem 0.72rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--hero-text-2);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--ease), background var(--ease);
}
.app-tab:hover { color: var(--hero-text); }
.app-tab[aria-selected="true"] { background: #0364FF; color: #fff; }
.app-bar .app-dots { margin-left: auto; display: flex; gap: 0.3rem; }
.app-bar .app-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--hero-line); }

.app-body { position: relative; min-height: 318px; }
.app-panel { padding: 0.9rem 1rem 1rem; }
.app-panel[hidden] { display: none; }
.app-panel h4 {
  margin: 0 0 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--hero-text-3);
}
.app-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.55rem;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  color: var(--hero-text);
}
.app-row + .app-row { border-top: 1px solid var(--hero-line); }
.app-row .ic {
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--hero-chip);
  color: var(--hero-accent);
}
.app-row .ic svg { width: 15px; height: 15px; }
.app-row .ic.is-lock { background: var(--hero-lock-bg); color: var(--hero-lock); }
.app-row .ic.is-dir { background: var(--hero-card-2); color: var(--hero-text-2); }
.app-row b { display: block; font-weight: 600; color: var(--hero-text); }
.app-row small { display: block; font-size: 0.74rem; color: var(--hero-text-2); }
.app-row .end { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 0.7rem; color: var(--hero-text-3); }
.app-row.is-new b::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 0.4rem;
  border-radius: 50%;
  background: var(--hero-accent);
  vertical-align: middle;
}

/* Calendario en miniatura */
.app-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.app-day { font-size: 0.7rem; color: var(--hero-text-3); text-align: center; margin-bottom: 0.2rem; }
.app-day b { display: block; color: var(--hero-text); font-size: 0.9rem; }
.app-ev {
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.3rem;
  border-radius: 6px;
  background: var(--hero-chip);
  border-left: 2px solid var(--hero-accent);
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--hero-text);
}
.app-ev.is-video { background: var(--ok-bg); border-left-color: var(--ok); }
.app-ev small { display: block; color: var(--hero-text-2); }

/* Chat en miniatura */
.app-chat { display: grid; gap: 0.5rem; }
.app-msg {
  max-width: 86%;
  padding: 0.5rem 0.7rem;
  border-radius: 12px 12px 12px 3px;
  background: var(--hero-card-2);
  font-size: 0.8rem;
  color: var(--hero-text);
}
.app-msg.is-me { margin-left: auto; border-radius: 12px 12px 3px 12px; background: #0364FF; color: #fff; }
.app-msg small { display: block; margin-top: 0.15rem; font-size: 0.66rem; color: var(--hero-text-2); }
.app-msg.is-me small { color: rgba(255, 255, 255, 0.75); }
.app-msg .adj {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.3rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(7, 14, 34, 0.35);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #fff;
}

/* IA en miniatura */
.app-ia-q {
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #0364FF;
  font-size: 0.82rem;
  color: #fff;
  margin-bottom: 0.6rem;
}
.app-ia-a {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  background: var(--hero-card-2);
  font-size: 0.8rem;
  color: var(--hero-text-2);
  line-height: 1.5;
}
.app-ia-a b { color: var(--hero-text); }
.app-ia-src {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--hero-text-3);
}
.app-ia-lock {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  background: var(--hero-lock-bg);
  border: 1px dashed var(--hero-lock);
  font-size: 0.72rem;
  color: var(--hero-lock);
}

/* Barra inferior del telefono: en pantallas chicas se enseña en vez de la de arriba */
.app-foot {
  display: none;
  justify-content: space-around;
  padding: 0.5rem 0.4rem;
  border-top: 1px solid var(--hero-line);
  background: var(--hero-card-2);
}

/* — El sello: tres reglas que se pueden probar — */
.sello {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 3vw, 2.2rem);
  border-top: 1px solid var(--hero-line);
}
.sello-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.1rem;
}
.sello-head h2 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.sello-head p { margin: 0; font-size: 0.9rem; }
.sello-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.1rem);
}
.regla {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1rem;
  border-radius: var(--r-lg);
  background: var(--hero-card);
  border: 1px solid var(--hero-card-border);
  transition: border-color var(--ease), background var(--ease);
}
.regla.is-on { border-color: var(--hero-lock); }
.regla-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.regla-head svg { width: 20px; height: 20px; flex: none; color: var(--hero-lock); }
.regla-head h3 { margin: 0; font-size: 0.98rem; }
.regla > p { font-size: 0.86rem; line-height: 1.5; margin-bottom: 0.9rem; }
.regla-btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--hero-line);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--hero-text);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.regla-btn:hover { border-color: var(--hero-accent); background: var(--hero-chip); }
.regla.is-on .regla-btn { border-color: var(--hero-lock); color: var(--hero-lock); }
.regla-res {
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-md);
  background: var(--hero-card-2);
  border: 1px solid var(--hero-line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--hero-text);
}
.regla-res .no { color: var(--bad); }
.regla-res .si { color: var(--ok); }
.regla-res .log { display: block; margin-top: 0.3rem; color: var(--hero-text-3); }
.regla-res .sub { background: var(--hero-lock-bg); color: var(--hero-lock); padding: 0 0.25rem; border-radius: 3px; }

/* ─────────────────────────────────────
   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 {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--sh-hover);
}

.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 modulos: siete tarjetas, el correo con su nota de MexMail */
.mods { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.mod { padding: clamp(1.2rem, 2.2vw, 1.5rem); }
.mod h3 { font-size: 1.12rem; margin-bottom: 0.4rem; }
.mod > p { font-size: 0.9rem; margin-bottom: 1rem; }
.mod-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}
.mod-foot b { font-size: 0.86rem; color: var(--accent); white-space: nowrap; }
.mod-note {
  display: inline-block;
  padding: 0.18rem 0.5rem;
  border-radius: var(--r-sm);
  background: var(--lock-bg);
  color: var(--lock);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Perfiles */
.audience-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 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. EN MEXCLOUD
───────────────────────────────────── */
.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-radius: var(--r-lg);
}
.vs-col.is-nos { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vs-col h3 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--text-3);
}
.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, .vs-col li::after {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 14px; height: 14px;
  border-radius: 50%;
}
.vs-col li::before { background: var(--bad-bg); }
.vs-col li::after {
  left: 3px; top: calc(0.42em + 3px);
  width: 8px; height: 8px;
  background: var(--bad);
  border-radius: 1px;
  transform: rotate(45deg);
  clip-path: polygon(0 40%, 40% 40%, 40% 0, 60% 0, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0 60%);
}
.vs-col.is-nos li::before { background: var(--ok-bg); }
.vs-col.is-nos li::after {
  left: 4px; top: calc(0.42em + 3px);
  width: 4px; height: 7px;
  border-right: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  background: none;
  border-radius: 0;
  clip-path: none;
  transform: rotate(42deg);
}
.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 (modulo destacado)
───────────────────────────────────── */
.spotlight {
  padding: clamp(3.5rem, 8vw, var(--sp-2xl)) 0;
  background: var(--grad-dark);
  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;
}

.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.55em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--azul-vivo);
}
.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); }

/* Nota de honestidad dentro de un spotlight (la IA externa, Norteamerica) */
.spot-note {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-left: 3px solid var(--ambar);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: rgba(240, 180, 41, 0.08);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--on-dark-2);
}
.spotlight.is-light .spot-note { background: var(--lock-bg); color: var(--text-2); border-left-color: var(--lock); }
.spot-note b { color: #fff; }
.spotlight.is-light .spot-note b { color: var(--text); }

/* Maqueta generica dentro del spotlight */
.mock {
  padding: 1.15rem;
  background: rgba(15, 26, 56, 0.6);
  border: 1px solid rgba(232, 237, 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;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px solid rgba(232, 237, 246, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--on-dark-2);
}
.spotlight.is-light .mock-head { border-bottom-color: var(--border); color: var(--text-3); }
.mock-head .mono { font-weight: 500; }

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(232, 237, 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); }

/* Insignias de estado */
.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;
  white-space: nowrap;
}
.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); }
.badge-lock { background: var(--lock-bg); color: var(--lock); }
[data-theme="dark"] .hero .badge-ok, .spotlight:not(.is-light) .badge-ok, .section-dark .badge-ok     { color: #3DD68C; background: rgba(61, 214, 140, 0.14); }
[data-theme="dark"] .hero .badge-warn, .spotlight:not(.is-light) .badge-warn, .section-dark .badge-warn { color: var(--ambar); background: rgba(240, 180, 41, 0.14); }
[data-theme="dark"] .hero .badge-bad, .spotlight:not(.is-light) .badge-bad, .section-dark .badge-bad   { color: #FF7B72; background: rgba(255, 123, 114, 0.14); }
[data-theme="dark"] .hero .badge-lock, .spotlight:not(.is-light) .badge-lock, .section-dark .badge-lock { color: var(--ambar); background: rgba(240, 180, 41, 0.14); }

/* — La previa de la IA: el texto con los datos sustituidos — */
.previa { font-size: 0.92rem; }
.previa-txt {
  padding: 1rem 1.1rem;
  border-radius: var(--r-md);
  background: rgba(7, 14, 34, 0.55);
  border: 1px solid rgba(232, 237, 246, 0.1);
  line-height: 1.7;
  color: var(--on-dark);
}
.previa .oculto {
  display: inline-block;
  padding: 0 0.3rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: rgba(240, 180, 41, 0.2);
  color: var(--ambar);
  transition: background var(--ease), color var(--ease);
}
.previa .oculto.destapado { background: rgba(232, 237, 246, 0.08); color: #fff; font-family: inherit; font-size: inherit; }
.previa .oculto.senalado { background: rgba(255, 123, 114, 0.3); color: #fff; }
.previa-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--on-dark-2);
}
.previa-foot button {
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(232, 237, 246, 0.25);
  border-radius: var(--r-sm);
  background: transparent;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.previa-foot button:hover { border-color: var(--azul-vivo); background: rgba(91, 155, 255, 0.12); }

/* — La transcripcion buscable — */
.transcript-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--bg);
}
.transcript-search svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.transcript-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.transcript-search input:focus { outline: none; }
.transcript-list { margin: 0; padding: 0; list-style: none; }
.transcript-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.7rem;
  padding: 0.55rem 0.4rem;
  margin: 0;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-2);
  transition: background var(--ease), opacity var(--ease);
}
.transcript-list li:hover { background: var(--accent-soft); cursor: pointer; }
.transcript-list li.is-dim { opacity: 0.35; }
.transcript-list li.is-hit { background: var(--accent-soft); }
.transcript-list .t { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent); padding-top: 0.15rem; }
.transcript-list mark { background: var(--lock-bg); color: var(--text); border-radius: 3px; padding: 0 0.1rem; }
.transcript-foot { margin-top: 0.7rem; font-size: 0.78rem; color: var(--text-3); }

/* — Adjuntar desde la nube (correo + archivos) — */
.compose { font-size: 0.86rem; }
.compose-field {
  display: flex;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(232, 237, 246, 0.1);
  color: var(--on-dark);
}
.compose-field span:first-child { flex: none; width: 4.5rem; color: var(--on-dark-3); }
.compose-body { padding: 0.7rem 0; line-height: 1.6; color: var(--on-dark-2); }
.compose-pick {
  margin-top: 0.4rem;
  padding: 0.7rem 0.8rem;
  border-radius: var(--r-md);
  background: rgba(7, 14, 34, 0.55);
  border: 1px solid rgba(232, 237, 246, 0.1);
}
.compose-pick h4 { margin: 0 0 0.5rem; font-size: 0.74rem; font-weight: 600; color: var(--on-dark-3); }
.compose-pick .app-row { padding: 0.4rem 0.3rem; font-size: 0.8rem; }
.compose-pick .app-row.is-picked { background: rgba(3, 100, 255, 0.22); }
.compose-pick .app-row.is-picked .end { color: var(--azul-vivo); }

/* ─────────────────────────────────────
   13. SEGURIDAD: reglas y fichas tecnicas
───────────────────────────────────── */
.reglas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.regla-card { padding: clamp(1.3rem, 2.4vw, 1.7rem); }
.regla-card .icon-badge { background: var(--lock-bg); color: var(--lock); }
.regla-card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.regla-card p { font-size: 0.92rem; }
.regla-card .como {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}
.regla-card .como b { color: var(--text-2); font-weight: 600; }

.tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.6rem;
  margin: clamp(1.5rem, 3vw, 2.2rem) 0 0;
  padding: 0;
  list-style: none;
}
.tech li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.8rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-2);
}
.tech li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--accent);
}
.tech li b { display: block; color: var(--text); font-weight: 600; }

/* ─────────────────────────────────────
   14. POR EMPRESA: el control de personas
───────────────────────────────────── */
.pe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.6rem);
}
.pe-col {
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.pe-col.is-nos { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pe-col h3 { font-size: 0.95rem; color: var(--text-3); margin-bottom: 0.9rem; }
.pe-col.is-nos h3 { color: var(--accent); }
.pe-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.pe-col.is-nos .pe-num { color: var(--accent); }
.pe-num small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-left: 0.3rem; }
.pe-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 1rem 0;
  min-height: 34px;
}
.pe-bar i {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: var(--bad);
  opacity: 0.85;
}
.pe-col.is-nos .pe-bar i { width: 100%; height: 14px; background: var(--accent); }
.pe-col ul { margin: 0; padding: 0; list-style: none; }
.pe-col li {
  position: relative;
  margin-bottom: 0.5rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: var(--text-2);
}
.pe-col li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bad);
}
.pe-col.is-nos li::before { background: var(--accent); }
.pe-ctl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 0.9rem;
}
.pe-ctl label { font-weight: 600; color: var(--text); }
.pe-ctl input[type="range"] { width: 100%; accent-color: var(--accent); }
.pe-ctl output { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--accent); min-width: 3ch; text-align: right; }
.pe-foot {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--card);
  font-size: 0.92rem;
}
.pe-foot b { display: block; margin-bottom: 0.2rem; }

/* ─────────────────────────────────────
   15. DONDE VIVE, COMPATIBILIDAD, PASOS, LINEA DE TIEMPO
───────────────────────────────────── */
.where { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.where .card h3 { font-size: 1.12rem; }
.where .card p { font-size: 0.9rem; }
.where .para {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-3);
}
.where .para b { font-weight: 600; color: var(--text-2); }

.compat { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.compat .card { padding: 1.2rem 1.25rem; }
.compat h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.compat p { font-size: 0.86rem; }

.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;
  counter-reset: paso;
}
.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-grid;
  place-items: center;
  width: 30px; height: 30px;
  margin-bottom: 1rem;
  background: var(--accent);
  border-radius: 50%;
  color: var(--accent-on);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 800;
}
.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-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
}

.tl { position: relative; margin: 0; padding: 0 0 0 1.4rem; list-style: none; border-left: 2px solid var(--border-2); }
.tl li { position: relative; margin: 0 0 1.4rem; padding-left: 0.6rem; }
.tl li::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 7px); top: 0.35em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}
.tl .when { display: block; font-family: var(--font-head); font-weight: 800; font-size: 0.85rem; color: var(--accent); margin-bottom: 0.15rem; }
.tl h3 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.tl p { font-size: 0.92rem; }

/* ─────────────────────────────────────
   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: 700;
  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;
  border-radius: 50%;
  background: var(--accent);
}
.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-md);
  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: 110px; 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-md);
  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); }

/* CTA fijo en movil: siempre a la mano */
.cta-mobile {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 95;
  padding: 0.6rem clamp(1rem, 4vw, 2rem) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--nav-bg-solid);
  border-top: 1px solid var(--nav-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cta-mobile .btn { width: 100%; }

/* ─────────────────────────────────────
   18. PIE DE PAGINA
───────────────────────────────────── */
.footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  background: var(--grad-dark);
  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(232, 237, 246, 0.12);
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--on-dark-2); font-size: 0.88rem; max-width: 40ch; }
.footer-by { margin-top: 1rem; font-size: 0.85rem; color: var(--on-dark-2); }
.footer-by b { color: #fff; font-weight: 700; }
.footer-by a { color: var(--azul-vivo); }

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}
.footer-links h4 {
  margin-bottom: 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(232, 237, 246, 0.6);
}
.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(--azul-vivo); }

.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(232, 237, 246, 0.55);
}
.footer-bottom p { margin: 0; color: inherit; }
.footer-bottom a { color: rgba(232, 237, 246, 0.7); }
.footer-bottom a:hover { color: var(--azul-vivo); }
.footer-promise { 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(--grad-dark);
  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-mod-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.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-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ambar);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  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(--azul-vivo); }
.breadcrumb [aria-current="page"] { color: #fff; }

/* El sello en version chica, para las paginas de modulo */
.sello-mini {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sello-mini li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  background: rgba(15, 26, 56, 0.6);
  border: 1px solid rgba(232, 237, 246, 0.12);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--on-dark-2);
}
.sello-mini svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; color: var(--ambar); }
.sello-mini b { display: block; 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: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-1px);
}
.cap p { font-size: 0.91rem; margin: 0; }

/* Bloque de honestidad: lo que NO hace */
.contra {
  padding: clamp(1.2rem, 2.2vw, 1.55rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--lock);
  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; }

.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);
}

/* Franja de llamada a la accion */
.cta-band {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  background: var(--grad-dark);
  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 modulos */
.mod-nav { padding: clamp(2.5rem, 5vw, 3.5rem) 0; background: var(--bg-alt); }
.mod-nav h2 {
  font-size: 0.86rem;
  font-weight: 700;
  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-md);
  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-head);
  font-size: 0.82rem;
  font-weight: 700;
  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-md);
  font-size: 0.9rem;
}
.dato b { color: var(--text); }
.dato span { color: var(--text-2); }

/* Marca de dato pendiente: la pagina que la contenga queda en noindex */
.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);
}

/* Prosa larga (aviso de privacidad, guia) */
.prosa h3 { margin-top: 2rem; }
.prosa ol, .prosa ul { padding-left: 1.3rem; }
.prosa li { margin-bottom: 0.5rem; }

/* ─────────────────────────────────────
   20. GUIA DE USUARIO
───────────────────────────────────── */
.guia-cuerpo { display: grid; gap: 2rem; align-items: start; }
.guia-indice {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  padding: 1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  font-size: 0.9rem;
}
.guia-indice p { margin: 0 0 0.5rem; font-weight: 700; color: var(--text); }
.guia-indice ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; }
.guia-indice a { color: var(--text-2); }
.guia-indice a:hover { color: var(--accent); }
.guia section { padding: 2.2rem 0; border-top: 1px solid var(--border); }
.guia section:first-child { border-top: 0; padding-top: 0; }
.guia h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.guia h3 { font-size: 1.05rem; margin: 1.6rem 0 0.4rem; }
.pasos { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.8rem; counter-reset: paso; }
.pasos li { position: relative; margin: 0; padding-left: 2.6rem; }
.pasos li::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  left: 0; top: 0.05rem;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid; place-items: center;
}
.etq {
  display: inline-block;
  padding: 0 0.45rem;
  border: 1px solid var(--border-2);
  border-radius: 5px;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9em;
  white-space: nowrap;
}
.consejo {
  margin: 1.2rem 0 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 3px solid var(--lock);
}
.consejo p { margin: 0; }
.dos-caminos { display: grid; gap: 1.2rem; margin-top: 1rem; }
.camino { padding: 1rem 1.2rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-md); }
.camino h3 { margin-top: 0; }
.volver-indice { font-size: 0.85rem; }
.esquema {
  margin: 1.4rem 0 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--card);
  overflow-x: auto;
}
.esquema svg { width: 100%; height: auto; max-width: 46rem; margin-inline: auto; }
.esquema .caja { fill: var(--bg-alt); stroke: var(--border-2); }
.esquema .centro { fill: var(--accent); stroke: none; }
.esquema .t { fill: var(--text); font-family: var(--font); font-size: 15px; text-anchor: middle; }
.esquema .tc { fill: var(--accent-on); font-family: var(--font-head); font-weight: 700; font-size: 17px; text-anchor: middle; }
.esquema .lin { stroke: var(--border-2); stroke-width: 2; }

/* ─────────────────────────────────────
   21. ANIMACION DE ENTRADA
   Solo cabeceras de seccion y maquetas: marca que empieza un bloque.
───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--ease-slow), transform var(--ease-slow);
}
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────
   22. RESPONSIVO
───────────────────────────────────── */
@media (min-width: 900px) {
  .guia-cuerpo { grid-template-columns: 15rem 1fr; }
  .dos-caminos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .where, .sello-grid { grid-template-columns: 1fr; }
  .sello-grid { gap: 0.7rem; }
  .regla { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .regla-head { width: 100%; }
  .regla > p { flex: 1 1 260px; margin-bottom: 0; }
  .regla-btn { margin-top: 0; }
  .regla-res { width: 100%; }
}

@media (max-width: 980px) {
  .hero-net { display: none; }
  .split, .spot-grid, .contact-grid, .hero-inner, .vs, .pe, .reglas, .hero-mod-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .app { max-width: 560px; }
  .hero-title { max-width: 18ch; }
}

@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) {
  /* En movil el CTA vive en el menu y en la barra fija de abajo */
  .nav-actions > .btn { display: none; }
  .cta-mobile { display: block; }
  body { padding-bottom: 64px; }
  .app-bar .app-tab { display: none; }
  .app-bar { justify-content: flex-start; min-height: 40px; }
  .app-foot { display: flex; }
  .app-foot .app-tab { display: block; }
}

@media (max-width: 620px) {
  .hero-stats { grid-template-columns: 1fr; gap: 1rem; }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .dato { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
  .regla { flex-direction: column; align-items: stretch; }
  /* En la franja 620-1080 el parrafo lleva flex-basis 260px para la fila;
     en columna esa base se vuelve ALTURA y deja un hueco enorme. */
  .regla > p { flex: none; }
  .regla-btn { align-self: flex-start; margin-top: 0.8rem; }
  .pe-ctl { grid-template-columns: 1fr auto; }
  .pe-ctl input[type="range"] { grid-column: 1 / -1; }
  .app-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-week .app-col:nth-child(n+4) { display: none; }
}

/* ─────────────────────────────────────
   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, .theme-toggle, .nav-toggle, .form, .cta-mobile { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section, .spotlight, .hero { padding: 1.5rem 0; background: #fff !important; color: #000 !important; }
  a { color: #000; text-decoration: underline; }
}

/* ─────────────────────────────────────
   24. PRECIOS (/precios/)
───────────────────────────────────── */
.tipos { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(2rem, 4vw, 3rem); }
.tipo { padding: clamp(1.2rem, 2.2vw, 1.5rem); }
.tipo h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.tipo p { font-size: 0.9rem; }
.tipo .desde { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-3); }
.tipo .desde b { display: block; font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.tipo .desde b small { font-size: 0.55em; font-weight: 600; color: var(--text-3); margin-left: 0.25rem; }
.tipo.is-nos { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.planes { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.plan { padding: clamp(1.1rem, 2vw, 1.4rem); }
.plan h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.plan .quien { font-size: 0.8rem; color: var(--text-3); margin-bottom: 0.9rem; min-height: 2.4em; }
.plan-precio {
  margin: 0 0 0.9rem;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text);
}
.plan-precio small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-left: 0.25rem; }
.plan ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 1.3rem; margin-bottom: 0.4rem; font-size: 0.88rem; color: var(--text-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan li b { color: var(--text); }
.plan .btn { margin-top: auto; }
.plan.is-destacado { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan-tag {
  position: absolute; top: 0.9rem; right: 0.9rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
}
.precios-nota { margin-top: 1rem; font-size: 0.83rem; color: var(--text-3); max-width: 78ch; }

/* Solo MexCloud: lo que trae cada plan (antes de la tabla) y la comparacion de frente */
.solo-incluye {
  margin-bottom: 1.4rem;
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.solo-incluye h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.solo-incluye .check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.6rem; }
.solo-incluye .check-list li { margin-bottom: 0; font-size: 0.9rem; }
.solo-incluye .check-list li b { color: var(--text); }
.solo-compara {
  margin-top: 1.2rem;
  padding: 0.9rem 1rem 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--accent-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 78ch;
}
.solo-compara p { margin: 0; }
.solo-compara b { color: var(--text); }
@media (max-width: 720px) { .solo-incluye .check-list { grid-template-columns: 1fr; } }
/* Tabla de almacenamiento */
.tabla-alm { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tabla-alm th, .tabla-alm td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.tabla-alm th { font-family: var(--font-head); font-size: 0.82rem; font-weight: 700; color: var(--text-3); background: var(--bg-alt); }
.tabla-alm td:last-child, .tabla-alm th:last-child { text-align: right; font-family: var(--font-head); font-weight: 800; color: var(--text); white-space: nowrap; }
.tabla-alm tbody tr:last-child td { border-bottom: 0; }

/* En movil la tabla de almacenamiento se apila: tamano y precio en una linea, para quien debajo */
@media (max-width: 620px) {
  .tabla-alm, .tabla-alm tbody { display: block; }
  .tabla-alm thead { display: none; }
  .tabla-alm tr { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
  .tabla-alm tbody tr:last-child { border-bottom: 0; }
  .tabla-alm td { display: block; padding: 0; border: 0; }
  .tabla-alm td:first-child { grid-row: 1; grid-column: 1; font-family: var(--font-head); font-weight: 700; color: var(--text); }
  .tabla-alm td:last-child { grid-row: 1; grid-column: 2; }
  .tabla-alm td:nth-child(2) { grid-row: 2; grid-column: 1 / -1; margin-top: 0.3rem; font-size: 0.9rem; color: var(--text-2); }
}

/* A tu medida: la calculadora */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}
.calc-col { padding: clamp(1.2rem, 2.4vw, 1.6rem); background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); }
.calc-col h3 { font-size: 1.05rem; margin-bottom: 0.9rem; }
.calc-fila {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.calc-fila:first-of-type { border-top: 0; }
.calc-fila b { display: block; color: var(--text); }
.calc-fila small { display: block; font-size: 0.78rem; color: var(--text-3); }
.calc-fila .precio-u { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); white-space: nowrap; }
.calc-fila input[type="number"], .calc select {
  width: 5.2rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.calc select { width: 100%; }
.calc-fila input:focus, .calc select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.calc-total { position: sticky; top: calc(var(--nav-h) + 1rem); }
.calc-total dl { margin: 0 0 1rem; }
.calc-total dl div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.calc-total dl div:first-child { border-top: 0; }
.calc-total dt { margin: 0; color: var(--text-2); }
.calc-total dd { margin: 0; font-family: var(--font-mono); color: var(--text); white-space: nowrap; }
.calc-total .gran {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-top: 0.9rem; border-top: 2px solid var(--accent);
}
.calc-total .gran span { font-weight: 700; color: var(--text); }
.calc-total .gran output { font-family: var(--font-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.calc-total .gran output small { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--text-3); margin-left: 0.25rem; }
.calc-total .btn { margin-top: 1.1rem; width: 100%; }
.calc-total p { margin-top: 0.8rem; font-size: 0.8rem; color: var(--text-3); }

@media (max-width: 980px) { .tipos, .calc { grid-template-columns: 1fr; } .calc-total { position: static; } }
@media (max-width: 620px) { .calc-fila { grid-template-columns: 1fr auto; } .calc-fila .precio-u { grid-column: 1 / -1; } }
