/* Luz de Luna — web de pedidos · dirección "La Barra" (rediseño 1a)
   Filas compactas con medallón de ingredientes, precios en serif, toast cálido. */
:root {
  --bg: #ece4d5;            /* crema cálida de fondo */
  --surface: #ffffff;       /* tarjetas */
  --surface-2: #f8f2e8;     /* opciones sin seleccionar */
  --chrome: #2f2113;        /* header, barra de pedido, panel */
  --chrome-2: #3d2c1b;
  --border: #e4d9c7;
  --border-strong: #d3c3ab;
  --ink: #2b241d;           /* texto principal / precios */
  --ink-sec: #6b5b48;
  --muted: #a2917e;
  --gold: #a9772f;          /* acento / botones */
  --gold-dark: #8a5f22;
  --gold-soft: #f0e2c8;
  --cream-on-dark: #f4e9d4;
  --req: #b5524c;           /* obligatorio */
  --ok: #43a047;            /* paso completado */
  --star: #E0A040;
  --wa: #25d366;
  --wa-dark: #1da851;
  --wa-preview: #0b3d2e;
  --postit-bg: #fffdf3;
  --postit-bdr: #e9d9a8;
  --postit-text: #7d6b1f;
  --radius: 18px;
  --radius-sm: 13px;
  --radius-xs: 8px;
  --shadow: 0 2px 10px rgba(47, 33, 19, 0.06);
  --shadow-lg: 0 -6px 24px rgba(47, 33, 19, 0.14);
  --t: 0.2s ease;
  --maxw: 480px;
}
* , *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Baloo 2', sans-serif; background: var(--bg); color: var(--ink);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea { font: inherit; color: inherit; background: none; border: none; outline: none; }
.loading { text-align: center; padding: 80px 20px; color: var(--muted); }
.serif { font-family: 'Fraunces', serif; }

/* ============ MEDALLONES (ilustración por producto) ============ */
.medal {
  width: 50px; height: 50px; flex-shrink: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; font-size: 25px;
  box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(47, 33, 19, 0.14);
}

/* ============ LAYOUT / VIEWS ============ */
#app { min-height: 100vh; }
.view { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.view-scroll { flex: 1; padding: 16px 15px 130px; }
.pad { padding-left: 15px; padding-right: 15px; }

/* ============ HEADER (catálogo, oscuro) ============ */
.hero {
  background: linear-gradient(160deg, #3d2c1b 0%, #2f2113 100%);
  color: var(--cream-on-dark); padding: 18px 18px 16px; position: relative;
}
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero-brand { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.55rem; line-height: 1.05; color: #fff; }
.hero-tag { font-size: 0.66rem; font-weight: 700; letter-spacing: 2.5px; color: var(--star); text-transform: uppercase; margin-top: 3px; }
/* Etiqueta informativa (no botón): sin borde para no invitar al tap */
.hero-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 2px;
  color: var(--star); font-size: 0.78rem; font-weight: 700; white-space: nowrap; opacity: 0.95;
}
.search {
  display: flex; align-items: center; gap: 9px; margin-top: 15px; padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1); border: 1.5px solid rgba(244, 233, 212, 0.18);
  border-radius: 30px; color: var(--cream-on-dark);
}
.search input { flex: 1; color: #fff; font-size: 0.92rem; }
.search input::placeholder { color: rgba(244, 233, 212, 0.55); }

/* ============ CHIPS DE CATEGORÍA ============ */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 15px 4px; position: sticky; top: 0; z-index: 40; background: var(--bg); }
.cat-chip {
  padding: 8px 15px; border-radius: 30px; font-size: 0.85rem; font-weight: 700; white-space: nowrap;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--ink-sec); transition: all var(--t);
}
.cat-chip.active {
  background: var(--chipc, var(--gold)); border-color: var(--chipc, var(--gold)); color: #fff;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--chipc, var(--gold)) 35%, transparent);
}
.cat-chip:active { transform: scale(0.96); }
.star-legend { padding: 6px 15px 0; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.star-legend::first-letter { color: var(--star); }

/* búsqueda sin resultados */
.no-results { text-align: center; padding: 46px 24px; color: var(--ink-sec); font-size: 0.95rem; line-height: 1.6; }

/* aviso temprano de la regla de la sencilla (paso 1 del stepper) */
.info-sencilla {
  margin-top: 12px; padding: 10px 13px; border-radius: 12px;
  background: var(--gold-soft); color: var(--gold-dark);
  font-size: 0.8rem; font-weight: 700; line-height: 1.45;
}

/* pantalla "pedido enviado" */
.sent-moon { font-size: 3rem; }
.sent-title { font-size: 1.4rem; font-weight: 700; margin-top: 10px; }
.sent-folio { font-size: 1.05rem; color: var(--gold-dark); font-weight: 700; margin-top: 2px; }
.sent-sub { font-size: 0.9rem; color: var(--ink-sec); margin-top: 12px; line-height: 1.55; }

/* ============ SECCIONES + FILAS ============ */
.section { padding-top: 18px; }
.section-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.section-title { font-family: 'Fraunces', serif; font-size: 1.28rem; font-weight: 700; color: var(--ink); }
.section-note { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.section-sub { font-family: 'Fraunces', serif; font-size: 0.95rem; font-weight: 600; color: var(--gold-dark); margin: 12px 0 2px; }
.section-sub .sub-hint { font-family: 'Baloo 2', sans-serif; font-size: 0.68rem; color: var(--muted); font-weight: 700; }

/* fila de producto — toda la fila es clickeable */
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1.5px dashed var(--border-strong); cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform var(--t);
}
.row:last-child { border-bottom: none; }
.row:active { transform: scale(0.985); }
.row-body { flex: 1; min-width: 0; }
.row-name { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.row-name .star { color: var(--star); font-size: 0.82rem; }
.row-desc { font-size: 0.76rem; color: var(--ink-sec); line-height: 1.35; }
.row-end { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.row-price { font-family: 'Fraunces', serif; font-size: 1.02rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.row-price .desde { font-family: 'Baloo 2', sans-serif; font-size: 0.68rem; font-weight: 600; color: var(--muted); margin-right: 3px; }
.row-add {
  width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 3px 8px rgba(169, 119, 47, 0.35);
}

/* banner "Crea la tuya" */
.arma-banner {
  margin: 12px 0 4px; border-radius: var(--radius); padding: 15px 16px;
  background: linear-gradient(120deg, #C9874E 0%, #A9662E 100%); color: #fff;
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  box-shadow: 0 6px 16px rgba(169, 102, 46, 0.3); position: relative; overflow: hidden;
  -webkit-tap-highlight-color: transparent; transition: transform var(--t);
}
.arma-banner:active { transform: scale(0.985); }
.arma-waffle { position: absolute; right: -14px; bottom: -20px; font-size: 74px; opacity: 0.22; transform: rotate(14deg); pointer-events: none; }
.arma-medal { box-shadow: inset 0 -3px 6px rgba(0, 0, 0, 0.16); }
.arma-body { flex: 1; position: relative; }
.arma-title { font-weight: 700; font-size: 1.1rem; }
.arma-desc { font-size: 0.76rem; opacity: 0.9; line-height: 1.35; }
.arma-price { flex-shrink: 0; text-align: right; position: relative; }
.arma-desde { display: block; font-size: 0.62rem; font-weight: 700; opacity: 0.85; letter-spacing: 0.5px; }
.arma-price .serif { font-size: 1.2rem; font-weight: 700; }

/* .card se conserva por si alguna vista secundaria lo usa */
.card {
  background: var(--surface); border-radius: var(--radius); padding: 15px 16px; margin-bottom: 11px;
  box-shadow: var(--shadow); transition: transform var(--t);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-name { font-size: 0.98rem; font-weight: 700; color: var(--ink); }
.card-name .star { color: var(--star); font-size: 0.9rem; }
.card-price { font-size: 0.98rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.card-price .desde { font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-right: 3px; }
.card-desc { font-size: 0.82rem; color: var(--ink-sec); margin-top: 3px; line-height: 1.45; }
.card-cta { display: flex; justify-content: flex-end; margin-top: 12px; }
.btn-gold {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 12px;
  background: var(--gold); color: #fff; font-size: 0.86rem; font-weight: 800; transition: all var(--t);
}
.btn-gold:active { transform: scale(0.97); filter: brightness(0.94); }
.btn-gold.ghost { background: var(--gold-soft); color: var(--gold-dark); }

/* ============ BARRA DE PEDIDO PERSISTENTE ============ */
.orderbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(160deg, #3d2c1b, #2f2113); color: #fff;
  border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  padding: 15px 20px; padding-bottom: max(15px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  transform: translateY(0); transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
.orderbar.hidden { transform: translateY(120%); }
.orderbar-left { display: flex; align-items: center; gap: 11px; }
.orderbar-badge {
  min-width: 26px; height: 26px; border-radius: 13px; background: var(--gold); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 800; padding: 0 7px;
}
.orderbar-label { font-weight: 700; font-size: 0.95rem; }
.orderbar-total { font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700; }

/* ============ TOPBAR (config / checkout / stepper) ============ */
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 15px 16px 12px;
  position: sticky; top: 0; z-index: 40; background: var(--bg);
}
.topbar-back {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--ink); flex-shrink: 0;
}
.topbar-title { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 700; }
.topbar-title .star { color: var(--star); }
.topbar-medal { width: 44px; height: 44px; font-size: 22px; }
.topbar-info { flex: 1; min-width: 0; }
.topbar-info .topbar-title { font-size: 1.15rem; line-height: 1.1; }
.topbar-sub { font-size: 0.75rem; color: var(--ink-sec); margin-top: 1px; }
.topbar-price { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 700; color: var(--gold-dark); white-space: nowrap; }

/* ============ CONFIGURADOR ============ */
.config-desc { font-size: 0.86rem; color: var(--ink-sec); margin-bottom: 16px; }
.group { margin-bottom: 20px; }
.group-label { font-size: 0.95rem; font-weight: 800; color: var(--ink); margin-bottom: 11px; display: flex; align-items: baseline; gap: 8px; }
.group-label .req { color: var(--req); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.5px; }
.group-label .hint { color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.subgroup { font-size: 0.78rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin: 14px 0 8px; }

/* opciones tipo "opt" (single) — rectangulares grandes */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  flex: 1 1 auto; min-width: 44%; padding: 14px 16px; border-radius: 13px; text-align: center; white-space: nowrap;
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--ink-sec);
  font-size: 0.88rem; font-weight: 700; transition: all var(--t);
}
.opt.sel { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 3px 10px rgba(169, 119, 47, 0.28); }
.opt:active { transform: scale(0.97); }
.opt .p { font-weight: 800; opacity: 0.85; }

/* chips (multi) — píldoras */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chipm {
  padding: 9px 15px; border-radius: 30px; font-size: 0.84rem; font-weight: 700; white-space: nowrap;
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--ink-sec); transition: all var(--t);
}
.chipm.sel { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 3px 10px rgba(169, 119, 47, 0.28); }
.chipm:active { transform: scale(0.95); }
.chipm .p { font-weight: 800; opacity: 0.8; font-size: 0.76rem; margin-left: 3px; }
.chipm .free { font-size: 0.72rem; font-weight: 700; opacity: 0.7; margin-left: 3px; }
.badge-temp { display: inline-block; padding: 0 6px; margin-left: 4px; border-radius: 8px; font-size: 0.62rem; font-weight: 800; background: #e8f0e0; color: #3d6b2a; vertical-align: middle; }

/* fila de cantidad (config + stepper) */
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 14px; padding: 4px 2px; }
.qty-label { font-size: 0.95rem; font-weight: 800; color: var(--ink); }

.note-field {
  width: 100%; padding: 13px 15px; background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: 13px; font-size: 0.87rem; resize: none; min-height: 48px; margin-top: 4px;
}
.note-field:focus { border-color: var(--gold); }
.note-field::placeholder { color: var(--muted); }

/* botón fijo inferior (config / stepper) */
.dock {
  position: sticky; bottom: 0; left: 0; right: 0; padding: 12px 15px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(236, 228, 213, 0) 0%, var(--bg) 22%);
}
.req-msg {
  font-size: 0.8rem; font-weight: 700; color: var(--req); text-align: center;
  padding: 0 8px 10px; line-height: 1.4;
}
.btn-primary {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 16px 22px; border-radius: 16px; background: var(--gold); color: #fff;
  font-size: 1rem; font-weight: 800; transition: all var(--t); box-shadow: 0 4px 14px rgba(169, 119, 47, 0.3);
}
.btn-primary:active { transform: scale(0.985); filter: brightness(0.94); }
.btn-primary:disabled { background: var(--border-strong); color: #fff; box-shadow: none; }
.btn-primary.center { justify-content: center; }

/* ============ STEPPER MARQUESITA ============ */
.step-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.step-meta .name { font-weight: 800; color: var(--gold-dark); font-size: 0.9rem; }
.step-meta .hint { color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.progress { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; margin-bottom: 18px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #C9874E, var(--gold)); transition: width 0.3s ease; }
.step-done {
  display: flex; align-items: center; gap: 11px; padding: 13px 15px; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 14px; margin-bottom: 12px;
}
.step-done .check { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.step-done .txt { flex: 1; font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.step-done .change { color: var(--gold-dark); font-weight: 800; font-size: 0.82rem; }
.step-current { background: var(--surface); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.step-current .title { font-weight: 800; font-size: 0.98rem; margin-bottom: 12px; }
.step-future { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 14px; margin-bottom: 12px; opacity: 0.55; }
.step-future .num { width: 26px; height: 26px; border-radius: 50%; background: var(--border); color: var(--ink-sec); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 800; }
.step-future .txt { font-weight: 700; color: var(--ink-sec); font-size: 0.86rem; }

/* ============ PEDIDO / CARRITO ============ */
.cart-item { background: var(--surface); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 10px; box-shadow: var(--shadow); }
.cart-item-main { display: flex; gap: 11px; align-items: flex-start; }
.cart-medal { width: 42px; height: 42px; font-size: 21px; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cart-item-name { font-weight: 800; font-size: 0.92rem; }
.cart-item-name .star { color: var(--star); font-size: 0.78rem; }
.cart-item-price { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1rem; color: var(--ink); white-space: nowrap; }
.cart-item-det { font-size: 0.78rem; color: var(--ink-sec); margin-top: 1px; }
.cart-item-note { background: var(--postit-bg); border: 1px dashed var(--postit-bdr); border-radius: var(--radius-xs); padding: 6px 10px; margin-top: 8px; font-size: 0.78rem; color: var(--postit-text); font-style: italic; }
.cart-item-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-left: 53px; }
.stepper { display: flex; align-items: center; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 11px; overflow: hidden; }
.stepper button { width: 38px; height: 38px; font-size: 1.15rem; font-weight: 700; color: var(--gold-dark); }
.stepper button:active { background: var(--gold-soft); }
.stepper .val { width: 34px; text-align: center; font-weight: 800; font-size: 0.9rem; }
.cart-item-acts { display: flex; gap: 16px; }
.link-act { font-size: 0.82rem; font-weight: 700; color: var(--ink-sec); display: inline-flex; align-items: center; gap: 4px; }
.link-act.del { color: var(--req); }
.note-edit { width: 100%; margin-top: 10px; padding: 10px 12px; background: var(--postit-bg); border: 1px dashed var(--postit-bdr); border-radius: var(--radius-xs); font-size: 0.85rem; color: var(--postit-text); resize: none; min-height: 40px; }
.cart-empty { text-align: center; padding: 48px 30px 54px; color: var(--ink-sec); }
.empty-moon {
  width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; font-size: 40px;
  background: radial-gradient(circle at 32% 28%, #41301C, #2A1D10);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.3);
}
.empty-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.empty-sub { font-size: 0.82rem; margin-bottom: 18px; }
.link-clear { display: block; margin: 4px auto 0; font-size: 0.82rem; color: var(--req); font-weight: 700; padding: 10px; }

/* pie oscuro con total (pedido) */
.cart-foot {
  position: sticky; bottom: 0; background: linear-gradient(160deg, #3d2c1b, #2f2113); color: #fff;
  border-radius: 22px 22px 0 0; padding: 18px 20px; padding-bottom: max(18px, env(safe-area-inset-bottom)); margin-top: 8px;
}
.cart-foot-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cart-foot-total .lbl { font-size: 0.9rem; color: rgba(244, 233, 212, 0.75); font-weight: 600; }
.cart-foot-total .amt { font-family: 'Fraunces', serif; font-size: 1.55rem; font-weight: 700; }
.btn-continue { width: 100%; padding: 16px; border-radius: 15px; background: var(--gold); color: #fff; font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-continue:active { filter: brightness(0.94); }

/* ============ CHECKOUT ============ */
.co-card { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.co-label { font-weight: 800; font-size: 0.92rem; margin-bottom: 10px; }
.co-input { width: 100%; padding: 14px 16px; background: var(--surface-2); border: 1.5px solid var(--border); border-radius: 13px; font-size: 0.95rem; }
.co-input:focus { border-color: var(--gold); }
.wa-preview { background: var(--wa-preview); color: #e9f5ee; border-radius: 16px; padding: 15px 16px; font-size: 0.85rem; line-height: 1.55; white-space: pre-wrap; margin-bottom: 6px; }
.wa-preview b { color: #fff; }
.btn-wa {
  display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; padding: 17px;
  background: var(--wa); color: #fff; font-size: 1.02rem; font-weight: 800; border-radius: 16px; transition: all var(--t);
}
.btn-wa:active { background: var(--wa-dark); transform: scale(0.985); }
.btn-wa svg { width: 22px; height: 22px; fill: currentColor; }
.co-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 12px; }
.co-intro { font-size: 0.86rem; color: var(--ink-sec); margin: -4px 0 16px; }

/* ============ TOAST ============ */
#toast-container { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; width: 100%; max-width: var(--maxw); padding: 0 15px; }
.toast { background: var(--chrome-2); color: var(--cream-on-dark); padding: 9px 18px; border-radius: 30px; font-size: 0.86rem; font-weight: 700; box-shadow: 0 5px 14px rgba(42, 29, 16, 0.32); animation: toastIn 0.3s ease, toastOut 0.3s ease 1.6s forwards; }
.toast b { color: #E8B45C; font-weight: 800; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.view.enter { animation: fade 0.22s ease; }
.footer-note { text-align: center; font-size: 0.72rem; color: var(--muted); padding: 8px 15px 0; }

/* ============ DESKTOP (2 columnas) ============ */
@media (min-width: 900px) {
  :root { --maxw: 1180px; }
  .view.catalog { display: block; }
  .hero { border-radius: 0; }
  .desk { display: grid; grid-template-columns: 1fr 340px; gap: 26px; max-width: 1180px; margin: 0 auto; align-items: start; }
  .desk-catalog { padding: 8px 24px 60px; }
  .cat-chips { position: static; padding: 18px 24px 0; background: transparent; }
  .desk-order {
    position: sticky; top: 18px; align-self: start; background: linear-gradient(160deg, #3d2c1b, #2f2113);
    color: #fff; border-radius: 20px; padding: 20px; margin: 18px 24px 0 0; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  }
  .desk-order h3 { font-family: 'Fraunces', serif; font-size: 1.2rem; margin-bottom: 14px; }
  .desk-order-items { flex: 1; overflow-y: auto; }
  .do-item { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(244,233,212,0.12); }
  .do-item .n { font-weight: 700; font-size: 0.88rem; }
  .do-item .d { font-size: 0.76rem; color: rgba(244,233,212,0.6); margin-top: 2px; }
  .do-item .pr { font-weight: 800; font-size: 0.88rem; white-space: nowrap; }
  .do-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; }
  .do-total .amt { font-size: 1.4rem; font-weight: 800; font-family: 'Fraunces', serif; }
  .desk-order .empty { color: rgba(244,233,212,0.6); font-size: 0.85rem; padding: 20px 0; text-align: center; }
  .orderbar { display: none; }
  /* vistas config/stepper/checkout siguen centradas y angostas en desktop */
  .view:not(.catalog) { max-width: 560px; }
}
