/* ==========================================================================
   SatDefenders — sitio corporativo
   Lenguaje visual: "consola de operaciones" (ops console / HUD).
   Paleta y tokens alineados con la app (apps/mobile/src/theme.ts + c3-web),
   pero con tratamiento propio: reglas de un pixel, etiquetas monoespaciadas,
   esquineros tipo HUD y UI plana de instrumento.
   ========================================================================== */

:root {
  /* Fondo — casi negro azulado, con capas (idéntico a la app) */
  --bg: #0a0e13;
  --bg-elev: #111823;
  --bg-elev-2: #18212e;
  --bg-elev-3: #202b3a;
  --border: #26313f;
  --border-strong: #33404f;
  --border-soft: #1b232f;

  /* Texto */
  --text: #eef2f6;
  --text-dim: #98a4b3;
  --text-faint: #66717f;

  /* Acentos — azul = estructura / interacción ; naranja = señal "en vivo" */
  --accent: #3b82f6;
  --accent-2: #6aa5fb;
  --accent-soft: #1d3a5f;
  --ok: #22c55e;
  --warn: #f59e0b;
  --crit: #ef4444;
  --crit-glow: rgba(239, 68, 68, 0.4);
  --purple: #a78bfa;
  --brand: #e8842a;
  --brand-2: #ffa14d;

  /* Radios — deliberadamente contenidos (nada "pill" salvo indicadores) */
  --r-xs: 3px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 40px;
  --sp-7: 64px;

  --maxw: 1220px;
  --nav-h: 64px;

  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', 'Cascadia Mono', 'Segoe UI Mono', 'JetBrains Mono', Consolas, monospace;
}

/* ------------------------------ Reset ------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Trama de plano técnico, muy tenue, sobre todo el documento */
  background-image:
    linear-gradient(rgba(38, 49, 63, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 49, 63, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}

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

a { color: inherit; text-decoration: none; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.025em; }

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

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

/* Utilidad monoespaciada */
.mono { font-family: var(--mono); }

/* ------------------------------ Layout ---------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

.section {
  padding-block: clamp(56px, 8vw, 104px);
  position: relative;
  border-top: 1px solid var(--border);
}

.section::before {
  /* marca de esquina tipo HUD arriba-izquierda de cada módulo */
  content: '';
  position: absolute;
  top: -1px;
  left: clamp(20px, 5vw, 44px);
  width: 26px;
  height: 3px;
  background: var(--accent);
}

.section--tight { padding-block: clamp(44px, 6vw, 76px); }

/* Encabezado de sección: [ index ] · ETIQUETA ───────────── */
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 22px;
}

.kicker::before {
  content: attr(data-idx);
  color: var(--brand);
  border: 1px solid var(--border-strong);
  padding: 3px 7px;
  border-radius: var(--r-xs);
  letter-spacing: 0.08em;
  color: var(--brand);
}

.kicker::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head h2 {
  font-size: clamp(27px, 4.2vw, 44px);
}

.section-head p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: clamp(15px, 1.6vw, 17.5px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .kicker { justify-content: center; }
.section-head--center .kicker::after,
.section-head--center .kicker::before { display: none; }
.section-head--center .kicker { letter-spacing: 0.3em; }

/* ------------------------------ Botones -------------------------------- */
.btn {
  --bg-btn: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-btn);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  cursor: pointer;
  position: relative;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, color 0.14s ease;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* esquinero HUD en el botón principal */
.btn--primary::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--bg-elev-2); }

.btn--wa {
  background: transparent;
  border-color: #2a7d4f;
  color: #4cc47e;
}
.btn--wa:hover { background: rgba(31, 143, 78, 0.12); border-color: #3aa768; color: #6bd699; }

.btn--lg { padding: 15px 26px; font-size: 15px; }
.btn--block { width: 100%; }

/* ------------------------------ Navbar --------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 14, 19, 0.85);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  border-bottom-color: var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.brand img { width: 28px; height: 28px; }
.brand .accent { color: var(--accent-2); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--text); background: var(--bg-elev-2); }

.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ok);
  padding: 5px 9px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: var(--r-xs);
}

.nav-status .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev-2);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 17px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav.is-open .nav-toggle span { background: transparent; }
.nav.is-open .nav-toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* ------------------------------ Hero ---------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h) + 44px);
  padding-bottom: 72px;
  overflow: hidden;
  border-top: none;
}

#starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 82% 6%, rgba(59, 130, 246, 0.1), transparent 62%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  width: 100%;
}

/* etiqueta mono del hero: // RASTREO · SEGURIDAD · EMERGENCIAS */
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero-tag::before { content: '//'; color: var(--brand); font-weight: 700; }

.hero-copy h1 {
  font-size: clamp(33px, 5.6vw, 58px);
  margin-top: 20px;
  letter-spacing: -0.035em;
}

/* frase clave: naranja plano + subrayado de marcador (sin degradado recortado) */
.hero-copy h1 .grad {
  color: var(--brand);
  box-shadow: inset 0 -0.14em 0 rgba(232, 132, 42, 0.32);
}

.hero-copy .lead {
  margin-top: 20px;
  font-size: clamp(15.5px, 1.9vw, 18px);
  color: var(--text-dim);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* franja de lecturas tipo instrumento */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: rgba(17, 24, 35, 0.5);
}

.hero-stats .stat {
  padding: 16px 18px;
  border-left: 1px solid var(--border);
}
.hero-stats .stat:first-child { border-left: none; }

.hero-stats .stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(20px, 2.7vw, 27px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero-stats .stat span {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.35;
  display: block;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Consola C3 */
.c3-card {
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  border-radius: var(--r-md);
  overflow: hidden;
}

/* esquineros HUD */
.c3-card::before,
.c3-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 3;
  pointer-events: none;
}
.c3-card::before { top: 6px; left: 6px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.c3-card::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.c3-card__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.c3-card__bar .rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--crit);
  font-weight: 700;
}
.c3-card__bar .rec::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--crit);
  animation: pulse-dot 1.3s infinite;
}
.c3-card__bar .id { color: var(--text-dim); }
.c3-card__bar .clk { margin-left: auto; color: var(--accent-2); font-variant-numeric: tabular-nums; }

.c3-card__body { padding: 14px; display: grid; gap: 12px; }

.c3-map {
  position: relative;
  height: 170px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background:
    linear-gradient(rgba(59,130,246,0.07) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, rgba(59,130,246,0.07) 1px, transparent 1px) 0 0 / 22px 100%,
    radial-gradient(circle at 50% 58%, rgba(59,130,246,0.13), transparent 70%),
    #0b1119;
  overflow: hidden;
}

.c3-map .ping {
  position: absolute;
  width: 10px; height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55);
  animation: ping 2.6s ease-out infinite;
}
.c3-map .ping.crit { background: var(--brand); animation-duration: 1.5s; }
.c3-map .ping.ok { background: var(--ok); }

@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.c3-map .sweep {
  position: absolute;
  inset: 0;
  background: conic-gradient(from 0deg at 50% 58%, rgba(59,130,246,0.2), transparent 26%);
  animation: sweep 4s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.c3-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
}
.c3-row .k { color: var(--text-faint); letter-spacing: 0.04em; }
.c3-row .v { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

.c3-feed {
  display: grid;
  gap: 5px;
  max-height: 116px;
  overflow: hidden;
  padding-top: 2px;
}
.c3-feed .line {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(6px);
  animation: feed-in 0.4s ease forwards;
}
.c3-feed .line .t { color: var(--text-faint); }
.c3-feed .line.crit { color: var(--brand-2); }
.c3-feed .line.ok { color: #5ce08a; }
@keyframes feed-in { to { opacity: 1; transform: none; } }

.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tag.ok { color: var(--ok); border-color: rgba(34,197,94,0.4); }
.tag.crit { color: var(--crit); border-color: rgba(239,68,68,0.45); }
.tag.warn { color: var(--warn); border-color: rgba(245,158,11,0.4); }

/* ------------------------------ Rejilla de tarjetas ------------------ */
.grid { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* tarjetas como celdas de un panel: separadas por líneas de 1px, sin sombra */
.card {
  background: var(--bg-elev);
  padding: 26px 24px;
  position: relative;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  background: var(--bg-elev-2);
  box-shadow: inset 3px 0 0 var(--accent);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card__icon.brand { border-color: rgba(232,132,42,0.4); color: var(--brand); }

.card h3 { font-size: 17px; }
.card p { margin-top: 8px; color: var(--text-dim); font-size: 14px; }

.card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.card__num::before { content: '#'; color: var(--border-strong); }

/* ------------------------------ Flujo (cómo funciona) --------------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.flow__node {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px 22px;
  text-align: center;
  position: relative;
}
.flow__node .step {
  position: absolute;
  top: 10px; left: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.1em;
}
.flow__node .ic {
  width: 50px; height: 50px;
  margin: 6px auto 14px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
}
.flow__node .ic svg { width: 24px; height: 24px; }
.flow__node h4 { font-size: 15.5px; }
.flow__node p { margin-top: 6px; font-size: 13px; color: var(--text-dim); }
.flow__node small { display: block; margin-top: 10px; font-size: 11px; color: var(--text-faint); font-family: var(--mono); letter-spacing: 0.03em; }

.flow__link {
  align-self: center;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.flow__link svg { width: 30px; height: 30px; }
.flow__link .dash {
  stroke-dasharray: 3 4;
  animation: march 1s linear infinite;
}
@keyframes march { to { stroke-dashoffset: -7; } }

/* ------------------------------ Barras de capacidad ---------------- */
.bars { display: grid; gap: 16px; }
.bar__top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 7px;
}
.bar__top b { font-weight: 600; }
.bar__top span { color: var(--text-faint); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.bar__track {
  height: 6px;
  border-radius: var(--r-xs);
  background: var(--bg-elev-3);
  overflow: hidden;
  /* muescas cada 10% */
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), rgba(255,255,255,0.05) calc(10% - 1px) 10%);
}
.bar__fill {
  height: 100%;
  border-radius: var(--r-xs);
  background: var(--accent);
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.spec-strip .chip {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 7px 12px;
  border-radius: var(--r-xs);
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.spec-strip .chip b { color: var(--text); font-weight: 600; }

/* ------------------------------ Seguridad --------------------------- */
.sec-band {
  background:
    radial-gradient(70% 100% at 100% 0%, rgba(232,132,42,0.05), transparent 60%),
    var(--bg);
}

.sec-card {
  background: var(--bg-elev);
  padding: 22px;
  display: flex;
  gap: 14px;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.sec-card:hover { background: var(--bg-elev-2); box-shadow: inset 3px 0 0 var(--ok); }
.sec-card .ic {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  border: 1px solid rgba(34,197,94,0.32);
  color: var(--ok);
}
.sec-card .ic svg { width: 20px; height: 20px; }
.sec-card h3 { font-size: 15.5px; }
.sec-card p { margin-top: 6px; font-size: 13.5px; color: var(--text-dim); }

/* ------------------------------ C3 destacado ---------------------- */
.c3-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
}
.c3-feature__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.c3-feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.06) brightness(0.66);
}
.c3-feature__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,14,19,0.1), rgba(10,14,19,0.78)),
              linear-gradient(90deg, rgba(59,130,246,0.12), transparent 55%);
}
/* esquineros HUD */
.c3-feature__media::before {
  content: '';
  position: absolute;
  inset: 8px;
  z-index: 2;
  border: 1px solid rgba(106, 165, 251, 0.3);
  pointer-events: none;
}
.c3-feature__media .badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 7px 11px;
  border-radius: var(--r-xs);
  background: rgba(10, 14, 19, 0.72);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(5px);
}
.c3-feature__media .badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  animation: pulse-dot 1.4s infinite;
}

.check-list { list-style: none; display: grid; gap: 15px; margin-top: 8px; }
.check-list li { display: flex; gap: 12px; }
.check-list li b { display: block; font-size: 14.5px; margin-bottom: 3px; }
.check-list li p { color: var(--text-dim); font-size: 13.5px; }
.check-list li .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: var(--r-xs);
  display: grid; place-items: center;
  border: 1px solid var(--accent-soft);
  color: var(--accent-2);
  margin-top: 2px;
}
.check-list li .tick svg { width: 13px; height: 13px; }

/* ------------------------------ Planes / entornos --------------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  position: relative;
}
.plan.is-featured {
  border-color: var(--accent);
}
.plan.is-featured::before,
.plan.is-featured::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
}
.plan.is-featured::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.plan.is-featured::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }

.plan__badge {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.plan.is-featured .plan__badge { color: var(--brand); }
.plan h3 { font-size: 19px; }
.plan > p { color: var(--text-dim); font-size: 13.5px; min-height: 40px; }
.plan ul { list-style: none; display: grid; gap: 10px; }
.plan ul li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-dim); }
.plan ul li svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ------------------------------ Timeline ------------------------- */
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 116px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-strong);
}
.tl-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 34px;
  padding: 15px 0;
  position: relative;
}
.tl-item .year {
  text-align: right;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--accent-2);
  padding-top: 2px;
  letter-spacing: 0.02em;
}
.tl-item.now .year { color: var(--brand); }
.tl-item .dot {
  position: absolute;
  left: 111px;
  top: 21px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.tl-item.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(232,132,42,0.15); }
.tl-item .body b { font-size: 15px; }
.tl-item .body p { color: var(--text-dim); font-size: 13.5px; margin-top: 2px; }

/* ------------------------------ Testimonios --------------------- */
.tst-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.tst {
  background: var(--bg-elev);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tst__quote { font-size: 14.5px; color: var(--text); line-height: 1.62; }
.tst__quote::before { content: '['; color: var(--brand); font-family: var(--mono); margin-right: 3px; }
.tst__quote::after { content: ']'; color: var(--brand); font-family: var(--mono); margin-left: 3px; }
.tst__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tst__who img { width: 40px; height: 40px; border-radius: var(--r-xs); object-fit: cover; border: 1px solid var(--border-strong); }
.tst__who b { font-size: 13.5px; display: block; }
.tst__who span { font-size: 12px; color: var(--text-faint); }

/* ------------------------------ App showcase ------------------- */
.app-show {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.phone {
  justify-self: center;
  width: min(270px, 76vw);
  aspect-ratio: 9 / 19;
  border-radius: 30px;
  border: 9px solid #0e151e;
  background: #0c1119;
  box-shadow: 0 0 0 1px var(--border-strong);
  position: relative;
  overflow: hidden;
  padding: 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.phone::before {
  content: '';
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 20px;
  border-radius: var(--r-pill);
  background: #0e151e;
}
.phone .p-head {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
}
.phone .p-head img { width: 18px; height: 18px; }
.phone .p-card {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-elev-2);
  padding: 11px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.phone .p-card .r { display: flex; justify-content: space-between; margin-bottom: 6px; }
.phone .p-card .r:last-child { margin-bottom: 0; }
.phone .p-card .r b { color: var(--text); font-variant-numeric: tabular-nums; }
.phone .p-panic {
  margin-top: auto;
  border-radius: var(--r-sm);
  background: var(--crit);
  color: #fff;
  text-align: center;
  padding: 15px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  animation: pulse-panic 2s infinite;
}
@keyframes pulse-panic {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
}
.app-show .feat-list { list-style: none; display: grid; gap: 13px; margin-top: 18px; }
.app-show .feat-list li { display: flex; gap: 12px; font-size: 14px; color: var(--text-dim); }
.app-show .feat-list li svg { flex-shrink: 0; width: 19px; height: 19px; color: var(--accent-2); margin-top: 2px; }

/* ------------------------------ CTA / Contacto ---------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 52px);
}
.contact__info .lines { display: grid; gap: 14px; margin-top: 24px; }
.contact__info .lines a,
.contact__info .lines div {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14.5px;
  color: var(--text-dim);
  font-family: var(--mono);
}
.contact__info .lines .ic {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--accent-2);
  flex-shrink: 0;
}
.contact__info .lines .ic svg { width: 17px; height: 17px; }
.contact__info .lines a:hover { color: var(--text); }

.form {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 26px;
  display: grid;
  gap: 13px;
}
.form .field { display: grid; gap: 6px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form label { font-family: var(--mono); font-size: 11px; color: var(--text-faint); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.form input,
.form textarea,
.form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  padding: 11px 13px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}
.form textarea { min-height: 104px; resize: vertical; }
.form .hint { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); }
.form__ok {
  display: none;
  padding: 11px 13px;
  border-radius: var(--r-xs);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #7ee2a3;
  font-size: 13px;
}
.form.is-sent .form__ok { display: block; }

/* ------------------------------ Footer ------------------------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding-block: 52px 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand p { margin-top: 14px; color: var(--text-dim); font-size: 13px; max-width: 34ch; }
.footer h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-faint); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { font-size: 13.5px; color: var(--text-dim); }
.footer ul a:hover { color: var(--text); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}
.footer__bottom a { color: var(--text-faint); }
.footer__bottom a:hover { color: var(--text-dim); }

@media (max-width: 620px) {
  .footer__bottom { flex-direction: column; gap: 8px; padding-bottom: 56px; }
}

/* ------------------------------ WhatsApp FAB ------------------ */
.wa-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: #1f8f4e;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px -10px rgba(31, 143, 78, 0.7);
  transition: transform 0.16s ease;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 26px; height: 26px; color: #fff; }

/* ------------------------------ Reveal anim ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.07s; }
.reveal[data-delay="2"] { transition-delay: 0.14s; }
.reveal[data-delay="3"] { transition-delay: 0.21s; }
.reveal[data-delay="4"] { transition-delay: 0.28s; }

/* ------------------------------ Páginas legales ------------------ */
.doc {
  max-width: 800px;
  margin-inline: auto;
  padding-top: calc(var(--nav-h) + 52px);
  padding-bottom: 88px;
}
.doc a.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 26px;
}
.doc a.back:hover { color: var(--text); }
.doc h1 { font-size: clamp(27px, 5vw, 38px); }
.doc .updated { color: var(--text-faint); font-size: 12.5px; margin-top: 10px; font-family: var(--mono); }
.doc h2 { font-size: 18px; margin-top: 38px; }
.doc p, .doc li { color: var(--text-dim); font-size: 14.5px; margin-top: 12px; line-height: 1.7; }
.doc ul { padding-left: 20px; }
.doc li { margin-top: 8px; }
.doc strong { color: var(--text); }

/* ------------------------------ Responsive ------------------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .c3-card { max-width: 460px; }
  .c3-feature { grid-template-columns: 1fr; }
  .app-show { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow__link { transform: rotate(90deg); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta .btn--primary { display: none; }
  .nav-toggle { display: grid; }
  .nav.is-open { background: rgba(10, 14, 19, 0.97); backdrop-filter: blur(12px); }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 14, 19, 0.98);
  }
  .nav.is-open .nav-links a { padding: 12px 14px; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .tst-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats .stat:nth-child(3) { border-left: none; }
  .hero-stats .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .form .row2 { grid-template-columns: 1fr; }
  .timeline::before { left: 5px; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .tl-item .year { text-align: left; }
  .tl-item .dot { left: 0; top: 6px; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@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; }
}
