/* cuiqli.com · mismo lenguaje visual del app: verde muy oscuro, Pesto como acción, Figtree. Sin estilos en línea (la política CSP no los permite) */

@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; src: url('/fonts/figtree-latin-ext-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; src: url('/fonts/caveat-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #050c07;
  --surface: #09130b;
  --raised: #101d13;
  --line: rgba(244, 241, 234, 0.13);
  --line-strong: rgba(244, 241, 234, 0.26);
  --ink: #f4f1ea;
  --soft: #d3d9cf;
  --muted: #9aa89d;
  --acc: #c4f135;
  --acc-ink: #07140a;
  --paper: #ebe7d7;
  --paper-ink: #1c2016;
  --w: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top 0.15s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }

/* Tipografía */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.45rem, 6.2vw, 4.5rem); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--soft); max-width: 56ch; }
.measure { max-width: 62ch; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, filter 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); box-shadow: 0 10px 34px rgba(196, 241, 53, 0.18); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
@media (hover: hover) {
  .btn:not([disabled]):hover { border-color: var(--ink); }
  .btn.primary:not([disabled]):hover { filter: brightness(1.07); border-color: var(--acc); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 50; background: rgba(5, 12, 7, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; color: var(--ink); min-height: 44px; align-items: center; }
.logo { display: block; width: auto; height: 26px; }
.nav-links { display: none; gap: 4px; align-items: center; }
.nav-links a { padding: 10px 14px; border-radius: 999px; color: var(--soft); text-decoration: none; font-size: 0.97rem; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a[aria-current='page'] { color: var(--ink); background: var(--raised); }
@media (hover: hover) { .nav-links a:hover { color: var(--ink); } }
.top .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; min-width: 44px; min-height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 8px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.menu-panel a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; text-decoration: none; font-weight: 500; }
.menu-panel a[aria-current='page'] { background: var(--raised); }
.top-end { display: flex; align-items: center; gap: 12px; }
.top-end .btn { display: none; }
.top-end .login { display: inline-flex; min-height: 44px; padding: 0 16px; font-size: 0.92rem; background: transparent; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu { display: none; }
  .top-end .btn { display: inline-flex; }
}

/* Secciones */
section { padding-block: clamp(64px, 9vw, 116px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin: 18px 0 0; }

/* Inicio: el ticket impreso es la pieza central */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 104px); background: radial-gradient(900px 460px at 78% 10%, rgba(196, 241, 53, 0.08), transparent 65%); }
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 72px; } }
.hero h1 { max-width: 14ch; }
.hero .lead { margin-top: 26px; }
.ticket-stage { display: grid; place-items: center; padding: 8px 0 28px; }
.ticket {
  position: relative; width: min(340px, 100%); background: var(--paper); color: var(--paper-ink);
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 13.5px; line-height: 1.6; padding: 30px 26px 34px;
  transform: rotate(1.8deg); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.ticket::after { content: ''; position: absolute; left: 0; right: 0; bottom: -13px; height: 14px; background: radial-gradient(circle at 8px 0, #050c07 7px, transparent 7.5px) 0 0 / 16px 14px repeat-x; }
.ticket-name { text-align: center; font-weight: 500; font-size: 1.05rem; letter-spacing: 0.06em; margin: 0; }
.ticket-sub { text-align: center; margin: 2px 0 0; opacity: 0.75; }
.ticket hr { border: 0; border-top: 1px dashed rgba(28, 32, 22, 0.45); margin: 14px 0; }
.ticket-row { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.ticket-row span:last-child { white-space: nowrap; }
.ticket-total { font-weight: 500; font-size: 1.1rem; margin-top: 2px; }
.ticket-foot { text-align: center; margin: 16px 0 0; opacity: 0.75; }
@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: print 2.1s cubic-bezier(0.45, 0.05, 0.25, 1) 0.35s both; }
  @keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px) rotate(1.8deg); } to { clip-path: inset(0 0 -16px 0); transform: translateY(0) rotate(1.8deg); } }
}

/* Resumen en cinco puntos */
.keys { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.keys-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .keys-grid { grid-template-columns: 0.55fr 1.45fr; gap: 64px; } }
.keys h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.keys ul { list-style: none; margin: 0; padding: 0; }
.keys li { padding: 14px 0 14px 34px; border-top: 1px solid var(--line); position: relative; color: var(--soft); }
.keys li:last-child { border-bottom: 1px solid var(--line); }
.keys li::before { content: ''; position: absolute; left: 4px; top: 26px; width: 12px; height: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }

/* Recorrido de un pedido: sí es una secuencia, por eso va numerada */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: paso; position: relative; max-width: 640px; }
.flow li { counter-increment: paso; position: relative; padding: 0 0 36px 64px; }
.flow li::before { content: counter(paso); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ground); display: grid; place-items: center; font-weight: 600; color: var(--acc); z-index: 1; }
.flow li::after { content: ''; position: absolute; left: 20.5px; top: 44px; bottom: 2px; width: 1px; background: var(--line-strong); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow h3 { margin-bottom: 6px; }
.flow p { margin: 0; color: var(--soft); }
.flow-layout { display: grid; gap: 56px; }
@media (min-width: 1000px) { .flow-layout { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; } }

/* Pantallas reales del producto */
.devices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 12px; }
.shot figcaption { margin-top: 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.frame { border: 1px solid var(--line-strong); border-radius: 16px; padding: 8px; background: var(--surface); }
.frame.phone { border-radius: 30px; padding: 7px; }
.frame.phone img { border-radius: 23px; }
.devices .wide { grid-column: 1 / -1; }
@media (min-width: 1000px) { .devices { grid-template-columns: 1fr 1fr; } }

/* Para quién */
.audience { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { .audience { grid-template-columns: 1fr 1fr; } .audience > div + div { border-left: 1px solid var(--line); } }
.audience > div { padding: clamp(28px, 4vw, 48px) 0; }
@media (min-width: 800px) { .audience > div { padding-inline: clamp(24px, 4vw, 56px); } .audience > div:first-child { padding-left: 0; } .audience > div:last-child { padding-right: 0; } }
.audience p { color: var(--soft); max-width: 44ch; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--acc); text-decoration: none; min-height: 44px; }
.more svg { width: 18px; height: 18px; transition: transform 0.15s; }
@media (hover: hover) { .more:hover svg { transform: translateX(4px); } }

/* Lo que incluye */
.rows { margin: 0; border-top: 1px solid var(--line); }
.rows > div { display: grid; gap: 6px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .rows > div { grid-template-columns: 0.42fr 1fr; gap: 40px; } }
.rows dt { font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; }
.rows dd { margin: 0; color: var(--soft); max-width: 60ch; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 64px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.2s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq .answer { padding: 0 0 24px; color: var(--soft); max-width: 66ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Cierre */
.closing { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(800px 360px at 15% 100%, rgba(196, 241, 53, 0.09), transparent 70%); }
.closing h2 { max-width: 18ch; }
.closing .trazo { position: absolute; right: -40px; bottom: -30px; width: min(560px, 80vw); opacity: 0.13; pointer-events: none; }
.trazo path { fill: none; stroke: var(--acc); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

/* Páginas internas y legales */
.page-head { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(32px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 20ch; }
.page-head .lead { margin-top: 22px; }
.crumbs { margin: 0 0 22px; padding: 0; list-style: none; display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 0.92rem; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; min-height: 24px; display: inline-block; }
@media (hover: hover) { .crumbs a:hover { color: var(--ink); } }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.2em 0 0.6em; }
.prose h3 { margin: 1.6em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--acc); }
.prose a { color: var(--acc); text-underline-offset: 3px; }
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose-block { padding-block: clamp(40px, 6vw, 72px); }
.doc-meta { color: var(--muted); font-size: 0.95rem; margin-top: 18px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.96rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--soft); }
.table-wrap th { color: var(--ink); font-weight: 600; background: var(--surface); }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Contacto */
.contact-grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; gap: 80px; } }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label, .field .label { font-weight: 600; font-size: 0.97rem; }
.field .hint { color: var(--muted); font-weight: 400; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; border-color: transparent; }
.field input[aria-invalid='true'], .field textarea[aria-invalid='true'] { border-color: #ff8a7a; }
.consents { display: grid; gap: 14px; margin: 4px 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--acc); }
.check span { color: var(--soft); font-size: 0.96rem; line-height: 1.5; }
.check a { color: var(--acc); text-underline-offset: 3px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--acc); }
.form-status.err { color: #ff9d8f; }
.side { border-top: 1px solid var(--line); }
.side > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.side h2 { font-size: 1.15rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.side p { margin: 0; color: var(--soft); }
.side a { color: var(--acc); text-underline-offset: 3px; }

/* Barra fija en teléfono: escribir o llamar */
.dock { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(5, 12, 7, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.dock .btn { flex: 1; min-height: 52px; }
body.has-dock { padding-bottom: 82px; }
@media (min-width: 760px) { .dock { display: none; } body.has-dock { padding-bottom: 0; } }

/* Compartir */
.share-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 28px; margin-top: 40px; border-top: 1px solid var(--line); color: var(--muted); }
.share-row .btn { min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.share-note { min-height: 1.4em; font-size: 0.92rem; }

/* Pie */
.foot { border-top: 1px solid var(--line); background: var(--surface); padding-block: 56px 40px; }
.foot-grid { display: grid; gap: 40px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.foot h2 { font-size: 0.95rem; letter-spacing: 0; margin-bottom: 14px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { color: var(--soft); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) { .foot a:hover { color: var(--acc); } }
.foot address { font-style: normal; color: var(--soft); line-height: 1.7; }
.foot .about { color: var(--muted); max-width: 34ch; margin-top: 14px; }
.legal-line { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

/* 404 */
.lost { min-height: 60vh; display: grid; align-content: center; }


/* ───────── Titulares (Figtree en pesos extremos) ───────── */
.hero-b h1, .story h2, .states h2, .rope-copy h2, .looks h2, .show h2, .bento-sec h2, .aud h2 { font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.hero-b h1 { font-weight: 700; letter-spacing: -0.05em; line-height: 0.94; }
.hero-b h1 .thin { display: block; font-size: 0.5em; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.12em; }

/* ───────── Hero: todo conectado ───────── */
.hero-b { position: relative; overflow: hidden; display: flex; flex-direction: column; background: #050c07; isolation: isolate; }
.hero-b .plate { display: none; }
.hero-b-copy { position: relative; z-index: 2; padding-top: clamp(40px, 8vw, 120px); padding-bottom: 8px; }
.hero-b h1 { font-size: clamp(3.6rem, 16vw, 6.6rem); }
.hero-b .lead .l2 { display: block; }
.hero-b .lead { margin-top: 22px; max-width: 34ch; }
.hero-b .actions { margin-top: 28px; }
.thread.on-wide { display: none; }
/* Teléfono: la escena va debajo del texto y se funde con el fondo */
.stage-m { position: relative; aspect-ratio: 1131 / 2000; margin-top: -34vw; z-index: 1; }
.plate-m { position: absolute; inset: 0; background: radial-gradient(500px 400px at 50% 40%, #0f2a16, #050c07); }
.has-plate .plate-m { background: url('/img/hero-b-mobile.webp') center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 94%, transparent 100%); }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.thread .cord { fill: none; stroke: var(--acc); stroke-linecap: round; stroke-linejoin: round; }
.thread .bd { filter: drop-shadow(0 0 10px rgba(196, 241, 53, 0.5)); }
.thread .mk { stroke: #fff; filter: none; }
.thread .glint { fill: none; stroke: var(--gl-core, #eaff8f); stroke-linecap: round; opacity: 0; }
.thread .glint { stroke: var(--gl-soft, #d8ff5a); }
.thread .glint.l1 { stroke-opacity: 0.1; } .thread .glint.l2 { stroke-opacity: 0.16; } .thread .glint.l3 { stroke-opacity: 0.3; }
.thread .glint.l4 { stroke: var(--gl-core, #eaff8f); stroke-opacity: 0.55; }
.thread .pill { fill: #f6f4ee; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.45)); }
.thread .halo { fill: #34c759; opacity: 0.3; transform-box: fill-box; transform-origin: center; }
.thread .dot { fill: #34c759; }
.thread text { fill: #0b140d; font-family: 'Figtree', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .hero-b { min-height: min(100svh, 900px); flex-direction: row; align-items: center; }
  .hero-b .plate { display: block; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 600px at 70% 55%, #0f2a16 0%, transparent 70%), #050c07; }
  .hero-b.has-plate .plate { background: url('/img/hero-b-desktop.webp') right center / cover no-repeat; }
  .hero-b::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(5, 12, 7, 0.94) 0%, rgba(5, 12, 7, 0.72) 32%, rgba(5, 12, 7, 0) 58%); pointer-events: none; }
  .hero-b-copy { padding-top: 0; padding-bottom: 0; max-width: 1560px; padding-inline: clamp(32px, 5vw, 96px); }
  .hero-b h1 { font-size: clamp(4.4rem, 7.6vw, 8rem); }
  .hero-b .lead { max-width: 46ch; }
  .thread.on-wide { display: block; }
  .stage-m { display: none; }
}
/* Secuencia: teléfono a caja, caja a barra y cocina a la vez, y ambas regresan a la mesa. La luz viaja con la punta del hilo y después envía señales sin pausa */
@media (prefers-reduced-motion: no-preference) {
  .thread .cord { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; animation: draw 0.9s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
  .thread .c0 { animation-delay: 0.3s; }
  .thread .c1, .thread .c2 { animation-delay: 1.2s; }
  .thread .c3, .thread .c4 { animation-delay: 2.1s; animation-duration: 1.1s; }
  .thread .tip { stroke-dasharray: 0.1 0.9; stroke-dashoffset: 1.1; opacity: 0; animation: tip 0.9s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
  .thread .t0 { animation-delay: 0.3s; }
  .thread .t1, .thread .t2 { animation-delay: 1.2s; }
  .thread .t3, .thread .t4 { animation-delay: 2.1s; animation-duration: 1.1s; }
  .thread .pulse { stroke-dasharray: 0.07 0.43; stroke-dashoffset: 0.5; opacity: 0; animation: pulse 1.5s linear infinite, show 0.01s forwards; }
  .thread .p0 { animation-delay: 1.2s, 1.2s; }
  .thread .p1, .thread .p2 { animation-delay: 2.1s, 2.1s; }
  .thread .p3, .thread .p4 { animation-delay: 3.2s, 3.2s; }
  .thread .node { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop 0.5s var(--ease) forwards; }
  /* Teléfono: de Mesa salen Cocina y Barra casi a la vez, ambas llegan a Caja y Caja regresa a Mesa */
  .thread.on-narrow .c0, .thread.on-narrow .t0 { animation-delay: 0.3s; animation-duration: 0.7s; }
  .thread.on-narrow .c1, .thread.on-narrow .t1 { animation-delay: 0.55s; animation-duration: 0.85s; }
  .thread.on-narrow .c2, .thread.on-narrow .t2 { animation-delay: 1.05s; animation-duration: 1.2s; }
  .thread.on-narrow .c3, .thread.on-narrow .t3 { animation-delay: 1.45s; animation-duration: 1s; }
  .thread.on-narrow .c4, .thread.on-narrow .t4 { animation-delay: 2.45s; animation-duration: 1.5s; }
  .thread.on-narrow .p0 { animation-delay: 1s, 1s; } .thread.on-narrow .p1 { animation-delay: 1.4s, 1.4s; }
  .thread.on-narrow .p2 { animation-delay: 2.25s, 2.25s; } .thread.on-narrow .p3 { animation-delay: 2.45s, 2.45s; } .thread.on-narrow .p4 { animation-delay: 3.95s, 3.95s; }
  .thread.on-narrow .n1 { animation-delay: 0.95s; } .thread.on-narrow .n2 { animation-delay: 1.4s; } .thread.on-narrow .n3 { animation-delay: 2.3s; }
  .thread.on-narrow .n1 .halo { animation-delay: 1.4s; } .thread.on-narrow .n2 .halo { animation-delay: 1.9s; } .thread.on-narrow .n3 .halo { animation-delay: 2.7s; }
  .thread .n0 { animation-delay: 0.05s; } .thread .n3 { animation-delay: 1s; } .thread .n1, .thread .n2 { animation-delay: 1.9s; }
  .thread .halo { animation: beat 3.6s ease-in-out infinite; }
  .thread .n3 .halo { animation-delay: 1.4s; } .thread .n1 .halo { animation-delay: 2.4s; } .thread .n2 .halo { animation-delay: 2.8s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes tip { 0% { stroke-dashoffset: 1.1; opacity: 1; } 99% { opacity: 1; } 100% { stroke-dashoffset: 0.1; opacity: 0; } }
  @keyframes pulse { to { stroke-dashoffset: 0; } }

  /* Luz difusa: cada capa es más corta y más angosta que la anterior y queda centrada, así no se ven bordes duros */
  .thread .pulse.l1 { stroke-dasharray: 0.11 0.39; stroke-dashoffset: 0.5; animation-name: pulse-l1, show; }
  .thread .tip.l1 { stroke-dasharray: 0.11 1; stroke-dashoffset: 1.1; animation-name: tip-l1; }
  @keyframes pulse-l1 { to { stroke-dashoffset: -0.0; } }
  @keyframes tip-l1 { 0% { stroke-dashoffset: 1.1; opacity: 1; } 99% { opacity: 1; } 100% { stroke-dashoffset: 0.1; opacity: 0; } }
  .thread .pulse.l2 { stroke-dasharray: 0.08 0.42; stroke-dashoffset: 0.485; animation-name: pulse-l2, show; }
  .thread .tip.l2 { stroke-dasharray: 0.08 1; stroke-dashoffset: 1.085; animation-name: tip-l2; }
  @keyframes pulse-l2 { to { stroke-dashoffset: -0.015; } }
  @keyframes tip-l2 { 0% { stroke-dashoffset: 1.085; opacity: 1; } 99% { opacity: 1; } 100% { stroke-dashoffset: 0.085; opacity: 0; } }
  .thread .pulse.l3 { stroke-dasharray: 0.055 0.445; stroke-dashoffset: 0.4725; animation-name: pulse-l3, show; }
  .thread .tip.l3 { stroke-dasharray: 0.055 1; stroke-dashoffset: 1.0725; animation-name: tip-l3; }
  @keyframes pulse-l3 { to { stroke-dashoffset: -0.0275; } }
  @keyframes tip-l3 { 0% { stroke-dashoffset: 1.0725; opacity: 1; } 99% { opacity: 1; } 100% { stroke-dashoffset: 0.0725; opacity: 0; } }
  .thread .pulse.l4 { stroke-dasharray: 0.03 0.47; stroke-dashoffset: 0.46; animation-name: pulse-l4, show; }
  .thread .tip.l4 { stroke-dasharray: 0.03 1; stroke-dashoffset: 1.06; animation-name: tip-l4; }
  @keyframes pulse-l4 { to { stroke-dashoffset: -0.04; } }
  @keyframes tip-l4 { 0% { stroke-dashoffset: 1.06; opacity: 1; } 99% { opacity: 1; } 100% { stroke-dashoffset: 0.06; opacity: 0; } }
  @keyframes show { to { opacity: 1; } }
  @keyframes pop { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
  @keyframes beat { 0%, 100% { transform: scale(0.9); opacity: 0.12; } 50% { transform: scale(1.9); opacity: 0.4; } }
}
@media (prefers-reduced-motion: reduce) { .thread .glint { display: none; } }

/* ───────── Estados del pedido ───────── */
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; letter-spacing: -0.01em; background: rgba(244, 241, 234, 0.12); color: var(--ink); }
.chip.st-preparando { background: rgba(255, 176, 32, 0.18); color: #ffc65a; }
.chip.st-listo { background: rgba(52, 199, 89, 0.18); color: #5fe083; }
.chip.st-entregado { background: rgba(244, 241, 234, 0.1); color: var(--soft); }
.states .section-head { margin-bottom: 36px; }
.state-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; position: relative; }
.state-list li { position: relative; padding-left: 28px; border-left: 2px solid var(--line-strong); }
.state-list li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); }
.state-list h3 { margin: 12px 0 6px; font-weight: 650; font-size: 1.3rem; letter-spacing: -0.02em; }
.state-list p { margin: 0; color: var(--soft); max-width: 36ch; }
@media (min-width: 900px) {
  .state-list { grid-template-columns: repeat(4, 1fr); gap: 32px; padding-top: 22px; }
  .state-list::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line-strong); }
  .state-list li { padding: 0; border: 0; }
  .state-list li::before { left: 0; top: -22px; }
}

/* ───────── Cierre con el lazo (3D, ligado al scroll) ───────── */
.rope-band { position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(560px, 130vw, 680px); padding-block: 40px; background: radial-gradient(700px 300px at 50% 50%, rgba(196, 241, 53, 0.07), transparent 70%); overflow: hidden; --e: 1; --t1: 1; --t2: 1; --t3: 1; }
.lazo-art { position: absolute; left: 50%; top: 50%; width: min(118vw, 760px); aspect-ratio: 600 / 700; translate: -50% -50%; perspective: 900px; pointer-events: none; }
.lazo-art picture, .lazo-art img { display: block; width: 100%; height: 100%; -webkit-user-select: none; user-select: none; }
.lazo-art img { transform-origin: 50% 46%; transform: translateY(var(--ly, 0px)) rotateX(var(--lx, 0deg)) rotateZ(var(--lr, 0deg)) scale(var(--ls, 1)); opacity: var(--lo, 1); will-change: transform; }
.rope-copy { position: relative; z-index: 1; width: min(100%, 250px); margin: 0 auto; }
.rope-copy h2 { font-size: clamp(1.9rem, 8vw, 4rem); opacity: var(--t1); transform: translateY(calc((1 - var(--t1)) * 46px)); }
.rope-copy .lead { margin: 14px auto 0; opacity: var(--t2); transform: translateY(calc((1 - var(--t2)) * 40px)); }
.rope-copy .actions { justify-content: center; margin-top: 26px; opacity: var(--t3); transform: translateY(calc((1 - var(--t3)) * 36px)); }
@media (min-width: 900px) {
  .rope-band { min-height: 660px; }
  .rope-copy { width: min(100%, 520px); }
  .lazo-art { width: min(116vw, 1380px); aspect-ratio: 1200 / 520; }
  .rope-copy h2 { font-size: clamp(2.3rem, 6vw, 4rem); }
}

/* ───────── Plantillas en vivo ───────── */
.looks { background: var(--surface); }
.looks-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .looks-grid { grid-template-columns: 1fr 0.9fr; gap: 72px; } }
.looks h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.looks .lead { margin-top: 16px; }
.look-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 400px; margin-top: 28px; }
.look-picks button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.look-picks button[aria-checked='true'] { border-color: var(--acc); background: rgba(196, 241, 53, 0.1); }
.sw { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(244, 241, 234, 0.35); }
.sw svg { width: 15px; height: 17px; }
.sw-pesto { background: #0b140d; fill: #c4f135; }
.sw-chipotle { background: #2b1210; fill: #ff9b54; }
.sw-guinda { background: #3a1020; fill: #f6c28b; }
.sw-maiz { background: #fbf2e2; fill: #b8561f; }
.look-card { --lg: #0b140d; --ls: #14211a; --li: #f4f1ea; --la: #c4f135; --lo: #07140a; justify-self: center; width: min(360px, 100%); border-radius: 34px; padding: 12px; background: #0a0d0b; color: #f4f1ea; border: 1px solid rgba(244, 241, 234, 0.16); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5); }
.lk-screen { position: relative; aspect-ratio: 390 / 800; overflow: hidden; border-radius: 28px; background: #050c07; }
.look-card[data-look='chipotle'] { --lg: #2b1210; --ls: #3b1d19; --li: #fbeee3; --la: #ff9b54; --lo: #2b1210; }
.look-card[data-look='guinda'] { --lg: #3a1020; --ls: #4c1b2e; --li: #fbeee3; --la: #f6c28b; --lo: #3a1020; }
.look-card[data-look='maiz'] { --lg: #fbf2e2; --ls: #fff9ee; --li: #2a1a10; --la: #b8561f; --lo: #ffffff; border-color: rgba(42, 26, 16, 0.14); }



/* ───────── Historia: sin conexión y con cuiqli ───────── */
.story { background: linear-gradient(180deg, transparent, rgba(196, 241, 53, 0.04)); }
.duo-head { display: none; }
.duo { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.duo li { display: grid; gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.duo p { margin: 0; padding: 22px 24px; }
.duo .before { color: var(--muted); background: rgba(244, 241, 234, 0.03); text-decoration: line-through; text-decoration-color: rgba(244, 241, 234, 0.3); }
.duo .after { color: var(--ink); font-weight: 600; font-size: 1.1rem; background: linear-gradient(135deg, rgba(196, 241, 53, 0.14), rgba(196, 241, 53, 0.04)); letter-spacing: -0.015em; }
.duo .join { height: 2px; background: var(--acc); box-shadow: 0 0 14px rgba(196, 241, 53, 0.6); }
@media (min-width: 900px) {
  .duo-head { display: grid; grid-template-columns: 1fr 56px 1fr; margin-bottom: 12px; color: var(--muted); font-weight: 600; font-size: 0.95rem; padding-inline: 4px; }
  .duo-head span:last-child { color: var(--acc); grid-column: 3; }
  .duo-head span:first-child { grid-column: 1; }
  .duo li { grid-template-columns: 1fr 56px 1fr; align-items: stretch; background: transparent; border: 0; border-radius: 0; overflow: visible; }
  .duo p { border-radius: 20px; display: flex; align-items: center; padding: 26px 28px; }
  .duo .join { height: 2px; align-self: center; position: relative; }
  .duo .join::after { content: ''; position: absolute; right: -1px; top: -4px; width: 10px; height: 10px; border-top: 2px solid var(--acc); border-right: 2px solid var(--acc); transform: rotate(45deg); }
}

/* ───────── Se ve así ───────── */
.show { background: var(--surface); overflow: hidden; }
.show-grid { display: grid; gap: 28px; }
.show-phones { display: flex; gap: 16px; justify-content: center; }
.show-phones .shot { flex: 1 1 0; max-width: 240px; min-width: 0; }
@media (min-width: 1000px) {
  .show-grid { grid-template-columns: 1.6fr 1fr; align-items: end; gap: 40px; }
  .show-phones .shot:first-child { transform: translateY(-36px); }
}

/* ───────── Todo lo que incluye ───────── */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tile { position: relative; padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(244, 241, 234, 0.05), rgba(244, 241, 234, 0.015)); transition: border-color 0.2s, transform 0.2s var(--ease); }
.tile h3 { margin: 18px 0 8px; font-size: 1.25rem; font-weight: 650; }
.tile p { margin: 0; color: var(--soft); max-width: 44ch; }
.tile-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(196, 241, 53, 0.12); color: var(--acc); }
.tile-ic svg { width: 26px; height: 26px; }
.tile.wide { background: linear-gradient(150deg, rgba(196, 241, 53, 0.16), rgba(196, 241, 53, 0.03) 70%); border-color: rgba(196, 241, 53, 0.28); }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile.wide { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(3, 1fr); } .tile.wide h3 { font-size: 1.6rem; } }
@media (hover: hover) { .tile:hover { border-color: rgba(196, 241, 53, 0.45); transform: translateY(-3px); } }

/* ───────── Restaurantes y eventos ───────── */
.aud-cards { display: grid; gap: 16px; }
.aud-cards article { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: 28px; border: 1px solid var(--line-strong); background: radial-gradient(520px 260px at 100% 0, rgba(196, 241, 53, 0.14), transparent 70%), var(--surface); }
.aud-cards h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 650; letter-spacing: -0.035em; margin-bottom: 14px; }
.aud-cards p { color: var(--soft); max-width: 40ch; margin-bottom: 18px; }
@media (min-width: 800px) { .aud-cards { grid-template-columns: 1fr 1fr; } }

/* ───────── Cierre ───────── */
.closing { background: radial-gradient(900px 420px at 15% 100%, rgba(196, 241, 53, 0.16), transparent 70%); }
.closing h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 650; letter-spacing: -0.04em; max-width: 16ch; }
.closing .trazo { opacity: 0.22; }

/* Encabezado y cierre alineados al ancho del hero en pantallas grandes */
@media (min-width: 900px) { .top .wrap { max-width: 1560px; padding-inline: clamp(32px, 5vw, 96px); } }


/* ───────── Así viaja un pedido: tarjetas con volumen ───────── */
main { position: relative; }
.bridge { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.br-base, .br-pulse, .br-mask { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 6; }
.fd-base { fill: none; stroke: var(--acc); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 1.05; filter: drop-shadow(0 0 10px rgba(196, 241, 53, 0.6)); }
.br-mask { stroke: #fff; stroke-width: 14; stroke-dasharray: 1 2; stroke-dashoffset: 1.05; }
.br-base { stroke: var(--acc); stroke-dasharray: 1 2; stroke-dashoffset: 1.05; filter: drop-shadow(0 0 10px rgba(196, 241, 53, 0.6)); }
.br-pulse { stroke: #d8ff5a; opacity: 0; }
.br-pulse.b1 { stroke-width: 15; stroke-opacity: 0.1; } .br-pulse.b2 { stroke-width: 9; stroke-opacity: 0.2; } .br-pulse.b3 { stroke: #eaff8f; stroke-width: 3; stroke-opacity: 0.6; }
.bridge.linked .br-pulse { opacity: 1; animation: brpulse 1.4s linear infinite; }
@keyframes brpulse { from { stroke-dashoffset: var(--per, 0.1); } to { stroke-dashoffset: 0; } }
.bridge.flick { animation: flicker 0.5s steps(1, end) 1; }
@keyframes flicker { 0% { opacity: 1; } 15% { opacity: 0.2; } 30% { opacity: 0.9; } 45% { opacity: 0.1; } 70% { opacity: 0.7; } 85% { opacity: 0.15; } 100% { opacity: 0.55; } }
.bridge.dead .br-base { opacity: 0.55; }
.states .section-head { max-width: 420px; }
.flow3 { position: relative; }
.fl-line { position: absolute; z-index: 0; left: 8px; top: 18px; width: 6px; height: calc(100% - 36px); }
  .fl-base { position: absolute; inset: 0; border-radius: 6px; background: var(--line-strong); }
.state-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 18px; position: relative; z-index: 1; }
.sc { position: relative; display: flex; flex-direction: column; padding-left: 38px; }
.sc-node { position: absolute; left: 0; top: 22px; width: 20px; height: 20px; border-radius: 50%; background: #0c1a10; border: 3px solid var(--line-strong); transition: background 0.4s, border-color 0.4s, box-shadow 0.4s; z-index: 2; }
.sc-face { position: relative; flex: 1; padding: 24px; border-radius: 26px; border: 1px solid rgba(196, 241, 53, 0.2); background: linear-gradient(160deg, #18291c, #0d1a10 70%); box-shadow: 0 1px 0 #1f3724, 0 2px 0 #1b2f20, 0 3px 0 #17291b, 0 4px 0 #132417, 0 5px 0 #0f1e13, 0 22px 40px rgba(0, 0, 0, 0.5); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s; }
.sc-face::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px 160px at var(--mx, 30%) var(--my, 0%), rgba(196, 241, 53, 0.16), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.sc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.sc-ic { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; color: var(--acc); background: rgba(196, 241, 53, 0.1); border: 1px solid rgba(196, 241, 53, 0.25); transition: transform 0.4s var(--ease), background 0.4s, box-shadow 0.4s; }
.sc-ic svg { width: 28px; height: 28px; }
.sc h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.025em; margin-bottom: 8px; }
.sc p { margin: 0; color: var(--soft); }
/* Encendida: la tarjeta se levanta y brilla */
.sc.on .sc-node { background: var(--acc); border-color: #0c1a10; box-shadow: 0 0 0 4px rgba(196, 241, 53, 0.25), 0 0 22px rgba(196, 241, 53, 0.9); }
.sc.on .sc-face { border-color: rgba(196, 241, 53, 0.65); box-shadow: 0 1px 0 #2a4a30, 0 2px 0 #243f29, 0 3px 0 #1e3523, 0 4px 0 #182b1c, 0 5px 0 #122216, 0 6px 0 #0e1b12, 0 28px 50px rgba(0, 0, 0, 0.55), 0 0 44px rgba(196, 241, 53, 0.16); transform: translateY(-6px); }
.sc.on .sc-face::before { opacity: 1; }
.sc.on .sc-ic { background: rgba(196, 241, 53, 0.22); box-shadow: 0 0 22px rgba(196, 241, 53, 0.45); }
.flow3.charged .sc.i3 .sc-face { animation: charge 1.5s ease-out; }
.flow3.charged .sc.i3 .sc-node { animation: chargenode 1.5s ease-out; }
@keyframes charge { 0%, 100% { box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55), 0 0 44px rgba(196, 241, 53, 0.16); } 35% { box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55), 0 0 110px rgba(196, 241, 53, 0.7); } 65% { box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(196, 241, 53, 0.2); } 82% { box-shadow: 0 28px 50px rgba(0, 0, 0, 0.55), 0 0 90px rgba(196, 241, 53, 0.55); } }
@keyframes chargenode { 35%, 82% { box-shadow: 0 0 0 12px rgba(196, 241, 53, 0.3), 0 0 40px #c4f135; } }
.flow3.done .sc.i3 .sc-node { animation: blink 2.4s steps(1, end) infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 8% { opacity: 0.25; } 16% { opacity: 1; } 55% { opacity: 1; } 60% { opacity: 0.35; } 64% { opacity: 1; } }
@media (min-width: 1000px) {
  .states .wrap { padding-top: 0; }
  .state-cards { grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
  .sc { padding: 52px 0 0; }
  .sc-node { left: 50%; top: 0; width: 26px; height: 26px; margin-left: -13px; }
  .sc h3 { min-height: 2.6em; }
  .fl-line { left: var(--lx, 12.5%); top: 10px; width: var(--lw, 75%); height: 6px; }
}
@media (max-width: 999px) { .flow3 { margin-left: -18px; } .fl-line { left: var(--lx, 9px); top: var(--ly, 32px); height: var(--lh, calc(100% - 64px)); } .sc-node { left: 0; } }
@media (hover: hover) {
  .sc-face { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .sc:hover .sc-face { border-color: rgba(196, 241, 53, 0.6); transform: perspective(900px) translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
  .sc:hover .sc-face::before { opacity: 1; }
  .sc:hover .sc-ic { transform: scale(1.12) rotate(-6deg); background: rgba(196, 241, 53, 0.2); }
}
@media (prefers-reduced-motion: reduce) { .sc-node { background: var(--acc); } .sc-face { transition: none; } .bridge { display: none; } }

/* ───────── ¿Por qué elegir cuiqli? ───────── */
.why { background: radial-gradient(900px 500px at 0 0, rgba(196, 241, 53, 0.1), transparent 70%); }
.why-grid { display: grid; gap: 44px; align-items: start; }
@media (min-width: 960px) { .why-grid { grid-template-columns: 0.9fr 1.1fr; gap: 80px; } .why-head { position: sticky; top: 110px; } }
.why h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.12; }
.why h2 .logo { display: inline-block; vertical-align: -0.12em; height: 0.9em; width: auto; margin-inline: 0.08em; }
.why .lead { margin-top: 18px; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust li { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(196, 241, 53, 0.45); background: rgba(196, 241, 53, 0.08); font-weight: 600; font-size: 0.95rem; color: var(--acc); }
.why .lead .brand { color: #c4f135; font-weight: 700; }
.js .trust li { opacity: 0; filter: blur(8px); transform: scale(0.94); transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s var(--ease); }
.js .trust li.on { opacity: 1; filter: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .trust li { opacity: 1; filter: none; transform: none; transition: none; } }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reasons li { position: relative; padding: 28px; border-radius: 26px; border: 1px solid var(--line-strong); background: linear-gradient(160deg, rgba(244, 241, 234, 0.06), rgba(244, 241, 234, 0.015)); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), 0 20px 40px rgba(0, 0, 0, 0.3); transition: transform 0.35s var(--ease), border-color 0.3s; }
.reasons h3 { font-size: 1.45rem; font-weight: 650; letter-spacing: -0.03em; margin-bottom: 14px; }
.reasons p { margin: 0; }
.reasons .before { color: var(--muted); font-size: 0.98rem; }
.reasons .after { margin-top: 10px; color: var(--ink); font-weight: 600; padding-left: 26px; position: relative; }
.reasons .after::before { content: ''; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
@media (hover: hover) { .reasons li:hover { transform: translateY(-6px); border-color: rgba(196, 241, 53, 0.5); } }

/* Hilo conductor de las razones: se dibuja al bajar y cada razón se enciende al llegar */
.reasons { position: relative; padding-left: 44px; }
.reasons .spine { position: absolute; left: 11px; top: 28px; bottom: 28px; padding: 0; border: 0; background: none; box-shadow: none; width: 3px; }
.sp-base, .sp-fill { position: absolute; inset: 0; border-radius: 3px; }
.sp-base { background: var(--line-strong); }
.sp-fill { background: var(--acc); box-shadow: 0 0 14px rgba(196, 241, 53, 0.7); transform: scaleY(var(--p, 1)); transform-origin: top; }
.reasons li.rs { position: relative; }
.rs-node { position: absolute; left: -44px; top: 30px; width: 24px; height: 24px; border-radius: 50%; background: #0c1a10; border: 3px solid var(--line-strong); transition: background 0.4s, box-shadow 0.4s; }
.rs.on .rs-node { background: var(--acc); box-shadow: 0 0 0 4px rgba(196, 241, 53, 0.25), 0 0 20px rgba(196, 241, 53, 0.9); }
.reasons .before span { background: linear-gradient(rgba(244, 241, 234, 0.6), rgba(244, 241, 234, 0.6)) no-repeat 0 58% / 100% 2px; }
.js .reasons .before span { background-size: 0 2px; transition: background-size 0.8s var(--ease) 0.15s; }
.js .rs.on .before span { background-size: 100% 2px; }
.js .rs .after { opacity: 0.25; transform: translateY(8px); transition: opacity 0.6s ease 0.7s, transform 0.6s var(--ease) 0.7s; }
.js .rs.on .after { opacity: 1; transform: none; }
.js .rs.on { border-color: rgba(196, 241, 53, 0.4); }
.js .rs.on .before { opacity: 0.6; transition: opacity 0.6s ease 0.5s; }
@media (prefers-reduced-motion: reduce) { .js .reasons .before span { background-size: 100% 2px; transition: none; } .js .rs .after { opacity: 1; transform: none; transition: none; } .sp-fill { transform: none; } }

/* En teléfono, el hero espera a que el hilo llegue a la tarjeta Mesa para arrancar */
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .js .hero-b:not(.go) .thread.on-narrow * { animation-play-state: paused !important; }
}

/* Así viaja: el título se alinea con las tarjetas y no queda pegado al hilo */
@media (max-width: 999px) { .states .section-head { padding-left: 20px; } }

/* ───────── Joyería: el mismo hilo en otro negocio, de día y en azul eléctrico ───────── */
.jewel { position: relative; --acc: #f2b01e; --gl-core: #ffe39a; --gl-soft: #ffc933; background: #f5f2ea; color: #16221b; padding: clamp(64px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); isolation: isolate; }
.jewel::before, .jewel::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0; }
.jewel::before { top: 0; height: 90px; background: linear-gradient(var(--ground), rgba(5, 12, 7, 0)); }
.jewel::after { bottom: 0; height: 110px; background: linear-gradient(rgba(5, 12, 7, 0), var(--ground)); transition: height 1.2s var(--ease); }
.jewel.done::after { height: min(760px, 70%); }
.jewel > * { position: relative; z-index: 1; }
.jewel h2 { color: #0f1c15; font-size: clamp(2.2rem, 5.4vw, 4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; }
.jewel .lead { color: #46564d; margin-top: 18px; max-width: 46ch; }
.jw-stage { position: relative; overflow: hidden; border-radius: 28px 28px 0 0; margin: 36px auto 0; }
.jw-stage img { display: block; width: 100%; height: auto; filter: brightness(0.93) saturate(1.04); }
.jw-wide { display: none; width: min(1400px, calc(100% - 2 * var(--gutter))); }
.jw-narrow { width: min(520px, calc(100% - 2 * var(--gutter))); }
@media (min-width: 900px) { .jw-wide { display: block; } .jw-narrow { display: none; } }
/* El hilo se dibuja con el scroll; la luz recorre solo lo ya dibujado */
.jewel .thread .cord { animation: none; }
.jewel .thread .bd { filter: drop-shadow(0 0 5px rgba(242, 176, 30, 0.95)) drop-shadow(0 0 16px rgba(242, 176, 30, 0.6)); }
.jewel .thread .mk { filter: none; }
.jewel .thread .tip { display: none; }
.jewel .thread .glint.l1 { animation-name: pulse-l1; } .jewel .thread .glint.l2 { animation-name: pulse-l2; } .jewel .thread .glint.l3 { animation-name: pulse-l3; } .jewel .thread .glint.l4 { animation-name: pulse-l4; }

.jewel .thread .glint { opacity: 1; animation: pulse 1.5s linear infinite; }
.jewel .thread .pill { filter: drop-shadow(0 8px 16px rgba(20, 30, 60, 0.3)); }
.jewel .thread .dot, .jewel .thread .halo { fill: #e0950a; }
.jewel .thread .node { animation: none; }
.jewel .thread .halo { animation: beat 3.6s ease-in-out infinite; }
.jewel .thread .neg { fill: #c4161c; font-family: 'Caveat', cursive; font-weight: 700; opacity: 0; letter-spacing: 0; }
.js .jewel .thread .cord { stroke-dasharray: 1 2; stroke-dashoffset: 1.05; }
.js .jewel .thread .node { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.88); transition: opacity 0.4s, transform 0.5s var(--ease); }
.js .jewel .thread .node.on { opacity: 1; transform: none; }
.jewel .thread .n1.on .neg { animation: ngL 2.4s ease-out infinite; }
.jewel .thread .n1.on .ng1 { animation-delay: 0.8s; }
.jewel .thread .n1.on .ng2 { animation-delay: 1.6s; }
@keyframes ngL { 0% { opacity: 0; transform: translateY(8px); } 8% { opacity: 1; transform: none; } 28% { opacity: 1; transform: none; } 33.3% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 0; } }
.jewel .thread .neg { transform-box: fill-box; transform-origin: center; }
/* Tarjetas centradas que se encienden cuando llega el hilo */
.jw-after { position: relative; width: min(520px, calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-top: 36px; }
.jw-rail { position: absolute; left: 50%; top: 0; width: 6px; margin-left: -3px; height: var(--rh, 100%); border-radius: 6px; background: rgba(22, 34, 27, 0.14); z-index: 0; }
.jw-fill { position: absolute; inset: 0; border-radius: inherit; background: #e0950a; box-shadow: 0 0 6px rgba(242, 176, 30, 0.95), 0 0 18px rgba(242, 176, 30, 0.6); transform-origin: top; transform: scaleY(var(--rp, 0)); }
.jewel.done .jw-fill { background: #c4f135; box-shadow: 0 0 6px rgba(196, 241, 53, 0.9), 0 0 18px rgba(196, 241, 53, 0.6); }
.jw-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; position: relative; z-index: 1; }
.jc { position: relative; padding: 22px 28px; border-radius: 22px; background: #fff; border: 1px solid rgba(22, 34, 27, 0.12); text-align: center; box-shadow: 0 10px 26px rgba(30, 40, 50, 0.08); transition: box-shadow 0.5s, border-color 0.5s, transform 0.5s var(--ease), opacity 0.4s; }
.jc h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; color: #0f1c15; margin: 0 0 4px; }
.jc p { margin: 0; color: #46564d; font-size: 0.98rem; }
.jc h3, .jc p, .jc .jc-soon { transition: opacity 0.4s; }
.js .jc:not(.on) h3, .js .jc:not(.on) p, .js .jc:not(.on) .jc-soon { opacity: 0.45; }
.jc.on { border-color: rgba(242, 176, 30, 0.55); box-shadow: 0 0 0 3px rgba(242, 176, 30, 0.12), 0 16px 44px rgba(242, 176, 30, 0.28); }
.jc-ck { position: absolute; right: -14px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; background: #34c759; color: #fff; border: 3px solid #f5f2ea; transform: scale(0); transition: transform 0.45s var(--ease); }
.jc-ck svg { width: 15px; height: 15px; }
.jc.on .jc-ck { transform: scale(1); }
.jc-final { padding: 30px 28px 32px; background: #e0950a; border-color: transparent; color: #fff; }
.jc-final h3 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.15; margin: 12px 0 8px; transition: color 0.8s; }
.jc-final p { color: rgba(255, 255, 255, 0.88); transition: color 0.8s; }
.jc-soon { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.01em; }
.jc-final { transition: background 1s, box-shadow 0.6s, opacity 0.4s; }
.jewel.done .jc-final { background: #c4f135; }
.jewel.done .jc-final h3, .jewel.done .jc-final p { color: var(--acc-ink); }
.jewel.done .jc-final .jc-soon { background: rgba(7, 20, 10, 0.14); }
.jc-final.on { box-shadow: 0 0 0 3px rgba(242, 176, 30, 0.18), 0 18px 54px rgba(242, 176, 30, 0.45); }
.jewel.done .jc-final.on { box-shadow: 0 0 0 3px rgba(196, 241, 53, 0.25), 0 18px 54px rgba(196, 241, 53, 0.4); }

/* En teléfono la última tarjeta lleva la bolita al centro: ahí termina el ciclo */
@media (max-width: 999px) { .sc.i3 .sc-node { top: 50%; margin-top: -10px; } }
.jewel .jw-head h2 { text-wrap: balance; }

/* Pantalla del comensal (réplica de la app). Estado base: lista con dos productos agregados */
.lp { position: relative; height: 560px; overflow: hidden; border-radius: 24px; background: var(--lg); font-size: 14px; line-height: 1.25; }
.lp-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; }
.lp-av { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #07140a; display: grid; place-items: center; font-weight: 700; flex: none; }
.lp-id b { display: block; font-size: 15px; font-weight: 650; }
.lp-id small { opacity: 0.65; font-size: 12px; }
.lp-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 0 14px; padding: 4px; border-radius: 16px; background: color-mix(in srgb, var(--li) 7%, transparent); border: 1px solid color-mix(in srgb, var(--li) 12%, transparent); }
.lp-tabs span { position: relative; z-index: 1; text-align: center; padding: 9px 0; font-weight: 600; font-size: 13px; }
.lp-tabs span:last-child { opacity: 0.7; }
.lp-tabs em { font-style: normal; margin-left: 7px; padding: 1px 7px; border-radius: 999px; background: var(--la); color: var(--lo); font-size: 11px; font-weight: 700; }
.lp-tabs .hl { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: color-mix(in srgb, var(--la) 14%, var(--ls)); border: 1px solid color-mix(in srgb, var(--la) 55%, transparent); }
.lp-cats { display: flex; gap: 8px; padding: 12px 14px 4px; overflow: hidden; }
.lp-cats span { padding: 7px 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--li) 14%, transparent); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.lp-cats .on { background: var(--la); color: var(--lo); border-color: transparent; }
.lp-body { position: relative; height: 348px; }
.lp-menu, .lp-prog { position: absolute; inset: 0; padding: 12px 16px 0; }
.lp-eye { display: block; color: var(--la); font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; font-size: 10.5px; }
.lp-h { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; margin: 3px 0 12px; }
.lp-recs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lp-card b { display: block; margin-top: 8px; font-size: 13px; font-weight: 650; min-height: 2.5em; }
.lp-card > span { color: var(--la); font-weight: 700; font-size: 13px; }
.lp-art { position: relative; display: block; border-radius: 20px; aspect-ratio: 1; overflow: hidden; }
.lp-art::before { content: ''; position: absolute; inset: 18% 18% 18% 18%; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.lp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-art:has(img)::before { display: none; }
.ph1 { background: radial-gradient(circle at 30% 22%, #b6e04b, #3f6b19 75%); }
.ph2 { background: radial-gradient(circle at 30% 22%, #e0574a, #7a1a12 75%); }
.ph3 { background: radial-gradient(circle at 30% 22%, #e89a4a, #8a3f10 75%); }
.lp-add { position: absolute; right: 6px; bottom: 6px; z-index: 2; display: block; }
.lp-add .pl, .lp-add .st { display: grid; place-items: center; border-radius: 999px; background: var(--la); color: var(--lo); box-shadow: 0 0 0 4px var(--lg); font-weight: 700; }
.lp-add .pl { width: 34px; height: 34px; font-size: 22px; line-height: 1; opacity: 0; }
.lp-add .st { position: absolute; right: 0; bottom: 0; grid-auto-flow: column; gap: 10px; padding: 6px 10px; background: var(--lg); color: var(--la); border: 1.5px solid var(--la); box-shadow: 0 0 0 4px var(--lg); }
.lp-add .st u { text-decoration: none; font-size: 16px; line-height: 1; }
.lp-add .st b { color: var(--li); font-size: 13px; }
.lp-add.a3 .pl { opacity: 1; } .lp-add.a3 .st { opacity: 0; }
.lp-add .rg { position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--la); opacity: 0; pointer-events: none; }
.lp-row { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--li) 10%, transparent); }
.lp-info { flex: 1; min-width: 0; }
.lp-info b { display: block; font-size: 15px; font-weight: 650; }
.lp-info small { display: block; opacity: 0.65; margin: 3px 0 5px; font-size: 12px; }
.lp-info span { color: var(--la); font-weight: 700; }
.lp-art.sm { width: 84px; flex: none; border-radius: 16px; }
.lp-art.sm .pl { width: 30px; height: 30px; }
.lp-bar { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--la); color: var(--lo); font-weight: 650; box-shadow: 0 10px 28px color-mix(in srgb, var(--la) 40%, transparent); }
.lp-bar .bn, .lp-bar .bt { position: relative; display: block; }
.lp-bar .bn { width: 26px; height: 26px; border-radius: 50%; background: var(--lo); color: var(--la); }
.lp-bar .bt { margin-left: auto; width: 3.4em; text-align: right; height: 1.3em; }
.lp-bar .bl { flex: 1; }
.lp-bar s { position: absolute; inset: 0; text-decoration: none; display: grid; place-items: center; opacity: 0; font-size: 13px; }
.lp-bar .bt s { place-items: center end; }
.lp-bar .n2, .lp-bar .t2 { opacity: 1; }
.lp-bar .rg { position: absolute; inset: -4px; border-radius: 22px; border: 2px solid var(--la); opacity: 0; }
.lp-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 18px; border-radius: 24px 24px 0 0; background: color-mix(in srgb, var(--lg) 88%, var(--li)); border-top: 1px solid color-mix(in srgb, var(--li) 14%, transparent); box-shadow: 0 -24px 40px rgba(0, 0, 0, 0.35); transform: translateY(105%); z-index: 4; }
.sh-t { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 10px; }
.sh-l { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--li) 10%, transparent); font-size: 13.5px; }
.sh-l span { flex: 1; } .sh-l em { font-style: normal; opacity: 0.7; } .sh-l b { min-width: 3em; text-align: right; }
.sh-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 14px; opacity: 0.95; } .sh-sum b { font-size: 22px; }
.sh-cta { position: relative; text-align: center; padding: 14px; border-radius: 16px; background: var(--la); color: var(--lo); font-weight: 700; }
.sh-cta .rg { position: absolute; inset: -4px; border-radius: 20px; border: 2px solid var(--la); opacity: 0; }
.lp-prog { opacity: 0; display: grid; align-content: start; justify-items: center; text-align: center; padding-top: 22px; }
.orb { position: relative; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--la) 18%, var(--ls)); color: var(--la); border: 1.5px solid color-mix(in srgb, var(--la) 50%, transparent); box-shadow: 0 0 28px color-mix(in srgb, var(--la) 35%, transparent); }
.orb > span { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; } .orb svg { width: 26px; height: 26px; }
.pcs { position: relative; width: 100%; height: 92px; margin-top: 14px; }
.pc { position: absolute; inset: 0; opacity: 0; display: grid; justify-items: center; align-content: start; gap: 4px; }
.pc b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; } .pc small { opacity: 0.7; font-size: 13px; } .pc .chip { margin-top: 6px; }
.look-card .chip.st-recibido { background: color-mix(in srgb, var(--li) 14%, transparent); color: var(--li); }
.look-card[data-look='maiz'] .chip.st-preparando { background: rgba(214, 140, 0, 0.16); color: #9a5b00; }
.look-card[data-look='maiz'] .chip.st-listo { background: rgba(30, 150, 70, 0.16); color: #14803a; }
.pbar { width: 100%; height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--li) 12%, transparent); margin-top: 14px; overflow: hidden; } .pbar i { display: block; height: 100%; width: 34%; border-radius: 6px; background: var(--la); }
.psteps { list-style: none; margin: 14px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); font-size: 11px; }
.psteps li { display: grid; justify-items: center; gap: 6px; opacity: 0.85; }
.psteps i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--li) 28%, transparent); }
@media (prefers-reduced-motion: no-preference) {
@keyframes pc0 {0% {opacity:0} 48% {opacity:0} 48.6% {opacity:1} 57.4% {opacity:1} 58% {opacity:0} 100% {opacity:0}}
@keyframes o0 {0% {opacity:0} 48% {opacity:0} 48.6% {opacity:1} 57.4% {opacity:1} 58% {opacity:0} 100% {opacity:0}}
@keyframes pc1 {0% {opacity:0} 58% {opacity:0} 58.6% {opacity:1} 73.4% {opacity:1} 74% {opacity:0} 100% {opacity:0}}
@keyframes o1 {0% {opacity:0} 58% {opacity:0} 58.6% {opacity:1} 73.4% {opacity:1} 74% {opacity:0} 100% {opacity:0}}
@keyframes pc2 {0% {opacity:0} 74% {opacity:0} 74.6% {opacity:1} 93.4% {opacity:1} 94% {opacity:0} 100% {opacity:0}}
@keyframes o2 {0% {opacity:0} 74% {opacity:0} 74.6% {opacity:1} 93.4% {opacity:1} 94% {opacity:0} 100% {opacity:0}}
@keyframes ch00 {0% {opacity:0} 47.5% {opacity:0} 48% {opacity:1} 57.5% {opacity:1} 58% {opacity:0} 100% {opacity:0}}
@keyframes ch01 {0% {opacity:0} 57.5% {opacity:0} 58% {opacity:1} 69.5% {opacity:1} 70% {opacity:0} 100% {opacity:0}}
@keyframes ch02 {0% {opacity:0} 69.5% {opacity:0} 70% {opacity:1} 93.5% {opacity:1} 94% {opacity:0} 100% {opacity:0}}
@keyframes ch10 {0% {opacity:0} 47.5% {opacity:0} 48% {opacity:1} 57.5% {opacity:1} 58% {opacity:0} 100% {opacity:0}}
@keyframes ch11 {0% {opacity:0} 57.5% {opacity:0} 58% {opacity:1} 65.5% {opacity:1} 66% {opacity:0} 100% {opacity:0}}
@keyframes ch12 {0% {opacity:0} 65.5% {opacity:0} 66% {opacity:1} 93.5% {opacity:1} 94% {opacity:0} 100% {opacity:0}}
@keyframes ch20 {0% {opacity:0} 47.5% {opacity:0} 48% {opacity:1} 57.5% {opacity:1} 58% {opacity:0} 100% {opacity:0}}
@keyframes ch21 {0% {opacity:0} 57.5% {opacity:0} 58% {opacity:1} 73.5% {opacity:1} 74% {opacity:0} 100% {opacity:0}}
@keyframes ch22 {0% {opacity:0} 73.5% {opacity:0} 74% {opacity:1} 93.5% {opacity:1} 94% {opacity:0} 100% {opacity:0}}
@keyframes lp-loop {0% {opacity:1} 100% {opacity:1} }
@keyframes menuvis {0% {opacity:1} 42% {opacity:1} 46% {opacity:0} 97% {opacity:0} 99.4% {opacity:1} 100% {opacity:1} }
@keyframes progvis {0% {opacity:0} 44% {opacity:0} 48% {opacity:1} 94% {opacity:1} 97% {opacity:0} 100% {opacity:0} }
@keyframes hl {0% {transform:none} 44% {transform:none} 47% {transform:translateX(100%)} 95% {transform:translateX(100%)} 98% {transform:none} 100% {transform:none} }
@keyframes pl1 {0% {opacity:1} 8.6% {opacity:1} 9% {opacity:0} 97% {opacity:0} 99% {opacity:1} 100% {opacity:1} }
@keyframes st1 {0% {opacity:0} 8.6% {opacity:0} 9% {opacity:1} 97% {opacity:1} 99% {opacity:0} 100% {opacity:0} }
@keyframes rg1 {0% {opacity:0;transform:scale(1.7)} 8.5% {opacity:0;transform:scale(1.7)} 9% {opacity:.9;transform:scale(.7)} 12% {opacity:0;transform:scale(1.7)} 100% {opacity:0;transform:scale(1.7)} }
@keyframes pl2 {0% {opacity:1} 14.6% {opacity:1} 15% {opacity:0} 97% {opacity:0} 99% {opacity:1} 100% {opacity:1} }
@keyframes st2 {0% {opacity:0} 14.6% {opacity:0} 15% {opacity:1} 97% {opacity:1} 99% {opacity:0} 100% {opacity:0} }
@keyframes rg2 {0% {opacity:0;transform:scale(1.7)} 14.5% {opacity:0;transform:scale(1.7)} 15% {opacity:.9;transform:scale(.7)} 18% {opacity:0;transform:scale(1.7)} 100% {opacity:0;transform:scale(1.7)} }
@keyframes pl3 {0% {opacity:1} 20.6% {opacity:1} 21% {opacity:0} 97% {opacity:0} 99% {opacity:1} 100% {opacity:1} }
@keyframes st3 {0% {opacity:0} 20.6% {opacity:0} 21% {opacity:1} 97% {opacity:1} 99% {opacity:0} 100% {opacity:0} }
@keyframes rg3 {0% {opacity:0;transform:scale(1.7)} 20.5% {opacity:0;transform:scale(1.7)} 21% {opacity:.9;transform:scale(.7)} 24% {opacity:0;transform:scale(1.7)} 100% {opacity:0;transform:scale(1.7)} }
@keyframes rgbar {0% {opacity:0;transform:scale(1.06)} 27.5% {opacity:0;transform:scale(1.06)} 28% {opacity:.9;transform:scale(.97)} 31% {opacity:0;transform:scale(1.06)} 100% {opacity:0;transform:scale(1.06)} }
@keyframes rgcta {0% {opacity:0;transform:scale(1.06)} 39.5% {opacity:0;transform:scale(1.06)} 40% {opacity:.9;transform:scale(.97)} 43% {opacity:0;transform:scale(1.06)} 100% {opacity:0;transform:scale(1.06)} }
@keyframes barin {0% {transform:translateY(160%);opacity:0} 8.5% {transform:translateY(160%);opacity:0} 10% {transform:none;opacity:1} 44% {transform:none;opacity:1} 46% {transform:translateY(160%);opacity:0} 100% {transform:translateY(160%);opacity:0} }
@keyframes n1 {0% {opacity: 0} 7.8% {opacity: 0} 8.8% {opacity: 1} 14.6% {opacity: 1} 15.6% {opacity: 0} 100% {opacity: 0} }
@keyframes n2 {0% {opacity: 0} 13.6% {opacity: 0} 14.6% {opacity: 1} 20.6% {opacity: 1} 21.6% {opacity: 0} 100% {opacity: 0} }
@keyframes n3 {0% {opacity: 0} 19.6% {opacity: 0} 20.6% {opacity: 1} 97% {opacity: 1} 98% {opacity: 0} 100% {opacity: 0} }
@keyframes t1 {0% {opacity: 0} 7.8% {opacity: 0} 8.8% {opacity: 1} 14.6% {opacity: 1} 15.6% {opacity: 0} 100% {opacity: 0} }
@keyframes t2 {0% {opacity: 0} 13.6% {opacity: 0} 14.6% {opacity: 1} 20.6% {opacity: 1} 21.6% {opacity: 0} 100% {opacity: 0} }
@keyframes t3 {0% {opacity: 0} 19.6% {opacity: 0} 20.6% {opacity: 1} 97% {opacity: 1} 98% {opacity: 0} 100% {opacity: 0} }
@keyframes sheet {0% {transform:translateY(105%)} 28.6% {transform:translateY(105%)} 31% {transform:none} 43% {transform:none} 46% {transform:translateY(105%)} 100% {transform:translateY(105%)} }
@keyframes pbar {0% {width:8%} 58% {width:8%} 60% {width:34%} 74% {width:34%} 76% {width:66%} 97% {width:66%} 99% {width:8%} 100% {width:8%} }
@keyframes d0 {0% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 58% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 59.2% {border-color:var(--la);background:var(--la)} 97% {border-color:var(--la);background:var(--la)} 98.2% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 100% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} }
@keyframes d1 {0% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} 58% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} 59.2% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 74% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 75.2% {border-color:var(--la);background:var(--la)} 97% {border-color:var(--la);background:var(--la)} 98.2% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} 100% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} }
@keyframes d2 {0% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} 74% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} 75.2% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 97% {border-color:var(--la);background:color-mix(in srgb, var(--la) 30%, transparent)} 98.2% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} 100% {border-color:color-mix(in srgb, var(--li) 28%, transparent);background:transparent} }
  .lp { animation: lp-loop 18s linear infinite; }
  .lp-menu, .lp-cats { animation: menuvis 18s infinite; }
  .lp-prog { animation: progvis 18s infinite; }
  .lp-tabs .hl { animation: hl 18s infinite; }
  .lp-add.a1 .pl { animation: pl1 18s infinite; } .lp-add.a1 .st { animation: st1 18s infinite; } .lp-add.a1 .rg { animation: rg1 18s infinite; }
  .lp-add.a2 .pl { animation: pl2 18s infinite; } .lp-add.a2 .st { animation: st2 18s infinite; } .lp-add.a2 .rg { animation: rg2 18s infinite; }
  .lp-add.a3 .pl { animation: pl3 18s infinite; } .lp-add.a3 .st { animation: st3 18s infinite; } .lp-add.a3 .rg { animation: rg3 18s infinite; }
  .lp-bar { animation: barin 18s infinite; } .lp-bar .rg { animation: rgbar 18s infinite; } .sh-cta .rg { animation: rgcta 18s infinite; }
  .lp-bar .n1 { animation: n1 18s infinite; } .lp-bar .n2 { animation: n2 18s infinite; } .lp-bar .n3 { animation: n3 18s infinite; }
  .lp-bar .t1 { animation: t1 18s infinite; } .lp-bar .t2 { animation: t2 18s infinite; } .lp-bar .t3 { animation: t3 18s infinite; }
  .lp-sheet { animation: sheet 18s infinite; }
  .pbar i { animation: pbar 18s infinite; }
  .psteps .s0 i { animation: d0 18s infinite; } .psteps .s1 i { animation: d1 18s infinite; } .psteps .s2 i { animation: d2 18s infinite; }
  .pitems .i0 .c0 { animation: ch00 18s infinite; }
  .pitems .i0 .c1 { animation: ch01 18s infinite; }
  .pitems .i0 .c2 { animation: ch02 18s infinite; }
  .pitems .i1 .c0 { animation: ch10 18s infinite; }
  .pitems .i1 .c1 { animation: ch11 18s infinite; }
  .pitems .i1 .c2 { animation: ch12 18s infinite; }
  .pitems .i2 .c0 { animation: ch20 18s infinite; }
  .pitems .i2 .c1 { animation: ch21 18s infinite; }
  .pitems .i2 .c2 { animation: ch22 18s infinite; }
  .pc0 { animation: pc0 18s infinite; } .pc1 { animation: pc1 18s infinite; } .pc2 { animation: pc2 18s infinite; }
  .orb .o0 { animation: o0 18s infinite; } .orb .o1 { animation: o1 18s infinite; } .orb .o2 { animation: o2 18s infinite; }
}

.pitems { list-style: none; margin: 16px 0 0; padding: 0; width: 100%; text-align: left; }
.pitems li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--li) 10%, transparent); font-size: 12.5px; font-weight: 600; }
.pch { position: relative; width: 92px; height: 24px; flex: none; }
.pch .chip { position: absolute; right: 0; top: 0; min-height: 24px; font-size: 11.5px; padding: 0 10px; opacity: 0; }
.lp-prog { padding-top: 14px; }
.pcs { height: 84px; margin-top: 10px; }
.pbar { margin-top: 8px; } .psteps { margin-top: 12px; }
.looks-grid > * { min-width: 0; } .look-card, .lp { max-width: 100%; }

/* ───────── Escenas: cada persona ve lo que le corresponde ───────── */
.sx { background: var(--surface); overflow: hidden; padding-block: clamp(36px, 5vw, 64px); }
.sx .sx-head { margin: 0 auto clamp(20px, 3vw, 32px); text-align: center; max-width: 760px; }
.sx .sx-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
.sx .sx-head p { margin: 12px auto 0; max-width: 64ch; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.5; text-wrap: balance; }
.sx-frame { --ar: 1.6; width: min(1100px, calc(100% - 32px), max(600px, calc((100svh - 475px) * var(--ar)))); margin: 0 auto; border-radius: 28px; overflow: hidden; background: #0b0f0b; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45); }
.sx-view { display: grid; overflow: hidden; touch-action: pan-y; }
.sx-slide { position: relative; grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; filter: blur(14px); transform: scale(1.02); pointer-events: none; transition: opacity 1s ease, filter 1s ease, transform 1.3s ease, visibility 0s linear 1s; aspect-ratio: 1800 / 1125; overflow: hidden; }
.sx-slide.cur { opacity: 1; visibility: visible; filter: none; transform: none; pointer-events: auto; transition-delay: 0s; }
.sx-slide picture { display: contents; }
.sx-slide img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.sx-cap { display: none; }
.sx-screen { position: absolute; z-index: 0; overflow: hidden; background: #0b140d; --lg: #0b140d; --ls: #14211a; --li: #f4f1ea; --la: #c4f135; --lo: #07140a; }
.s1 .sx-screen { left: 40.25%; top: 16.74%; width: 19.5%; height: 66.6%; }
.s2 .sx-screen { left: 28.73%; top: 23.6%; width: 42.6%; height: 52.87%; }
.s3 .sx-screen { left: 28.72%; top: 25.58%; width: 42.6%; height: 48.89%; }
@media (min-width: 701px) and (max-width: 1024px) {
  .sx-frame { --ar: 1.25; }
  .sx-slide { aspect-ratio: 1400 / 1120; }
  .s1 .sx-screen { left: 35.38%; top: 10.08%; width: 29.33%; height: 79.93%; }
  .s2 .sx-screen { left: 18%; top: 18.96%; width: 64%; height: 62.19%; }
  .s3 .sx-screen { left: 18.04%; top: 21.29%; width: 63.99%; height: 57.51%; }
}
@media (max-width: 700px) {
  .sx-frame { width: calc(100% - 32px); }
  .sx-slide { aspect-ratio: 3 / 4; }
  .s1 .sx-screen { left: 24.6%; top: 7.75%; width: 50.97%; height: 84.64%; }
  .s2 .sx-screen { left: 11.74%; top: 7.77%; width: 76.62%; height: 84.55%; }
  .s3 .sx-screen { left: 10.18%; top: 7.77%; width: 79.63%; height: 84.6%; }
}
.sx-fit { position: absolute; left: 0; top: 0; width: var(--fw, 336px); height: var(--fh, 740px); transform-origin: 0 0; transform: scale(var(--k, 0.5)); font-size: 14px; line-height: 1.25; color: var(--li); font-family: inherit; }
.sx-fit .lp { height: 100%; border-radius: 0; }
.sx-fit .lp-body { height: calc(100% - 212px); }
.sx-screen .chip.st-recibido { background: color-mix(in srgb, var(--li) 14%, transparent); color: var(--li); }
.sx-screen .lp-id, .ms .lp-id, .ks .lp-id { display: block; }

/* Pantallas reales de la app (mesero y cocina): el marcado y los estilos vienen de app.cuiqli.com (tools/app-capture.mjs) */
.sx-fit[data-kind='tablet'] { container-type: inline-size; container-name: rxs; }
.sx-fit .rx { position: absolute; inset: 0; }
.x-mx-gi { overflow: hidden; max-height: 320px; }
.x-mx-t5 { display: grid; }
.x-mx-t5 > * { grid-area: 1 / 1; }
.x-mx-t5 > :last-child { opacity: 0; }
.x-mx-tk5 { overflow: hidden; max-height: 360px; }

/* Comensal: pantallas reales de la app (menú, pedido y avance). Aquí solo se ordenan y se les da movimiento */
.sx-fit[data-kind='phone'] .rx { position: absolute; inset: 0; }
.x-gx-m, .x-gx-sh, .x-gx-sent, .x-gx-p { position: absolute; inset: 0; }
.x-gx-m { z-index: 0; }
.x-gx-cb { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.x-gx-cb1, .x-gx-cb2 { opacity: 0; }
.x-gx-sh { z-index: 10; opacity: 0; }
.x-gx-sent { z-index: 20; opacity: 0; }
.x-gx-p { z-index: 30; opacity: 0; }
.x-gx-p1 { z-index: 31; } .x-gx-p2 { z-index: 32; } .x-gx-p3 { z-index: 33; }
.x-gx-sw { display: grid; justify-items: end; align-items: end; }
.x-gx-sw > * { grid-area: 1 / 1; }
.x-gx-a { opacity: 0; }
.x-gx-ch { display: grid; }
.x-gx-ch > * { grid-area: 1 / 1; min-width: 0; }
.x-gx-c2 { opacity: 0; }
.x-gx-tap { position: absolute; z-index: 40; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.18); opacity: 0; pointer-events: none; }
.x-gx-t1 { left: 138px; top: 524px; } .x-gx-t2 { left: 300px; top: 524px; } .x-gx-t3 { left: 341px; top: 372px; }
.x-gx-tc { left: 195px; bottom: 43px; margin-top: 0; margin-bottom: -22px; } .x-gx-tg { left: 195px; bottom: 72px; margin-top: 0; margin-bottom: -22px; }
.x-gx-tc, .x-gx-tg { top: auto; }
@media (prefers-reduced-motion: no-preference) {
  .look-card.on .x-gx-sw1 .x-gx-a { animation: gx-a1 13s infinite both linear; }
  .look-card.on .x-gx-sw1 .x-gx-s { animation: gx-s1 13s infinite both linear; }
  .look-card.on .x-gx-sw2 .x-gx-a { animation: gx-a2 13s infinite both linear; }
  .look-card.on .x-gx-sw2 .x-gx-s { animation: gx-s2 13s infinite both linear; }
  .look-card.on .x-gx-sw3 .x-gx-a { animation: gx-a3 13s infinite both linear; }
  .look-card.on .x-gx-sw3 .x-gx-s { animation: gx-s3 13s infinite both linear; }
  .look-card.on .x-gx-cb1 { animation: gx-cb1 13s infinite both linear; }
  .look-card.on .x-gx-cb2 { animation: gx-cb2 13s infinite both linear; }
  .look-card.on .x-gx-cb3 { animation: gx-cb3 13s infinite both linear; }
  .look-card.on .x-gx-m .x-g-top { animation: gx-sc1 13s infinite both ease-in-out; }
  .look-card.on .x-gx-m .x-g-menu { animation: gx-sc2 13s infinite both ease-in-out; }
  .look-card.on .x-gx-m .x-g-bar { animation: gx-sc3 13s infinite both ease-in-out; }
  .look-card.on .x-gx-c1 { animation: gx-ch1 13s infinite both linear; }
  .look-card.on .x-gx-c2 { animation: gx-ch2 13s infinite both linear; }
  .look-card.on .x-gx-sh { animation: gx-sh 13s infinite both linear; }
  .look-card.on .x-gx-sh .x-g-sheet { animation: gx-sheet 13s infinite both cubic-bezier(.2,.8,.2,1); }
  .look-card.on .x-gx-sent { animation: gx-sent 13s infinite both linear; }
  .look-card.on .x-gx-p0 { animation: gx-p0 13s infinite both linear; }
  .look-card.on .x-gx-p1 { animation: gx-p1 13s infinite both linear; }
  .look-card.on .x-gx-p2 { animation: gx-p2 13s infinite both linear; }
  .look-card.on .x-gx-p3 { animation: gx-p3 13s infinite both linear; }
  .look-card.on .x-gx-t1 { animation: gx-t1 13s infinite both linear; }
  .look-card.on .x-gx-t2 { animation: gx-t2 13s infinite both linear; }
  .look-card.on .x-gx-t3 { animation: gx-t3 13s infinite both linear; }
  .look-card.on .x-gx-tc { animation: gx-tc 13s infinite both linear; }
  .look-card.on .x-gx-tg { animation: gx-tg 13s infinite both linear; }
  @keyframes gx-a1 { 0% { opacity: 1 } 6.92% { opacity: 1 } 7.31% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-s1 { 0% { opacity: 0 } 6.92% { opacity: 0 } 7.31% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-a2 { 0% { opacity: 1 } 14.62% { opacity: 1 } 15.0% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-s2 { 0% { opacity: 0 } 14.62% { opacity: 0 } 15.0% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-a3 { 0% { opacity: 1 } 34.62% { opacity: 1 } 35.0% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-s3 { 0% { opacity: 0 } 34.62% { opacity: 0 } 35.0% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-cb1 { 0% { opacity: 0; transform: translateY(70px) } 6.92% { opacity: 0; transform: translateY(70px) } 9.23% { opacity: 1; transform: none } 15.0% { opacity: 1 } 15.38% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-cb2 { 0% { opacity: 0 } 15.0% { opacity: 0 } 15.38% { opacity: 1 } 34.62% { opacity: 1 } 35.0% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-cb3 { 0% { opacity: 0 } 34.62% { opacity: 0 } 35.0% { opacity: 1 } 56.15% { opacity: 1 } 58.08% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-sc1 { 0% { transform: none } 21.54% { transform: none } 29.23% { transform: translateY(-619px) } 100% { transform: translateY(-619px) } }
  @keyframes gx-sc2 { 0% { transform: none } 21.54% { transform: none } 29.23% { transform: translateY(-619px) } 100% { transform: translateY(-619px) } }
  @keyframes gx-sc3 { 0% { transform: none } 21.54% { transform: none } 29.23% { transform: translateY(-68px) } 100% { transform: translateY(-68px) } }
  @keyframes gx-ch1 { 0% { opacity: 1 } 26.15% { opacity: 1 } 27.31% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-ch2 { 0% { opacity: 0 } 26.15% { opacity: 0 } 27.31% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-sh { 0% { opacity: 0 } 43.85% { opacity: 0 } 45.38% { opacity: 1 } 56.15% { opacity: 1 } 58.08% { opacity: 0 } 100% { opacity: 0 } }
  @keyframes gx-sheet { 0% { transform: translateY(105%) } 43.85% { transform: translateY(105%) } 48.46% { transform: none } 56.15% { transform: none } 100% { transform: none } }
  @keyframes gx-sent { 0% { opacity: 0 } 56.15% { opacity: 0 } 58.46% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-p0 { 0% { opacity: 0 } 63.77% { opacity: 0 } 65.77% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-p1 { 0% { opacity: 0 } 72.23% { opacity: 0 } 74.23% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-p2 { 0% { opacity: 0 } 80.69% { opacity: 0 } 82.69% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-p3 { 0% { opacity: 0 } 89.15% { opacity: 0 } 91.15% { opacity: 1 } 100% { opacity: 1 } }
  @keyframes gx-t1 { 0% { opacity: 0; transform: scale(.5) } 5.31% { opacity: 0; transform: scale(.5) } 6.15% { opacity: 1; transform: scale(.85) } 9.23% { opacity: 0; transform: scale(1.35) } 100% { opacity: 0 } }
  @keyframes gx-t2 { 0% { opacity: 0; transform: scale(.5) } 13.0% { opacity: 0; transform: scale(.5) } 13.85% { opacity: 1; transform: scale(.85) } 16.92% { opacity: 0; transform: scale(1.35) } 100% { opacity: 0 } }
  @keyframes gx-t3 { 0% { opacity: 0; transform: scale(.5) } 33.0% { opacity: 0; transform: scale(.5) } 33.85% { opacity: 1; transform: scale(.85) } 36.92% { opacity: 0; transform: scale(1.35) } 100% { opacity: 0 } }
  @keyframes gx-tc { 0% { opacity: 0; transform: scale(.5) } 41.46% { opacity: 0; transform: scale(.5) } 42.31% { opacity: 1; transform: scale(.85) } 45.38% { opacity: 0; transform: scale(1.35) } 100% { opacity: 0 } }
  @keyframes gx-tg { 0% { opacity: 0; transform: scale(.5) } 53.77% { opacity: 0; transform: scale(.5) } 54.62% { opacity: 1; transform: scale(.85) } 57.69% { opacity: 0; transform: scale(1.35) } 100% { opacity: 0 } }
}
@media (prefers-reduced-motion: reduce) {
  .look-card .x-gx-s { opacity: 1; } .look-card .x-gx-a { opacity: 0; }
  .look-card .x-gx-cb3 { opacity: 1; }
  .look-card .x-gx-m .x-g-top, .look-card .x-gx-m .x-g-menu { transform: translateY(-619px); } .look-card .x-gx-m .x-g-bar { transform: translateY(-68px); }
  .look-card .x-gx-c1 { opacity: 0; } .look-card .x-gx-c2 { opacity: 1; }
}
.x-g-rec-act, .x-g-card-act { z-index: 2; }
/* Escenas: capturas fijas, sin animaciones de la app */
.sx .rx, .sx .rx *, .sx .rx *::before, .sx .rx *::after { animation: none !important; }
/* Escenas: capturas fijas. El comensal muestra su menú con dos productos agregados y la barra del pedido */
.sx .x-gx-sw3 .x-gx-a { opacity: 1; } .sx .x-gx-sw3 .x-gx-s { opacity: 0; }
.sx .x-gx-cb3 { opacity: 0; } .sx .x-gx-cb2 { opacity: 1; }

/* Navegación: el hilo une las tres pantallas */
.sx-nav { margin-top: 18px; text-align: center; }
.sx-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 680px; margin: 0 auto; }
.sx-rail { position: absolute; left: 16.667%; right: 16.667%; top: 18.5px; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.sx-fill { position: absolute; inset: 0; border-radius: 3px; background: var(--acc); box-shadow: 0 0 12px var(--acc); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.sx-tab { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; min-height: 64px; padding: 12px 6px 8px; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.sx-node { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.sx-tab.done .sx-node { background: var(--acc); border-color: var(--acc); }
.sx-tab.on .sx-node { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 0 6px rgba(196, 241, 53, 0.2), 0 0 18px var(--acc); }
.sx-tab.on { color: var(--ink); }
.sx-copies { display: grid; margin-top: 8px; }
.sx-copy { grid-area: 1 / 1; opacity: 0; filter: blur(6px); transition: opacity 0.9s ease, filter 0.9s ease; pointer-events: none; }
.sx-copy.on { opacity: 1; filter: none; pointer-events: auto; }
.sx-copy h3 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.sx-copy p { margin: 8px auto 0; max-width: 58ch; color: var(--soft); }

@media (prefers-reduced-motion: no-preference) {
  .sx-slide:not(.on) .lp, .sx-slide:not(.on) .lp * { animation: none !important; }
  .sx-slide .lp, .sx-slide .lp * { animation-duration: 9s !important; }
  .sx.hold .sx-slide *, .sx:not(.vis) .sx-slide * { animation-play-state: paused !important; }
}
/* Con movimiento reducido: las tres escenas apiladas, sin carrusel */
@media (prefers-reduced-motion: reduce) {
  .sx-view { gap: 28px; overflow: visible; }
  .sx-slide { grid-area: auto; opacity: 1; visibility: visible; filter: none; transform: none; pointer-events: auto; transition: none; }
  .sx-frame { background: none; border: 0; box-shadow: none; }
  .sx-slide { border-radius: 22px; }
  .sx-cap { display: grid; gap: 6px; position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 20px 18px; background: linear-gradient(transparent, rgba(5, 12, 7, 0.9)); }
  .sx-cap span { color: var(--soft); font-size: 0.95rem; }
  .sx-nav { display: none; }
}

/* Demo: recorrido en pasos */
.demo-note { margin-top: 18px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); counter-reset: ds; }
.demo-steps li { counter-increment: ds; position: relative; padding: 22px 22px 22px 70px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.025); }
.demo-steps li::before { content: counter(ds); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--acc, #c4f135); font-weight: 600; }
.demo-steps h3 { font-size: 1.05rem; margin: 0 0 6px; }
.demo-steps p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 960px) { .demo-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .demo-steps { grid-template-columns: 1fr; } }

/* Franja de la portada con el acceso a la demo */
.demo-band { padding: clamp(40px, 6vw, 80px) 0; background: var(--acc); color: #0b130d; }
.demo-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.demo-band h2 { margin: 0 0 8px; max-width: 22ch; color: #0b130d; }
.demo-band p { margin: 0; color: rgba(11, 19, 13, 0.75); max-width: 52ch; }
.demo-band .btn.primary { background: #0b130d; color: var(--acc); box-shadow: 0 14px 34px rgba(11, 19, 13, 0.35), 0 0 0 1px rgba(11, 19, 13, 0.9); }
.demo-band .btn.primary:hover { background: #000; box-shadow: 0 16px 40px rgba(11, 19, 13, 0.5), 0 0 26px rgba(5, 12, 7, 0.45); }

/* Encabezado: sin saltos de línea y más compacto entre 900 y 1180 px */
.nav-links a, .top .btn { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1180px) {
  .top .wrap { gap: 10px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 10px 9px; font-size: 0.9rem; }
  .top-end { gap: 8px; }
  .top-end .login, .top .btn { padding: 0 13px; font-size: 0.88rem; }
  .logo { height: 24px; }
}


/* Precios y Club cuiqli */
.price-teaser, .price-page { padding-block: clamp(56px, 8vw, 104px); }
.price-cards { display: grid; gap: 18px; }
@media (min-width: 900px) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 24px; border: 1px solid var(--line-strong); background: linear-gradient(170deg, var(--raised), var(--surface) 70%); }
.price-card.feat { border-color: rgba(196, 241, 53, 0.55); box-shadow: 0 24px 70px rgba(196, 241, 53, 0.08); }
.price-card h3 { margin: 0; font-size: 1.15rem; font-weight: 600; }
.price-card p { margin: 0; color: var(--soft); }
.price-card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: var(--ink); }
.price-card .price b { font-size: clamp(2.4rem, 5vw, 3.2rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.price-card .price .price-pre { flex-basis: 100%; color: var(--muted); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em; }
.price-card .price small { color: var(--muted); font-size: 0.95rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.price-card li { position: relative; padding-left: 26px; color: var(--soft); }
.price-card li::before { content: ''; position: absolute; left: 3px; top: 0.55em; width: 11px; height: 6px; border-left: 2px solid var(--acc); border-bottom: 2px solid var(--acc); transform: rotate(-45deg); }
.price-tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 0.85rem; font-weight: 600; }
.price-more { margin-top: 24px; }
.price-more a { color: var(--acc); text-underline-offset: 3px; }
.club { padding-block: clamp(56px, 8vw, 104px); border-block: 1px solid var(--line); background: radial-gradient(700px 320px at 85% 0%, rgba(196, 241, 53, 0.08), transparent 70%); }
.club-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .club-grid { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; } }
.club-grid h2 { margin-top: 14px; }
.club-grid .actions { margin-top: 24px; }
.club-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.club-points li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.club-points b { font-weight: 600; }
.club-points span { color: var(--soft); }
.pass-steps { counter-reset: p; margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
@media (min-width: 900px) { .pass-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pass-steps li { counter-increment: p; padding: 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.pass-steps li::before { content: counter(p); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--acc); font-weight: 600; }
.pass-steps b { display: block; margin-bottom: 6px; }
.pass-steps span { color: var(--soft); }
.price-sub { margin-top: clamp(40px, 6vw, 72px); }
@media (min-width: 900px) { .price-card.wide { grid-column: span 2; } }
.pass-steps li::before { position: static; transform: none; background: none; }
.club-grid .lead { margin-top: 14px; }
.club-solo { text-align: center; }
@media (min-width: 900px) { .club-solo { grid-template-columns: 1fr; gap: 0; } }
.club-solo .actions { display: flex; justify-content: center; }
.club-solo .lead { margin-inline: auto; text-align: center; }

/* Anula las reglas de elementos del sitio dentro de las pantallas de la app */
.rx section, .rx p, .rx h1, .rx h2, .rx h3, .rx img, .rx a { margin: revert; padding: revert; font-size: revert; font-weight: revert; letter-spacing: revert; line-height: revert; text-wrap: revert; color: revert; display: revert; max-width: revert; height: revert; }
.rx,
.rx[data-theme='dark'] {
  --ground: #050c07;
  --surface: #0a150d;
  --surface2: #101e14;
  --raised: #1a2a1f;
  --ink: #f4f1ea;
  --muted: #9aa89d;
  --soft: #c6d0c8;
  --line: rgba(214, 245, 190, 0.08);
  --acc: #c4f135;
  --acc-ink: #07140a;
  --acc-text: var(--acc);
  --logo-q: #c4f135;
  --glow: color-mix(in srgb, var(--acc) 18%, transparent);
  --danger-bg: rgba(248, 113, 113, 0.16);
  --danger: #fca5a5;
  /* Jerarquía de color: verde = marca y acciones · ámbar = hay algo que atender · rojo = urgente o error */
  --warn: #f6b93b;
  --warn-ink: #1c1300;
  --warn-bg: rgba(246, 185, 59, 0.16);
  --alert: #ff6b5e;
  --alert-ink: #1f0502;
  --alert-bg: rgba(255, 107, 94, 0.16);
}
.rx[data-theme='light'] {
  --ground: #f5f5f7;
  --surface: #ffffff;
  --surface2: #f0f0f3;
  --raised: #e4e4e8;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #515154;
  --line: #ededf0;
  --acc: #c4f135;
  --acc-ink: #07140a;
  --acc-text: color-mix(in srgb, var(--acc) 50%, #1a2a00);
  --logo-q: #7aa80c;
  --glow: color-mix(in srgb, var(--acc) 35%, transparent);
  --danger-bg: #fee4e2;
  --danger: #b42318;
  --warn: #e39a0b;
  --warn-ink: #231500;
  --warn-bg: #fff1d0;
  --alert: #e5483a;
  --alert-ink: #ffffff;
  --alert-bg: #fee4e2;
}

.rx, .rx * { box-sizing: border-box; }
.rx, .rx, .rx #root { height: 100%; margin: 0; }
.rx {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Figtree Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.002em;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
.rx button, .rx input { font: inherit; color: inherit; letter-spacing: inherit; }
.rx strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.rx button { cursor: pointer; }
.rx [hidden] { display: none !important; }

.rx .x-app { display: flex; flex-direction: column; height: 100%; }
.rx .x-topbar {
  height: 72px; flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; gap: 16px;
}
.rx .x-brand { display: flex; align-items: center; color: var(--ink); }
.rx .x-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.rx .x-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }

.rx .x-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.rx .x-seg button {
  border: 0; background: transparent; color: var(--muted); padding: 10px 18px; border-radius: 999px;
  font-weight: 500; font-size: 15px; letter-spacing: 0.005em; min-height: 44px; white-space: nowrap;
}
.rx .x-seg button[aria-current='page'], .rx .x-seg button[aria-pressed='true'] { background: var(--raised); color: var(--ink); }
.rx .x-seg.x-full { display: flex; width: 100%; }
.rx .x-seg.x-full button { flex: 1 1 auto; padding: 10px 10px; }

.rx .x-screen { flex: 1; min-height: 0; display: flex; }
.rx .x-page-scroll { flex: 1; min-height: 0; overflow: auto; padding: 8px 24px 32px; }
.rx .x-page { max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.rx h1 { font-size: 32px; font-weight: 600; margin: 0; letter-spacing: -0.035em; line-height: 1.15; }
.rx h2 { font-size: 17px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.015em; }
.rx p { margin: 0 0 12px; }
.rx .x-muted { color: var(--muted); }

/* Pedir */
.rx .x-pos { flex: 1; min-height: 0; display: flex; gap: 20px; padding: 0 24px 24px; }
.rx .x-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.rx .x-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.rx .x-chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--soft);
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; min-height: 44px;
}
.rx .x-chip[aria-pressed='true'] { background: var(--btn, var(--acc)); color: var(--btn-ink, var(--acc-ink)); border-color: var(--btn, var(--acc)); }
.rx .x-price { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rx[data-theme='light'] .x-low { color: #b45309; }

.rx .x-panel {
  width: 360px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 0;
}
.rx .x-lines { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.rx .x-total-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 30px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.rx .x-total-row > span:first-child { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.rx .x-cta {
  border: 0; border-radius: 18px; padding: 18px; font-weight: 600; font-size: 17px; letter-spacing: -0.015em; min-height: 60px;
  background: var(--btn, var(--acc)); color: var(--btn-ink, var(--acc-ink)); box-shadow: 0 8px 28px var(--glow);
}
.rx .x-cta:disabled { opacity: 0.4; box-shadow: none; cursor: not-allowed; }
.rx .x-caption { text-align: center; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; margin-top: -6px; }
.rx .x-empty { color: var(--muted); text-align: center; padding: 40px 12px; }

/* Formularios */
.rx .x-btn:focus-visible, .rx button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.rx .x-btn {
  border: 1px solid var(--line); background: var(--surface2); color: var(--ink); border-radius: 12px;
  padding: 10px 16px; font-weight: 500; font-size: 15px; min-height: 44px;
}
.rx .x-btn.x-primary { background: var(--btn, var(--acc)); color: var(--btn-ink, var(--acc-ink)); border-color: var(--btn, var(--acc)); font-weight: 600; }
.rx .x-btn.x-danger { background: var(--danger-bg); color: var(--danger); border-color: transparent; }
.rx .x-btn.x-small { padding: 6px 12px; min-height: 36px; font-size: 14px; }
.rx .x-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Los avisos de acción no estorban: arriba, breves y sin atrapar toques */

@container rxs (max-width: 760px) {
  .rx .x-pos { flex-direction: column; overflow: auto; }
  .rx .x-panel { width: auto; }
}
@container rxs (max-width: 900px) {
  .rx .x-topbar { height: auto; padding: 12px 16px; flex-wrap: wrap; }
}

/* Impresión: solo se imprime #print-root */
@media screen { .rx #print-root { display: none; } }
/* Diseño del ticket: el mismo para imprimir y para la impresión directa por USB */
/* Modo texto: un solo bloque, sin saltos de página (el driver de texto los ignora) */
/* Nombre de la persona dentro de la cuenta separada */
/* La impresión directa dibuja el ticket fuera de la pantalla para convertirlo en imagen */

/* Vista previa del logo en Ajustes */

/* Fotos de producto */

/* Ajustes */

.rx .x-muted { font-weight: 400; }

/* Inicio de sesión y cuenta */

/* Producto sin foto: "?" que pide subirla */

/* Animación del logo: las letras aparecen y la q llega desde abajo, como una mano que entrega, y se coloca en su lugar. */

/* Marca del cliente en la barra superior */
.rx .x-client-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rx .x-client-name { font-weight: 600; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx .x-topbar-right { display: flex; align-items: center; gap: 16px; }
.rx .x-powered { display: inline-flex; opacity: 0.55; }
.rx .x-powered:hover { opacity: 0.9; }
/* Pantalla de saludo */

/* Asistente de bienvenida */
@container rxs (max-width: 760px) { .rx .x-client-name { font-size: 17px; } .rx .x-powered { display: none; } }

/* Panel de administrador */

/* Bloqueo con PIN */

/* Ventas */
.rx[data-theme='light'] .x-date-range input { color-scheme: light; }

/* Restaurante: mesas, cuenta y cocina */
.rx .x-tables-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rx .x-tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.rx .x-table-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 124px; padding: 14px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); text-align: left; cursor: pointer; font-family: inherit; position: relative; }
.rx .x-table-card.x-free { background: transparent; border-style: dashed; color: var(--muted); }
.rx .x-table-card.x-busy { border-color: color-mix(in srgb, var(--acc) 55%, transparent); background: color-mix(in srgb, var(--acc) 8%, var(--raised)); }
.rx .x-table-name { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; }
.rx .x-table-state { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.rx .x-table-card.x-busy .x-table-state { color: var(--acc-text, var(--acc)); }
.rx .x-table-total { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rx .x-table-meta { font-size: 12px; color: var(--muted); }

.rx .x-kitchen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.rx .x-ticket-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); border-top: 4px solid var(--acc); }
.rx .x-ticket-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.rx .x-ticket-table { font-size: 24px; letter-spacing: -0.02em; }
.rx .x-ticket-card .x-age { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--acc-text, var(--acc)); }
.rx .x-ticket-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rx .x-ticket-card li { display: flex; align-items: center; gap: 10px; }
.rx .x-ticket-card li .x-qty { font-weight: 700; font-size: 18px; min-width: 32px; }
.rx .x-ticket-card li .x-nm { flex: 1; font-size: 16px; }
.rx .x-bell { vertical-align: -2px; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .rx .x-bell-ring { transform-origin: 50% 10%; animation: rx-bell-ring 2.4s ease-in-out infinite; }
  @keyframes rx-bell-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
}

/* ---- Jerarquía de alertas ---- */

/* ---- Responsive: teléfono y tablet ---- */
.rx, .rx { overflow-x: hidden; }
.rx .x-app, .rx .x-screen, .rx .x-page-scroll, .rx .x-page, .rx .x-pos, .rx .x-col { min-width: 0; }
.rx .x-seg { max-width: 100%; }

@container rxs (max-width: 900px) {
  .rx .x-topbar { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; padding: 10px 14px 6px; }
  .rx .x-topbar .x-brand { order: 1; }
  .rx .x-topbar .x-topbar-right { order: 2; margin-left: auto; gap: 8px; }
  .rx .x-topbar nav.x-seg { order: 3; flex: 1 1 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rx .x-topbar nav.x-seg::-webkit-scrollbar { display: none; }
  .rx .x-topbar nav.x-seg button { flex: none; padding: 10px 16px; }
  .rx .x-page-scroll { padding: 8px 16px 28px; }
  .rx .x-pos { padding: 0 16px 16px; gap: 14px; }
}

@container rxs (max-width: 760px) {
  .rx h1 { font-size: 26px; }
  .rx .x-powered { display: none; }
  .rx .x-client-name { font-size: 17px; max-width: 46vw; }
  .rx input { max-width: 100%; }
  .rx .x-btn { min-height: 46px; }

  /* Pedir: productos en 2 columnas y el pedido siempre a la vista, abajo */
  .rx .x-price { font-size: 17px; }
  .rx .x-panel { width: auto; position: sticky; bottom: 0; z-index: 6; max-height: 52vh; border-radius: 22px 22px 0 0; padding: 14px 16px; gap: 10px; margin: 0 -16px -16px; box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.35); }
  .rx .x-panel .x-caption { display: none; }
  .rx .x-panel .x-lines { max-height: 20vh; flex: none; }
  .rx .x-panel .x-total-row { font-size: 24px; }
  .rx .x-cta { min-height: 54px; padding: 14px; }
  .rx .x-pos { overflow-y: auto; }

  /* Mesas */
  .rx .x-tables-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rx .x-table-card { min-height: 108px; padding: 12px; }
  .rx .x-table-name { font-size: 24px; }
  .rx .x-tables-head { gap: 8px; }

  /* Cuenta de la mesa: menú arriba, resumen y botones fijos abajo */

  /* Cocina y bar */
  .rx .x-kitchen-grid { grid-template-columns: minmax(0, 1fr); }
  .rx .x-ticket-card li .x-nm { font-size: 17px; }
  .rx .x-ticket-card .x-btn.x-small { min-height: 44px; padding: 8px 16px; }

  /* Ventas */
  .rx .x-seg:not([aria-label='Secciones']) { overflow-x: auto; scrollbar-width: none; }
  .rx .x-seg:not([aria-label='Secciones']) button { padding: 10px 14px; flex: none; }

  /* Ajustes, personal y avisos */
  }
@container rxs (max-width: 380px) {
  .rx .x-tables-grid { gap: 8px; }
  .rx .x-table-name { font-size: 22px; }
}
@container rxs (max-width: 760px) {
  .rx .x-panel .x-empty { padding: 4px 0; font-size: 14px; }
  .rx .x-panel .x-seg button { min-height: 38px; padding: 6px 10px; font-size: 14px; }
  .rx .x-panel .x-seg { padding: 3px; }
}

/* Insignias de pendientes en las pestañas */
.rx .x-tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 999px; background: var(--warn); color: var(--warn-ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; vertical-align: 1px; }

/* Cuenta: botón propio, aparte del estado de sincronización */
/* Avatar por rol: el color y el símbolo salen del rol; con foto se muestra la foto */

/* Ventas y métricas: siempre en el pesto de cuiqli, aunque el negocio personalice su color */
.rx[data-theme='light'] .x-metrics { --acc-text: color-mix(in srgb, #c4f135 50%, #1a2a00); --glow: color-mix(in srgb, #c4f135 35%, transparent); }

/* Pedidos por QR en Mesas: ámbar = hay algo que atender */
.rx .x-gi { display: grid; gap: 12px; margin-bottom: 16px; }
.rx .x-gi-card { border-radius: 20px; padding: 16px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); display: grid; gap: 12px; }
.rx .x-gi-card header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.rx .x-gi-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; color: var(--ink); }
.rx .x-gi-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx .x-gi-lines li { display: grid; gap: 1px; }
.rx .x-gi-lines span { color: var(--soft); font-size: 15px; overflow-wrap: anywhere; }
.rx .x-gi-error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--alert-bg); color: var(--ink); font-size: 14px; }
.rx .x-gi-card footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.rx .x-gi-total { font-size: 22px; }
.rx .x-gi-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rx .x-gi-draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--line); color: var(--soft); font-size: 15px; }
@container rxs (max-width: 520px) { .rx .x-gi-actions { width: 100%; } .rx .x-gi-actions .x-btn { flex: 1 1 100%; min-height: 46px; } }

/* QR de las mesas */

/* Corte de turno */

/* Por reponer */

/* ───────── Lenguaje visual: aire, un protagonista por pantalla y movimiento con intención ───────── */
.rx {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px;
}
@keyframes rx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rx-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .rx .x-rise { animation: rx-rise 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 38ms); }
}

/* Pedir: producto protagonista */
.rx .x-price { font-size: 24px; font-weight: 600; letter-spacing: -0.035em; }
.rx .x-chips { gap: 6px; }
.rx .x-chip { border: 0; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: background 0.2s var(--ease), color 0.2s; }
.rx .x-chip[aria-pressed='true'] { box-shadow: 0 6px 20px var(--glow); }

.rx .x-panel { border: 0; border-radius: 32px; padding: 24px; background: linear-gradient(180deg, var(--surface2), var(--surface) 55%); box-shadow: inset 0 0 0 1px var(--line); }
.rx .x-panel h2 { font-size: 22px; letter-spacing: -0.03em; }
.rx .x-total-row { font-size: 44px; line-height: 1; padding-top: 6px; }
.rx .x-total-row > span:first-child { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.rx .x-cta { border-radius: 20px; min-height: 64px; transition: transform 0.15s var(--ease), box-shadow 0.2s; }
.rx .x-cta:not(:disabled):active { transform: scale(0.98); }

/* Cobro: un momento, no un aviso */
@container rxs (max-width: 900px) { .rx .x-total-row { font-size: 38px; } }

/* Ventas: cabina en vivo */

/* Resumen del evento (hoja Carta/A4) */

/* Teléfono: las tablas se vuelven filas apiladas, sin scroll horizontal dentro de las tarjetas */

/* Apariencia: plantillas y personalización */

/* ───────── Noche limpia ───────── */
/* Pedir como carta: filas grandes, sin cajas; el Pesto queda para el dinero y las acciones */
.rx .x-menu { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; align-content: start; padding-right: 4px; }
.rx .x-item {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 14px 4px; min-height: 76px; border-bottom: 1px solid var(--line); transition: background 0.2s var(--ease), padding 0.2s var(--ease);
}
.rx .x-item:focus-visible { outline: 2px solid var(--acc); outline-offset: -2px; border-radius: 12px; }
@media (hover: hover) { .rx .x-item:not(:disabled):hover { background: color-mix(in srgb, var(--ink) 4%, transparent); padding-inline: 12px; } }
.rx .x-item:not(:disabled):active { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.rx .x-item:disabled { opacity: 0.4; cursor: not-allowed; }
.rx .x-thumb-r {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; letter-spacing: -0.04em;
  background: var(--tint, var(--acc)); color: #0b1710;
}
.rx .x-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rx .x-item-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.rx .x-item-sub { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rx .x-item .x-price { font-size: 22px; }
@container rxs (max-width: 900px) { .rx .x-menu { grid-template-columns: 1fr; gap: 0; overflow: visible; flex: none; } .rx .x-item { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; } .rx .x-thumb-r { width: 48px; height: 48px; font-size: 16px; } }

/* El panel y las secciones respiran: líneas finas y espacio en vez de cajas */
.rx .x-panel { background: var(--surface); box-shadow: none; }
.rx .x-cta, .rx .x-btn.x-primary { box-shadow: none; }
.rx .x-cta { box-shadow: 0 10px 30px var(--glow); }

/* El trazo */
.rx .x-trazo { display: block; margin: 0 auto 10px; overflow: visible; }
.rx .x-trazo path { fill: none; stroke: var(--acc); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .rx .x-trazo path { stroke-dashoffset: 1; animation: rx-draw 1.1s var(--ease) 0.15s forwards; } }
.rx .x-empty .x-trazo { opacity: 0.9; }
.rx .x-gi-draft-acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* Casilla con título y ayuda (formularios) */

/* Selectores de varias opciones (tipo de pedido, forma de pago): reparten el ancho y quedan centrados */
.rx .x-seg.x-full, .rx .x-seg.x-full[role='group'] { display: flex; width: 100%; overflow: visible; }
.rx .x-seg.x-full button { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
@container rxs (max-width: 760px) {
  .rx .x-seg.x-full:not([aria-label='Secciones']) button { flex: 1 1 0; padding: 6px 4px; }
  .rx .x-panel .x-seg.x-full button { min-height: 40px; font-size: 14px; }
}
@container rxs (max-width: 359px) { .rx .x-panel .x-seg.x-full button { font-size: 12.5px; } }

/* Cobro: en escritorio se apila como siempre; en teléfono el total y el botón van en una sola fila para dejar lugar a la lista */
.rx .x-pay-row { display: contents; }
@container rxs (max-width: 760px) {
  .rx .x-panel { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
  .rx .x-panel .x-lines:has(> .x-empty) { display: none; }
  .rx .x-panel .x-lines { max-height: 22vh; }
  .rx .x-panel .x-caption { display: none; }
  .rx .x-pay-row { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
  .rx .x-pay-row .x-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; font-size: 30px; line-height: 1; white-space: nowrap; }
  .rx .x-pay-row .x-total-row > span:first-child { font-size: 12px; }
  .rx .x-pay-row .x-cta { width: 100%; min-height: 54px; padding: 10px 14px; font-size: 16px; line-height: 1.15; border-radius: 16px; }
}

/* Cuenta para la mesa: junta, separada o ambas */

/* Los datos de arriba de Ventas se acomodan en dos filas si no caben */

/* Promociones */
.rx[data-theme='light'] .x-field input[type='time'], .rx[data-theme='light'] .x-field input[type='date'] { color-scheme: light; }
/* Casillas con el estilo de cuiqli (en vez de la blanca del navegador) */
/* Impresión directa: letra más gruesa (el papel térmico se come las líneas finas), tamaños medidos y menos aire */

/* Ticket del pedido: el total va enmarcado, sin bloques negros (cuidan las impresoras gastadas) */
/* "cuiqli.com" fusionado: el .com pegado al logo y sobre la misma línea de las letras */

/* Cobro en efectivo con cambio */

/* Acciones que terminan algo (cobrar, guardar la venta): verde de éxito tradicional, aparte del color de marca del negocio */
.rx .x-cta.x-ok { --ok: #34c759; background: var(--ok); border-color: var(--ok); color: #04210f; box-shadow: 0 10px 30px rgba(52, 199, 89, 0.35); }
.rx .x-cta.x-ok:not(:disabled):active { background: #2db351; }
.rx .x-cta.x-ok:disabled { box-shadow: none; }

/* Aviso de impresora USB desconectada */

/* Estado de la nube */

/* Promociones vigentes (consulta en caja) */

/* Guía de impresora */

/* ---------- Estados: vacío, carga e interacción ---------- */

/* Vacío: dice qué falta y cuál es el siguiente paso */
.rx .x-empty-state { display: grid; justify-items: center; gap: 6px; padding: 48px 16px; }
.rx .x-empty-state .x-trazo { margin-bottom: 6px; }
.rx .x-empty-title { color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.rx .x-empty-text { margin: 0; max-width: 36ch; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Carga: bloques con las medidas del contenido para que nada salte cuando llegan los datos */

/* Foco visible para quien usa teclado, en todo lo que se puede tocar */

/* Respuesta al tocar (teléfono y tableta): un leve hundimiento confirma que el toque se registró */
.rx .x-btn, .rx .x-chip, .rx .x-cta, .rx .x-seg button { transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.08s ease, filter 0.12s ease, box-shadow 0.12s ease; }
.rx .x-btn:not(:disabled):active, .rx .x-chip:not(:disabled):active, .rx .x-cta:not(:disabled):active, .rx .x-seg button:not(:disabled):active { transform: scale(0.97); }

/* Cursor encima: solo en equipos con mouse (en el teléfono no existe el hover) */
@media (hover: hover) {
  .rx .x-btn:not(:disabled):not(.x-primary):not(.x-danger):hover { background: var(--raised); border-color: color-mix(in srgb, var(--ink) 24%, var(--line)); }
  .rx .x-btn.x-primary:not(:disabled):hover, .rx .x-cta:not(:disabled):hover { filter: brightness(1.07); }
  .rx .x-btn.x-danger:not(:disabled):hover { filter: brightness(1.15); }
  .rx .x-chip:not(:disabled):not([aria-pressed='true']):hover { background: var(--raised); color: var(--ink); border-color: color-mix(in srgb, var(--ink) 24%, var(--line)); }
  .rx .x-seg button:not(:disabled):not([aria-pressed='true']):not([aria-current='page']):hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
}

/* Los botones chicos también cumplen el mínimo táctil de 40 px */
.rx .x-btn.x-small { min-height: 40px; }

/* ───────── Pedido en teléfono: barra compacta + hoja con el detalle ─────────
   Los productos ocupan casi toda la pantalla; el pedido se resume abajo (total y guardar) y se abre completo al tocarlo. */
.rx .x-panel-bar, .rx .x-sheet-close { display: none; }
.rx .x-panel-sheet, .rx .x-sheet-top { display: contents; }
@container rxs (max-width: 760px) {
  .rx .x-pos { padding: 0 16px 0; gap: 0; }
  .rx .x-pos .x-col { flex: 1 0 auto; gap: 10px; }
  .rx .x-pos .x-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; position: sticky; top: 0; z-index: 5; margin: 0 -16px; padding: 6px 16px 8px; background: var(--ground); }
  .rx .x-pos .x-chips::-webkit-scrollbar { display: none; }
  .rx .x-pos .x-chip { flex: none; min-height: 40px; }
  .rx .x-pos .x-item { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; min-height: 64px; padding: 8px 2px; }
  .rx .x-pos .x-thumb-r { width: 44px; height: 44px; font-size: 15px; }
  .rx .x-pos .x-item-name { font-size: 17px; }
  .rx .x-pos .x-item .x-price { font-size: 19px; }

  .rx .x-pos .x-panel { position: sticky; bottom: 0; z-index: 6; width: auto; max-height: none; margin: 0 -16px; padding: 0; gap: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .rx .x-pos .x-panel.x-is-empty { display: none; }
  .rx .x-panel-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.3); }
  .rx .x-bar-sum { all: unset; box-sizing: border-box; flex: 1 1 0; min-width: 0; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'total chev' 'meta chev'; align-items: center; column-gap: 8px; cursor: pointer; }
  .rx .x-bar-sum:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px; }
  .rx .x-bar-total { grid-area: total; font-size: 24px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .rx .x-bar-meta { grid-area: meta; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rx .x-bar-chev { grid-area: chev; color: var(--muted); }
  .rx .x-pos .x-bar-cta { flex: none; width: auto; min-width: 144px; min-height: 54px; padding: 0 18px; font-size: 16px; }

  .rx .x-pos .x-panel:not(.x-open) .x-panel-sheet { display: none; }
}
/* Avisos de arriba (almacenamiento, impresora): más compactos en teléfono */
/* En el pedido, el círculo del producto muestra la cantidad en lugar de las iniciales */

/* ───────── Cuenta de la mesa: menú a pantalla casi completa, cuenta en barra y hoja ───────── */
/* Resumen de las barras (pedido y cuenta): mismo estilo en teléfono y tableta */
.rx .x-bar-sum { all: unset; box-sizing: border-box; flex: 1 1 0; min-width: 0; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'total chev' 'meta chev'; align-items: center; column-gap: 8px; cursor: pointer; color: var(--ink); }
.rx .x-bar-sum:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 10px; }
.rx .x-bar-total { grid-area: total; font-size: 24px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rx .x-bar-meta { grid-area: meta; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx .x-bar-chev { grid-area: chev; color: var(--muted); }
@container rxs (max-width: 380px) { .rx .x-pos .x-bar-cta { min-width: 120px; padding: 0 12px; font-size: 15px; } }

/* Pantalla de quien escanea el QR de la mesa. Pensada para celular; en pantallas grandes se centra. */
.rx :has(.x-g-app) body, .rx :has(.x-g-app) #root { height: auto; overflow: visible; overflow-x: clip; }
.rx .x-g-app {
  --g-pad: 20px;
  min-height: 100dvh; width: 100%; max-width: 560px; margin: 0 auto; position: relative; color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 62%),
    var(--ground);
  padding-bottom: env(safe-area-inset-bottom);
}
@container rxs (min-width: 600px) { .rx .x-g-app { box-shadow: 0 0 0 1px var(--line); } .rx { background: #040b06; } }

/* Tipografía con jerarquía clara: eyebrow pequeño → título grande → texto de apoyo */
.rx .x-g-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc-text, var(--acc)); }
.rx .x-g-title { margin: 0; font-size: clamp(28px, 8vw, 36px); line-height: 1.08; font-weight: 500; letter-spacing: -0.035em; text-wrap: balance; }
.rx .x-g-title.x-xl { font-size: clamp(34px, 10vw, 46px); }
.rx .x-g-lead { margin: 0; font-size: 17px; line-height: 1.45; color: var(--soft); max-width: 34ch; text-wrap: balance; }
.rx .x-g-h2 { margin: 4px 0 14px; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.rx .x-g-h2.x-spaced { margin-top: 30px; }
.rx .x-g-note { color: var(--muted); font-size: 15px; text-align: center; margin: 18px 0 0; }

/* Pantallas centradas (bienvenida, nombre, felicidades) */
.rx .x-g-center { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 32px var(--g-pad); }
.rx .x-g-center .x-g-btn { margin-top: 10px; }
.rx .x-g-rise > * { animation: rx-g-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
@keyframes rx-g-rise { from { opacity: 0; filter: blur(10px); transform: translateY(14px); } to { opacity: 1; filter: none; transform: none; } }
.rx .x-g-splash > * { animation: rx-g-rise 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }

.rx .x-g-badge { border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 8px color-mix(in srgb, var(--acc) 22%, transparent), 0 18px 50px -12px color-mix(in srgb, var(--acc) 45%, transparent); flex: none; }
.rx .x-g-badge span { color: #07140a; font-weight: 600; line-height: 1; }
.rx .x-g-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); color: var(--soft); font-size: 14px; font-weight: 500; }
.rx .x-g-chip.x-strong { background: color-mix(in srgb, var(--acc) 14%, var(--surface)); border-color: color-mix(in srgb, var(--acc) 40%, transparent); color: var(--acc-text, var(--acc)); }
@keyframes rx-g-pulse { 50% { transform: scale(2.2); opacity: 0.2; } }
.rx .x-g-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); display: inline-block; animation: rx-g-pulse 1.2s ease-in-out infinite; }
.rx .x-g-dot.x-warn { background: var(--warn); }

/* Botones y campos: grandes, con el color de la marca del negocio */
.rx .x-g-btn { min-height: 52px; padding: 0 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font-weight: 600; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; max-width: 420px; transition: transform 0.12s, opacity 0.2s; }
.rx .x-g-btn:active { transform: scale(0.98); }
.rx .x-g-btn.x-primary { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--acc) 70%, transparent); }
.rx .x-g-btn.x-lg { min-height: 58px; font-size: 17px; border-radius: 18px; }
.rx .x-g-btn.x-ghost { background: transparent; border-color: transparent; color: var(--soft); }
.rx .x-g-btn:disabled { opacity: 0.45; box-shadow: none; cursor: not-allowed; }
.rx .x-g-btn strong { font-variant-numeric: tabular-nums; }
.rx .x-g-input { width: 100%; max-width: 420px; min-height: 60px; padding: 0 20px; border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); color: var(--ink); font-size: 22px; text-align: center; outline: none; }
.rx .x-g-input:focus { border-color: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 20%, transparent); }

/* Pantalla principal */
.rx .x-g-main { min-height: 100dvh; padding-bottom: 120px; }
.rx .x-g-top { padding: calc(16px + env(safe-area-inset-top)) var(--g-pad) 10px; display: grid; gap: 12px; }
.rx .x-g-bar { position: sticky; top: 0; z-index: 5; padding: 8px var(--g-pad) 0; display: grid; gap: 0; background: color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.rx .x-g-bar:has(.x-g-chips) { padding-bottom: 0; }
.rx .x-g-top-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rx .x-g-top-brand div { display: grid; min-width: 0; }
.rx .x-g-top-brand strong { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx .x-g-top-brand span { font-size: 13px; color: var(--muted); }
.rx .x-g-mini-badge { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #07140a; display: grid; place-items: center; font-weight: 600; flex: none; overflow: hidden; }
.rx .x-g-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rx .x-g-seg button { min-height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.rx .x-g-seg button[aria-pressed='true'] { background: var(--surface2); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent); }
.rx .x-g-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.rx .x-g-pad { padding: 22px var(--g-pad) 0; }
.rx .x-g-banner { margin: 12px var(--g-pad) 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.rx .x-g-banner.x-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, transparent); color: var(--ink); }
.rx .x-g-pad > .x-g-banner { margin: 0 0 16px; }

/* Menú tipo carta: título grande, categorías que siguen al scroll, platillos con foto */
.rx .x-g-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--g-pad) * -1); padding: 10px var(--g-pad) 12px; }
.rx .x-g-chips::-webkit-scrollbar { display: none; }
.rx .x-g-chips button { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.rx .x-g-chips button[aria-current='true'] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.rx .x-g-hello { padding: 6px 0 8px; display: grid; gap: 6px; }
.rx .x-g-display { margin: 0; font-size: clamp(34px, 10vw, 46px); line-height: 1.02; font-weight: 500; letter-spacing: -0.045em; text-wrap: balance; }
.rx .x-g-sec { padding-top: 26px; scroll-margin-top: 120px; }
.rx .x-g-sec-title { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc-text, var(--acc)); }
.rx .x-g-cards { list-style: none; margin: 0; padding: 0; }
.rx .x-g-card { position: relative; border-top: 1px solid var(--line); animation: rx-g-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.rx .x-g-card:first-child { border-top: 0; }
.rx .x-g-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; width: 100%; padding: 18px 0 26px; background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.rx .x-g-card-main:active .x-g-photo img, .rx .x-g-card-main:active .x-g-photo.x-art { transform: scale(1.04); }
.rx .x-g-card-text { flex: 1; min-width: 0; display: grid; gap: 6px; padding-top: 2px; }
.rx .x-g-card-text strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.rx .x-g-desc { font-size: 14.5px; line-height: 1.4; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rx .x-g-price { font-size: 17px; font-weight: 600; color: var(--acc-text, var(--acc)); font-variant-numeric: tabular-nums; margin-top: 2px; }
.rx .x-g-card.x-on .x-g-card-text strong::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--acc); vertical-align: 2px; }
.rx .x-g-card-act { position: absolute; right: 6px; top: 98px; }
.rx .x-g-add { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 4px var(--ground), 0 8px 20px -6px color-mix(in srgb, var(--acc) 70%, transparent); transition: transform 0.15s; }
.rx .x-g-add:active { transform: scale(0.9); }
.rx .x-g-card-act .x-g-stepper { box-shadow: 0 0 0 4px var(--ground); background: var(--surface2); }

/* Recomendados: tira horizontal con fotos */
.rx .x-g-rec { display: flex; gap: 14px; overflow-x: auto; margin: 10px calc(var(--g-pad) * -1) 0; padding: 4px var(--g-pad) 12px; scroll-snap-type: x proximity; scroll-padding-left: var(--g-pad); scrollbar-width: none; }
.rx .x-g-rec::-webkit-scrollbar { display: none; }
.rx .x-g-rec-card { position: relative; flex: none; width: 148px; scroll-snap-align: start; }
.rx .x-g-rec-main { display: grid; gap: 6px; width: 100%; padding: 0; background: transparent; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.rx .x-g-rec-main .x-g-photo { width: 148px; height: 148px; border-radius: 26px; }
.rx .x-g-rec-main strong { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; padding-top: 6px; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rx .x-g-rec-act { position: absolute; right: 8px; top: 92px; }
.rx .x-g-rec-act .x-g-stepper { box-shadow: 0 0 0 4px var(--ground); background: var(--surface2); }
.rx .x-g-rec-card .x-g-add { width: 44px; height: 44px; }
.rx .x-g-upsell { padding-top: 6px; border-top: 1px solid var(--line); }
.rx .x-g-upsell .x-g-rec { margin-top: 6px; }
.rx .x-g-sheet .x-g-add, .rx .x-g-upsell .x-g-add { box-shadow: 0 0 0 4px var(--surface), 0 8px 20px -6px color-mix(in srgb, var(--acc) 70%, transparent); }
.rx .x-g-sheet .x-g-rec { margin-left: calc(var(--g-pad) * -1); margin-right: calc(var(--g-pad) * -1); }

/* Foto: aparece con un fundido; sin foto, mosaico de color con inicial */
.rx .x-g-photo { position: relative; flex: none; width: 112px; height: 112px; border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: var(--surface2); }
.rx .x-g-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rx .x-g-photo img.x-in { opacity: 1; transform: none; }
.rx .x-g-photo.x-art { background: linear-gradient(145deg, hsl(var(--h) 38% 26%), hsl(var(--h) 42% 11%)); transition: transform 0.3s; }
.rx .x-g-photo.x-art b { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; color: hsl(var(--h) 75% 82%); }

/* Detalle del platillo */

.rx .x-g-stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--surface2); border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); flex: none; }
.rx .x-g-stepper button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--acc-text, var(--acc)); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.rx .x-g-stepper span { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Barra del pedido propio, siempre al alcance del pulgar */
.rx .x-g-cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; padding: 14px var(--g-pad) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--ground) 55%, transparent); }
.rx .x-g-cartbar .x-g-btn { justify-content: space-between; max-width: 520px; padding: 0 18px; min-width: 0; }
.rx .x-g-cartbar .x-g-cart-l { min-width: 0; }
.rx .x-g-cart-l { display: inline-flex; align-items: center; gap: 8px; }
.rx .x-g-cart-n { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--acc-ink); color: var(--acc); font-size: 15px; animation: rx-g-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }
.rx .x-g-cart-txt { white-space: nowrap; }
.rx .x-g-cart-t { white-space: nowrap; flex: none; }
.rx .x-g-cart-t { animation: rx-g-pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); }

/* La mesa */
.rx .x-g-mesa-head { display: grid; gap: 12px; margin-bottom: 18px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.rx .x-g-mesa-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rx .x-g-mesa-title strong { font-size: 17px; font-weight: 600; }
.rx .x-g-mesa-title span { font-size: 14px; color: var(--muted); }
.rx .x-g-who { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rx .x-g-who li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--soft); max-width: 100%; overflow-wrap: anywhere; }
.rx .x-g-who li span { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; }
.rx .x-g-who li svg { width: 15px; height: 15px; color: var(--warn); flex: none; }
.rx .x-g-who li.x-me { color: var(--ink); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.rx .x-g-who li.x-me span { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.rx .x-g-blank { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 44px 12px 12px; }
.rx .x-g-blank-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; color: var(--acc-text, var(--acc)); background: radial-gradient(circle, color-mix(in srgb, var(--acc) 22%, transparent), transparent 70%); border: 1px dashed color-mix(in srgb, var(--acc) 45%, transparent); }
.rx .x-g-blank h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
.rx .x-g-blank p { margin: 0 0 14px; max-width: 28ch; color: var(--soft); font-size: 16px; line-height: 1.4; text-wrap: balance; }
.rx .x-g-h2-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--surface2); color: var(--soft); font-size: 14px; font-weight: 700; vertical-align: 3px; }
.rx .x-g-person { margin-bottom: 14px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.rx .x-g-person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rx .x-g-av { width: 30px; height: 30px; border-radius: 50%; background: var(--surface2); border: 1.5px solid var(--acc); color: var(--acc-text, var(--acc)); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.rx .x-g-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--warn); }
.rx .x-g-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rx .x-g-lines li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.rx .x-g-lines li:first-child { border-top: 0; }
.rx .x-g-line-name { font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.rx .x-g-line-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.rx .x-g-line-price { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.rx .x-g-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 4px; font-size: 16px; color: var(--soft); }
.rx .x-g-total strong { font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.rx .x-g-sticky-cta { position: sticky; bottom: 0; padding: 12px 0 calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; align-items: stretch; justify-content: center; background: linear-gradient(to top, var(--ground) 60%, transparent); }
.rx .x-g-track { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.rx .x-g-track li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rx .x-g-track small { display: block; color: var(--muted); font-size: 13px; }
.rx .x-g-track em { font-style: normal; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: var(--surface2); color: var(--soft); }
.rx .x-g-track em.x-s-served { color: var(--muted); }
.rx .x-g-track em.x-s-wait { background: var(--warn-bg); color: var(--warn); }

/* Hojas inferiores */
.rx .x-g-sheet-bg { position: fixed; inset: 0; z-index: 20; background: rgba(2, 8, 4, 0.66); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: rx-g-fade 0.2s ease; }
.rx .x-g-sheet { width: 100%; max-width: 560px; max-height: 88dvh; overflow: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 26px var(--g-pad) calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; align-items: stretch; border-top: 1px solid var(--line); animation: rx-g-up 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rx .x-g-sheet .x-g-btn { max-width: none; }
@keyframes rx-g-up { from { transform: translateY(40px); opacity: 0; } }
@keyframes rx-g-fade { from { opacity: 0; } }

/* Espera de marca: la Q de cuiqli se forma dos veces y llega el mensaje final */
.rx .x-g-moment { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 28px var(--g-pad); text-align: center; background: radial-gradient(90% 55% at 50% 38%, color-mix(in srgb, var(--acc) 20%, transparent), transparent 70%), var(--ground); animation: rx-g-fade 0.3s ease; }
.rx .x-g-moment-body { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; max-width: 420px; }
.rx .x-g-moment-body.x-done { animation: rx-g-rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.rx .x-g-moment-title { margin: 0; font-size: clamp(22px, 6vw, 28px); font-weight: 500; letter-spacing: -0.03em; }
.rx .x-g-moment-title.x-big { font-size: clamp(40px, 12vw, 54px); letter-spacing: -0.045em; }
.rx .x-g-moment-text { margin: 0 0 8px; font-size: 18px; color: var(--soft); max-width: 28ch; text-wrap: balance; }
.rx .x-g-done-q { position: relative; margin-bottom: 4px; }
.rx .x-g-check { position: absolute; right: -14px; bottom: 2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 0 5px var(--ground); animation: rx-g-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) 0.15s backwards; }
@keyframes rx-g-pop { from { transform: scale(0); } }
.rx .x-q-glow { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.rx .x-q-glow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 190%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--acc) 30%, transparent) 0%, transparent 62%); pointer-events: none; }
.rx .x-q-mark { position: relative; display: block; overflow: visible; }
.rx .x-q-mark path { fill: var(--acc); stroke: var(--acc); stroke-linejoin: round; }
.rx .x-q-mark.x-solid path { stroke-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .rx .x-g-rec { scroll-snap-type: none; }
  .rx .x-g-rise > *, .rx .x-g-splash > *, .rx .x-g-card, .rx .x-g-cart-n, .rx .x-g-cart-t, .rx .x-g-moment-body.x-done, .rx .x-g-check { animation: none; }
  .rx .x-g-photo img { transition: none; opacity: 1; transform: none; }
}

@container rxs (min-width: 768px) { .rx .x-g-app { max-width: 640px; } .rx .x-g-photo:not(.x-hero) { width: 132px; height: 132px; } .rx .x-g-card-act { top: 118px; } .rx .x-g-display { font-size: 52px; } }
.rx .x-g-rec-main .x-g-photo:not(.x-hero) { width: 148px; height: 148px; }

/* Avance del pedido por etapas: tarjeta de color con movimiento (solo transform y opacity, sin librerías) */
.rx .x-g-progress { position: relative; margin: 0 0 16px; padding: 18px 16px 16px; border-radius: 22px; display: grid; gap: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); background: radial-gradient(120% 100% at 0% 0%, color-mix(in srgb, var(--acc) 30%, var(--surface)), var(--surface) 70%); box-shadow: 0 18px 50px -24px color-mix(in srgb, var(--acc) 70%, transparent); }
.rx .x-g-progress-hero { display: flex; align-items: center; gap: 14px; }
.rx .x-g-orb { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); }
.rx .x-g-orb::before, .rx .x-g-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; animation: rx-g-ripple 2.4s ease-out infinite; }
.rx .x-g-orb::after { animation-delay: 1.2s; }
.rx .x-g-orb svg { animation: rx-g-bob 2.4s ease-in-out infinite; }
.rx .x-g-progress.x-done .x-g-orb::before, .rx .x-g-progress.x-done .x-g-orb::after, .rx .x-g-progress.x-done .x-g-orb svg { animation: none; }
.rx .x-g-progress-top { display: grid; gap: 2px; min-width: 0; }
.rx .x-g-progress-top strong { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.rx .x-g-progress-top span { color: var(--soft); font-size: 14px; }
.rx .x-g-progress-bar { position: relative; height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--ground) 60%, transparent); overflow: hidden; }
.rx .x-g-progress-bar i { position: relative; display: block; height: 100%; border-radius: inherit; overflow: hidden; background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 75%, #fff 0%), var(--acc)); box-shadow: 0 0 22px color-mix(in srgb, var(--acc) 70%, transparent); transition: width 0.9s cubic-bezier(0.3, 0.8, 0.3, 1); }
.rx .x-g-progress-bar i::after { content: ''; position: absolute; inset: 0; width: 60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: translateX(-120%); animation: rx-g-sheen 1.8s ease-in-out infinite; }
.rx .x-g-progress.x-done .x-g-progress-bar i::after { animation: none; opacity: 0; }
.rx .x-g-progress-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; color: var(--muted); text-align: center; }
.rx .x-g-progress-steps li { display: grid; justify-items: center; gap: 6px; }
.rx .x-g-dot-step { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid color-mix(in srgb, var(--acc) 35%, var(--line)); color: var(--acc-ink); }
.rx .x-g-progress-steps li.x-past { color: var(--soft); }
.rx .x-g-progress-steps li.x-past .x-g-dot-step { background: var(--acc); border-color: var(--acc); }
.rx .x-g-progress-steps li.x-now { color: var(--ink); font-weight: 700; }
.rx .x-g-progress-steps li.x-now .x-g-dot-step { border-color: var(--acc); position: relative; }
.rx .x-g-progress-steps li.x-now .x-g-dot-step b { width: 10px; height: 10px; border-radius: 50%; background: var(--acc); animation: rx-g-beat 1.2s ease-in-out infinite; }
.rx .x-g-progress.x-done .x-g-progress-top strong { color: var(--acc); }
@keyframes rx-g-ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes rx-g-bob { 50% { transform: translateY(-2px) scale(1.06); } }
@keyframes rx-g-sheen { 0% { transform: translateX(-120%); } 70%, 100% { transform: translateX(260%); } }
@keyframes rx-g-beat { 50% { transform: scale(1.5); opacity: 0.7; } }
.rx .x-g-notify { min-height: 44px; width: 100%; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rx .x-g-progress .x-g-note { margin: -4px 0 0; font-size: 13px; text-align: center; }

/* Quién ya terminó de pedir */
.rx .x-g-wait { margin: 0 0 8px; font-size: 13px; line-height: 1.4; text-align: center; color: var(--warn); }
/* Pedir la cuenta: gris hasta que todo se entregó; entonces pasa al verde de éxito */
.rx .x-g-bill { min-height: 48px; width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.rx .x-g-bill:disabled { cursor: not-allowed; opacity: 0.7; }
.rx .x-g-bill.x-ready { background: #34C759; border-color: #34C759; color: #04210F; opacity: 1; }
/* Botón de confirmar: verde de éxito tradicional, sin importar el color del negocio (el rojo se lee como negativo) */
.rx .x-g-btn.x-go { background: #34C759; border-color: #34C759; color: #04210F; box-shadow: 0 10px 30px -10px rgba(52, 199, 89, 0.65); }
.rx .x-g-btn.x-go:active { background: #2DB351; }
.rx .x-g-btn.x-go:disabled { opacity: 0.55; }
/* Pantalla de entregado: fondo difuminado, check con ondas */
.rx .x-g-moment.x-blur { background: radial-gradient(90% 55% at 50% 38%, color-mix(in srgb, var(--acc) 26%, transparent), transparent 70%), color-mix(in srgb, var(--ground) 62%, transparent); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.rx .x-g-done-q.x-ripples { position: relative; }
.rx .x-g-done-q.x-ripples::before, .rx .x-g-done-q.x-ripples::after { content: ''; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; animation: rx-g-ripple 2.6s ease-out 0.4s infinite; pointer-events: none; }
.rx .x-g-done-q.x-ripples::after { animation-delay: 1.7s; }
@media (prefers-reduced-motion: reduce) {
  .rx .x-g-orb::before, .rx .x-g-orb::after, .rx .x-g-orb svg, .rx .x-g-progress-bar i::after, .rx .x-g-dot-step b, .rx .x-g-done-q.x-ripples::before, .rx .x-g-done-q.x-ripples::after { animation: none; }
  .rx .x-g-progress-bar i { transition: none; }
}

.rx { position: relative; overflow: hidden; font-family: 'Figtree', system-ui, sans-serif; text-align: left; }
.rx .x-app { position: absolute; inset: 0; height: auto; min-height: 0; }
.rx .x-page-scroll { overflow: hidden; }
.rx { background: var(--ground); --g-pad: 20px; }
.rx .x-g-app { position: absolute; inset: 0; min-height: 0; height: 100%; max-width: none; margin: 0; overflow: hidden; box-shadow: none; }
.rx .x-g-main { min-height: 0; }
.rx svg[role='img'] { width: auto; display: block; overflow: visible; }

/* Generado por tools/app-looks.mjs */
.look-card[data-look='pesto'] .rx { --acc: #C4F135; --acc-text: #C4F135; --acc-ink: #0A0A0B; --btn: #C4F135; --btn-ink: #0A0A0B; }
.look-card[data-look='chipotle'] .rx { --ground: #2B1210; --surface: #361e1c; --surface2: #3e2726; --raised: #4b3634; --line: rgba(255,255,255,0.09); --ink: #F4F1EA; --muted: #9AA39D; --soft: #C6CCC7; --acc: #FF9B54; --acc-text: #FF9B54; --acc-ink: #0A0A0B; --btn: #FF9B54; --btn-ink: #0A0A0B; }
.look-card[data-look='guinda'] .rx { --ground: #3A1020; --surface: #441c2b; --surface2: #4c2634; --raised: #583441; --line: rgba(255,255,255,0.09); --ink: #F4F1EA; --muted: #9AA39D; --soft: #C6CCC7; --acc: #F6C28B; --acc-text: #F6C28B; --acc-ink: #0A0A0B; --btn: #F6C28B; --btn-ink: #0A0A0B; }
.look-card[data-look='maiz'] .rx { --ground: #FBF2E2; --surface: #f2eada; --surface2: #e9e1d2; --raised: #e2dacb; --line: rgba(0,0,0,0.1); --ink: #14171A; --muted: #5F666B; --soft: #3E4448; --acc: #B8561F; --acc-text: #B8561F; --acc-ink: #FFFFFF; --btn: #B8561F; --btn-ink: #FFFFFF; }

/* ───────── Demo guiada ───────── */
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url('/fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); }

body.demo-page { min-height: 100dvh; }
.dm { position: relative; }
/* Encabezado: en teléfono el avance va en su propia fila para que nada se encime con Salir */
.dm-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'brand exit' 'prog prog'; align-items: center; gap: 2px 12px; padding: 8px var(--gutter) 12px; background: rgba(5, 12, 7, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.dm-top .brand { grid-area: brand; display: inline-flex; min-height: 44px; align-items: center; }
.dm-prog { grid-area: prog; display: flex; align-items: center; gap: 14px; min-width: 0; }
@media (max-width: 699px) { .dm-prog { width: 100%; } .dm-prog ol { flex: 1; } .dm-prog li { flex: 1; } .dm-prog li i { width: 100%; } }
.dm-exit { grid-area: exit; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color .2s, border-color .2s; }
.dm-exit:hover { color: var(--ink); border-color: var(--acc); }
@media (min-width: 700px) { .dm-top { grid-template-columns: auto 1fr auto; grid-template-areas: 'brand prog exit'; padding: 12px var(--gutter); gap: 16px; } .dm-prog { justify-self: center; } }
.dm-count { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }
.dm-count b { color: var(--ink); font-weight: 600; }
.dm-prog ol { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dm-prog li { display: grid; gap: 6px; justify-items: start; }
.dm-prog li i { display: block; width: 28px; height: 4px; border-radius: 4px; background: rgba(244, 241, 234, 0.16); transition: background 0.4s var(--ease); }
.dm-prog li.past i { background: rgba(196, 241, 53, 0.5); }
.dm-prog li.on i { background: var(--acc); }
.dm-prog li span { display: none; }
@media (min-width: 600px) { .dm-prog li i { width: 28px; } }
@media (min-width: 960px) { .dm-prog li span { display: block; font-size: 0.78rem; color: var(--muted); } .dm-prog li.on span { color: var(--ink); } .dm-prog li i { width: 54px; } }

.dm-stage { min-height: calc(100dvh - 69px); position: relative; }
.dm-step { display: none; width: min(1100px, 100%); margin: 0 auto; padding: clamp(16px, 3vw, 40px) var(--gutter) 40px; gap: 18px 56px; align-items: center; }
.dm-step.on { display: grid; animation: dm-in 0.7s var(--ease) both; }
@keyframes dm-in { from { opacity: 0; filter: blur(10px); transform: translateY(10px); } to { opacity: 1; filter: none; transform: none; } }
.dm-copy h1, .dm-copy h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 0 0 10px; max-width: 16ch; }
.dm-copy .lead { margin: 0; max-width: 40ch; }
.dm-copy .field { margin-top: 24px; max-width: 420px; }
.dm-copy .look-picks { margin-top: 18px; }
.dm-go { margin-top: 26px; min-height: 52px; }
.dm-hint { display: inline-flex; align-items: center; gap: 10px; margin: 20px 0 0; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(196, 241, 53, 0.35); background: rgba(196, 241, 53, 0.08); color: var(--acc); font-weight: 600; font-size: 0.95rem; }
.dm-hint::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); animation: dm-blink 1.4s ease-in-out infinite; }
@keyframes dm-blink { 50% { opacity: 0.25; } }
.dm-device { display: grid; justify-items: center; }
.dm-step { grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .dm-step { grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr); }
  .dm-step[data-step='3'], .dm-step[data-step='4'] { grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.5fr); }
  .dm-device { justify-self: center; width: 100%; }
}
@media (max-width: 899px) { .dm-copy { text-align: center; } .dm-copy h1, .dm-copy h2, .dm-copy .lead { margin-left: auto; margin-right: auto; } .dm-copy .field { margin-left: auto; margin-right: auto; text-align: left; } .dm-copy .look-picks { margin-left: auto; margin-right: auto; } }
@media (max-width: 899px) {
  .dm-copy h1, .dm-copy h2 { font-size: 1.7rem; }
  .dm-step:not([data-step='1']) .dm-copy .lead { display: none; }
  .dm-hint { margin-top: 10px; }
}

/* Teléfono y tableta de la demo: las pantallas son las reales de la app */
.dm-phone { width: min(360px, 100%, calc((100dvh - 250px) * 0.4875 + 24px)); min-width: 230px; margin: 0; }
.dm-tablet { width: min(880px, 100%); }
.dm-tablet .lk-screen { aspect-ratio: 16 / 10; }
@media (max-width: 700px) { .dm-tablet .lk-screen { aspect-ratio: 3 / 4; } .dm-tablet { padding: 8px; border-radius: 24px; } .dm-tablet .lk-screen { border-radius: 18px; } }
.dm .rx { position: absolute; inset: 0; overflow: hidden; }
.dm .rx .x-g-app { overflow-x: hidden; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
.dm .rx .x-g-app::-webkit-scrollbar { display: none; }
.dm .rx .x-page-scroll { overflow: auto; }
.dm-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.015); filter: blur(8px); transition: opacity 0.5s var(--ease), filter 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s; }
.dm-layer.on { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.dm-layer > .x-g-app { position: absolute; inset: 0; }
.dm-cart, .dm-sheet { position: absolute; inset: 0; pointer-events: none; }
.dm-cart > *, .dm-sheet > * { pointer-events: auto; }
.dm-cart[hidden], .dm-sheet[hidden] { display: none; }
/* Lo que no se puede tocar en la demo se deja quieto */
.dm .rx .x-g-rec-main, .dm .rx .x-g-card-main, .dm .rx .x-g-seg, .dm .rx .x-topbar .x-seg, .dm .rx .x-topbar-right, .dm .rx .x-tables-head, .dm .rx .x-chips { pointer-events: none; }
.dm .rx .x-g-rec-act, .dm .rx .x-g-card-act { z-index: 2; }
.dm .rx .x-g-moment { position: absolute; }
.dm .rx .x-g-sheet-bg { position: absolute; }
.dm .rx .x-gi-actions .x-btn.x-danger { opacity: 0.55; pointer-events: none; }
.dm .rx .x-ticket-card .x-btn { min-height: 44px; }

/* Ajustes de las copias: en la app estas medidas salen del tamaño de la ventana o de un cálculo en vivo */
.dm .rx .x-g-center, .dm .rx .x-g-main { min-height: 100%; }
.dm .rx .x-g-center { height: 100%; }
.dm .rx .x-g-sheet { max-height: 88%; }
.dm .rx .x-g-badge { width: 112px; height: 112px; }
.dm .rx .x-g-badge > span { font-size: 47px; }
.dm .rx .x-q-glow { width: 94px; height: 104px; }
.dm .rx .x-g-photo.x-art { --h: 234; }

/* Botón que se debe tocar: brilla */
.dm-glow { animation: dm-ring 1.7s ease-out infinite; position: relative; z-index: 3; }
@keyframes dm-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--btn, var(--acc)) 70%, transparent); } 70% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--btn, var(--acc)) 0%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.dm .dm-gone { opacity: 0; transform: scale(0.96); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.dm .rx .dm-lineDone { opacity: 0.45; }
.dm .rx .dm-lineDone .x-btn { pointer-events: none; }

/* Cortina entre pasos */
.dm-curtain { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 28px; text-align: center; background: rgba(5, 12, 7, 0.5); -webkit-backdrop-filter: blur(22px) saturate(1.1); backdrop-filter: blur(22px) saturate(1.1); opacity: 0; visibility: hidden; transition: opacity 0.6s var(--ease), visibility 0s 0.6s; cursor: pointer; }
.dm-curtain.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.dm-curtain p { margin: 0; max-width: 18ch; font-size: clamp(1.8rem, 5.6vw, 3.2rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease) 0.2s, transform 0.7s var(--ease) 0.2s; }
.dm-curtain.on p { opacity: 1; transform: none; }

/* Impresora y ticket */
.dm-print { display: grid; justify-items: center; align-content: start; min-height: 100dvh; padding: 12vh var(--gutter) 40px; perspective: 1500px; }
.dm-print[hidden], .dm-cta[hidden] { display: none; }
.dm-stack { display: grid; justify-items: center; transform: rotateX(12deg) rotateZ(-0.6deg); transform-origin: 50% 0; transform-style: preserve-3d; width: min(420px, 100%); }
.dm-printer { position: relative; width: 100%; z-index: 3; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.55)); }
.pr-body { width: 100%; display: block; }
.pr-led { animation: dm-led 1.1s ease-in-out infinite; }
.pr-halo { animation: dm-halo 1.1s ease-in-out infinite; transform-origin: 356px 48px; transform-box: view-box; }
@keyframes dm-led { 50% { opacity: .7; } }
@keyframes dm-halo { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.dm-print.done .pr-halo { animation: none; opacity: .8; }
.pr-msg { position: absolute; left: 11.5%; top: 25.5%; margin: 0; color: #d6f58a; text-shadow: 0 0 8px rgba(196, 241, 53, .55); font: 600 clamp(.68rem, 3.1vw, .92rem)/1.2 'JetBrains Mono', ui-monospace, monospace; }
.pr-msg::after { content: ''; display: inline-block; width: 1.4em; text-align: left; animation: dm-dots 1.2s steps(4, end) infinite; }
@keyframes dm-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.dm-print.done .pr-msg::after { animation: none; content: ''; }
.dm-print.done .pr-led { animation: none; }
.dm-paperwrap { width: 74%; margin-top: -4.2%; overflow: hidden; z-index: 2; padding-bottom: 28px; }
.dm-paper { transform: translateY(-101%); background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); position: relative; }
.dm-paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 10px; background: linear-gradient(135deg, #fff 50%, transparent 50%) 0 0 / 14px 14px repeat-x, linear-gradient(225deg, #fff 50%, transparent 50%) 0 0 / 14px 14px repeat-x; }
.dm-print.run .dm-paper { animation: dm-feed 5.4s steps(72, end) 0.2s forwards; }
@keyframes dm-feed { to { transform: translateY(0); } }
.tk { width: 100%; padding: 22px 20px 26px; color: #000; background: #fff; font-family: 'JetBrains Mono', ui-monospace, 'Courier New', monospace; font-size: 12px; line-height: 1.35; }
.tk hr { border: 0; border-top: 2px dotted #000; margin: 10px 0; }
.tk .t-center { text-align: center; }
.tk .t-big { font-size: 16px; font-weight: 700; }
.tk .t-copy { font-weight: 700; margin: 2px 0 8px; }
.tk .t-order { font-size: 18px; font-weight: 700; }
.tk .t-row { display: flex; justify-content: space-between; gap: 8px; }
.tk .t-total { font-size: 15px; font-weight: 700; border: 2px solid #000; border-radius: 6px; padding: 4px 8px; margin: 6px 0 4px; }
.tk .t-thanks { margin-top: 14px; font-weight: 700; }
.tk .t-item { display: grid; grid-template-columns: 4ch 1fr auto; column-gap: 6px; align-items: start; margin: 2px 0; }
.tk .t-qty { text-align: right; white-space: nowrap; }
.tk .t-name { min-width: 0; overflow-wrap: anywhere; }
.tk .t-amt { white-space: nowrap; }
.tk .t-foot { --lh: 13px; margin-top: 10px; font-size: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; color: #000; }
.tk .t-foot svg { height: var(--lh); width: auto; }
.tk .t-foot svg path:first-child { fill: #000; }
.tk .t-foot svg path:last-child { fill: #000; }
.tk .t-brand { display: inline-flex; align-items: flex-end; }
.tk .t-dotcom { font-weight: 700; font-size: calc(var(--lh) * 0.8); line-height: 1; padding-bottom: calc(var(--lh) * 0.13); margin-left: -2px; letter-spacing: -0.02em; }
.tk-logo { margin: 0 auto 10px; padding: 14px 8px; border: 2px dashed #000; border-radius: 6px; text-align: center; font-weight: 700; letter-spacing: 0.04em; font-size: 11px; max-width: 70%; }

.dm-cta { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 6vh var(--gutter) 14vh; min-height: 70dvh; align-content: center; }
.dm-cta .dm-cta-name { display: block; color: var(--acc); }
.dm-cta h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); max-width: 16ch; text-wrap: balance; margin: 0; }
.dm-cta .lead { margin: 0; max-width: 46ch; }
.dm-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.dm-cta .btn.lg { min-height: 58px; padding: 0 36px; font-size: 1.08rem; }
.dm-cta:not([hidden]) > * { animation: dm-in 0.8s var(--ease) both; }

/* Formulario */
.dm-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: end center; background: rgba(5, 12, 7, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow-y: auto; padding: 0; }
.dm-modal[hidden] { display: none; }
.dm-sheetbox { position: relative; width: min(560px, 100%); max-height: 100dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 28px 28px 0 0; padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom)); animation: dm-up 0.5s var(--ease) both; }
@keyframes dm-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .dm-modal { place-items: center; padding: 24px; } .dm-sheetbox { border-radius: 28px; } }
.dm-sheetbox h2 { margin: 0 44px 6px 0; font-size: 1.7rem; }
.dm-sheetbox .muted { margin: 0 0 20px; }
.dm-x { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.dm-x svg { width: 20px; height: 20px; }
.dm-form { display: grid; gap: 16px; }
.dm-form .btn.lg { min-height: 56px; }
.dm-types { border: 0; padding: 0; margin: 0; }
.dm-types legend { padding: 0; margin-bottom: 8px; font-weight: 500; }
.dm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dm-chips button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.dm-chips button[aria-checked='true'] { border-color: var(--acc); background: rgba(196, 241, 53, 0.12); color: var(--acc); }
body.dm-lock { overflow: hidden; }

/* Cierre con la q a pantalla completa */
.dm-done { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; text-align: center; background: radial-gradient(900px 600px at 50% 40%, rgba(196, 241, 53, 0.12), transparent 70%), var(--ground); overflow-y: auto; }
.dm-done[hidden] { display: none; }
.dm-done-in { display: grid; justify-items: center; gap: 14px; max-width: 520px; }
.dm-done:not([hidden]) .dm-done-in > * { animation: dm-in 0.8s var(--ease) both; }
.dm-done:not([hidden]) .dm-done-in > :nth-child(2) { animation-delay: 0.2s; }
.dm-done:not([hidden]) .dm-done-in > :nth-child(3) { animation-delay: 0.35s; }
.dm-done:not([hidden]) .dm-done-in > :nth-child(4) { animation-delay: 0.5s; }
.dm-done .qmark { animation: dm-q 2.6s var(--ease) both; filter: drop-shadow(0 0 40px rgba(196, 241, 53, 0.35)); }
@keyframes dm-q { from { opacity: 0; transform: scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
.dm-done h2 { margin: 6px 0 0; font-size: clamp(1.9rem, 5vw, 2.6rem); }
.dm-done .lead { margin: 0; }
.dm-done .muted a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .dm-step.on, .dm-cta:not([hidden]) > *, .dm-done:not([hidden]) .dm-done-in > *, .dm-done .qmark, .dm-sheetbox { animation: none; }
  .dm-glow, .dm-hint::before, .pr-led, .pr-halo { animation: none; }
  .dm-print.run .dm-paper { animation: none; transform: none; }
  .dm-layer, .dm-curtain, .dm-curtain p { transition-duration: 0.01s; }
}

/* ───────── Escanea y pide: teléfono, cordón y productos destacados ───────── */
.qrx { position: relative; overflow: hidden; background: var(--ground); padding-block: clamp(56px, 8vw, 112px) clamp(24px, 4vw, 48px); }
.qrx-bg { position: absolute; inset: 0; background: url('/img/qr-bg-m.webp') center / cover no-repeat; opacity: 0.75; }
.qrx-bg::before, .qrx-bg::after { content: ''; position: absolute; left: 0; right: 0; height: 22%; }
.qrx-bg::before { top: 0; background: linear-gradient(var(--ground), transparent); }
.qrx-bg::after { bottom: 0; background: linear-gradient(transparent, var(--ground)); }
.qrx-wrap { position: relative; display: grid; gap: 28px; }
.qrx-copy { position: relative; z-index: 6; }
.qrx-copy h2 { font-size: clamp(2.4rem, 9vw, 4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; margin: 0 0 16px; }
.qrx-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 22px; }
.qrx-stage { position: relative; container-type: inline-size; width: 100%; max-width: 600px; margin-inline: auto; }

/* Cordón: cuatro capas (detrás y delante del teléfono, móvil y escritorio) */
.qrx-cord { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; -webkit-user-select: none; user-select: none; transition: opacity 0.9s ease-out; }
.js .qrx:not(.in) .qrx-cord { opacity: 0; }
.qrx-cord.back { z-index: 1; }
.qrx-cord.front { z-index: 5; }
.qrx-cord.d { display: none; }

/* Productos */
.qrx-dish { position: absolute; z-index: 3; margin: 0; }
.qrx-pic { display: block; width: 100%; background-size: contain; background-repeat: no-repeat; background-position: center; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.5)); pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.qrx-pic.p-qr-tacos { aspect-ratio: 900 / 590; background-image: url('/img/qr-tacos.webp'); }
.qrx-pic.p-qr-paloma { aspect-ratio: 560 / 653; background-image: url('/img/qr-paloma.webp'); }
.qrx-pic.p-qr-cheesecake { aspect-ratio: 900 / 641; background-image: url('/img/qr-cheesecake.webp'); }
/* Leyenda: producto, rótulo de cliente destacado y negocio (en la fase 2 el negocio enlaza a su sitio o Instagram) */
.qrx-dish figcaption { position: absolute; left: -25%; right: -25%; top: 100%; margin-top: 10px; display: grid; gap: 2px; text-align: center; font-size: 12px; line-height: 1.3; color: var(--soft); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
.qrx-dish figcaption b { color: var(--ink); font-weight: 650; font-size: 1.08em; }
.qrx-dish figcaption em { font-style: normal; color: var(--acc); font-size: 0.92em; }
.js .qrx-dish { opacity: 0; transform: translateY(26px) scale(0.93); transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .qrx-dish.on { opacity: 1; transform: none; }

/* Teléfono plateado (genérico). Todo en em: 20em de ancho */
.qrx-phone { position: absolute; z-index: 4; display: block; aspect-ratio: 20 / 41.2; color: #0b130d; text-decoration: none; border-radius: 3.1em;
  background: linear-gradient(145deg, #f5f6f7 0%, #a7adb3 20%, #eceef0 38%, #868c93 60%, #d9dcdf 80%, #9ca2a9 100%);
  box-shadow: 0 2.6em 4.4em rgba(0, 0, 0, 0.6), inset 0 0 0 0.14em rgba(255, 255, 255, 0.7), inset 0 0 0.6em rgba(0, 0, 0, 0.35); }
.qrx-phone:focus-visible { outline: 3px solid var(--acc); outline-offset: 6px; }
.qrx-btn { position: absolute; width: 0.28em; border-radius: 0.2em; background: linear-gradient(90deg, #7d838a, #e1e4e7); }
.qrx-btn.b1 { left: -0.22em; top: 8em; height: 2.2em; }
.qrx-btn.b2 { left: -0.22em; top: 11.6em; height: 3.6em; }
.qrx-btn.b3 { right: -0.22em; top: 12em; height: 5.4em; transform: scaleX(-1); }
.qrx-scr { position: absolute; inset: 0.55em; border-radius: 2.6em; overflow: hidden; background: linear-gradient(180deg, #ffffff, #f1f3ee); box-shadow: inset 0 0 0 0.08em rgba(0, 0, 0, 0.25); }
.qrx-cam { position: absolute; left: 50%; top: 0.7em; width: 0.95em; height: 0.95em; margin-left: -0.475em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a55, #05070a 60%); }
.qrx-logo { position: absolute; left: 50%; top: 5.9em; transform: translateX(-50%); color: #0b130d; }
.qrx-logo svg { display: block; width: 7.4em; height: auto; }
.qrx-frame { position: absolute; left: 50%; top: 19em; width: 12.6em; height: 12.6em; transform: translate(-50%, -50%); }
.qrx-qr { position: absolute; inset: 0.3em; width: calc(100% - 0.6em); height: calc(100% - 0.6em); }
.qrx-cn { position: absolute; width: 2em; height: 2em; border: 0.28em solid #7fae12; }
.qrx-cn.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 0.8em; }
.qrx-cn.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 0.8em; }
.qrx-cn.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 0.8em; }
.qrx-cn.br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 0.8em; }
.qrx-hole { position: absolute; left: 50%; top: 50%; width: 3.2em; height: 2.6em; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #1a2a1d, #050c07 75%); box-shadow: 0 0 0 0.12em rgba(255, 255, 255, 0.9); }
.qrx-cap { position: absolute; left: 0; right: 0; top: 28.9em; text-align: center; font-size: 1.1em; font-weight: 600; letter-spacing: -0.01em; color: #1d2a20; }
.qrx-home { position: absolute; left: 50%; bottom: 1.4em; width: 6em; height: 0.36em; margin-left: -3em; border-radius: 0.3em; background: #0b130d; opacity: 0.85; }

@media (min-width: 900px) {
  .qrx-bg { background-image: url('/img/qr-bg-d.webp'); opacity: 0.85; }
  .qrx-wrap { display: block; }
  .qrx-copy { position: absolute; left: var(--gutter); top: 0; max-width: 520px; }
  .qrx-copy h2 { font-size: clamp(3.2rem, 5.4vw, 5rem); }
  .qrx-stage { max-width: none; }
  .qrx-cord.m { display: none; }
  .qrx-cord.d { display: block; }
  .qrx-dish figcaption { font-size: 14px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .qrx .qrx-cord { transition: none; }
  .js .qrx-dish { opacity: 1; transform: none; transition: none; }
}

.qrx-dish figcaption span a { color: inherit; text-decoration: underline; text-decoration-color: rgba(244, 241, 234, 0.35); text-underline-offset: 3px; pointer-events: auto; }
.qrx-dish figcaption span a:hover, .qrx-dish figcaption span a:focus-visible { color: var(--ink); text-decoration-color: var(--acc); }

/* Generado por tools/qrx/gen.py: posiciones de la sección Escanea y pide (no editar a mano) */
.qrx-stage{aspect-ratio:600/1560}
.qrx-phone{left:13.333%;top:0.769%;width:45.000%;font-size:2.2500cqw;transform:rotate(-9deg)}
.qrx-dish.d0{left:43.333%;top:35.694%;width:55.000%}
.qrx-dish.d1{left:12.917%;top:50.511%;width:29.167%}
.qrx-dish.d2{left:40.000%;top:64.995%;width:56.667%}
@media (min-width: 900px){
.qrx-stage{aspect-ratio:1200/1480}
.qrx-phone{left:10.000%;top:31.081%;width:27.500%;font-size:1.3750cqw;transform:rotate(-11deg)}
.qrx-dish.d0{left:60.000%;top:5.225%;width:35.000%}
.qrx-dish.d1{left:57.292%;top:31.677%;width:18.750%}
.qrx-dish.d2{left:61.667%;top:56.592%;width:33.333%}
}

