/* ============================================================================
   SERVITES — PROTOTIPO (Fase 1 + Fase 3)
   No define un solo color, sombra ni curva propia: todo sale de
   design-system.css. Si algo aquí necesita un valor nuevo, el valor
   pertenece al design system, no a este archivo.
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--surface-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ============================================================================
   BOTONES
   Tres variantes, tres tamaños. Si aparece una cuarta variante, casi siempre
   significa que la jerarquía de la página está mal, no que falte un botón.
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  white-space: nowrap;
  transition:
    background-color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-md); }
.btn-lg svg { width: 18px; height: 18px; }

.btn-primary {
  background: var(--brand);
  color: #FFF;
  box-shadow: var(--elev-2);
}

/* El glow sólo aparece en hover: un CTA que brilla en reposo pierde
   la capacidad de señalar que algo pasó. */
.btn-primary:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--glow-brand);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--elev-1);
}

.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid transparent;
}

.btn-ghost:hover { color: var(--text); border-color: var(--border); }

/* ============================================================================
   BARRA DE ANUNCIO
   ============================================================================ */
.announce {
  position: relative;
  z-index: var(--z-header);
  background: linear-gradient(90deg, var(--brand-darker), var(--brand-dark) 45%, var(--brand) 100%);
  color: #FFF;
}

.announce-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  min-height: var(--announce-h);
  padding: var(--space-2) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
}

.announce-tag {
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .18);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.announce p { margin: 0; }
.announce strong { font-weight: var(--weight-bold); }
.announce-sep { opacity: .5; margin-inline: var(--space-1); }
.announce-fine { opacity: .8; }

.announce-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--weight-bold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: gap var(--transition);
}

.announce-cta svg { width: 14px; height: 14px; }
.announce-cta:hover { gap: var(--space-2); }

.announce-close {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  opacity: .7;
  transition: opacity var(--transition), background-color var(--transition);
}

.announce-close svg { width: 16px; height: 16px; }
.announce-close:hover { opacity: 1; background: rgba(255, 255, 255, .15); }

@media (max-width: 720px) {
  .announce-fine, .announce-sep { display: none; }
  .announce-inner { padding-right: var(--space-10); justify-content: flex-start; text-align: left; }
  /* El texto ocupa toda la línea y envuelve, en vez de desbordar y recortarse. */
  .announce p { flex: 1 1 100%; min-width: 0; }
}

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--nav-h);
  background: rgba(13, 8, 3, .80);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-brand);
  font-weight: var(--weight-black);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
}

.logo svg { width: 22px; height: 22px; color: var(--brand); }

.nav { display: none; gap: var(--space-8); }

.nav a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  transition: color var(--transition);
}

/* Subrayado que crece desde el centro: microinteracción de Fase 5. */
.nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--brand);
  transform: translateX(-50%);
  transition: width var(--transition);
}

.nav a:hover { color: var(--text); }
.nav a:hover::after { width: 100%; }

.header-ctas { display: flex; align-items: center; gap: var(--space-3); }

@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 560px) { .header-ctas .btn-ghost { display: none; } }

/* ============================================================================
   FASE 1 — HERO
   ============================================================================ */
.hero {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) var(--section-y);
}

.hero-grid {
  display: grid;
  /* minmax(0,1fr), no `auto`: sin esto el track crece al max-content del
     marco del dashboard y desborda el viewport en móvil. */
  grid-template-columns: minmax(0, 1fr);
  gap: var(--section-gap);
  align-items: center;
}

/* Deja que cualquier hijo del hero encoja por debajo de su contenido. */
.hero-copy,
.hero-visual { min-width: 0; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--space-16); }
}

.kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.hero-copy h1 {
  margin-top: var(--space-5);
  font-size: var(--display-xl);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tighter);
}

.accent { position: relative; color: var(--brand); white-space: nowrap; }

/* El trazo se dibuja solo al entrar: firma visual sin costo de JS. */
.accent-underline {
  position: absolute;
  left: 0;
  bottom: -.12em;
  width: 100%;
  height: .16em;
  color: var(--brand);
  opacity: .55;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: drawUnderline 1.2s var(--ease-out) .6s forwards;
}

@keyframes drawUnderline { to { stroke-dashoffset: 0; } }

.lead {
  max-width: 52ch;
  margin-top: var(--space-6);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero-fine {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-light);
}

/* ── Prueba social ─────────────────────────────────────────────────────── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-6);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) { .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.trust-item dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
}

.trust-item dt strong { color: var(--brand); font-weight: inherit; }

.trust-item dd {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--text-light);
  line-height: 1.4;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--success);
  flex-shrink: 0;
  animation: livePulse 2s var(--ease-out) infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ============================================================================
   MARCO DE APLICACIÓN  (el "dashboard vivo")
   El chrome es código: siempre nítido, escala en cualquier pantalla y se
   anima. Sólo `.app-canvas` está pensado para alojar capturas reales.
   ============================================================================ */
.hero-visual { position: relative; }

/* El marco va MÁS CLARO que la página. Una captura de pantalla emite luz;
   si el "monitor" es igual de oscuro que el fondo, se lee como un agujero
   en la página en vez de como una pantalla encendida. */
.app-frame {
  position: relative;
  max-width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--elev-4);
}

.app-frame-hero { transform-origin: center; }

.app-frame-showcase { margin-top: var(--section-gap); }

.app-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface-3);
  border-bottom: 1px solid var(--border-subtle);
}

.chrome-dots { display: flex; gap: 6px; }

.chrome-dots i {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--surface-4);
}

.chrome-dots i:first-child { background: #FF5F57; }
.chrome-dots i:nth-child(2) { background: #FEBC2E; }
.chrome-dots i:nth-child(3) { background: #28C840; }

.chrome-url {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-2xs);
  color: var(--text-light);
  text-align: center;
}

.app-body { display: flex; min-height: 280px; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.app-sidebar {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--surface-1);
  border-right: 1px solid var(--border-subtle);
}

/* En el hero la barra es decorativa: sólo insinúa que hay navegación. */
.app-sidebar-compact { gap: var(--space-3); padding: var(--space-4) var(--space-3); }

.rail-item {
  width: 22px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}

.rail-item.is-active { background: var(--brand); width: 26px; }

/* En el showcase la barra es la navegación real. */
.rail-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-light);
  text-align: left;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}

.rail-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.rail-btn span { display: none; }
.rail-btn:hover { background: var(--surface-2); color: var(--text-muted); }

.rail-btn.is-active {
  background: var(--brand-tint);
  color: var(--brand);
  box-shadow: inset 2px 0 0 var(--brand);
}

@media (min-width: 768px) {
  .rail-btn span { display: inline; }
  .app-frame-showcase .app-sidebar { min-width: 190px; padding: var(--space-4); }
}

/* ── Lienzo ────────────────────────────────────────────────────────────── */
.app-canvas {
  flex: 1;
  min-width: 0;
  padding: var(--space-5);
  background: var(--surface-2);
}

.app-canvas-showcase { padding: var(--space-5) var(--space-6); }

@media (min-width: 768px) { .app-canvas-showcase { min-height: 420px; } }

/* ============================================================================
   PANELES  (uno por módulo)
   ============================================================================ */
.panel { animation: panelIn var(--dur-slow) var(--ease-out); }
.panel[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.panel-head h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  color: var(--text-light);
  white-space: nowrap;
}

.panel-chip.is-success { background: var(--success-tint); border-color: transparent; color: var(--success); }
.panel-chip.is-warning { background: var(--warning-tint); border-color: transparent; color: var(--warning); }

/* ── KPIs ──────────────────────────────────────────────────────────────── */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.kpi {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
}

.kpi-label {
  display: block;
  font-size: var(--text-2xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.kpi-value {
  display: block;
  margin-top: 2px;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

.kpi-delta { display: block; font-size: var(--text-2xs); font-weight: var(--weight-semibold); }
.kpi-delta.is-up { color: var(--success); }
.kpi-delta.is-down { color: var(--text-light); }

@media (max-width: 560px) {
  .kpi-row { grid-template-columns: 1fr; }
  .kpi-row .kpi:nth-child(n+3) { display: none; }
}

/* ── Gráfico de barras ─────────────────────────────────────────────────── */
.chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 120px;
  padding-top: var(--space-3);
  border-bottom: 1px solid var(--border);
}

/* Alto extra + hueco inferior para las etiquetas de hora, que viven fuera
   de la barra (bottom: -20px). */
.chart-tall { height: 190px; margin-bottom: var(--space-5); }

/* Barras en blanco translúcido, no en un hex de superficie: así mantienen
   contraste sobre cualquier nivel de elevación sin recalcular el color. */
.bar {
  position: relative;
  flex: 1;
  height: var(--h);
  min-height: 4px;
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  background: linear-gradient(180deg, rgba(241, 237, 236, .22), rgba(241, 237, 236, .08));
  transform-origin: bottom;
  animation: barGrow var(--dur-slower) var(--ease-out) backwards;
}

.bar.is-peak {
  background: linear-gradient(180deg, var(--brand-light), var(--brand-dark));
  box-shadow: 0 0 24px -4px var(--brand-glow);
}

.bar span {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-2xs);
  color: var(--text-faint);
}

.bar:nth-child(1) { animation-delay: 40ms; }
.bar:nth-child(2) { animation-delay: 90ms; }
.bar:nth-child(3) { animation-delay: 140ms; }
.bar:nth-child(4) { animation-delay: 190ms; }
.bar:nth-child(5) { animation-delay: 240ms; }
.bar:nth-child(6) { animation-delay: 290ms; }
.bar:nth-child(7) { animation-delay: 340ms; }
.bar:nth-child(8) { animation-delay: 390ms; }

@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── Tarjetas flotantes ────────────────────────────────────────────────── */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--surface-3);
  border: 1px solid var(--border);
  box-shadow: var(--elev-3);
  animation: floatY 6s var(--ease-in-out) infinite;
}

/* Las tarjetas montan el BORDE del marco, nunca su contenido. Si tapan un
   KPI o el gráfico, están escondiendo justo el producto que vinieron a
   mostrar. */
.float-card-1 { top: -6%; left: -11%; animation-delay: 0s; }
.float-card-2 { bottom: 24%; left: -13%; animation-delay: 1.2s; }
.float-card-3 { bottom: -9%; right: -10%; animation-delay: 2.4s; }

/* Anima `translate`, no `transform`: motion.js escribe `transform` para el
   parallax, y una animación CSS gana siempre sobre un estilo inline. Como
   `translate` es una propiedad independiente, ambos movimientos se componen
   en vez de pisarse. */
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

.float-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.float-icon svg { width: 16px; height: 16px; }
.float-icon.is-success { background: var(--success-tint); color: var(--success); }
.float-icon.is-warning { background: var(--warning-tint); color: var(--warning); }
.float-icon.is-brand { background: var(--brand-tint); color: var(--brand); }

.float-text { display: flex; flex-direction: column; line-height: 1.3; }
.float-text strong { font-size: var(--text-xs); font-weight: var(--weight-bold); }
.float-text em { font-style: normal; font-size: var(--text-2xs); color: var(--text-light); }

/* En pantallas angostas las tarjetas taparían el dashboard. */
@media (max-width: 1023px) {
  .float-card-2 { display: none; }
  .float-card-1 { left: auto; right: -4%; top: -5%; }
  .float-card-3 { left: -4%; right: auto; bottom: -5%; }
}

@media (max-width: 520px) { .float-card { display: none; } }

/* ============================================================================
   FASE 3 — SHOWCASE
   ============================================================================ */
.showcase {
  position: relative;
  padding-block: var(--section-y);
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
}

.section-heading { max-width: 640px; }

.section-heading h2 {
  margin-top: var(--space-4);
  font-size: var(--display-md);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.section-sub {
  margin-top: var(--space-3);
  font-size: var(--text-md);
  color: var(--text-muted);
}

/* ── Plano de mesas ────────────────────────────────────────────────────── */
.floor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--space-3);
}

.table {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  transition: transform var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.table:hover { transform: scale(1.04); border-color: var(--border-strong); }
.table b { font-size: var(--text-lg); font-weight: var(--weight-bold); }
.table em { font-style: normal; font-size: var(--text-2xs); color: var(--text-light); }

.table.is-free { border-color: rgba(34, 197, 94, .35); }
.table.is-free b { color: var(--success); }
.table.is-busy { border-color: var(--border-brand); background: var(--brand-tint); }
.table.is-busy b { color: var(--brand); }
.table.is-bill { border-color: rgba(255, 199, 44, .45); background: var(--warning-tint); }
.table.is-bill b { color: var(--warning); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--text-light);
}

.legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.legend i { width: 8px; height: 8px; border-radius: var(--radius-full); }
.dot-free { background: var(--success); }
.dot-busy { background: var(--brand); }
.dot-bill { background: var(--warning); }

/* ── Inventario ────────────────────────────────────────────────────────── */
.stock-list { display: flex; flex-direction: column; gap: var(--space-3); }

.stock-list li {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.stock-name { font-size: var(--text-sm); font-weight: var(--weight-medium); }

.stock-bar { height: 6px; border-radius: var(--radius-full); background: var(--surface-4); overflow: hidden; }

.stock-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--success);
  transform-origin: left;
  animation: barGrowX var(--dur-slower) var(--ease-out);
}

.stock-bar i.is-low { background: var(--danger); }

@keyframes barGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.stock-qty { font-size: var(--text-sm); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.stock-qty.is-low { color: var(--danger); }

@media (max-width: 560px) { .stock-list li { grid-template-columns: 1fr auto; } .stock-bar { display: none; } }

/* ── Cocina ────────────────────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }

.column h4 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-light);
}

.column h4 span {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-muted);
}

.order {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--surface-4);
}

.order b { font-size: var(--text-sm); font-weight: var(--weight-bold); }
.order em { font-style: normal; font-size: var(--text-2xs); color: var(--text-light); }
.order-time { margin-top: var(--space-1); font-size: var(--text-2xs); font-weight: var(--weight-semibold); color: var(--text-muted); }

.order.is-cooking { border-left-color: var(--brand); }
.order.is-done { border-left-color: var(--success); }
.order.is-done .order-time { color: var(--success); }
.order.is-late { border-left-color: var(--danger); }
.order.is-late .order-time { color: var(--danger); }

@media (max-width: 640px) { .kanban { grid-template-columns: 1fr; } }

/* ── Facturación ───────────────────────────────────────────────────────── */
.invoice-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }

.invoice-table th {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.invoice-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  font-variant-numeric: tabular-nums;
}

.invoice-table tbody tr { transition: background-color var(--dur-fast) var(--ease-out); }
.invoice-table tbody tr:hover { background: var(--surface-2); }

.pill {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
}

.pill.is-success { background: var(--success-tint); color: var(--success); }
.pill.is-pending { background: var(--warning-tint); color: var(--warning); }

@media (max-width: 560px) { .invoice-table th:nth-child(2), .invoice-table td:nth-child(2) { display: none; } }

/* ── Reportes ──────────────────────────────────────────────────────────── */
.rank-list { display: flex; flex-direction: column; gap: var(--space-3); }

.rank-list li {
  display: grid;
  grid-template-columns: auto 1.4fr 2fr auto;
  align-items: center;
  gap: var(--space-4);
}

.rank {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  color: var(--text-light);
}

.rank-list li:first-child .rank { background: var(--brand-tint); color: var(--brand); }
.rank-name { font-size: var(--text-sm); font-weight: var(--weight-medium); }
.rank-bar { height: 8px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }

.rank-bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  transform-origin: left;
  animation: barGrowX var(--dur-slower) var(--ease-out);
}

.rank-val { font-size: var(--text-sm); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }

@media (max-width: 560px) { .rank-list li { grid-template-columns: auto 1fr auto; } .rank-bar { display: none; } }

/* ============================================================================
   FASE 9 — CTA de cierre de sección
   ============================================================================ */
.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  margin-top: var(--section-gap);
  text-align: center;
}

.section-cta p { font-size: var(--text-md); color: var(--text-muted); }

/* ============================================================================
   MENÚ MÓVIL + NAV TOGGLE
   ============================================================================ */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu {
  position: fixed;
  inset: calc(var(--nav-h)) 0 auto 0;
  z-index: var(--z-sticky);
  padding: var(--space-6) var(--space-5) var(--space-8);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--elev-3);
  transform: translateY(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
}

.mobile-menu.is-open { transform: translateY(0); }

.mobile-nav { display: flex; flex-direction: column; gap: var(--space-1); }

.mobile-nav-link {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav-link:hover { color: var(--text); }

.mobile-nav-ctas { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-5); }
.mobile-nav-ctas .btn { width: 100%; }

/* ── Selector de región/moneda (lo construye geoprecios.js en producción) ── */
.region-selector { position: relative; flex-shrink: 0; }
.region-selector:empty { display: none; }

.region-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1;
  white-space: nowrap;
  transition: border-color var(--transition), background-color var(--transition);
}

.region-toggle:hover { border-color: var(--border-brand); }
.region-flag { font-size: 1rem; line-height: 1; }
.region-code { letter-spacing: .02em; }

.region-chevron {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .7;
  transition: transform var(--transition);
}

.region-selector.is-open .region-chevron { transform: rotate(180deg); }

.region-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 210px;
  padding: var(--space-1);
  margin: 0;
  list-style: none;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--elev-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: var(--z-sticky);
}

.region-selector.is-open .region-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.region-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text);
  cursor: pointer;
  transition: background-color var(--transition);
}

.region-option:hover,
.region-option:focus-visible { background: var(--surface-4); outline: none; }
.region-option.is-selected { background: var(--surface-4); font-weight: var(--weight-bold); }
.region-option.is-selected::after { content: "✓"; margin-left: auto; color: var(--brand); font-weight: var(--weight-extrabold); }
.region-option-label { flex: 1; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* ============================================================================
   FASE 2 — STORYTELLING
   ============================================================================ */
.story {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.section-heading-center { max-width: 720px; margin-inline: auto; text-align: center; }
.section-heading-center .kicker { justify-content: center; }

.story-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--section-gap);
  align-items: center;
}

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1fr auto 1fr; gap: var(--space-8); }
}

.story-col { display: flex; flex-direction: column; gap: var(--space-3); }

.story-solutions { padding: var(--space-5); }

.story-col-label {
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.story-col-label-bad { color: var(--text-light); }
.story-col-label-good { color: var(--success); }

.story-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.story-problems .story-item { opacity: .82; }

.story-solutions .story-item {
  background: var(--surface-3);
  border-color: var(--border);
}

.story-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--surface-4);
  font-size: 1.2rem;
  filter: grayscale(.6);
}

.story-ico.is-good { background: var(--success-tint); filter: none; }

.story-item strong { display: block; font-size: var(--text-base); font-weight: var(--weight-bold); }
.story-item p { margin-top: 2px; font-size: var(--text-sm); color: var(--text-light); }

.story-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  border-radius: var(--radius-full);
  background: var(--brand-tint);
  color: var(--brand);
}

.story-arrow svg { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .story-arrow { transform: rotate(90deg); }
}

/* ============================================================================
   FUNCIONALIDADES — grid
   ============================================================================ */
.features { padding-block: var(--section-y); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--section-gap);
}

.feature-cell { padding: var(--space-6); }

.feature-ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--brand);
}

.feature-ico svg { width: 22px; height: 22px; }

.feature-cell h3 { font-size: var(--text-base); font-weight: var(--weight-bold); }
.feature-cell p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-normal); }

/* ============================================================================
   VIDEO
   ============================================================================ */
.video-section {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-block: 1px solid var(--border-subtle);
}

.video-frame {
  max-width: 900px;
  margin: var(--section-gap) auto 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================================================
   FASE 6 — CONFIANZA
   ============================================================================ */
.trust { padding-block: var(--section-y); }

.trust-top { display: grid; gap: var(--section-gap); align-items: center; }

@media (min-width: 900px) {
  .trust-top { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
}

.why-copy h2 {
  margin-top: var(--space-4);
  font-size: var(--display-sm);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.why-list { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }

.why-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-base); color: var(--text-muted); }
.why-list strong { color: var(--text); font-weight: var(--weight-bold); }

.why-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: var(--radius-full);
  background: var(--success-tint);
  position: relative;
}

.why-check::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.metric-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }

.metric-card { padding: var(--space-6); text-align: center; }
.metric-card strong { display: block; font-size: var(--display-sm); font-weight: var(--weight-black); color: var(--brand); letter-spacing: var(--tracking-tight); }
.metric-card span { display: block; margin-top: var(--space-1); font-size: var(--text-sm); color: var(--text-light); }

/* ── Testimonios ───────────────────────────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--section-gap);
}

.testimonial { padding: var(--space-6); }

.testimonial blockquote {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: var(--text);
}

.testimonial figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }

.t-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.testimonial figcaption strong { display: block; font-size: var(--text-sm); }
.testimonial figcaption em { font-style: normal; font-size: var(--text-xs); color: var(--text-light); }

.testimonials-note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--text-faint); text-align: center; }

/* ============================================================================
   FASE 8 — PLANES
   ============================================================================ */
.plans {
  padding-block: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.plans-grid {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--section-gap);
  align-items: start;
}

@media (min-width: 900px) { .plans-grid { grid-template-columns: repeat(3, 1fr); } }

.plan { position: relative; padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; }

/* El plan destacado se eleva y gana el glow de marca: es el ancla visual. */
.plan-featured {
  border-color: var(--border-brand);
  box-shadow: var(--glow-brand);
}

@media (min-width: 900px) {
  .plan-featured { transform: scale(1.04); z-index: var(--z-raised); }
  .plan-featured:hover { transform: scale(1.04) translateY(-4px); }
}

.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--brand);
  color: #FFF;
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-size: var(--text-xl); font-weight: var(--weight-extrabold); }
.plan-tagline { margin-top: var(--space-1); font-size: var(--text-sm); color: var(--text-light); }

.plan-price { margin: var(--space-5) 0; display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.plan-amount { font-size: var(--display-sm); font-weight: var(--weight-black); letter-spacing: var(--tracking-tight); }

/* geoprecios.js muestra/oculta price-cop vs price-usd según data-currency.
   Por defecto ocultamos ambos-menos-uno vía el atributo en <html>. */
.price-value { display: none; }
:root[data-currency="cop"] .price-cop { display: inline; }
:root[data-currency="usd"] .price-usd { display: inline; }
/* Sin data-currency (prototipo sin geoprecios.js): mostramos COP por defecto. */
html:not([data-currency]) .price-cop { display: inline; }

.plan-period { font-size: var(--text-sm); color: var(--text-light); }

.plan-cta { width: 100%; margin-bottom: var(--space-6); }

.plan-features { display: flex; flex-direction: column; gap: var(--space-3); }

.plan-features li {
  position: relative;
  padding-left: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plans-note {
  margin-top: var(--section-gap);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--brand-tint);
  border: 1px solid var(--border-brand);
  text-align: center;
}

.plans-note-title { font-size: var(--text-md); font-weight: var(--weight-bold); color: var(--text); }
.plans-note p:last-child { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--text-muted); }

/* ============================================================================
   FAQ
   ============================================================================ */
.faq { padding-block: var(--section-y); }
.faq-inner { max-width: 760px; }

.faq-list { margin-top: var(--section-gap); display: flex; flex-direction: column; gap: var(--space-3); }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color var(--transition), background-color var(--transition);
}

.faq-item[open] { border-color: var(--border-brand); background: var(--surface-3); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5);
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-mark {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.faq-mark::before,
.faq-mark::after {
  content: '';
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.faq-mark::before { top: 8px; left: 0; width: 18px; height: 2px; }
.faq-mark::after { top: 0; left: 8px; width: 2px; height: 18px; }
.faq-item[open] .faq-mark::after { transform: scaleY(0); opacity: 0; }

.faq-item p { padding: 0 var(--space-5) var(--space-5); font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-relaxed); }

/* ============================================================================
   FASE 9 — CTA FINAL
   ============================================================================ */
.final-cta { padding-block: var(--section-y); }

.final-cta-card {
  position: relative;
  padding: clamp(2.5rem, 2rem + 4vw, 5rem) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--elev-3);
  text-align: center;
}

.final-cta-card h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-size: var(--display-md);
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

.final-cta-card p { max-width: 46ch; margin: var(--space-4) auto 0; font-size: var(--text-md); color: var(--text-muted); }

.final-cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-8); }

/* ============================================================================
   FASE 10 — FOOTER
   ============================================================================ */
.footer {
  padding-top: var(--section-y);
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand .logo { margin-bottom: var(--space-4); }
.footer-brand p { max-width: 34ch; font-size: var(--text-sm); color: var(--text-light); }

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--success);
}

.footer-col h4 {
  margin-bottom: var(--space-4);
  font-size: var(--text-2xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-light);
}

.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a { font-size: var(--text-sm); color: var(--text-muted); transition: color var(--transition); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--text-xs);
  color: var(--text-light);
}

.footer-legal { display: flex; gap: var(--space-5); }
.footer-legal a:hover { color: var(--text-muted); }

/* ============================================================================
   WHATSAPP FLOTANTE
   ============================================================================ */
.whatsapp-float {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: var(--z-float);
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: #FFF;
  box-shadow: var(--elev-3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); box-shadow: var(--elev-4); }

/* ============================================================================
   MODAL SOLICITUD DEMO
   Copiado del landing original y reexpresado con los tokens del sistema
   (los hex del original coinciden con las variables, así que se ve igual).
   ============================================================================ */
body.demo-open { overflow: hidden; }

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.demo-modal[hidden] { display: none; }

.demo-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  background: rgba(13, 8, 3, .82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.demo-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  background: var(--surface-2);
  border: 1.5px solid var(--border-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--elev-4);
}

.demo-card h2 {
  margin-bottom: var(--space-5);
  padding-right: var(--space-8);
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text);
}

.demo-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: var(--surface-3);
  transition: background-color var(--transition), color var(--transition);
}

.demo-close svg { width: 18px; height: 18px; }
.demo-close:hover { background: var(--surface-4); color: var(--text); }

.demo-form { display: flex; flex-direction: column; gap: var(--space-4); }

.demo-form .form-group { display: flex; flex-direction: column; gap: var(--space-1); }

.demo-form label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
}

.demo-form input,
.demo-form select {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-0);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: var(--text-sm);
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}

.demo-form input:focus,
.demo-form select:focus { border-color: var(--brand); }
.demo-form input::placeholder { color: var(--text-faint); }
.demo-form select option { background: var(--surface-2); }
.demo-form small { font-size: var(--text-xs); color: var(--text-light); line-height: 1.45; }

/* Botón de envío del formulario (también lo reutiliza el estado de éxito). */
.form-submit {
  width: 100%;
  margin-top: var(--space-1);
  padding: var(--space-4);
  background: var(--brand);
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition: background-color var(--transition);
}

.form-submit:hover { background: var(--brand-dark); }
.form-submit:disabled { opacity: .7; cursor: default; }

.demo-success { text-align: center; padding: var(--space-8) 0; }
.demo-success p { color: var(--text); line-height: var(--leading-normal); }
.demo-success strong { color: var(--brand); }

/* ============================================================================
   Nota de prototipo
   ============================================================================ */
.proto-note {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-1);
}

.proto-note p { font-size: var(--text-xs); color: var(--text-light); }
.proto-note strong { color: var(--brand); }

.proto-note code {
  padding: 1px 5px;
  border-radius: var(--radius-xs);
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: .95em;
  color: var(--text-muted);
}
