/* ═══════════════════════════════════════════════════════════════════
   Lagunbot Presupuestos · Design System v2 "Igara"
   Referencias: Linear (densidad sin fatiga, bordes de bajo contraste),
   Stripe (disciplina de métricas), Vercel (contraste tipográfico).
   Identidad: papel cálido + tinta off-black + naranja Lagunbot #FF751F
   usado con avaricia — solo acción primaria, estado activo y dato clave.
   ═══════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/fonts/SpaceGrotesk.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  /* Superficie clara (contenido) */
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #17161A;
  --ink-2: #605D57;
  --ink-3: #8F8B83;
  --line: #E7E4DD;
  --line-2: #F0EEE8;

  /* Lado oscuro (sidebar, hero) — off-black cálido, nunca #000 */
  --dark: #131216;
  --dark-2: #1B1A20;
  --dark-3: #232128;
  --dark-line: #2B2930;
  --dark-ink: #A9A59D;
  --dark-ink-2: #6E6B65;
  --dark-ink-strong: #F5F3EE;

  /* Acento — uno solo */
  --accent: #FF751F;
  --accent-700: #E25F08;
  --accent-soft: #FFF0E6;
  --accent-line: #FFD9C0;

  /* Semántica (semáforo del lead) */
  --verde: #1E9B52; --verde-soft: #E7F5ED; --verde-line: #BFE5CE;
  --ambar: #B27A18; --ambar-soft: #FBF2DE; --ambar-line: #EDD9AC;
  --rojo: #D14444; --rojo-soft: #FBEAEA; --rojo-line: #F0C4C4;

  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --r: 10px; --r-sm: 8px;
  --shadow-1: 0 1px 2px rgba(23, 22, 26, .05);
  --shadow-2: 0 6px 24px -8px rgba(23, 22, 26, .12);
  --focus-ring: 0 0 0 3px rgba(255, 117, 31, .28);
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; }
h2 { font-size: 19px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: inherit; }
img { max-width: 100%; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

/* ── Shell de la aplicación: sidebar oscura + contenido ───────────── */
.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; height: 100dvh;
  background: var(--dark);
  color: var(--dark-ink);
  display: flex; flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid var(--dark-line);
}
.sidebar .brand {
  display: block; padding: 6px 10px 22px; text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 16.5px;
  color: var(--dark-ink-strong); letter-spacing: -0.01em;
}
.sidebar .brand b { color: var(--accent); font-weight: 600; }
.sidebar .brand small { display: block; font-family: var(--font-ui); font-weight: 400; font-size: 11px; color: var(--dark-ink-2); letter-spacing: .02em; margin-top: 2px; }
.side-sec { margin: 14px 10px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--dark-ink-2); }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 7px;
  color: var(--dark-ink); text-decoration: none; font-size: 13.5px; font-weight: 500;
  border-left: 2px solid transparent;
  transition: background .14s ease, color .14s ease;
}
.side-link svg { width: 16px; height: 16px; flex: none; stroke: currentColor; opacity: .85; }
.side-link:hover { background: var(--dark-2); color: var(--dark-ink-strong); }
.side-link.activo { background: var(--dark-3); color: var(--dark-ink-strong); border-left-color: var(--accent); }
.side-link.activo svg { color: var(--accent); opacity: 1; }
.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--dark-line); font-size: 12px; color: var(--dark-ink-2); }
.side-foot .viendo {
  display: inline-block; margin-bottom: 8px; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 117, 31, .13); color: var(--accent);
  font-size: 11.5px; font-weight: 600; border: 1px solid rgba(255, 117, 31, .3);
}
.main { padding: 30px 40px 64px; max-width: 1160px; width: 100%; }
.main .container { padding: 0; max-width: none; }
.main > h1:first-child { margin-top: 2px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-2); font-size: 13.5px; margin-top: 4px; max-width: 62ch; }

/* ── Top rail público (landing / login) ───────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 10px;
  padding: 18px clamp(20px, 5vw, 56px);
  background: var(--dark); color: var(--dark-ink-strong);
}
.topbar .logo { font-family: var(--font-display); font-weight: 600; font-size: 17px; text-decoration: none; color: var(--dark-ink-strong); }
.topbar .logo b { color: var(--accent); font-weight: 600; }
.navlink { color: var(--dark-ink); text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 9px; white-space: nowrap; border-radius: 7px; transition: color .14s; }
.navlink:hover { color: var(--dark-ink-strong); }

/* ── Contenedores ─────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 24px;
  box-shadow: var(--shadow-1); margin-bottom: 18px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }

/* ── Botones ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 37px; padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  font: 500 13.5px/1 var(--font-ui); letter-spacing: .01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, transform .1s ease, box-shadow .14s ease;
}
.btn:hover { background: var(--surface-2); border-color: #D9D5CD; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(226, 95, 8, .35);
}
.btn-primary:hover { background: var(--accent-700); border-color: var(--accent-700); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-peligro { color: var(--rojo); border-color: var(--rojo-line); background: transparent; }
.btn-peligro:hover { background: var(--rojo-soft); border-color: var(--rojo); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Formularios ──────────────────────────────────────────────────── */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
label { font-size: 12.5px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.hint { font-size: 12px; color: var(--ink-3); }
input, select, textarea {
  font: 400 13.5px/1.45 var(--font-ui); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 9px 12px; width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:hover, select:hover, textarea:hover { border-color: #D3CFC6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; cursor: pointer; }
input[type="color"] { padding: 3px; height: 37px; width: 56px; cursor: pointer; }
textarea { min-height: 96px; resize: vertical; font-family: var(--font-mono); font-size: 12.5px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238F8B83' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer; }
.badge-clave {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* ── Tablas (filas densas, números tabulares) ─────────────────────── */
.tabla-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tabla th {
  text-align: left; padding: 10px 14px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--line);
  background: var(--surface-2); white-space: nowrap;
}
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.tabla tr:last-child td { border-bottom: none; }
.tabla tbody tr { transition: background .12s ease; }
.tabla tbody tr:hover { background: var(--surface-2); }
.tabla a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.tabla a:hover { color: var(--accent-700); border-bottom-color: var(--accent); }
.fila-grupo td { background: var(--surface-2); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 7px 14px; }

/* ── Chips y semáforo ─────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chip-verde { background: var(--verde-soft); color: var(--verde); border-color: var(--verde-line); }
.chip-amarillo { background: var(--ambar-soft); color: var(--ambar); border-color: var(--ambar-line); }
.chip-rojo { background: var(--rojo-soft); color: var(--rojo); border-color: var(--rojo-line); }
.chip-naranja { background: var(--accent-soft); color: var(--accent-700); border-color: var(--accent-line); }
.chip-gris { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.dot-pulso { animation: pulso 2.2s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── Stats (disciplina Stripe: pocos, grandes, tabulares) ─────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px 14px; box-shadow: var(--shadow-1);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.stat:hover { border-color: #D9D5CD; box-shadow: var(--shadow-2); }
.stat .valor { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .etiqueta { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.stat .detalle { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.stat-destacado { border-color: var(--accent-line); background: linear-gradient(180deg, #FFF9F5 0%, var(--surface) 70%); }
.stat-destacado .valor { color: var(--accent-700); }

/* ── Pasos del briefing ───────────────────────────────────────────── */
.pasos { display: flex; align-items: center; gap: 0; margin: 18px 0 26px; }
.paso {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line); background: var(--surface);
  color: var(--ink-3); font: 600 12.5px/1 var(--font-display);
  text-decoration: none; transition: border-color .14s, background .14s, color .14s, transform .1s;
}
.paso:hover { border-color: var(--accent); color: var(--accent-700); transform: scale(1.06); }
.paso-hecho { background: var(--verde-soft); border-color: var(--verde-line); color: var(--verde); }
.paso-activo { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.pasos .sep { width: 22px; height: 1.5px; background: var(--line); flex: none; }

/* ── Alertas y estados vacíos ─────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13.5px; border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 16px; }
.alert-ok { background: var(--verde-soft); border-color: var(--verde-line); color: #14663A; }
.alert-aviso { background: var(--ambar-soft); border-color: var(--ambar-line); color: #7A5310; }
.alert-accion { background: var(--accent-soft); border-color: var(--accent-line); color: #A34406; }
.empty { text-align: center; padding: 52px 24px; color: var(--ink-2); }
.empty svg { width: 34px; height: 34px; stroke: var(--ink-3); margin-bottom: 12px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; font-size: 13.5px; max-width: 44ch; }

/* ── Rango orientativo ────────────────────────────────────────────── */
.rango-box {
  background: var(--dark); color: var(--dark-ink-strong);
  border-radius: var(--r); padding: 22px 26px; margin: 18px 0;
  position: relative; overflow: hidden;
}
.rango-box::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); }
.rango-box .rango-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dark-ink); margin-bottom: 6px; }
.rango-box .rango-valor { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rango-box .rango-nota { font-size: 12px; color: var(--dark-ink); margin-top: 6px; }

/* ── Fila activa en tablas (p.ej. conversación seleccionada) ──────── */
.tabla tr.activa, .tabla tr.activa:hover { background: var(--accent-soft); }

/* ── Burbujas de conversación (transcripts de Voiceflow) ──────────── */
.chat-hist { display: flex; flex-direction: column; gap: 10px; max-height: 640px; overflow-y: auto; padding-right: 2px; }
.burbuja { max-width: 82%; padding: 9px 13px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.burbuja .hint { margin-top: 4px; }
.burbuja-usuario { align-self: flex-end; background: var(--accent-soft); color: var(--ink); border-bottom-right-radius: 4px; }
.burbuja-usuario .hint { text-align: right; }
.burbuja-asistente { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }

/* ── Chat embebido ────────────────────────────────────────────────── */
.chat-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2); overflow: hidden;
  height: min(680px, calc(100dvh - 210px)); min-height: 460px;
  display: flex; flex-direction: column;
}
.chat-frame-head {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.chat-frame-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.chat-frame-body { flex: 1; min-height: 0; position: relative; }
.chat-frame-body > div { height: 100%; }

/* ── Hero público (landing) ───────────────────────────────────────── */
.hero-dark {
  background: var(--dark); color: var(--dark-ink-strong);
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
  position: relative; overflow: hidden;
}
.hero-dark::after {
  content: ''; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(255, 117, 31, .17), transparent 70%);
  pointer-events: none;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--accent); }
.hero-dark h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; max-width: 15ch; }
.hero-dark .lede { color: var(--dark-ink); font-size: clamp(15px, 1.6vw, 17px); max-width: 52ch; margin: 18px 0 28px; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.kbd { font-family: var(--font-mono); font-size: 11px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 5px; padding: 2px 7px; color: var(--dark-ink); }

/* Franja de claim */
.claim-band { background: var(--surface); border-block: 1px solid var(--line); padding: 34px 0; }
.claim-band p { font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 22px); font-weight: 500; letter-spacing: -0.01em; margin: 0; max-width: none; }
.claim-band b { color: var(--accent-700); font-weight: 600; }

/* Rail de features (nada de 3 cards iguales) */
.rail { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px 34px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rail:last-child { border-bottom: none; }
.rail .rail-num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--accent-700); letter-spacing: .04em; }
.rail h3 { margin: 2px 0 6px; font-size: 17px; }
.rail p { color: var(--ink-2); margin: 0; }

/* ── Utilidades ───────────────────────────────────────────────────── */
.acciones { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sep-v { height: 20px; width: 1px; background: var(--line); }
.copiable { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 12px; max-width: 100%; }
.copiable code { font-family: var(--font-mono); font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
pre { background: var(--dark); color: var(--dark-ink-strong); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }
footer.pie { padding: 26px clamp(20px, 5vw, 56px); color: var(--ink-3); font-size: 12.5px; border-top: 1px solid var(--line); background: var(--surface); }

/* ── Tour de bienvenida ───────────────────────────────────────────── */
.tour-velo { position: fixed; inset: 0; z-index: 900; background: transparent; }
.tour-luz {
  position: fixed; z-index: 901; pointer-events: none;
  border-radius: 12px; border: 2px solid var(--accent);
  box-shadow: 0 0 0 9999px rgba(19, 18, 22, .55), 0 0 0 5px rgba(255, 117, 31, .25);
  transition: top .28s cubic-bezier(.22,.7,.3,1), left .28s cubic-bezier(.22,.7,.3,1), width .28s, height .28s;
}
.tour-tarjeta {
  position: fixed; z-index: 902; width: 360px; max-width: calc(100vw - 28px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-2), 0 24px 60px -12px rgba(19,18,22,.35);
  padding: 18px 20px 16px;
  animation: page-in .3s cubic-bezier(.22,.7,.3,1) both;
}
.tour-tarjeta h3 { font-size: 16px; margin: 2px 0 6px; }
.tour-tarjeta p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 12px; }
.tour-paso { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-700); }
.tour-dots { display: flex; gap: 5px; margin-bottom: 12px; }
.tour-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .2s; }
.tour-dot.on { background: var(--accent); }
.tour-acciones { display: flex; gap: 8px; align-items: center; }

/* ── Banner de prueba gratuita ────────────────────────────────────── */
.trial-banner {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--dark); color: var(--dark-ink-strong);
  border-radius: var(--r); padding: 12px 18px; margin-bottom: 20px;
  border-left: 3px solid var(--accent);
}
.trial-banner .num { font-family: var(--font-display); font-weight: 600; }
.trial-banner .muted { color: var(--dark-ink); }
.trial-banner a { color: var(--accent); font-weight: 600; }

/* ── Google Sign-In ───────────────────────────────────────────────── */
.o-linea { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-3); font-size: 12px; }
.o-linea::before, .o-linea::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ── Motion (invisible hasta que se nota) ─────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .main, .page-anim { animation: page-in .38s cubic-bezier(.22, .7, .3, 1) both; }
  @keyframes page-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; gap: 4px; padding: 10px 12px; }
  .sidebar .brand { padding: 4px 10px; white-space: nowrap; }
  .sidebar .brand small, .side-sec, .side-foot { display: none; }
  .side-nav { flex-direction: row; }
  .side-link { border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .side-link.activo { border-bottom-color: var(--accent); }
  .main { padding: 22px 18px 48px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hero-split { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; gap: 4px; }
}
