/* =====================================================================
   ParaYA · Maqueta web — Sistema "Mercado de noche"
   Colores y tipografías según ParaYA_Kit/LEEME_colores_y_tipografia.txt
   Reglas: solo el cobre en botones principales · color plano, sin
   degradados ni brillos · cifras tabulares en precios y números.
   ===================================================================== */

/* ---------- Tokens de marca (fijos en ambos temas) ---------- */
:root {
  --selva: #0D1F19;
  --crema: #F4EDE0;
  --cobre: #F08A4B;
  --cobre-claro: #F7B287;
  --cobre-prof: #C4642B;
  --aji: #F5B83D;
  --hierba: #4FC08D;
  --pacifico: #4BB3C8;
  --maiz: #7E4FC0;
  --rocoto: #EC5B45;

  --f-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(16px, 4.5vw, 64px);
  --maxw: 1200px;
  --hdr: 72px;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Tema Noche (principal) · también para "dispositivos" ---------- */
:root,
.dev {
  color-scheme: dark;
  --bg: #0D1F19;
  --card: #132A22;
  --elev: #1A362C;
  --active: #224236;
  --line: #2B4A3D;
  --text: #F4EDE0;
  --text-2: #9DB5A8;
  --link: #F7B287;
  --accent-text: #F08A4B;

  --soft-cobre: #3F3724;
  --soft-aji: #404121;
  --soft-hierba: #1C4233;
  --soft-pacifico: #1B4040;
  --soft-maiz: #2B2A47;
  --soft-rocoto: #3E2C23;

  --t-cobre: #F08A4B;
  --t-aji: #F5B83D;
  --t-hierba: #4FC08D;
  --t-pacifico: #4BB3C8;
  --t-maiz: #B794EC;
  --t-rocoto: #F47C68;
}

/* ---------- Tema Día (alternativo) ---------- */
[data-tema="dia"] {
  color-scheme: light;
  --bg: #F7F1E6;
  --card: #FFFFFF;
  --elev: #EFE6D6;
  --active: #E7DCC8;
  --line: #E2D7C3;
  --text: #0D1F19;
  --text-2: #56695F;
  --link: #A94F1B;
  --accent-text: #C4642B;

  --soft-cobre: #F6DECA;
  --soft-aji: #F7E7C8;
  --soft-hierba: #D9E8D6;
  --soft-pacifico: #D8E6E1;
  --soft-maiz: #E6DCEB;
  --soft-rocoto: #F5D6C9;

  --t-cobre: #A94F1B;
  --t-aji: #7D5800;
  --t-hierba: #1D6E4A;
  --t-pacifico: #1B6F80;
  --t-maiz: #6238A8;
  --t-rocoto: #B3321F;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.is-loading { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cobre); color: var(--selva); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hl { color: var(--accent-text); }
.t-cobre { color: var(--t-cobre); }
.t-aji { color: var(--t-aji); }
.t-maiz { color: var(--t-maiz); }

:focus-visible { outline: 3px solid var(--cobre); outline-offset: 3px; border-radius: 8px; }
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 600;
  background: var(--cobre); color: var(--selva); font-weight: 800;
  padding: 10px 16px; border-radius: 999px;
  transform: translateY(-180%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* Íconos por trazo */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ic--fill { fill: currentColor; stroke: none; }

/* ---------- Tipografía ---------- */
.h1 { font-size: clamp(2.7rem, 5.4vw, 4.75rem); letter-spacing: -.04em; line-height: .98; }
.h2 { font-size: clamp(2rem, 4.1vw, 3.3rem); }
.h2--xl { font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.04em; line-height: .95; }
.lead { font-size: clamp(1rem, 1.25vw, 1.0875rem); color: var(--text-2); max-width: 50ch; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--t-cobre); margin-bottom: 18px;
}
.eyebrow--maiz { color: var(--t-maiz); }

.link { color: var(--link); font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link--arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; }
.link--arrow .ic { transition: transform .4s var(--spring); }
.link--arrow:hover .ic { transform: translateX(5px); }

/* ---------- Botones ---------- */
.btn {
  --bh: 52px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: -.005em; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: color .3s, border-color .3s, background-color .3s;
}
.btn > * { position: relative; z-index: 1; }
.btn .arrow { width: 18px; height: 18px; transition: transform .45s var(--spring); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Único botón principal: cobre con texto Selva. El hover sube una capa plana cobre claro. */
.btn-cobre { background: var(--cobre); color: var(--selva); }
.btn-cobre::before {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  background: var(--cobre-claro); transform: translateY(101%);
  transition: transform .55s var(--ease);
}
.btn-cobre:hover::before { transform: translateY(0); }
.btn-cobre:active { transform: scale(.97); }

.btn-line { border-color: var(--line); color: var(--text); }
.btn-line:hover { background: var(--elev); border-color: var(--text-2); }
.btn-soft { background: var(--elev); color: var(--text); }
.btn-soft:hover { background: var(--active); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.pill-maiz { background: var(--soft-maiz); color: var(--t-maiz); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Tarjetas */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }

/* ---------- Pantalla de carga ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center;
  background: #0D1F19; color: #9DB5A8;
}
.loader-in { width: min(320px, 72vw); }
.loader-logo { width: 100%; height: auto; overflow: visible; }
.loader-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font-size: 13px; font-weight: 600; }
.loader-meta b { color: #F4EDE0; }
.loader-bar { height: 2px; margin-top: 10px; background: #2B4A3D; border-radius: 2px; overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: #F08A4B; transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Cursor (solo puntero fino) ---------- */
.cursor { display: none; }
.has-cursor .cursor {
  display: block; position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none;
  width: 0; height: 0;
}
.cursor i {
  position: absolute; left: -17px; top: -17px; width: 34px; height: 34px;
  border: 1.5px solid var(--cobre); border-radius: 50%;
  transition: transform .45s var(--ease), background-color .3s, opacity .3s;
}
.cursor.is-hover i { transform: scale(1.8); background: rgba(240, 138, 75, .12); }
.cursor.is-out i { opacity: 0; }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: calc(var(--hdr) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: transform .55s var(--ease), border-color .3s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-101%); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; color: var(--text); }
.logo { width: 104px; height: auto; aspect-ratio: 608 / 218; }
.nav { position: relative; margin-inline: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; z-index: 1; display: block; padding: 8px 14px;
  font-size: 14px; font-weight: 600; border-radius: 999px; color: var(--text);
  transition: color .3s;
}
.nav a:hover { color: var(--link); }
.nav-ind {
  position: absolute; left: 0; top: 0; height: 100%; width: 0;
  background: var(--elev); border-radius: 999px; opacity: 0; pointer-events: none;
}
.hdr-act { display: flex; align-items: center; gap: 10px; }
.hdr-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--cobre); transform-origin: 0 50%; transform: scaleX(0);
}

/* Interruptor Noche / Día */
.theme {
  position: relative; width: 66px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; padding: 0 9px;
  background: var(--elev); border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2);
}
.theme .ic { position: relative; z-index: 1; width: 16px; height: 16px; transition: color .4s; }
.theme-knob {
  position: absolute; left: 3px; top: 3px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--cobre); transition: transform .6s var(--spring);
}
.theme .ic:first-of-type { color: var(--selva); }
[data-tema="dia"] .theme-knob { transform: translateX(30px); }
[data-tema="dia"] .theme .ic:first-of-type { color: var(--text-2); }
[data-tema="dia"] .theme .ic:last-of-type { color: var(--selva); }

/* Hamburguesa */
.burger { display: none; width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; gap: 28px;
  padding: calc(var(--hdr) + 28px) var(--gutter) 32px;
  background: var(--bg);
  clip-path: circle(0 at calc(100% - var(--gutter) - 22px) calc(var(--hdr) / 2));
  visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 22px) calc(var(--hdr) / 2)); visibility: visible; transition: clip-path .8s var(--ease-io); }
.menu-links a { display: block; padding: 6px 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 9vw, 2.8rem); letter-spacing: -.03em; }
.menu-links li, .menu-cta, .menu-foot {
  opacity: 0; transform: translateY(28px);
  transition: opacity .5s, transform .7s var(--ease);
}
.menu.is-open .menu-links li, .menu.is-open .menu-cta, .menu.is-open .menu-foot {
  opacity: 1; transform: none; transition-delay: calc(var(--i) * 60ms + 200ms);
}
.menu-cta { display: grid; gap: 12px; margin-top: auto; }
.menu-foot { color: var(--t-cobre); font-family: var(--f-display); font-weight: 700; }

/* ---------- Secciones ---------- */
.sec { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.sec-head { margin-bottom: clamp(40px, 6vw, 64px); }
.sec-head--split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 64px; align-items: end; }
.sec-head--center { text-align: center; display: grid; justify-items: center; }
.sec-head--center .lead { margin-top: 18px; }
.sec-head--center .eyebrow { margin-bottom: 14px; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--hdr) + 48px) 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 40px; align-items: center; }
.hero-copy .pill { margin-bottom: 26px; }
.hero-copy .lead { margin-top: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.checks li { display: inline-flex; align-items: center; gap: 8px; }
.checks .ic { width: 17px; height: 17px; color: var(--t-cobre); stroke-width: 2.6; }
.checks--col { flex-direction: column; margin-top: 30px; font-size: 15px; color: var(--text); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2);
}
.scroll-cue i { width: 1.5px; height: 38px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; inset: 0; background: var(--cobre); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Composición del hero: lienzo de 600×560 escalado por JS */
.hv { position: relative; }
.hv-canvas { position: relative; }
.layer { will-change: transform; }

.hv-plate svg { width: 100%; height: 100%; }
.spin { animation: spin 70s linear infinite; }
.spin--slow { animation-duration: 110s; }
@keyframes spin { to { transform: rotate(360deg); } }

.hv-board { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.board-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.board-h b { font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--soft-hierba); color: var(--t-hierba); font-size: 11px; font-weight: 800; }
.live i, .pill-live::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }

.board-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: row dense; grid-auto-rows: auto;
  gap: 8px; align-content: start;
  height: 246px; overflow: hidden;
}
.col-h {
  grid-row: 1; display: flex; align-items: center; gap: 6px; padding: 0 2px 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c);
}
.col-h i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.col-h .cnt { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--elev); color: var(--text); font-size: 10.5px; letter-spacing: 0; }
.col-h.c1 { grid-column: 1; --c: var(--t-aji); }
.col-h.c2 { grid-column: 2; --c: var(--t-cobre); }
.col-h.c3 { grid-column: 3; --c: var(--t-hierba); }

.tk {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; min-width: 0;
  padding: 10px 11px; border-radius: 12px;
  background: var(--elev); border: 1.5px solid transparent;
  transition: background-color .5s, border-color .5s;
}
.tk[data-status="new"] { grid-column: 1; }
.tk[data-status="cooking"] { grid-column: 2; }
.tk[data-status="ready"] { grid-column: 3; background: var(--soft-hierba); }
.tk.is-fresh { border-color: var(--aji); }
.tk.is-gone { display: none; }
.tk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tk-t { min-width: 0; font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-st { flex-shrink: 0; font-size: 10.5px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk[data-status="new"] .tk-st { color: var(--t-aji); }
.tk[data-status="cooking"] .tk-st { color: var(--t-cobre); }
.tk[data-status="ready"] .tk-st { color: var(--t-hierba); }
.tk-i { font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-src { justify-self: start; margin-top: 3px; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--soft-hierba); color: var(--t-hierba); }
.tk:not([data-status="new"]) .tk-src { display: none; }
.tk-bar { display: none; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--cobre); transform-origin: 0 50%; transform: scaleX(.12); }
.tk[data-status="cooking"] .tk-bar { display: block; }
.tk[data-status="cooking"] .tk-bar i { transform: scaleX(.86); transition: transform 7s linear; }

.hv-toast {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.toast-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-cobre); color: var(--t-cobre); }
.toast-ic .ic { width: 17px; height: 17px; }
.toast-tx { display: grid; line-height: 1.25; min-width: 0; }
.toast-tx b { font-size: 12px; white-space: nowrap; }
.toast-tx small { font-size: 10.5px; color: var(--text-2); }
.pill-live { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--soft-hierba); color: var(--t-hierba); font-size: 9.5px; font-weight: 800; white-space: nowrap; }
.pill-live::before { content: ""; }

.hv-pay {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.chk { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-hierba); color: var(--t-hierba); }
.chk .ic { width: 16px; height: 16px; stroke-width: 2.8; }
.hv-pay div { display: grid; line-height: 1.2; }
.hv-pay small { font-size: 10.5px; color: var(--text-2); }
.hv-pay b { font-family: var(--f-display); font-size: 21px; font-weight: 800; }

/* Teléfono (siempre oscuro: es un dispositivo) */
.phone {
  width: 210px; height: 400px; padding: 7px;
  background: #0A1813; border: 1.5px solid #2B4A3D; border-radius: 36px;
  color: var(--text);
}
.phone-scr { position: relative; height: 100%; overflow: hidden; border-radius: 29px; background: var(--card); }
.ph-hero { height: 128px; background: var(--soft-pacifico); overflow: hidden; position: relative; }
.ph-hero svg { position: absolute; width: 190px; height: 190px; left: 50%; top: -24px; transform: translateX(-50%); }
.ph-body { padding: 14px 14px 0; display: grid; }
.ph-t { font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.ph-s { font-size: 10.5px; color: var(--text-2); margin-top: 2px; }
.ph-menu { margin-top: 12px; display: grid; }
.ph-menu li { display: flex; justify-content: space-between; gap: 8px; padding: 9px 8px; margin-inline: -8px; font-size: 11.5px; border-top: 1px solid var(--line); border-radius: 8px; transition: background-color .35s; }
.ph-menu li b { font-size: 11.5px; }
.ph-menu li.is-tap { background: var(--active); }
.ph-btn { margin-top: 14px; height: 38px; display: grid; place-items: center; border-radius: 999px; background: var(--cobre); color: var(--selva); font-size: 12.5px; font-weight: 800; }

@media (min-width: 720px) {
  .hv { height: calc(590px * var(--s, 1)); }
  .hv-canvas {
    position: absolute; top: 0; left: calc(50% - 300px * var(--s, 1));
    width: 600px; height: 590px; transform-origin: 0 0; transform: scale(var(--s, 1));
  }
  .layer { position: absolute; }
  .l-plate { left: 350px; top: -40px; width: 320px; height: 320px; }
  .hv-plate { width: 100%; height: 100%; }
  .l-board { left: 0; top: 88px; width: 440px; }
  .l-toast { left: 196px; top: 16px; width: max-content; }
  .l-phone { left: 392px; top: 196px; }
  .l-pay { left: 36px; top: 424px; }
  .hv-phone { width: 200px; height: 390px; }
  /* En columnas, el título va solo en su línea; el estado lo dice la columna (salvo los minutos en cocina) */
  .tk-top { display: grid; gap: 1px; }
  .tk[data-status="new"] .tk-st, .tk[data-status="ready"] .tk-st { display: none; }
}

/* ---------- 2. Franja de platos ---------- */
.mq { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 3vw, 30px); }
.mq-track { display: flex; width: max-content; will-change: transform; }
.mq-list { display: flex; flex-shrink: 0; }
.mq-list li {
  display: inline-flex; align-items: center; gap: .45em; padding-right: .9em;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 4rem);
  letter-spacing: -.035em; line-height: 1.1; white-space: nowrap;
}
.mq-list li:nth-child(even) { color: var(--text-2); }
.mq-list i { width: .3em; height: .3em; border-radius: 50%; background: var(--c); flex-shrink: 0; }

/* ---------- 3. Dolores ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain-card { padding: 30px 28px 32px; transform-style: preserve-3d; }
.pain-n { display: block; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 3.6vw, 3rem); letter-spacing: -.03em; line-height: 1; margin-bottom: 26px; }
.pain-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.pain-card p { margin-top: 12px; font-size: 14.5px; color: var(--text-2); }

/* ---------- 4. Soluciones ---------- */
.sol-wrap { position: relative; }
.sol-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; row-gap: 72px; }
.sol-card { padding: 26px; transition: border-color .4s, transform .5s var(--ease); }
.sol-card:hover { border-color: var(--ct); transform: translateY(-4px); }
.sol-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--soft); color: var(--ct); }
.sol-ic .ic { width: 22px; height: 22px; transition: transform .5s var(--spring); }
.sol-card:hover .sol-ic .ic { transform: scale(1.15) rotate(-6deg); }
.sol-card h3 { margin-top: 20px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.sol-card p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); }

.sol-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.sol-lines .sl { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; transition: stroke .4s; }
.sol-lines .sl.is-hot { stroke: var(--cobre); }
.sol-lines .sd { opacity: 0; }
.sol-hub {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 68px; height: 68px; margin: -34px 0 0 -34px;
  display: none; place-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 50%;
}
.sol-hub svg { width: 46px; height: 46px; }
.sol-hub::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid var(--cobre); animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .7; } to { transform: scale(1.9); opacity: 0; } }
.has-hub .sol-hub { display: grid; }

/* ---------- 5. Cómo funciona ---------- */
.how { display: flex; align-items: center; }
.how-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.how-copy .lead { margin-top: 20px; }
.steps-wrap { position: relative; padding-left: 28px; }
.how-line { position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.how-line i { position: absolute; inset: 0; background: var(--cobre); transform-origin: 50% 0; transform: scaleY(1); }
.steps { display: grid; gap: 16px; }
.step { position: relative; border-radius: 22px; }
.step-base, .step-fill { display: flex; align-items: center; gap: 24px; padding: 26px 28px; border-radius: 22px; }
.step-base { background: var(--card); border: 1px solid var(--line); }
.step-fill {
  position: absolute; inset: 0; background: var(--cobre); color: var(--selva);
  border: 1px solid var(--cobre); clip-path: inset(0 100% 0 0);
}
.step:last-child .step-fill { clip-path: inset(0 0 0 0); }
.step-n { flex-shrink: 0; width: 40px; font-family: var(--f-display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--t-cobre); }
.step-fill .step-n { color: var(--selva); }
.step h3 { font-family: var(--f-body); font-size: 17px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.step p { margin-top: 4px; font-size: 14px; color: var(--text-2); }
.step-fill p { color: rgba(13, 31, 25, .78); }

/* Escenario que acompaña a cada paso */
.stage { position: relative; margin-top: 36px; height: 232px; max-width: 430px; }
.scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.scene.is-on { opacity: 1; visibility: visible; }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.st-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-h b { font-size: 14.5px; }
.st-tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--soft-hierba); color: var(--t-hierba); font-size: 11px; font-weight: 800; }
.st-menu { margin-top: 12px; display: grid; gap: 8px; }
.st-menu li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 7px; border-radius: 14px; background: var(--elev); font-size: 13.5px; font-weight: 600; }
.st-menu b { font-size: 13.5px; }
.st-th { width: 40px; height: 40px; border-radius: 10px; background: #1B4040; overflow: hidden; display: grid; place-items: center; }
.st-th svg { width: 52px; height: 52px; }
.st-qr { display: flex; align-items: center; gap: 22px; height: 100%; }
.qr-box { width: 180px; height: 180px; flex-shrink: 0; padding: 14px; border-radius: 20px; background: var(--crema); color: var(--selva); }
.qr-box svg { width: 100%; height: 100%; }
.qr-box .q, .qr-box .qf-in { fill: currentColor; }
.qr-box .qf { fill: none; stroke: currentColor; stroke-width: 1; }
.st-qr > div:last-child { display: grid; gap: 6px; justify-items: start; }
.st-qr b { font-family: var(--f-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.st-qr small { font-size: 13.5px; color: var(--text-2); max-width: 22ch; }
.st-qr .st-tag { margin-top: 6px; }
.st-order .st-h b { font-family: var(--f-display); font-size: 22px; font-weight: 800; }
.st-sub { margin-top: 6px; font-size: 13.5px; color: var(--text-2); }
.st-pill { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; transition: background-color .4s, color .4s; }
.st-pill[data-s="new"] { background: var(--soft-aji); color: var(--t-aji); }
.st-pill[data-s="cooking"] { background: var(--soft-cobre); color: var(--t-cobre); }
.st-pill[data-s="ready"] { background: var(--soft-hierba); color: var(--t-hierba); }
.st-pay { margin-top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--elev); font-size: 14px; font-weight: 600; }
.st-pay b { margin-left: auto; font-family: var(--f-display); font-size: 20px; font-weight: 800; }

/* ---------- 6. Panel ---------- */
.dash-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.dash-copy .lead { margin-top: 20px; }
.dash-card { padding: clamp(18px, 2.4vw, 26px); }
.dash-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash-h b { font-family: var(--f-display); font-size: 17px; font-weight: 700; }
.dash-h .muted { font-size: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: var(--elev); display: grid; gap: 4px; min-width: 0; }
.kpi small { font-size: 12px; color: var(--text-2); }
.kpi b { font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.kpi--hl { background: var(--cobre); color: var(--selva); }
.kpi--hl small { color: rgba(13, 31, 25, .75); }
.bars {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 16px);
  height: 230px; margin-top: 24px; padding-bottom: 28px; align-items: end;
}
.bar { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.bar-f { width: 100%; height: calc(var(--h) * 100%); border-radius: 8px 8px 4px 4px; background: var(--active); transition: background-color .3s; }
.bar.is-hl .bar-f { background: var(--cobre); }
.bar:hover .bar-f { background: var(--cobre-claro); }
.bar em { position: absolute; left: 50%; bottom: -26px; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--text-2); }
.bar-tip {
  position: absolute; left: 50%; bottom: calc(var(--h) * 100% + 8px);
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  padding: 4px 8px; border-radius: 8px; background: var(--text); color: var(--bg);
  font-size: 11px; font-weight: 800; white-space: nowrap;
  transition: opacity .25s, transform .35s var(--ease);
}
.bar:hover .bar-tip { opacity: 1; transform: translate(-50%, 0); }
.bar.is-bump .bar-f { background: var(--cobre-claro); }

/* ---------- 7. Campañas ---------- */
.camp { padding-block: 0; overflow: clip; }
.camp-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vw, 44px); padding-block: calc(var(--hdr) + 32px) 40px; }
.camp-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.camp-track {
  --pad: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  display: flex; gap: 24px; width: max-content; padding-inline: var(--pad);
  will-change: transform;
}
.camp-card {
  position: relative; flex-shrink: 0; overflow: hidden;
  width: min(76vw, 620px); height: clamp(320px, 50vh, 420px);
  padding: clamp(24px, 3vw, 36px); border-radius: 28px;
  background: var(--c); color: var(--selva);
  display: flex; flex-direction: column; justify-content: space-between;
}
/* Muescas de ticket (color del fondo, forma plana) */
.camp-card::before, .camp-card::after { content: ""; position: absolute; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--bg); }
.camp-card::before { left: -15px; }
.camp-card::after { right: -15px; }
.cc-copy { position: relative; z-index: 1; max-width: 62%; }
.cc-tag { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: var(--selva); color: var(--c); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cc-copy h3 { margin-top: 22px; font-size: clamp(2.1rem, 4vw, 3.4rem); letter-spacing: -.035em; line-height: .98; }
.cc-copy p { margin-top: 14px; font-weight: 700; font-size: 15px; }
.cc-plate { position: absolute; right: -14%; bottom: -22%; width: 66%; height: auto; aspect-ratio: 1; }
.camp-card--maiz { color: var(--crema); }
.camp-card--maiz .cc-tag { color: #B794EC; }
.camp-card--end { background: var(--card); color: var(--text); border: 1px solid var(--line); width: min(76vw, 440px); justify-content: space-between; }
.camp-card--end::before, .camp-card--end::after { display: none; }
.camp-card--end .cc-copy { max-width: none; }
.camp-card--end h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-top: 0; }
.camp-card--end p { color: var(--text-2); font-weight: 600; }
.camp-card--end .btn { align-self: flex-start; }
.camp-foot { display: flex; align-items: center; gap: 20px; font-size: 12.5px; }
.camp-prog { flex: 1; max-width: 240px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.camp-prog i { display: block; height: 100%; background: var(--cobre); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 8. Para comensales (fondo cobre en ambos temas) ---------- */
.din { color: var(--selva); overflow: clip; }
.din-bg { position: absolute; inset: 0; background: var(--cobre); }
.din-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.din .eyebrow { color: var(--selva); }
.din-copy p { margin-top: 24px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 600; max-width: 40ch; color: rgba(13, 31, 25, .82); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; height: 62px; padding: 0 22px 0 18px;
  border-radius: 18px; background: var(--selva); color: var(--crema);
  transition: transform .5s var(--spring), background-color .3s;
}
.store:hover { transform: translateY(-4px); background: #132A22; }
.store .ic { width: 24px; height: 24px; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11px; opacity: .72; }
.store b { font-size: 17px; }
.din-visual { position: relative; height: 580px; }
.din-phone { position: absolute; left: 14%; top: 0; }
.din-phone .phone { transform: rotate(-10deg); }
.phone--lg { width: 290px; height: 570px; border-color: #0D1F19; border-width: 6px; border-radius: 46px; padding: 6px; }
.phone--lg .phone-scr { border-radius: 36px; }
.splash { display: grid; place-content: center; justify-items: center; gap: 22px; background: #0D1F19; }
.splash-logo { width: 190px; height: auto; color: #F4EDE0; animation: bob 2.6s var(--ease-io) infinite; }
.splash p { font-family: var(--f-display); font-weight: 700; font-size: 18px; color: #F08A4B; transform: rotate(-6deg); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.din-chip {
  position: absolute; right: 4%; top: 16%; z-index: 2;
  display: grid; padding: 12px 16px; border-radius: 16px; background: var(--selva); color: var(--crema); line-height: 1.25;
}
.din-chip small { font-size: 11px; font-weight: 800; color: var(--pacifico); }
.din-chip b { font-size: 15px; }
.din-plate { position: absolute; right: -8%; bottom: 0; width: 300px; height: 300px; }

/* ---------- 9. Seguimiento ---------- */
.track-grid { display: grid; grid-template-columns: .9fr 1fr .95fr; gap: clamp(20px, 2.6vw, 32px); align-items: center; }
.track-copy .lead { margin-top: 20px; }
.map { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #10251E; aspect-ratio: 420 / 520; }
.map-svg { width: 100%; height: 100%; }
.map-chip { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 10px; border-radius: 999px; background: #0D1F19; border: 1px solid #2B4A3D; font-size: 13px; color: var(--text); }
.map-chip .ic { width: 16px; height: 16px; }
.map-tx { font: 700 14px var(--f-body); fill: #F4EDE0; font-variant-numeric: tabular-nums; }
.map-tx--dark { fill: #0D1F19; }
.sheet { padding: 24px; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.sheet-top small { font-size: 13px; }
.eta { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 4px; }
.sheet-st { display: grid; justify-items: end; gap: 8px; text-align: right; }
.sheet-st b { color: var(--text); }
.st-live { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--soft-pacifico); color: var(--t-pacifico); font-size: 12.5px; font-weight: 800; transition: background-color .4s, color .4s; }
.st-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
.st-live.is-done { background: var(--soft-cobre); color: var(--t-cobre); }
.tl { margin-top: 22px; display: grid; }
.tl li { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; padding: 9px 0; font-size: 14.5px; }
.tl li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 34px; bottom: -8px; width: 2px; background: var(--line); }
.tl li.is-done:not(:last-child)::after { background: var(--c); }
.tl small { font-size: 12.5px; color: var(--text-2); }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; transition: background-color .4s, border-color .4s, color .4s; }
.tl-dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.tl li.is-done .tl-dot { background: var(--c); border-color: var(--c); color: var(--selva); }
.tl li.is-now .tl-dot { border-color: var(--c); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 12px var(--c); }
.tl li.is-now b { color: var(--t-pacifico); }
.tl li:not(.is-done):not(.is-now) b { color: var(--text-2); font-weight: 600; }
.rider-card { margin-top: 18px; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg); }
.avatar { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--soft-pacifico); color: var(--t-pacifico); font-family: var(--f-display); font-size: 20px; font-weight: 800; }
.rider-card div { display: grid; line-height: 1.3; min-width: 0; }
.rider-card div b { font-size: 14px; }
.rider-card small { font-size: 12px; color: var(--text-2); }
.rc-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--elev); }
.rc-btn .ic { width: 18px; height: 18px; }
.rc-btn--cobre { background: var(--cobre); color: var(--selva); }
.sheet-foot { margin-top: 16px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.sheet-foot b { color: var(--text); }

/* ---------- 10. Planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; transform-style: preserve-3d; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan > p { font-size: 14px; }
.price-v { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.price-v b { font-family: var(--f-display); font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; }
.price-v span { color: var(--text-2); font-weight: 600; }
.ticks { display: grid; gap: 10px; margin: 6px 0 12px; font-size: 14.5px; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; }
.ticks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--t-cobre); stroke-width: 2.6; }
.plan .btn { margin-top: auto; }
.plan--hl { top: -14px; background: var(--maiz); border-color: var(--maiz); color: var(--crema); }
.plan--hl > p, .plan--hl .price-v span { color: rgba(244, 237, 224, .8); }
.plan--hl .ticks .ic { color: var(--crema); }
.badge { position: absolute; top: -13px; right: 22px; padding: 5px 12px; border-radius: 999px; background: var(--aji); color: var(--selva); font-size: 12px; font-weight: 800; animation: wiggle 4s var(--ease-io) infinite; }
@keyframes wiggle { 0%, 84%, 100% { transform: rotate(0); } 88% { transform: rotate(-6deg); } 92% { transform: rotate(5deg); } 96% { transform: rotate(-2deg); } }

/* ---------- 11. Preguntas frecuentes ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--hdr) + 32px); }
.faq-head .lead { margin-top: 20px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa h3 { font: inherit; letter-spacing: normal; }
.qa-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; text-align: left;
  font-family: var(--f-display); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.015em;
  transition: color .3s;
}
.qa-q:hover { color: var(--link); }
.qa-ic { position: relative; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--elev); transition: background-color .4s, transform .6s var(--spring); }
.qa-ic::before, .qa-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--text); transition: background-color .4s; }
.qa-ic::after { transform: rotate(90deg); }
.qa.is-open .qa-ic { background: var(--cobre); transform: rotate(135deg); }
.qa.is-open .qa-ic::before, .qa.is-open .qa-ic::after { background: var(--selva); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.qa-a > div { overflow: hidden; }
.qa-a p { padding: 0 56px 24px 0; color: var(--text-2); max-width: 62ch; }
.qa.is-open .qa-a { grid-template-rows: 1fr; }

/* ---------- 12. Demo ---------- */
.cta-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); }
.cta-copy { position: relative; z-index: 1; padding-bottom: 90px; }
.cta-copy .lead { margin-top: 20px; }
.cta-plate { position: absolute; left: -54px; bottom: -70px; width: 220px; height: 220px; }
.form { position: relative; z-index: 1; padding: clamp(20px, 2.4vw, 28px); border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.form-fields { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; }
.field input {
  height: 52px; padding: 0 16px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--text);
  transition: border-color .3s, box-shadow .3s;
}
.field input::placeholder { color: var(--text-2); opacity: .7; }
.field input:focus { outline: none; border-color: var(--cobre); box-shadow: 0 0 0 4px var(--soft-cobre); }
.field input[aria-invalid="true"] { border-color: var(--rocoto); }
.err { min-height: 0; font-size: 12.5px; font-weight: 600; color: var(--t-rocoto); }
.err:empty { display: none; }
.form .btn { margin-top: 6px; }
.form-done { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 28px 8px; }
.form-done[hidden] { display: none; }
.done-ic { width: 72px; height: 72px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.done-ic circle { stroke: var(--hierba); stroke-width: 3; stroke-dasharray: 145; stroke-dashoffset: 145; animation: draw .8s var(--ease) forwards; }
.done-ic path { stroke: var(--hierba); stroke-width: 4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done h3 { font-size: 28px; outline: none; }
.form-done p { color: var(--text-2); max-width: 30ch; }
.form-done .link { margin-top: 6px; }

/* ---------- Footer ---------- */
.ftr { border-top: 1px solid var(--line); padding: 72px 0 28px; }
.ftr-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ftr-brand p { margin-top: 14px; color: var(--text-2); font-size: 14px; }
.ftr-brand .logo { width: 132px; }
.ftr-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 24px clamp(32px, 6vw, 72px); }
.ftr-cols h4 { font-family: var(--f-body); font-size: 13px; font-weight: 800; letter-spacing: 0; margin-bottom: 14px; }
.ftr-cols ul { display: grid; gap: 8px; }
.ftr-cols a { font-size: 14px; color: var(--text-2); transition: color .3s; }
.ftr-cols a:hover { color: var(--link); }
.ftr-big { margin: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); color: var(--text); }
.ftr-big svg { width: 100%; height: auto; overflow: visible; }
.ftr-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.soc { display: flex; gap: 18px; }
.soc a:hover { color: var(--link); }

.form-fields[hidden] { display: none; }

/* ---------- Estados que solo existen con animación activa (.anim) ---------- */
@media (min-width: 961px) {
  /* Secciones fijadas: caben en una pantalla */
  .how, .track { min-height: 100vh; padding-block: calc(var(--hdr) + 20px) 32px; display: flex; align-items: center; }
  .track > .wrap { width: 100%; }
}
@media (max-width: 960px) {
  .anim .step .step-fill { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease-io); }
  .anim .step.is-active .step-fill { clip-path: inset(0 0 0 0); }
}

/* ---------- Transición de tema (View Transitions) ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .hide-lg { display: none; }
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { max-width: 680px; }
  .hv { width: 100%; max-width: 620px; margin-inline: auto; }
  .track-grid { grid-template-columns: 1fr 1fr; }
  .track-copy { grid-column: 1 / -1; max-width: 640px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr-act { margin-left: auto; }
  .sec-head--split, .camp-head { grid-template-columns: 1fr; }
  .how-grid, .dash-grid, .faq-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .faq-head { position: static; }
  .din-grid { grid-template-columns: 1fr; }
  .din-visual { height: 520px; max-width: 520px; width: 100%; margin-inline: auto; }
  .cta-card { grid-template-columns: 1fr; }
  .cta-copy { padding-bottom: 0; }
  .cta-plate { left: auto; right: -60px; top: -70px; bottom: auto; width: 180px; height: 180px; }
  .cta-copy .h2 { padding-right: 90px; }
}

@media (max-width: 900px) {
  .pain-grid, .plans { grid-template-columns: 1fr; }
  .plan--hl { top: 0; }
  .camp-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
  .camp-track::-webkit-scrollbar { display: none; }
  .camp-card { scroll-snap-align: center; width: 84vw; height: 380px; }
  .camp-prog { display: none; }
}

@media (max-width: 719px) {
  :root { --hdr: 64px; }
  .hero { padding-top: calc(var(--hdr) + 28px); padding-bottom: 72px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .scroll-cue { display: none; }
  .hv-canvas { padding-top: 48px; }
  .l-plate { position: absolute; right: -70px; top: -10px; width: 220px; height: 220px; z-index: 0; }
  .hv-plate { width: 100%; height: 100%; }
  .l-board { position: relative; z-index: 1; width: calc(100% - 24px); }
  .l-toast, .l-phone { display: none; }
  .l-pay { position: relative; z-index: 1; margin-top: 14px; }
  /* Tablero en modo lista (como Web_movil) */
  .board-grid { grid-template-columns: 1fr; height: auto; gap: 8px; }
  .col-h { display: none; }
  .tk { grid-column: 1 !important; grid-template-columns: 1fr auto; padding: 11px 14px; }
  .tk-top { display: contents; }
  .tk-t { font-size: 13.5px; }
  .tk-st { font-size: 12px; }
  .tk-i, .tk-src, .tk-bar { display: none !important; }
  .tk[data-status="ready"] { background: var(--soft-hierba); }

  .sol-grid { grid-template-columns: 1fr; row-gap: 12px; }
  .sol-card { display: flex; gap: 16px; align-items: center; padding: 16px 18px; }
  .sol-card h3 { margin-top: 0; font-size: 18px; }
  .sol-card p { margin-top: 2px; font-size: 13.5px; }
  .sol-lines, .sol-hub, .has-hub .sol-hub { display: none; }

  .steps-wrap { padding-left: 0; }
  .how-line { display: none; }
  .step-base, .step-fill { padding: 20px; gap: 18px; }
  .step-n { font-size: 38px; width: 30px; }

  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi--hl { grid-column: 1 / -1; }
  .bars { height: 190px; }

  .din-visual { height: 460px; }
  .din-phone { left: 50%; margin-left: -125px; }
  .phone--lg { width: 250px; height: 490px; }
  .din-plate { width: 200px; height: 200px; right: -40px; }
  .din-chip { right: 0; top: 8%; }

  .track-grid { grid-template-columns: 1fr; }
  .map { max-width: 420px; width: 100%; margin-inline: auto; }
  .sheet { padding: 20px; }

  .qa-a p { padding-right: 0; }
  .ftr-cols { grid-template-columns: 1fr 1fr; width: 100%; }
}

@media (max-width: 560px) {
  .hide-sm { display: none; }
  .logo { width: 100px; }
  .rider-card { grid-template-columns: auto 1fr auto; }
  .rider-card .rc-btn:not(.rc-btn--cobre) { display: none; }
  .st-qr { flex-direction: column; }
}

/* ---------- Movimiento reducido: todo estático y legible ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spin, .splash-logo, .badge { animation: none !important; }
}
