/* ============================================================
   llamoporti · «CENTRAL» — sistema de diseño
   La centralita del futuro: oscuro primero, señal volt, mono de
   panel de control. Misma app (la IA que llama por ti), otra piel.
   ============================================================ */

/* ============ TOKENS — oscuro (turno de noche, por defecto) ============ */
:root {
  --bg: #0C0F0A; --bg-2: #11150D;
  --panel: #161B10; --panel-2: #1C2214;
  --border: #2A3320; --border-strong: #3C472B;
  --ink: #EDF3DC; --muted: #9BA98B; --faint: #6B765E;
  --volt: #C6F24E; --volt-ink: #1A2403;
  --volt-soft: rgba(198,242,78,.10); --volt-glow: rgba(198,242,78,.35);
  --amber: #FFB224; --amber-ink: #2A1D00; --amber-soft: rgba(255,178,36,.12);
  --danger: #FF6B5C; --danger-soft: rgba(255,107,92,.12);
  --info: #6FC8E8; --info-soft: rgba(111,200,232,.10);
  --success: var(--volt);
  --font-display: 'Space Grotesk', 'Space Grotesque', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
  --glow-volt: 0 0 18px rgba(198,242,78,.25);
  --r-panel: 10px; --r-ctrl: 6px;
  --motion-fast: 150ms; --motion-base: 250ms; --motion-slow: 400ms;
  color-scheme: dark;
}

/* ============ TOKENS — claro (turno de día) ============ */
html.light {
  --bg: #F2F4E9; --bg-2: #EAEDDD;
  --panel: #FFFFFF; --panel-2: #F7F9EE;
  --border: #D9DFC6; --border-strong: #B4BE97;
  --ink: #171B0D; --muted: #5C6650; --faint: #8A937A;
  --volt: #5A740D; --volt-ink: #FFFFFF;
  --volt-soft: rgba(90,116,13,.10); --volt-glow: rgba(90,116,13,.2);
  --amber: #8A5800; --amber-ink: #FFFFFF; --amber-soft: rgba(138,88,0,.10);
  --danger: #C23A2C; --danger-soft: rgba(194,58,44,.10);
  --info: #1F6E8C; --info-soft: rgba(31,110,140,.10);
  --shadow: 0 8px 30px rgba(23,27,13,.12);
  --glow-volt: none;
  color-scheme: light;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-ui); font-size: 16px; line-height: 1.55;
  background: var(--bg); color: var(--ink);
  -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility;
  transition: background var(--motion-base), color var(--motion-base);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.08; text-wrap: balance; letter-spacing: -.01em; }
p { max-width: 68ch; }
a { color: var(--volt); text-decoration: none; }
button { font-family: var(--font-ui); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--volt); border-radius: 6px; }
::selection { background: var(--volt); color: var(--volt-ink); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.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; }

/* etiqueta de panel: mono, mayúsculas, tracking — el patrón «consola» */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.tag .led { flex: none; }
.tag.volt { color: var(--volt); }
.tag.amber { color: var(--amber); }

/* ============ LED ============ */
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); display: inline-block; }
.led.volt { background: var(--volt); box-shadow: 0 0 8px var(--volt-glow), 0 0 2px var(--volt); }
.led.amber { background: var(--amber); box-shadow: 0 0 8px rgba(255,178,36,.4); }
.led.danger { background: var(--danger); box-shadow: 0 0 8px rgba(255,107,92,.4); }
.led.info { background: var(--info); box-shadow: 0 0 8px rgba(111,200,232,.4); }
.led.blink { animation: ledBlink 1.1s steps(2, jump-none) infinite; }
@keyframes ledBlink { 50% { opacity: .25; } }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; border-radius: var(--r-ctrl); padding: 0 20px;
  min-height: 48px; cursor: pointer; border: 1px solid transparent;
  transition: background var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast), transform var(--motion-fast);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-volt { background: var(--volt); color: var(--volt-ink); }
.btn-volt:hover { box-shadow: var(--glow-volt); }
html.light .btn-volt:hover { background: #4A5F0A; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--volt); color: var(--volt); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ============ PANEL CONSOLA ============ */
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; }
.panel-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--panel-2);
}
.panel-bar .dots { display: inline-flex; gap: 5px; }
.panel-bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.panel-bar .dots i:first-child { background: var(--volt); box-shadow: 0 0 6px var(--volt-glow); }
.panel-bar .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel-bar .meta { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

/* ============ HEADER ============ */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.head-in { display: flex; align-items: center; gap: 12px; justify-content: space-between; max-width: 1160px; margin: 0 auto; padding: 10px 22px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.sig-mark { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 0 14px var(--volt-glow); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn, .menu-btn {
  height: 42px; border-radius: var(--r-ctrl); border: 1px solid var(--border-strong);
  background: var(--panel); color: var(--ink); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; font-size: 14px; font-weight: 600;
}
.theme-btn { width: 42px; }
.theme-btn:hover, .menu-btn:hover { border-color: var(--volt); color: var(--volt); }
.theme-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .ico-dark { display: none; }
html.light .theme-btn .ico-light { display: none; }
html.light .theme-btn .ico-dark { display: block; }
.menu-btn { display: none; gap: 8px; padding: 0 13px; }
.menu-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

nav.main { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
nav.main a {
  padding: 9px 12px; border-radius: var(--r-ctrl); font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
nav.main a:hover { background: var(--panel); color: var(--volt); }
nav.main a.cta { background: var(--volt); color: var(--volt-ink); font-weight: 600; }
nav.main a.cta:hover { box-shadow: var(--glow-volt); color: var(--volt-ink); }

@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  nav.main {
    position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--panel); padding: 74px 16px 18px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow); transform: translateY(-100%);
    transition: transform .28s cubic-bezier(.2,.7,.2,1); max-height: 100dvh; overflow-y: auto;
  }
  header.site nav.main.open { transform: translateY(0); }
  nav.main a { padding: 14px; font-size: 14px; min-height: 48px; display: flex; align-items: center; }
  nav.main a.cta { justify-content: center; margin-top: 6px; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); opacity: 0; visibility: hidden; transition: opacity .28s; z-index: 40; }
  .nav-scrim.open { opacity: 1; visibility: visible; }
}
@media (min-width: 921px) { .nav-scrim { display: none; } }

/* ============ HERO ============ */
.hero { padding: 54px 0 26px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.8vw, 60px); font-weight: 700; margin: 18px 0 16px; }
.hero h1 .v { color: var(--volt); text-shadow: 0 0 26px var(--volt-glow); }
.hero .lead { color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.trust-line li { display: flex; align-items: center; gap: 8px; list-style: none; }

.hero-fig { position: relative; }
.hero-fig img { border-radius: var(--r-panel); border: 1px solid var(--border-strong); }
.hero-fig::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-panel);
  box-shadow: 0 0 60px rgba(198,242,78,.12); pointer-events: none;
}
html.light .hero-fig::after { box-shadow: none; }
.hero-fig .fig-tag {
  position: absolute; left: 14px; bottom: 14px; background: rgba(12,15,10,.85);
  border: 1px solid var(--border-strong); border-radius: 6px; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #C6F24E;
}

/* separador de señal */
.sig-divider { display: block; width: 100%; height: 34px; margin: 8px 0 0; color: var(--volt); opacity: .55; }

/* ============ ASK (pide tu llamada) ============ */
.ask { padding: 30px 0 10px; }
.ask-card { padding: 0; }
.ask-body { padding: 20px; }
.ask-row { display: flex; gap: 10px; }
.ask-input {
  flex: 1; min-height: 54px; border: 1px solid var(--border-strong); border-radius: var(--r-ctrl);
  background: var(--bg-2); color: var(--ink); padding: 0 16px;
  font-size: 16px; font-family: var(--font-ui);
}
.ask-input::placeholder { color: var(--faint); }
.ask-input:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--volt); }
.ask-hint { margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--faint); }
.case-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip-case {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border-strong); background: transparent;
  color: var(--ink); font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color var(--motion-fast), color var(--motion-fast), background var(--motion-fast);
}
.chip-case:hover { border-color: var(--volt); color: var(--volt); }
.chip-case.on { background: var(--volt); border-color: var(--volt); color: var(--volt-ink); }
.chip-case.on:hover { box-shadow: var(--glow-volt); }

/* misión */
.mission { display: none; border-top: 1px solid var(--border); }
.mission.show { display: block; animation: slideUp var(--motion-slow) ease both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.mission-cols { display: grid; grid-template-columns: 1fr 1.4fr 1.2fr; }
.mcol { padding: 16px 18px; }
.mcol + .mcol { border-left: 1px solid var(--border); }
.mcol h4 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.mcol h4 svg { width: 13px; height: 13px; }
.mcol .dest-name { font-weight: 600; font-size: 15px; }
.mcol .dest-tel { font-family: var(--font-mono); font-size: 12.5px; color: var(--volt); margin-top: 3px; }
.mcol .obj { font-size: 14px; color: var(--ink); }
.limits-mini { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.limits-mini li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.limits-mini li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 6px; }
.limits-mini li.ok::before { background: var(--volt); box-shadow: 0 0 6px var(--volt-glow); }
.limits-mini li.ask-first::before { background: var(--amber); box-shadow: 0 0 6px rgba(255,178,36,.4); }
.mission-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding: 14px 18px; background: var(--panel-2);
}
.mission-note { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--info); }
.mission-note svg { width: 14px; height: 14px; flex: none; }

/* ============ SECCIONES ============ */
.sec { padding: 78px 0; }
.sec-head { max-width: 660px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(27px, 4vw, 38px); margin: 14px 0 10px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }

/* ============ DEMO (la central en directo) ============ */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 40px; align-items: start; }
.demo-side h2 { font-size: clamp(26px, 4vw, 36px); margin: 14px 0 10px; }
.demo-side > p { color: var(--muted); }
.demo-points { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 0; }
.demo-points li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.demo-points li:first-child { border-top: 0; }
.demo-points .n { font-family: var(--font-mono); font-size: 11px; color: var(--volt); padding-top: 3px; flex: none; }
.demo-points strong { display: block; font-size: 15px; }
.demo-points span { font-size: 13.5px; color: var(--muted); }
.endchips { margin-top: 22px; padding: 14px 16px; }
.endchips p { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.endchips .row { display: flex; flex-wrap: wrap; gap: 8px; }
.endchip {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px;
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px; color: var(--muted);
}
.endchip.bad { color: var(--danger); border-color: var(--danger); }

/* --- terminal (la consola de llamada) --- */
.terminal { max-width: 720px; position: relative; }
.term-body { padding: 18px; min-height: 480px; display: flex; flex-direction: column; gap: 14px; }
.term-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.term-chan {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12px; color: var(--volt); letter-spacing: .06em;
}
.term-dest { font-weight: 600; font-size: 15px; }
.term-id { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin-left: auto; }

/* idle */
.term-idle { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 20px; }
.term-idle img { width: 190px; border-radius: var(--r-panel); border: 1px solid var(--border-strong); }
.term-idle p { font-size: 14px; color: var(--muted); max-width: 40ch; }

/* timeline como traza de señal */
.tl { list-style: none; }
.tl li { position: relative; padding: 0 0 16px 34px; min-height: 28px; }
.tl li::before { content: ''; position: absolute; left: 8px; top: 20px; bottom: 0; width: 1px; background: var(--border-strong); }
.tl li:last-child::before { display: none; }
.tl li.future::before { background: repeating-linear-gradient(var(--border-strong) 0 3px, transparent 3px 6px); }
.tl .node {
  position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center;
}
.tl .node i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.tl .txt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl .txt strong { font-size: 14px; font-weight: 600; }
.tl .txt .time { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.tl li.future .txt strong { color: var(--faint); font-weight: 500; }
.tl li.done .node i { background: var(--volt); box-shadow: 0 0 6px var(--volt-glow); }
.tl li.done .txt strong { color: var(--muted); }
.tl li.now .node { border-color: var(--volt); }
.tl li.now .node i { background: var(--volt); box-shadow: 0 0 10px var(--volt-glow); animation: ledBlink 1.1s steps(2, jump-none) infinite; }
.tl li.now .txt strong { color: var(--volt); }
.tl li.now.warn .node { border-color: var(--amber); }
.tl li.now.warn .node i { background: var(--amber); box-shadow: 0 0 10px rgba(255,178,36,.5); animation: ledBlink 1.1s steps(2, jump-none) infinite; }
.tl li.now.warn .txt strong { color: var(--amber); }
.tl li.done.ok-end .node i { background: var(--volt); box-shadow: 0 0 8px var(--volt-glow); }
.tl-note {
  display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--volt); background: var(--volt-soft); border: 1px solid var(--border);
  border-radius: var(--r-ctrl); padding: 7px 11px; margin: -6px 0 12px 34px;
}
.tl-note svg { width: 13px; height: 13px; flex: none; }

/* misión en corto (terminal) */
.mission-short { border: 1px solid var(--border); border-radius: var(--r-ctrl); background: var(--bg-2); padding: 12px 14px; }
.mission-short h5 { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.mission-short ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.mission-short li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.4; align-items: flex-start; color: var(--muted); }
.mission-short svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.ms-cal { color: var(--volt); }
.ms-shield { color: var(--amber); }
.ms-lock { color: var(--faint); }

/* drawer intervención (panel ámbar) */
.term-scrim { position: absolute; inset: 0; background: rgba(6,8,4,.72); z-index: 5; opacity: 0; visibility: hidden; transition: opacity var(--motion-base); }
.term-scrim.show { opacity: 1; visibility: visible; }
.drawer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6;
  background: var(--panel); border-top: 1px solid var(--amber);
  box-shadow: 0 -14px 40px rgba(0,0,0,.5);
  padding: 16px 18px 18px; transform: translateY(103%);
  transition: transform var(--motion-slow) cubic-bezier(.2,.7,.2,1);
  max-height: 92%; overflow-y: auto;
}
.drawer.show { transform: translateY(0); }
.drawer .handle { width: 44px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 0 auto 14px; }
.iv-head { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 12px; }
.iv-head strong { display: block; font-size: 15px; }
.iv-count { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber); margin-top: 2px; display: block; }
.iv-body { font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.iv-body .fact { margin-bottom: 5px; color: var(--muted); }
.iv-body .fact strong { color: var(--ink); }
.iv-body .q { font-weight: 700; margin-top: 8px; }
.iv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.iv-btns .btn { min-height: 44px; font-size: 13px; }
.iv-more { display: flex; align-items: center; gap: 9px; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.iv-more button {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong);
  background: transparent; color: var(--ink); border-radius: 999px;
  padding: 6px 12px; font-family: var(--font-mono); font-size: 11px; cursor: pointer;
}
.iv-more button:hover { border-color: var(--amber); color: var(--amber); }
.iv-more button[disabled] { opacity: .4; cursor: not-allowed; }
.iv-more svg { width: 12px; height: 12px; }
.iv-default { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.iv-confirm { display: none; gap: 8px; align-items: center; margin-top: 10px; font-size: 12.5px; }
.iv-confirm.show { display: flex; flex-wrap: wrap; }
.iv-confirm .btn { min-height: 38px; font-size: 12.5px; }
.iv-own { display: none; margin-top: 10px; }
.iv-own.show { display: block; }
.iv-own textarea {
  width: 100%; min-height: 60px; border: 1px solid var(--border-strong); border-radius: var(--r-ctrl);
  background: var(--bg-2); color: var(--ink); padding: 10px 12px; font-size: 14px; font-family: var(--font-ui); resize: vertical;
}
.iv-own textarea:focus { outline: none; border-color: var(--volt); }
.iv-own .btn { margin-top: 8px; }

/* resultado */
.term-result { display: none; flex-direction: column; gap: 12px; }
.term-result.show { display: flex; animation: slideUp var(--motion-slow) ease both; }
.r-seal { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--volt); }
.r-seal svg { width: 18px; height: 18px; }
.r-seal.neutral { color: var(--muted); }
.r-seal.bad { color: var(--danger); }
.term-result h3 { font-size: 21px; }
.r-summary { border: 1px solid var(--border); border-left: 2px solid var(--volt); border-radius: var(--r-ctrl); background: var(--bg-2); padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.r-summary.neutral { border-left-color: var(--faint); }
.r-summary.bad { border-left-color: var(--danger); }
.r-kv { border: 1px solid var(--border); border-radius: var(--r-ctrl); overflow: hidden; }
.r-kv .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: 13px; background: var(--bg-2); }
.r-kv .row + .row { border-top: 1px solid var(--border); }
.r-kv dt { color: var(--faint); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.r-kv dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.r-next { display: flex; gap: 9px; align-items: flex-start; border: 1px dashed var(--border-strong); border-radius: var(--r-ctrl); padding: 10px 12px; font-size: 13px; color: var(--muted); }
.r-next svg { width: 14px; height: 14px; color: var(--volt); flex: none; margin-top: 2px; }
.r-details { border: 1px solid var(--border); border-radius: var(--r-ctrl); overflow: hidden; }
.r-details summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.r-details summary::-webkit-details-marker { display: none; }
.r-details summary svg { width: 13px; height: 13px; transition: transform var(--motion-base); }
.r-details[open] summary svg { transform: rotate(90deg); }
.r-details summary:hover { color: var(--volt); }
.r-transcript { border-top: 1px solid var(--border); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); }
.r-transcript .turn { font-size: 13px; line-height: 1.5; }
.r-transcript .who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--faint); display: block; margin-bottom: 1px; text-transform: uppercase; }
.r-transcript .turn.sys { border: 1px solid var(--amber); background: var(--amber-soft); border-radius: var(--r-ctrl); padding: 8px 10px; }
.r-transcript .turn.sys .who { color: var(--amber); }
.r-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.r-actions .btn { flex: 1; min-width: 140px; }

/* ============ PASOS / EJEMPLOS ============ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 22px 20px; position: relative; }
.step .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--volt); display: block; margin-bottom: 14px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step .s-ico { position: absolute; top: 20px; right: 20px; color: var(--border-strong); }
.step .s-ico svg { width: 24px; height: 24px; }

.ex-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ex-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ex-tag { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ex-quote { font-size: 15px; line-height: 1.55; }
.ex-quote::before { content: '« '; color: var(--volt); }
.ex-quote::after { content: ' »'; color: var(--volt); }
.ex-result { margin-top: auto; display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--border); padding-top: 12px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--volt); }
.ex-result svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* ============ ASÍ SUENA ============ */
.player { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.play-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--volt); background: transparent; color: var(--volt); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; transition: box-shadow var(--motion-fast), background var(--motion-fast); }
.play-btn:hover { box-shadow: var(--glow-volt); }
.play-btn.playing { background: var(--volt); color: var(--volt-ink); }
.play-btn svg { width: 21px; height: 21px; }
.play-btn .ico-pause { display: none; }
.play-btn.playing .ico-play { display: none; }
.play-btn.playing .ico-pause { display: block; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 42px; min-width: 0; }
.wave i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--border-strong); height: calc(var(--h) * 1%); }
.wave i.played { background: var(--volt); box-shadow: 0 0 5px var(--volt-glow); }
.p-time { font-family: var(--font-mono); font-size: 12px; color: var(--faint); white-space: nowrap; }
.script { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.script .turn { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: 14px; line-height: 1.55; opacity: .45; transition: opacity var(--motion-base); }
.script .turn.active, .script .turn.heard { opacity: 1; }
.script .who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.script .turn.sys { border: 1px solid var(--amber); background: var(--amber-soft); border-radius: var(--r-ctrl); padding: 10px 12px; grid-template-columns: 1fr; }
.script .turn.sys .who { color: var(--amber); }
.script .turn.sys .what em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.listen-note { display: flex; align-items: center; gap: 8px; padding: 0 18px 16px; font-family: var(--font-mono); font-size: 11px; color: var(--info); }
.listen-note svg { width: 14px; height: 14px; flex: none; }
.listen-result { display: flex; gap: 9px; align-items: flex-start; margin: 0 18px 18px; border: 1px solid var(--border-strong); border-radius: var(--r-ctrl); padding: 11px 13px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--volt); }
.listen-result svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }

/* ============ TIPOS ============ */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.cat-card.wide { grid-column: 1 / -1; }
.cat-top { display: flex; align-items: center; gap: 12px; }
.cat-ico { width: 40px; height: 40px; border-radius: var(--r-ctrl); border: 1px solid var(--border-strong); color: var(--volt); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cat-ico svg { width: 20px; height: 20px; }
.cat-top h3 { font-size: 18px; }
.badge-time { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.cat-card > p { font-size: 14px; color: var(--muted); }
.cat-examples { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.cat-examples li { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); }
.cat-examples li::before { content: '→'; color: var(--volt); flex: none; font-family: var(--font-mono); font-size: 12px; }
.safety { display: flex; gap: 9px; align-items: flex-start; border: 1px solid var(--info); background: var(--info-soft); border-radius: var(--r-ctrl); padding: 11px 13px; font-size: 13px; line-height: 1.5; color: var(--info); }
.safety svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.chars-strip { margin-top: 4px; border: 1px solid var(--border); border-radius: var(--r-ctrl); background: var(--bg-2); padding: 16px; }
.chars-strip h4 { font-size: 14px; margin-bottom: 4px; }
.chars-strip .helper { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.chars-row { display: flex; gap: 8px; flex-wrap: wrap; }
.char-chip {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong);
  background: transparent; border-radius: 999px; padding: 6px 12px 6px 7px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink);
  transition: border-color var(--motion-fast), color var(--motion-fast);
}
.char-chip:hover { border-color: var(--volt); color: var(--volt); }
.char-chip.on { border-color: var(--volt); color: var(--volt); background: var(--volt-soft); }
.char-chip .em { width: 24px; height: 24px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.char-chip .lvl { font-family: var(--font-mono); font-size: 10px; color: var(--faint); font-weight: 400; }
.char-preview { display: none; margin-top: 12px; border-left: 2px solid var(--volt); background: var(--volt-soft); border-radius: 0 var(--r-ctrl) var(--r-ctrl) 0; padding: 11px 13px; font-size: 13.5px; line-height: 1.5; }
.char-preview.show { display: block; animation: slideUp var(--motion-base) ease both; }
.char-preview .who { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--volt); display: block; margin-bottom: 3px; }

/* ============ CONFIANZA ============ */
.seals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seal { padding: 22px 20px; }
.seal .s-ico { width: 40px; height: 40px; border-radius: var(--r-ctrl); border: 1px solid var(--volt); color: var(--volt); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.seal .s-ico svg { width: 20px; height: 20px; }
.seal h3 { font-size: 17px; margin-bottom: 7px; }
.seal p { font-size: 13.5px; color: var(--muted); }
.guard-band { margin-top: 14px; display: grid; grid-template-columns: 1.2fr .8fr; }
.guard-band > div { padding: 22px; }
.guard-band h3 { font-size: 18px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.guard-band h3 svg { width: 19px; height: 19px; color: var(--volt); }
.guard-band p { font-size: 14px; color: var(--muted); }
.svc-limits { list-style: none; display: flex; flex-direction: column; gap: 0; border-left: 1px solid var(--border); align-self: stretch; }
.svc-limits li { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--muted); }
.svc-limits li:last-child { border-bottom: 0; }
.svc-limits svg { width: 15px; height: 15px; color: var(--volt); flex: none; }

/* ============ PLANES ============ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { padding: 24px 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.fav { border-color: var(--volt); box-shadow: var(--glow-volt); }
.plan .fav-badge { position: absolute; top: -11px; left: 22px; background: var(--volt); color: var(--volt-ink); font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; padding: 3px 10px; }
.plan h3 { font-size: 20px; }
.plan .claim { font-size: 13.5px; color: var(--muted); }
.plan .price { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--volt); }
.plan .price small { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--faint); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; margin: 4px 0 10px; }
.plan ul li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); }
.plan ul li::before { content: '▸'; color: var(--volt); }
.plan .btn { margin-top: auto; }
.plans-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); text-align: center; }
.plans-note svg { width: 14px; height: 14px; color: var(--info); flex: none; }

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 800px; }
.faq-list details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r-panel); overflow: hidden; }
.faq-list summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-size: 15px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 16px; height: 16px; color: var(--faint); flex: none; transition: transform var(--motion-base); }
.faq-list details[open] summary svg { transform: rotate(45deg); color: var(--volt); }
.faq-list summary:hover { color: var(--volt); }
.faq-list .a { padding: 0 18px 16px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ============ CTA FINAL ============ */
.final-card { position: relative; overflow: hidden; border: 1px solid var(--volt); border-radius: var(--r-panel); padding: 60px 30px; text-align: center; background: var(--panel); }
.final-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 110%, var(--volt-soft), transparent 70%); pointer-events: none; }
.final-card h2 { font-size: clamp(27px, 4.4vw, 42px); margin-bottom: 10px; position: relative; }
.final-card p { font-size: 16px; color: var(--muted); margin: 0 auto 26px; position: relative; }
.final-card .btn { position: relative; }
.final-card .trust-line { justify-content: center; margin-top: 24px; position: relative; }

/* ============ FOOTER ============ */
footer.site { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 30px; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 26px; padding: 44px 0 30px; }
.f-brand p { font-size: 13.5px; color: var(--muted); margin-top: 12px; max-width: 32ch; }
.f-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.f-col a { font-size: 13.5px; color: var(--muted); }
.f-col a:hover { color: var(--volt); }
.f-bottom { border-top: 1px solid var(--border); padding: 16px 0 24px; display: flex; flex-direction: column; gap: 8px; }
.f-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.f-ai-notice { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.f-ai-notice .led { flex: none; }

/* ============ TOAST ============ */
.toast-zone { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--panel-2); border: 1px solid var(--volt); color: var(--ink); border-radius: var(--r-ctrl); padding: 11px 16px; font-family: var(--font-mono); font-size: 12px; box-shadow: var(--shadow); animation: slideUp var(--motion-base) ease both; pointer-events: auto; }
.toast svg { width: 15px; height: 15px; color: var(--volt); }
.toast.out { transition: opacity var(--motion-base), transform var(--motion-base); opacity: 0; transform: translateY(8px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .steps, .seals, .ex-grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .guard-band { grid-template-columns: 1fr; }
  .svc-limits { border-left: 0; border-top: 1px solid var(--border); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: 60px 0; }
  .mission-cols { grid-template-columns: 1fr; }
  .mcol + .mcol { border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 480px) {
  .head-in { padding: 10px 14px; gap: 8px; }
  .nav-actions { gap: 8px; }
  .menu-btn { padding: 0 11px; }
  .ask-row { flex-direction: column; }
  .ask-row .btn { width: 100%; }
  .iv-btns { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .script .turn { grid-template-columns: 1fr; gap: 2px; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .led.blink, .tl li.now .node i { animation: none; }
  nav.main, .nav-scrim { transition: none; }
}
