/* ═══════════════════════════════════════════════════════════════════════
   MYTHOS — SITIO WEB COMERCIAL  ·  estilos (WEB-1, FASE WEB)
   ─────────────────────────────────────────────────────────────────────
   Hoja de estilos del sitio público de marketing. Estética iOS blanco y
   negro, premium, minimalista. TODO color/sombra/tipografía sale de los
   design tokens de `tokens.css` (var(--token)) — CERO hex hardcodeado para
   color de marca. No depende de design-system.css ni de los paneles: las
   páginas del sitio son estáticas y autocontenidas (como login/diag).

   Reglas:
   • Light por defecto (obligatorio); dark se respeta vía data-theme + tokens.
   • Sin emojis: los íconos vienen de mythos-icons.js (SVG monocromo).
   • Mobile-first, responsive, foco visible, contraste AA.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Features pendientes (Bancard / Facturación electrónica) ──────────────
   Oculta bloques aún no oficiales SIN borrarlos. Los elementos llevan
   class="pending-feature" (sumada a sus clases). Frases mixtas se reescriben
   con el original en un comentario al lado; los add-ons se filtran con
   PENDING_ADDONS en web-marketing.js.
   ► PARA REACTIVAR TODO: comentá la regla de abajo, vaciá PENDING_ADDONS en
     web-marketing.js, y descomentá las frases marcadas <!-- ORIGINAL (reactivar) -->. */
.pending-feature { display: none !important; }

/* ── Reset + base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.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;
}

/* ── Botones ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--control-lg); padding: 0 24px; border-radius: var(--radius-md);
  font-size: var(--text-base); font-weight: var(--weight-semibold);
  font-family: inherit; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .2s, opacity .2s, border-color .2s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { opacity: .85; }
.btn-secondary { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-subtle); }
.btn-sm { height: var(--control-md); padding: 0 18px; font-size: var(--text-sm); }
.btn-lg { height: 54px; padding: 0 34px; font-size: var(--text-md); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; pointer-events: none;
}
.btn svg { width: 1.05em; height: 1.05em; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo {
  font-size: var(--text-lg); font-weight: var(--weight-bold);
  letter-spacing: .22em; color: var(--text-primary);
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: var(--text-sm); color: var(--text-secondary); font-weight: var(--weight-medium); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-primary); }
.nav-right { display: flex; gap: 10px; align-items: center; }
.icon-btn {
  width: var(--control-md); height: var(--control-md); border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-primary); transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column; gap: 4px;
  padding: 8px 24px 18px; border-bottom: 1px solid var(--border); background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 8px; font-size: var(--text-md); color: var(--text-primary);
  border-radius: var(--radius-sm); font-weight: var(--weight-medium);
}
.mobile-menu a:hover { background: var(--bg-subtle); }
.mobile-menu .btn { margin-top: 8px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-right .btn-cta-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 90px 0 70px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-secondary);
  background: var(--bg-subtle); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 26px;
}
.eyebrow svg { width: 14px; height: 14px; }
h1 {
  font-size: clamp(38px, 7vw, 60px); font-weight: var(--weight-bold);
  letter-spacing: -.03em; line-height: var(--leading-tight);
  max-width: 820px; margin: 0 auto 22px;
}
.hero .sub { font-size: var(--text-lg); color: var(--text-secondary); max-width: 640px; margin: 0 auto 30px; }
.hero-bullets { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--text-primary); background: var(--surface);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}
.chip svg { width: 14px; height: 14px; color: var(--text-secondary); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.microcopy { margin-top: 18px; font-size: 13.5px; color: var(--text-tertiary); }

/* ── Device mockup (monocromo) ─────────────────────────────────────────── */
.device {
  margin: 56px auto 0; max-width: 880px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; text-align: left;
}
.device-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.device-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); opacity: .5; }
.device-body { display: grid; grid-template-columns: 200px 1fr; min-height: 300px; }
.device-side { border-right: 1px solid var(--border); padding: 18px 14px; background: var(--bg-subtle); }
.side-item { font-size: var(--text-sm); color: var(--text-secondary); padding: 9px 12px; border-radius: var(--radius-sm); margin-bottom: 4px; }
.side-item.active { background: var(--primary); color: var(--primary-text); font-weight: var(--weight-semibold); }
.device-main { padding: 22px; }
.dm-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.dm-card { flex: 1; min-width: 120px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
.dm-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin-bottom: 8px; }
.dm-num { font-size: var(--text-2xl); font-weight: var(--weight-bold); letter-spacing: -.02em; }
.dm-ticket { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 8px; font-size: 13.5px; }
.badge-ok { display: inline-flex; align-items: center; gap: 5px; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--primary-text); background: var(--primary); padding: 3px 9px; border-radius: var(--radius-full); }
.badge-ok svg { width: 11px; height: 11px; }
.badge-muted { color: var(--text-tertiary); font-size: 12px; }

/* ── Demo interactivo del hero (switcher de paneles + autoplay) ────────── */
/* Anclas del menú: compensan el header sticky al hacer scroll (#demo, #modulos, #faq…) */
.demo-anchor { display: block; height: 0; scroll-margin-top: 88px; }
section[id] { scroll-margin-top: 88px; }
.device-bar .device-live {
  margin-left: auto; font-size: 11px; font-weight: var(--weight-semibold);
  color: var(--text-tertiary); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 6px;
}
.device-bar .device-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); animation: dmPulse 2s ease-in-out infinite;
}
@keyframes dmPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* El sidebar pasa de div a button: reset + interacción */
.side-item {
  display: block; width: 100%; text-align: left; cursor: pointer;
  border: 0; background: transparent; font-family: inherit;
  transition: background .2s ease, color .2s ease;
}
.side-item:hover { background: var(--surface-hover); color: var(--text-primary); }
.side-item.active:hover { background: var(--primary); color: var(--primary-text); }
.side-item:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; }

/* Paneles conmutables con transición fade/slide */
.device-main { position: relative; min-height: 296px; }
.dm-panel { display: none; }
.dm-panel.is-active { display: block; animation: dmIn .25s ease both; }
.dm-panel:focus-visible { outline: none; }
@keyframes dmIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* KDS — estaciones con cronómetro */
.dm-kds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dm-kcol { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; }
.dm-ktitle { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); font-weight: var(--weight-semibold); margin-bottom: 10px; }
.dm-kticket { display: flex; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 10px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.35; }
.dm-kticket:last-child { margin-bottom: 0; }
.dm-timer { align-self: flex-start; font-variant-numeric: tabular-nums; font-weight: var(--weight-bold); font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.dm-timer.is-warn { color: var(--warning); }

/* Mesas — grilla con estados */
.dm-tables { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.dm-table { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 8px; text-align: center; background: var(--surface); }
.dm-table b { display: block; font-size: var(--text-lg); font-weight: var(--weight-bold); line-height: 1.1; }
.dm-table span { font-size: 11px; color: var(--text-tertiary); }
.dm-table.is-ocupada { background: var(--bg-subtle); }
.dm-table.is-retirar { border-color: var(--warning); }
.dm-table.is-retirar span { color: var(--warning); }
.dm-table.is-cobro { border-color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--text-primary); }
.dm-table.is-cobro span { color: var(--text-primary); font-weight: var(--weight-semibold); }

/* Listas con barra (stock / ranking) */
.dm-list-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.dm-list-row:last-child { border-bottom: 0; }
.dm-list-row .nm { min-width: 92px; flex-shrink: 0; }
.dm-list-row b { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dm-bar { flex: 1; height: 7px; background: var(--bg-subtle); border-radius: var(--radius-full); overflow: hidden; }
.dm-bar i { display: block; height: 100%; border-radius: inherit; background: var(--text-primary); }
.dm-bar i.is-warn { background: var(--warning); }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.st-dot.is-warn { background: var(--warning); }

/* Delivery — mini-mapa fake animado */
.dm-map {
  position: relative; height: 124px; margin-top: 12px; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--bg-subtle);
}
.dm-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dm-map-tag {
  position: absolute; left: 10px; bottom: 9px; font-size: 11px; font-weight: var(--weight-semibold);
  color: var(--text-secondary); background: var(--surface); border: 1px solid var(--border);
  padding: 3px 8px; border-radius: var(--radius-full);
}

/* Responsive: en mobile el sidebar pasa a tabs horizontales arriba */
@media (max-width: 600px) {
  .device-body { grid-template-columns: 1fr; }
  .device-side {
    display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px;
    border-right: 0; border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .device-side::-webkit-scrollbar { display: none; }
  .side-item { flex: 0 0 auto; margin-bottom: 0; white-space: nowrap; }
  .device-main { min-height: 320px; }
  .dm-kds { grid-template-columns: 1fr; }
  .dm-tables { grid-template-columns: repeat(3, 1fr); }
}

/* Accesibilidad: sin movimiento, sin animaciones del demo
   (el rider SVG/SMIL se pausa en JS al detectar reduced-motion) */
@media (prefers-reduced-motion: reduce) {
  .dm-panel.is-active { animation: none; }
  .device-bar .device-live::before { animation: none; }
}

/* ── Secciones ─────────────────────────────────────────────────────────── */
section.block { padding: 80px 0; }
h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: var(--weight-bold); letter-spacing: -.02em; line-height: var(--leading-snug); margin-bottom: 14px; }
.lead { font-size: var(--text-md); color: var(--text-secondary); max-width: 620px; margin: 0 auto 50px; }
.lead.tight { margin-bottom: 0; }

/* Tira de confianza */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 22px 46px; justify-content: center; align-items: center; padding: 26px 24px; }
.trust .t-item { font-size: var(--text-sm); color: var(--text-secondary); font-weight: var(--weight-medium); display: inline-flex; align-items: center; gap: 9px; }
.trust .t-item svg { width: 17px; height: 17px; color: var(--text-tertiary); }

/* Grilla de módulos */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .grid { grid-template-columns: 1fr; } }
.mod { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; text-align: left; }
.mod:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.mod-ic { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--bg-subtle); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--text-primary); }
.mod-ic svg { width: 21px; height: 21px; }
.mod h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); margin-bottom: 5px; }
.mod p { font-size: 13.5px; color: var(--text-secondary); }

/* Diferenciador local (bloque negro) */
.local { background: var(--primary); color: var(--primary-text); border-radius: var(--radius-xl); padding: 60px 48px; text-align: center; }
.local h2 { color: var(--primary-text); }
.local .lead { color: var(--primary-text); opacity: .72; }
.local-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; text-align: left; }
@media (max-width: 760px) { .local-grid { grid-template-columns: 1fr; gap: 22px; } .local { padding: 44px 26px; } }
.local-item .n { font-size: var(--text-sm); opacity: .5; font-weight: var(--weight-bold); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px; }
.local-item .n svg { width: 18px; height: 18px; }
.local-item h4 { font-size: var(--text-md); margin-bottom: 6px; }
.local-item p { font-size: var(--text-sm); opacity: .74; }

/* Comparar */
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .cmp { grid-template-columns: 1fr; } }
.cmp-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--surface); text-align: left; }
.cmp-col.win { border-color: var(--text-primary); border-width: 2px; }
.cmp-col h4 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin-bottom: 16px; }
.cmp-col .big { font-size: var(--text-xl); font-weight: var(--weight-bold); margin-bottom: 16px; }
.cmp-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cmp-col li { font-size: var(--text-sm); color: var(--text-secondary); display: flex; gap: 10px; align-items: flex-start; }
.cmp-col li .ic { width: 16px; flex: none; font-weight: var(--weight-bold); text-align: center; line-height: 1.4; }
.cmp-col.win li .ic { color: var(--text-primary); }
.cmp-col li.no .ic { color: var(--text-tertiary); }

/* Cómo funciona (3 pasos) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { text-align: left; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step .num { width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--primary); color: var(--primary-text); display: flex; align-items: center; justify-content: center; font-weight: var(--weight-bold); margin-bottom: 16px; }
.step h3 { font-size: var(--text-md); font-weight: var(--weight-semibold); margin-bottom: 6px; }
.step p { font-size: var(--text-sm); color: var(--text-secondary); }

/* Testimonios */
.testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .testi { grid-template-columns: 1fr; } }
.testi-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); text-align: left; }
.testi-card .stars { display: flex; gap: 3px; color: var(--text-primary); margin-bottom: 12px; }
.testi-card .stars svg { width: 15px; height: 15px; }
.testi-card blockquote { font-size: var(--text-base); color: var(--text-primary); margin-bottom: 16px; }
.testi-card .who { font-size: var(--text-sm); color: var(--text-secondary); }
.testi-card .who b { color: var(--text-primary); font-weight: var(--weight-semibold); }

/* ── Precios ───────────────────────────────────────────────────────────── */
.toggle-wrap { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 12px; }
.tg-label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); }
.tg-label.act { color: var(--text-primary); }
.toggle { position: relative; width: 54px; height: 30px; border-radius: var(--radius-full); background: var(--bg-hover); border: 1px solid var(--border); cursor: pointer; padding: 0; }
.toggle .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); transition: left .2s; }
.toggle.on .knob { left: 26px; }
.save-note { text-align: center; font-size: var(--text-sm); color: var(--success); font-weight: var(--weight-semibold); min-height: 20px; margin-bottom: 30px; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: start; }
@media (max-width: 920px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; position: relative; text-align: left; }
.plan.feat { border-color: var(--text-primary); border-width: 2px; box-shadow: var(--shadow-md); }
.plan .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--primary); color: var(--primary-text); font-size: var(--text-xs); font-weight: var(--weight-bold); letter-spacing: .04em; text-transform: uppercase; padding: 5px 13px; border-radius: var(--radius-full); white-space: nowrap; }
.plan h3 { font-size: var(--text-md); font-weight: var(--weight-bold); margin-bottom: 3px; }
.plan .frase { font-size: var(--text-sm); color: var(--text-tertiary); margin-bottom: 16px; min-height: 34px; }
.price { font-size: 30px; font-weight: var(--weight-bold); letter-spacing: -.02em; }
.price small { font-size: var(--text-sm); color: var(--text-secondary); font-weight: var(--weight-medium); }
.price .gs { font-size: var(--text-base); color: var(--text-secondary); font-weight: var(--weight-semibold); vertical-align: 6px; margin-right: 1px; }
.plan ul { list-style: none; margin: 18px 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: 13.5px; color: var(--text-secondary); display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "\2713"; color: var(--text-primary); font-weight: var(--weight-bold); flex: none; width: 14px; }
.plan .btn { width: 100%; margin-top: 6px; }

/* Banner Oferta Fundador */
.founder { margin-top: 46px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 24px 28px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--bg-subtle); text-align: left; }
.founder b { font-size: var(--text-md); display: inline-flex; align-items: center; gap: 8px; }
.founder b svg { width: 17px; height: 17px; }
.founder p { font-size: var(--text-sm); color: var(--text-secondary); margin-top: 4px; max-width: 560px; }

/* Ahorro por plan (modo anual) */
.plan-save { font-size: var(--text-sm); color: var(--success); font-weight: var(--weight-semibold); margin: -8px 0 2px; }

/* ── Precios dinámicos: tarjetas interactivas (hover + seleccionar/expandir) ── */
.plan { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.plan.is-selected { border-color: var(--text-primary); border-width: 2px; box-shadow: var(--shadow-md); transform: translateY(-4px); }
/* Descripción comercial del plan (fuente única: marketing_plans.description) */
.plan-desc { font-size: 13px; line-height: 1.5; color: var(--text-secondary); margin: 4px 0 2px; }
/* Lista "incluye": si es larga (--clip) se colapsa y se expande al seleccionar */
.plan-incl--clip { position: relative; max-height: 132px; overflow: hidden; transition: max-height .4s ease; }
.plan-incl--clip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--surface)); transition: opacity .25s ease; }
.plan.is-selected .plan-incl--clip { max-height: 760px; }
.plan.is-selected .plan-incl--clip::after { opacity: 0; }
/* Hint "tocá para ver todo" (solo cuando está colapsada) */
.plan-more { font-size: 12px; font-weight: var(--weight-semibold); color: var(--text-tertiary); margin: 2px 0 10px; user-select: none; }
.plan.is-selected .plan-more { display: none; }
/* "Próximamente" — features aún no vivas (nunca listadas como incluidas) */
.plan-soon { font-size: 12px; color: var(--text-tertiary); margin: 6px 0 4px; line-height: 1.45; }
.plan-soon span { font-size: 10px; font-weight: var(--weight-bold); letter-spacing: .05em; text-transform: uppercase;
  border: 1px solid var(--border-strong); border-radius: var(--radius-full); padding: 1px 7px; margin-right: 6px; color: var(--text-secondary); }
/* 4ª tarjeta "A cotizar / A medida" */
.plan-quote { border-style: dashed; }
.plan-quote .price-quote { font-size: 22px; color: var(--text-primary); }
@media (prefers-reduced-motion: reduce) {
  .plan, .plan:hover, .plan.is-selected { transform: none; transition: box-shadow .2s ease, border-color .2s ease; }
  .plan-incl--clip { transition: none; }
}

/* ── Armador "Calculá tu precio" ───────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; text-align: left; }
@media (max-width: 680px) { .calc { grid-template-columns: 1fr; } }
.calc-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: var(--surface); }
.calc-h { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin-bottom: 12px; }
.calc-opt { display: flex; align-items: center; gap: 11px; padding: 10px 8px; border-radius: var(--radius-sm); cursor: pointer; }
.calc-opt:hover { background: var(--bg-subtle); }
.calc-opt input { width: 18px; height: 18px; accent-color: var(--primary); flex: none; cursor: pointer; }
.calc-opt-main { display: flex; flex-direction: column; line-height: 1.3; }
.calc-opt-main b { font-size: var(--text-base); font-weight: var(--weight-semibold); }
.calc-opt-sub { font-size: var(--text-sm); color: var(--text-secondary); }
.calc-summary { grid-column: 1 / -1; border: 1px solid var(--text-primary); border-radius: var(--radius-lg); padding: 24px; background: var(--surface); text-align: center; box-shadow: var(--shadow-sm); }
.calc-total-label { font-size: var(--text-sm); color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }
.calc-total { font-size: 34px; font-weight: var(--weight-bold); letter-spacing: -.02em; margin: 6px 0 2px; }
.calc-annual { font-size: var(--text-sm); color: var(--text-secondary); min-height: 20px; margin-bottom: 16px; }
.calc-summary .btn { min-width: 240px; }

/* ── Modal de descripción de módulos (sección #modulos) ──────────────────── */
.mod { position: relative; }
.mod-btn { background:none; border:0; padding:0; margin:0; font:inherit; color:inherit; text-align:left; cursor:pointer; font-size:var(--text-md); font-weight:var(--weight-semibold); line-height:inherit; }
.mod-btn::after { content:""; position:absolute; inset:0; border-radius:var(--radius-lg); }   /* estira el botón: toda la card queda clickeable */
.mod-btn:focus { outline:none; }
.mod-more { display:inline-block; margin-top:12px; font-size:12.5px; font-weight:var(--weight-semibold); color:var(--text-tertiary); transition:color .15s; }
.mod:hover .mod-more, .mod:focus-within .mod-more { color:var(--text-primary); }
.mod:focus-within { outline:2px solid var(--text-primary); outline-offset:2px; }

.mod-modal { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:20px; }
.mod-modal[hidden] { display:none; }
.mod-modal-backdrop { position:absolute; inset:0; background:var(--overlay); backdrop-filter:blur(2px); }
.mod-modal-card { position:relative; width:100%; max-width:460px; max-height:88vh; overflow:auto; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-xl); box-shadow:var(--shadow-lg); padding:28px; animation:modIn .18s ease; }
@keyframes modIn { from{opacity:0; transform:translateY(8px) scale(.98);} to{opacity:1; transform:none;} }
@media (prefers-reduced-motion: reduce){ .mod-modal-card{ animation:none; } }
.mod-modal-x { position:absolute; top:14px; right:14px; width:32px; height:32px; border-radius:var(--radius-full); border:1px solid var(--border); background:var(--surface); color:var(--text-secondary); font-size:20px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s, color .15s; }
.mod-modal-x:hover { background:var(--bg-hover); color:var(--text-primary); }
.mod-modal-ic { width:48px; height:48px; border-radius:var(--radius-md); background:var(--bg-subtle); border:1px solid var(--border); display:flex; align-items:center; justify-content:center; color:var(--text-primary); margin-bottom:16px; }
.mod-modal-ic svg { width:24px; height:24px; }
.mod-modal-card h3 { font-size:var(--text-xl); font-weight:var(--weight-bold); line-height:var(--leading-snug); margin-bottom:6px; }
.mod-modal-tag { font-size:var(--text-base); color:var(--text-secondary); font-weight:var(--weight-medium); line-height:var(--leading-snug); margin-bottom:16px; }
.mod-modal-desc { font-size:14.5px; color:var(--text-secondary); line-height:var(--leading-normal); margin-bottom:18px; }
.mod-modal-inc { border-top:1px solid var(--border); padding-top:16px; margin-bottom:16px; }
.mod-modal-h { display:block; font-size:var(--text-xs); font-weight:var(--weight-semibold); text-transform:uppercase; letter-spacing:.06em; color:var(--text-tertiary); margin-bottom:10px; }
.mod-modal-inc ul { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:8px; }
.mod-modal-inc li { position:relative; padding-left:22px; font-size:14px; color:var(--text-primary); line-height:var(--leading-normal); }
.mod-modal-inc li::before { content:"\2713"; position:absolute; left:0; top:0; color:var(--text-primary); font-weight:var(--weight-bold); }
.mod-modal-why { font-size:13.5px; color:var(--text-secondary); font-style:italic; line-height:var(--leading-normal); padding:14px 16px; background:var(--bg-subtle); border-radius:var(--radius-md); margin-bottom:20px; }
.mod-modal-cta { display:inline-flex; align-items:center; gap:6px; background:var(--primary); color:var(--primary-text); font-size:var(--text-sm); font-weight:var(--weight-semibold); padding:11px 18px; border-radius:var(--radius-full); text-decoration:none; transition:opacity .15s; }
.mod-modal-cta:hover { opacity:.88; }
body.mod-open { overflow:hidden; }
@media (max-width:540px){ .mod-modal-card{ padding:22px; border-radius:var(--radius-lg); } }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; }
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { font-size: var(--text-md); font-weight: var(--weight-semibold); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; color: var(--text-tertiary); font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { font-size: 14.5px; color: var(--text-secondary); margin-top: 12px; }

/* ── CTA final ─────────────────────────────────────────────────────────── */
.cta-final { text-align: center; padding: 90px 0; }

/* ── Páginas secundarias (precios/demo/registro/contacto/legal) ────────── */
.page-hero { padding: 70px 0 20px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5.5vw, 48px); margin-bottom: 16px; }
.page-hero .lead { margin-bottom: 0; }

/* Formularios (placeholder deshabilitado en WEB-1) */
.form-card { max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.field label { font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--text-secondary); }
.field input, .field textarea {
  font-family: inherit; font-size: var(--text-base); color: var(--text-primary);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--border-strong); outline: none; }
.field input:disabled, .field textarea:disabled { background: var(--bg-subtle); color: var(--text-tertiary); cursor: not-allowed; }
.notice { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-secondary); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin: 0 auto 28px; max-width: 640px; text-align: left; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--text-tertiary); }
.notice b { color: var(--text-primary); }

/* Select del formulario de leads (WEB-5) — calza con .field input/textarea */
.field select {
  font-family: inherit; font-size: var(--text-base); color: var(--text-primary);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 13px; transition: border-color .2s; cursor: pointer;
}
.field select:focus { border-color: var(--border-strong); outline: none; }

/* Estado del formulario de leads (WEB-5) */
.lead-status { font-size: var(--text-sm); line-height: 1.45; margin: 0 0 14px; padding: 10px 13px; border-radius: var(--radius-sm); border: 1px solid var(--border); color: var(--text-secondary); text-align: left; }
.lead-status--error { color: var(--error); border-color: var(--error); }
.lead-success { align-items: center; }
.lead-success .lead-ok { color: var(--success); font-weight: var(--weight-bold); flex: none; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; padding: 20px 0 40px; text-align: left; }
.legal h2 { font-size: var(--text-xl); margin: 36px 0 12px; }
.legal h3 { font-size: var(--text-md); margin: 24px 0 8px; }
.legal p, .legal li { font-size: var(--text-base); color: var(--text-secondary); margin-bottom: 12px; line-height: 1.65; }
.legal ul { padding-left: 22px; }
.legal .updated { font-size: var(--text-sm); color: var(--text-tertiary); }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-subtle); padding: 50px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin-bottom: 14px; }
.foot-grid a { display: block; font-size: var(--text-sm); color: var(--text-secondary); margin-bottom: 9px; transition: color .2s; }
.foot-grid a:hover { color: var(--text-primary); }
.foot-logo { font-size: var(--text-lg); font-weight: var(--weight-bold); letter-spacing: .22em; margin-bottom: 12px; }
.foot-about { font-size: var(--text-sm); color: var(--text-secondary); max-width: 280px; }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: var(--text-sm); color: var(--text-tertiary); }
.foot-bottom .t-item { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom svg { width: 15px; height: 15px; }

/* ── Animación de aparición al hacer scroll (sutil) ────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Páginas legales (WEB-8): Términos / Privacidad / Cookies ─────────────── */
.legal { max-width: 820px; margin: 0 auto; color: var(--text-secondary); line-height: 1.7; font-size: var(--text-base); }
.legal .updated { color: var(--text-tertiary); font-size: var(--text-sm); margin: 0 0 24px; }
.legal h2 { color: var(--text-primary); font-size: var(--text-xl); font-weight: var(--weight-bold); margin: 32px 0 10px; letter-spacing: -.01em; }
.legal h3 { color: var(--text-primary); font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 22px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: var(--text-sm); }
.legal-table th, .legal-table td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal-table th { background: var(--bg-subtle); color: var(--text-primary); font-weight: var(--weight-semibold); }
