/* =====================================================================
   Flat Station · app del cliente (mobile-first, llega por QR)
   ===================================================================== */

:root {
  --topbar-h: 56px;
  --board-delay: 3000ms;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

body { overscroll-behavior-y: none; }
body.sheet-open, body.confirm-open { overflow: hidden; }
.small { font-size: 0.85rem; }
.right { text-align: right; }
.dim { opacity: 0.75; }
.link { background: none; border: 0; padding: 0; color: var(--verde); text-decoration: underline; font-weight: 600; min-height: 44px; }
.ico { width: 22px; height: 22px; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--verde);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover { background: rgba(31, 81, 41, 0.08); }

/* ---- Barra superior ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  height: var(--topbar-h); padding: 0 0.75rem 0 1rem;
  background: rgba(250, 247, 240, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 81, 41, 0.08);
}
.topbar-brand { display: inline-flex; align-items: center; }
.topbar-brand .logo { height: 24px; }
.topbar .center-brand { position: absolute; left: 50%; transform: translateX(-50%); }
.topbar-account {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.75rem 0 0.5rem;
  border-radius: 999px; color: var(--verde); text-decoration: none; font-weight: 700; font-size: 0.95rem;
  background: var(--blanco); border: 1.5px solid var(--borde);
}
.topbar-account .avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.topbar-balance { padding-left: 0.4rem; border-left: 1px solid var(--borde); color: var(--ink); }
.topbar-name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Contenedor ---- */
.app { width: 100%; max-width: 560px; margin: 0 auto; padding: 0.75rem 1rem calc(2rem + var(--safe-b)); }
body.has-cart .app { padding-bottom: calc(6.5rem + var(--safe-b)); }

/* ---- Hero / saludo ---- */
.hero, .hello {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem;
  background: var(--durazno); border-radius: var(--radius-xl); padding: 1.1rem 0 1.1rem 1.1rem; overflow: hidden;
  margin-bottom: 0.9rem;
}
.hero-text p, .hello-text p { margin: 0.35rem 0 0; }
.hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
.hero-mascot { width: clamp(120px, 38vw, 170px); margin-right: -0.5rem; }
.hello h1 { font-size: clamp(1.9rem, 9vw, 2.75rem); }
.hello-mascot { width: clamp(84px, 26vw, 120px); margin-right: 0.5rem; animation: fs-float 4s ease-in-out infinite; }
.hello-sub strong { color: var(--verde); }

/* ---- Pedido de siempre ---- */
.usual { padding: 1rem 1.1rem; margin-bottom: 1rem; border-color: var(--dorado); border-width: 2px; }
.usual-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.usual-items { margin: 0 0 0.9rem; padding: 0; list-style: none; font-weight: 600; }
.usual-items li { padding: 0.2rem 0; }

/* ---- Chips de categoría ---- */
.cats {
  position: sticky; top: var(--topbar-h); z-index: 15;
  margin: 0 -1rem; padding: 0.5rem 0; background: linear-gradient(var(--crema) 80%, rgba(250, 247, 240, 0));
}
.cats-scroll { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0 1rem; scroll-snap-type: x proximity; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-chip { min-height: 44px; padding: 0.4rem 0.9rem 0.4rem 0.55rem; scroll-snap-align: center; flex: none; }
.cat-icon { width: 28px; height: 28px; object-fit: contain; }
.cat-chip[aria-pressed="true"] .cat-icon { filter: brightness(0) invert(1); }

/* ---- Secciones ---- */
.cat-section { margin-top: 1.25rem; scroll-margin-top: 120px; }
.cat-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.cat-mascot { width: 48px; height: 48px; object-fit: contain; }
.cat-desc { margin: 0 0 0.6rem; font-size: 0.9rem; }
.products { display: grid; gap: 0.6rem; }

.product {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 64px; text-align: left;
  padding: 0.85rem 0.85rem 0.85rem 1rem; background: var(--blanco); border: 1px solid var(--borde);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease-out), box-shadow 0.15s; -webkit-tap-highlight-color: transparent;
}
.product:active { transform: scale(0.985); }
.product.is-off { opacity: 0.6; }
.product-info { display: grid; gap: 0.2rem; flex: 1; min-width: 0; }
.product-name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.product-desc { font-size: 0.875rem; color: var(--gris); line-height: 1.3; }
.product-side { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.product-side .price { font-size: 1.05rem; }
.product-add {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--verde); color: var(--crema); font-weight: 700; font-size: 1.3rem; line-height: 1;
}
.product.is-off .product-add { background: var(--borde); color: var(--gris); }

/* ---- Sugerencias ---- */
.suggest { margin-top: 1.25rem; }
.suggest-scroll { display: flex; gap: 0.6rem; overflow-x: auto; margin: 0 -1rem; padding: 0.25rem 1rem 0.5rem; scrollbar-width: none; }
.suggest-scroll::-webkit-scrollbar { display: none; }
.suggest-card {
  flex: none; width: 170px; display: grid; gap: 0.3rem; align-content: start; text-align: left; min-height: 120px;
  padding: 0.85rem 0.9rem; border: 0; border-radius: var(--radius-lg); background: var(--durazno);
  transition: transform 0.15s var(--ease-out);
}
.suggest-card:active { transform: scale(0.97); }
.suggest-reason { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cafe); font-weight: 700; }
.suggest-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }

/* ---- Pie ---- */
.app-footer { text-align: center; margin-top: 2.5rem; }
.app-footer p { margin: 0.25rem 0; }
.footer-beans { width: 110px; margin: 0 auto 0.5rem; opacity: 0.9; }
.footer-word { font-size: 1.4rem; color: var(--verde); }

/* ---- Barra de carrito ---- */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 0.6rem 1rem calc(0.6rem + var(--safe-b));
  background: linear-gradient(rgba(250, 247, 240, 0), var(--crema) 40%);
}
.cart-bar-btn {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; max-width: 528px; margin: 0 auto; min-height: 56px;
  padding: 0 1.1rem 0 0.6rem; border: 0; border-radius: 999px; background: var(--verde); color: var(--crema);
  font-weight: 700; font-size: 1.05rem; box-shadow: var(--shadow-lg); animation: fs-rise 0.3s var(--ease-out) both;
}
.cart-bar-btn:active { transform: scale(0.98); }
.cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 0.5rem;
  border-radius: 999px; background: var(--dorado); color: var(--ink); font-weight: 800;
}
.cart-bar-btn .grow { text-align: left; }

/* ---- Backdrop y hojas ---- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(13, 13, 13, 0); transition: background 0.3s; }
.backdrop.is-on { background: rgba(13, 13, 13, 0.45); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; max-width: 640px; margin: 0 auto;
  max-height: min(92dvh, 100vh); display: grid; grid-template-rows: auto 1fr auto;
  background: var(--crema); border-radius: var(--radius-xl) var(--radius-xl) 0 0; box-shadow: var(--shadow-lg);
  transform: translateY(100%); transition: transform 0.35s var(--ease-out); outline: none;
}
.sheet.is-open { transform: translateY(0); }
.sheet-tall { height: min(92dvh, 100vh); }
.sheet-handle { width: 44px; height: 5px; border-radius: 999px; background: var(--borde); margin: 0.6rem auto 0; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.6rem 0.6rem 1.25rem; }
.sheet-head h3 { font-size: 1.5rem; }
.sheet-head p { margin: 0.25rem 0 0; }
.sheet-body { overflow-y: auto; padding: 0.25rem 1.25rem 1rem; -webkit-overflow-scrolling: touch; }
.sheet-body.center { text-align: center; padding-bottom: 2rem; display: grid; gap: 0.75rem; justify-items: center; }
.sheet-foot {
  display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 1.25rem calc(0.9rem + var(--safe-b));
  background: var(--crema); border-top: 1px solid var(--borde);
}
.sheet-foot.col { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.total-row { font-size: 1.15rem; }
.empty-mascot { width: 140px; margin: 0.5rem auto 0; }

/* ---- Opciones (radios / checkboxes) ---- */
.mod-group, .ck-group { border: 0; padding: 0; margin: 0 0 1rem; }
.mod-group legend, .ck-group legend { font-weight: 700; padding: 0; margin-bottom: 0.35rem; font-size: 1rem; }
.opt {
  display: flex; align-items: center; gap: 0.75rem; min-height: 48px; padding: 0.35rem 0.25rem;
  border-bottom: 1px solid var(--borde); cursor: pointer;
}
.mod-group .opt:last-child { border-bottom: 0; }
.opt input { width: 22px; height: 22px; margin: 0; accent-color: var(--verde); flex: none; }
.opt-name { flex: 1; font-weight: 600; }
.opt-delta { color: var(--verde); }
.opt-text { display: grid; gap: 0.1rem; flex: 1; }
.opt-text small { color: var(--gris); }
.opt-card {
  border: 1.5px solid var(--borde); border-radius: var(--radius); background: var(--blanco); padding: 0.6rem 0.85rem; margin-bottom: 0.5rem;
}
.opt-card:has(input:checked) { border-color: var(--verde); background: rgba(31, 81, 41, 0.05); }
.field span:first-child { font-weight: 600; font-size: 0.9rem; }
.field { margin: 0.5rem 0 1rem; }
.field.inline { display: flex; align-items: center; gap: 0.75rem; }
.field.inline input { max-width: 110px; }
textarea { resize: vertical; min-height: 56px; }

/* ---- Cantidad ---- */
.qty { display: inline-flex; align-items: center; gap: 0.15rem; }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.qty-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--borde); background: var(--blanco);
  font-size: 1.35rem; line-height: 1; color: var(--verde); font-weight: 700;
}
.qty-btn:active { background: var(--crema-2); }
.qty-sm .qty-btn { width: 40px; height: 40px; }

/* ---- Líneas del carrito ---- */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main qty" "main price"; gap: 0.15rem 0.75rem; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--borde); }
.cart-line-main { grid-area: main; display: grid; gap: 0.1rem; text-align: left; background: none; border: 0; padding: 0; min-height: 44px; align-content: center; }
.cart-line .qty { grid-area: qty; justify-self: end; }
.cart-line-price { grid-area: price; justify-self: end; font-size: 1.05rem; }

/* ---- Checkout ---- */
.ck-q { font-family: var(--font-display); text-transform: uppercase; color: var(--verde); font-size: 1.4rem; margin: 0.25rem 0 0.75rem; font-weight: 400; }
.ck-for { padding: 0.5rem 0 0.75rem; }
.ck-summary { list-style: none; margin: 0 0 1rem; padding: 0.5rem 0.85rem; background: var(--blanco); border-radius: var(--radius); border: 1px solid var(--borde); }
.ck-summary li { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.3rem 0; }
.or { text-align: center; margin: 0.75rem 0 0.5rem; }
.g-btn { display: flex; justify-content: center; min-height: 44px; margin: 0.25rem 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 0.5rem; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1.5px solid var(--borde); border-radius: 999px; background: var(--blanco); font-weight: 700; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--verde); border-color: var(--verde); color: var(--crema); }
.seg label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(31, 81, 41, 0.25); }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips .chip { min-height: 44px; }
.ck-totals { margin: 0.5rem 0 0.25rem; padding: 0.75rem 0.9rem; background: var(--blanco); border-radius: var(--radius); border: 1px solid var(--borde); }
.tot-row { display: flex; justify-content: space-between; padding: 0.2rem 0; font-size: 1.05rem; }
.tot-due { font-weight: 800; font-size: 1.2rem; border-top: 1px dashed var(--borde); margin-top: 0.3rem; padding-top: 0.5rem; }
.tot-cashback { margin: 0.5rem 0 0; color: var(--verde); font-weight: 600; }
.tot-note { font-size: 0.85rem; margin: 0.35rem 0 0; }
.tot-cashback strong { color: var(--verde); }
.ck-error { color: var(--rojo); font-weight: 600; margin: 0.5rem 0 0; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: calc(6rem + var(--safe-b)); z-index: 70; transform: translate(-50%, 12px);
  max-width: min(92vw, 420px); padding: 0.75rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--crema);
  font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease-out); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.page-pedido .toast { bottom: calc(2rem + var(--safe-b)); }

/* =====================================================================
   Confirmación: el ticket vuela hacia arriba y sale del teléfono
   ===================================================================== */
.confirm { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: var(--crema); color: var(--crema); }
.confirm-bg { position: absolute; inset: 0; background: var(--verde); opacity: 0; }
.confirm.is-flying .confirm-bg { opacity: 1; transition: opacity calc(var(--board-delay) * 0.55) ease-in-out calc(var(--board-delay) * 0.3); }
.confirm.is-done .confirm-bg { opacity: 1; transition: opacity 0.4s; }

.confirm-hug {
  position: absolute; right: -8vw; bottom: -6vh; width: clamp(200px, 58vw, 340px); pointer-events: none;
  opacity: 0; transform: translateY(40%) rotate(-6deg);
}
.confirm.is-flying .confirm-hug { opacity: 1; transform: translateY(0) rotate(0); transition: transform calc(var(--board-delay) * 0.45) var(--ease-out) calc(var(--board-delay) * 0.5), opacity calc(var(--board-delay) * 0.3) ease calc(var(--board-delay) * 0.5); }
.confirm.is-done .confirm-hug { opacity: 1; transform: translateY(0) rotate(0); transition: transform 0.6s var(--ease-out), opacity 0.4s; }
.confirm.is-fail .confirm-hug { opacity: 0.35; }

.ticket-track { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.25rem; padding: 1rem; pointer-events: none; }
.confirm.is-done .ticket-track { display: none; }
.confirm-sending { margin: 0; color: var(--verde); font-weight: 700; opacity: 0; }
.confirm.is-flying .confirm-sending { animation: sending-fade var(--board-delay) ease both; }
@keyframes sending-fade { 0% { opacity: 0; } 25% { opacity: 1; color: var(--verde); } 70% { opacity: 1; color: var(--crema); } 100% { opacity: 0; } }

.ticket {
  width: min(320px, 86vw); background: var(--blanco); color: var(--ink); border-radius: var(--radius) var(--radius) 0 0;
  padding: 1rem 1.1rem 1.4rem; box-shadow: var(--shadow-lg); position: relative; will-change: transform;
}
.confirm.is-flying .ticket { animation: ticket-fly var(--board-delay) both; }
@keyframes ticket-fly {
  0%   { transform: translateY(6vh) scale(0.94); opacity: 0; animation-timing-function: var(--ease-out); }
  14%  { transform: translateY(0) scale(1); opacity: 1; animation-timing-function: ease-in-out; }
  34%  { transform: translateY(-1.5vh) rotate(-1.5deg) scale(1); opacity: 1; animation-timing-function: cubic-bezier(0.55, 0, 0.85, 0.35); }
  100% { transform: translateY(-125vh) rotate(-5deg) scale(0.92); opacity: 1; }
}
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding-bottom: 0.6rem; border-bottom: 1px dashed var(--borde); }
.ticket-logo { height: 20px; }
.ticket-num { font-family: var(--font-display); font-size: 1.9rem; color: var(--verde); line-height: 1; }
.ticket-name { margin: 0.6rem 0 0.35rem; font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ticket-items { list-style: none; margin: 0; padding: 0; }
.ticket-items li { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.3rem 0; font-size: 0.95rem; }
.ticket-qty { font-weight: 800; min-width: 1.5ch; color: var(--verde); }
.ticket-item { flex: 1; display: grid; gap: 0.05rem; }
.ticket-item small { color: var(--gris); }
.ticket-foot { display: flex; justify-content: space-between; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--borde); font-size: 1.1rem; }
.ticket-when { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--verde); font-weight: 700; }
.ticket-zigzag {
  position: absolute; left: 0; right: 0; bottom: -8px; height: 8px;
  background: linear-gradient(-45deg, transparent 5.5px, var(--blanco) 0) 0 0 / 11px 11px, linear-gradient(45deg, transparent 5.5px, var(--blanco) 0) 0 0 / 11px 11px;
  background-repeat: repeat-x;
}

/* Resultado */
.confirm-result {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem;
  padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + var(--safe-b)); max-width: 560px; margin: 0 auto; width: 100%;
  overflow-y: auto; outline: none; animation: fs-pop 0.5s var(--ease-bounce) both;
}
.confirm-result[hidden] { display: none; }
.confirm-eyebrow { color: var(--dorado); margin: 0; }
.confirm-result h2 { color: var(--dorado); font-size: clamp(2rem, 9.5vw, 3rem); max-width: 12ch; text-wrap: balance; }
.confirm.is-fail .confirm-result h2 { color: var(--crema); }
.confirm-status { margin: 0; font-size: 1.15rem; font-weight: 600; max-width: 30ch; }
.confirm.is-ready .confirm-result h2 { animation: ready-pulse 1.6s ease-in-out infinite; }
@keyframes ready-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.25rem; margin: 0.5rem 0 0; padding: 0; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.steps li { display: grid; justify-items: center; gap: 0.35rem; text-align: center; opacity: 0.5; position: relative; }
.steps li::before { content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 3px; background: rgba(250, 247, 240, 0.25); z-index: -1; }
.steps li:first-child::before { display: none; }
.steps li.is-done, .steps li.is-current { opacity: 1; }
.steps li.is-done::before, .steps li.is-current::before { background: var(--dorado); }
.step-dot { width: 18px; height: 18px; border-radius: 50%; background: rgba(250, 247, 240, 0.35); border: 3px solid var(--verde); box-shadow: 0 0 0 2px rgba(250, 247, 240, 0.35); }
.steps li.is-done .step-dot { background: var(--dorado); box-shadow: 0 0 0 2px var(--dorado); }
.steps li.is-current .step-dot { background: var(--crema); box-shadow: 0 0 0 2px var(--crema); animation: dot-pulse 1.4s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

.result-items { list-style: none; margin: 0.5rem 0 0; padding: 0.75rem 0.9rem; background: rgba(13, 13, 13, 0.18); border-radius: var(--radius); font-weight: 600; max-width: 380px; }
.result-items li { padding: 0.15rem 0; }
.result-cashback { margin: 0.5rem 0 0; font-weight: 600; }
.result-cashback strong { color: var(--dorado); }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.75rem; }
.confirm-actions .btn { min-height: 48px; }
.btn-light { background: var(--crema); color: var(--verde); }
.btn-ghost-light { background: transparent; color: var(--crema); border-color: rgba(250, 247, 240, 0.5); }

/* Confeti (solo al pasar a "listo") */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; display: none; }
.confetti.is-on { display: block; }
.confetti span { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation-name: confetti-fall; animation-timing-function: linear; animation-fill-mode: both; }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(540deg); opacity: 0.6; } }

/* =====================================================================
   Cuenta: tarjeta virtual, insights, historial y movimientos
   ===================================================================== */
.cuenta { display: grid; gap: 1.25rem; }
.vcard {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: 1.25rem 1.35rem 1.2rem; color: var(--crema);
  background: radial-gradient(120% 120% at 100% 0%, #2a6a37 0%, var(--verde) 45%, var(--verde-deep) 100%);
  box-shadow: var(--shadow-lg); min-height: 200px; display: grid; align-content: space-between; gap: 0.75rem;
}
.vcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255, 191, 63, 0.18); }
.vcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.vcard-brand { font-family: var(--font-display); text-transform: uppercase; font-size: 1.35rem; color: var(--dorado); }
.vcard-tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.vcard-label { margin: 0; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.85; }
.vcard-balance { margin: 0; font-family: var(--font-display); font-size: clamp(3rem, 16vw, 4.25rem); line-height: 1; color: var(--crema); font-variant-numeric: tabular-nums; }
.vcard-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 0.75rem; flex-wrap: wrap; }
.vcard-name { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.vcard-perk { font-size: 0.85rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--dorado); color: var(--ink); font-weight: 700; }
.vcard-guest .vcard-label { font-size: 1.25rem; letter-spacing: 0; text-transform: none; font-family: var(--font-display); text-transform: uppercase; color: var(--dorado); }
.vcard-pitch { margin: 0; font-size: 1.05rem; }
.vcard-pitch strong { color: var(--dorado); }
.vcard-soon { margin: 0; opacity: 0.85; font-size: 0.9rem; }
.vcard-empty { background: var(--durazno); color: var(--ink); text-align: center; justify-items: center; box-shadow: none; }
.vcard-empty::after { display: none; }
.vcard-empty p { margin: 0; }
.vcard-mascot { width: 160px; }
.insights h3, .history h3, .movements h3 { margin-bottom: 0.6rem; }
.insight-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; }
.insight-list li { padding-left: 1.5rem; position: relative; font-weight: 600; }
.insight-list li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 10px; height: 10px; border-radius: 50%; background: var(--dorado); }
.order-list, .ledger-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.order-row { padding: 0.85rem 1rem; }
.order-row-head { display: flex; align-items: center; gap: 0.5rem; }
.order-num { font-family: var(--font-display); font-size: 1.35rem; color: var(--verde); }
.order-row-items { margin: 0.4rem 0 0.6rem; font-size: 0.95rem; }
.order-row-foot { display: flex; align-items: center; gap: 0.5rem; }
.order-row-foot .price { font-size: 1.05rem; }
.ledger-row { display: flex; justify-content: space-between; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--borde); }
.ledger-amt { text-align: right; }
.ledger-amt.is-pos .price { color: var(--ok); }
.ledger-amt.is-neg .price { color: var(--cafe); }
.notfound { padding-top: 2rem; display: grid; gap: 0.75rem; justify-items: center; }

/* ---- Pantallas más anchas: dos columnas de productos ---- */
@media (min-width: 720px) {
  .app { max-width: 720px; }
  .products { grid-template-columns: 1fr 1fr; }
  .cart-bar-btn { max-width: 688px; }
}

/* ---- Movimiento reducido: sin vuelo, el ticket se queda y luego aparece el estado ---- */
@media (prefers-reduced-motion: reduce) {
  .confirm.is-flying .ticket { animation: none; opacity: 1; transform: none; }
  .confirm.is-flying .confirm-sending { animation: none; opacity: 1; color: var(--crema); }
  .confirm.is-flying .confirm-bg { opacity: 1; }
  .confirm.is-flying .confirm-hug, .confirm.is-done .confirm-hug { opacity: 1; transform: none; }
  .hello-mascot, .confirm.is-ready .confirm-result h2, .steps li.is-current .step-dot { animation: none; }
  .confetti { display: none !important; }
}

.ck-summary li.is-off { opacity: 0.5; text-decoration: line-through; }

.pending-pay {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin: 0.75rem 0 0; padding: 0.85rem 1rem;
  border-color: var(--dorado); background: #fffaf0;
}
.pending-pay p { margin: 0.15rem 0 0; }

.cart-line.is-off .cart-line-main strong { text-decoration: line-through; opacity: 0.6; }
