/* ==========================================================
   Chicken Ravick · estilos
   Colores tomados de la carta impresa: negro carbón, rojo,
   amarillo y brasas naranjas.
   ========================================================== */
:root {
  --bg: #14100e;
  --bg-2: #1a1512;
  --surface: #211a17;
  --surface-2: #2a221e;
  --line: rgba(255, 236, 214, 0.1);
  --line-2: rgba(255, 236, 214, 0.18);
  --text: #fbf5ee;
  --muted: #c4b6a9;
  --dim: #94867a;

  --red: #e4252b;
  --red-600: #c8171e;
  --red-800: #7e0d12;
  --yellow: #ffd21f;
  --yellow-600: #f2b600;
  --ember: #ff7b1c;
  --wa: #25d366;
  --wa-600: #1ebe5a;
  --ink: #14100e;

  --font-display: "Lilita One", "Arial Black", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --gutter: 16px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

svg.lucide { width: 1.15em; height: 1.15em; stroke-width: 2.25; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --bh: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh); padding: 0 18px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-sm { --bh: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { --bh: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 0 var(--red-800), 0 14px 30px -12px rgba(228, 37, 43, 0.7); }
.btn-red:hover { background: var(--red-600); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: var(--wa-600); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-dark:hover { background: #000; }
.btn-outline-dark { border-color: var(--ink); color: var(--ink); }
.btn-outline-dark:hover { background: rgba(0, 0, 0, 0.08); }

/* ---------- Header ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--header-h);
  background: rgba(20, 16, 14, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.topbar.is-scrolled { background: rgba(20, 16, 14, 0.88); border-bottom-color: var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.15s, background-color 0.15s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cart-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
}
.cart-btn:hover { background: rgba(255, 255, 255, 0.14); }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--yellow); color: var(--ink);
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--bg);
}
.cart-count.bump { animation: bump 0.4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.hide-sm { display: none; }

@media (min-width: 560px) { .hide-sm { display: inline; } }
@media (min-width: 768px) { .brand img { height: 54px; } }
@media (min-width: 960px) {
  .nav { display: flex; }
  .topbar-actions { margin-left: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 28px) 0 64px;
  background:
    radial-gradient(70% 55% at 85% 100%, rgba(255, 123, 28, 0.38), transparent 70%),
    radial-gradient(60% 60% at 15% 110%, rgba(228, 37, 43, 0.42), transparent 70%),
    radial-gradient(50% 40% at 70% 40%, rgba(228, 37, 43, 0.14), transparent 70%),
    var(--bg);
}
/* pared de ladrillo, como en la carta */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44'%3E%3Cpath d='M0 1H88M0 23H88M1 0V22M45 22V44' fill='none' stroke='%23fff' stroke-opacity='.06' stroke-width='2'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 85%);
}
.hero-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ember {
  position: absolute; bottom: -12px; width: var(--s, 5px); height: var(--s, 5px); border-radius: 50%;
  background: radial-gradient(circle, #ffe08a 0%, var(--ember) 45%, rgba(255, 123, 28, 0) 70%);
  opacity: 0; animation: rise var(--d, 7s) linear var(--delay, 0s) infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 0.95; }
  70% { opacity: 0.6; }
  100% { transform: translate(var(--x, 30px), -78vh) scale(0.4); opacity: 0; }
}

.hero-in { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(228, 37, 43, 0.16); border: 1px solid rgba(228, 37, 43, 0.45);
  color: #ffb4a8; font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow svg { color: var(--ember); }
.hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 400;
  font-size: clamp(44px, 11vw, 92px); line-height: 0.95; letter-spacing: 0.005em;
}
.hero-title span { display: block; }
.t-stroke {
  color: var(--red);
  -webkit-text-stroke: 0.06em #fff; paint-order: stroke fill;
  text-shadow: 0 0.07em 0 rgba(0, 0, 0, 0.55);
}
.t-yellow { color: var(--yellow); margin-top: 0.1em; text-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.55); }
.hero-lead { max-width: 34em; margin: 22px 0 28px; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 auto; }
.hero-badges { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 14px; }
.hero-badges li:first-child { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); color: var(--text); }
.pay { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 800; font-size: 14px; letter-spacing: 0.01em; }
.pay-yape { background: #742384; color: #fff; }
.pay-plin { background: linear-gradient(135deg, #00c7c0, #0a6fe0); color: #fff; }

/* Pizarra de precios */
.board {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    #1b1513;
  border: 1px solid var(--line-2);
  border-radius: 24px; padding: 22px 20px 18px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 210, 31, 0.0);
}
.board::before {
  content: ""; position: absolute; inset: -1px; border-radius: 24px; pointer-events: none;
  background: linear-gradient(160deg, var(--yellow), transparent 35%, transparent 65%, var(--red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px;
}
.board-top { display: flex; justify-content: center; margin: -4px 0 6px; }
.board-top img { width: min(280px, 78%); }
.board-title {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; font-size: 30px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--red); -webkit-text-stroke: 5px #fff; paint-order: stroke fill;
}
.board-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.board-list li {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  padding: 10px 10px 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.board-list .b-name { font-weight: 800; color: var(--yellow); font-size: 17px; line-height: 1.2; }
.board-foot { margin: 14px 0 0; text-align: center; }
.board-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; }
.board-foot a:hover { color: var(--text); }

@media (min-width: 960px) {
  .hero { padding: calc(var(--header-h) + 64px) 0 96px; }
  .hero-in { grid-template-columns: 1.2fr 0.8fr; gap: 56px; }
  .hero-title { font-size: clamp(56px, 5.6vw, 76px); }
  .hero-ctas .btn { flex: 0 0 auto; }
  .board { transform: rotate(1.2deg); padding: 26px 24px 20px; }
}

/* Franja diagonal amarilla (como la carta) */
.slash { position: relative; height: 34px; margin-top: -17px; z-index: 2; background: var(--yellow); clip-path: polygon(0 55%, 100% 0, 100% 45%, 0 100%); }

/* ---------- Precio y controles ---------- */
.price {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 84px; height: 34px; padding: 0 10px; border-radius: 9px;
  background: #fff; color: var(--ink);
  font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45);
  white-space: nowrap;
}
.price small { font-size: 0.72em; margin-right: 3px; font-weight: 700; }
.ctl { display: inline-flex; }
.add {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  box-shadow: 0 3px 0 var(--red-800);
  transition: transform 0.15s var(--ease), background-color 0.15s;
}
.add:hover { background: var(--red-600); }
.add:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--red-800); }
.add svg, .stepper svg { width: 20px; height: 20px; }
.stepper {
  display: inline-flex; align-items: center; height: 40px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 var(--yellow-600);
}
.stepper button { width: 38px; height: 40px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; border-radius: 999px; }
.stepper button:hover { background: rgba(0, 0, 0, 0.08); }
.stepper .qty { min-width: 18px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Secciones ---------- */
.sec-head { margin-bottom: 28px; }
.sec-head.center { text-align: center; }
.kicker { margin: 0 0 6px; color: var(--yellow); font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker.dark { color: var(--ink); }
.sec-title {
  margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1;
  font-size: clamp(38px, 7vw, 60px);
  color: var(--red); -webkit-text-stroke: 0.08em #fff; paint-order: stroke fill;
  text-shadow: 0 0.07em 0 rgba(0, 0, 0, 0.5);
}
.sec-lead { margin: 12px 0 0; color: var(--muted); max-width: 40em; }

/* ---------- Promos ---------- */
.promos {
  position: relative; padding: 64px 0 72px;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(255, 123, 28, 0.25), transparent 60%),
    linear-gradient(180deg, #8f0f15, #5c0a0e);
}
.promos::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='44'%3E%3Cpath d='M0 1H88M0 23H88M1 0V22M45 22V44' fill='none' stroke='%23000' stroke-opacity='.16' stroke-width='2'/%3E%3C/svg%3E");
}
.promos .wrap { position: relative; }
.promos .sec-title { color: var(--yellow); -webkit-text-stroke: 0.08em var(--ink); }
.promos .kicker { color: #ffd9a8; }
.promos .sec-lead { color: #ffd8cf; }
.promo-grid {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(262px, 82%);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.promo {
  scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius);
  padding: 20px 18px 18px; box-shadow: var(--shadow); overflow: hidden;
}
.promo::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 28, 0.35), transparent 70%); pointer-events: none;
}
.promo-tag {
  align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
}
.promo-tag.soft { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.promo h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--yellow); }
.promo p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; }
.promo-buy { position: relative; z-index: 1; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.promo-price { font-family: var(--font-display); font-size: 38px; line-height: 1; color: #fff; }
.promo-price small { font-size: 0.5em; margin-right: 4px; color: var(--muted); }
.promo-price .cents { font-size: 0.5em; color: var(--muted); }

@media (min-width: 768px) {
  .promo-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1100px) {
  .promo-grid { grid-template-columns: repeat(4, 1fr); }
  .promo.is-wide { grid-column: span 2; }
}

/* ---------- Carta ---------- */
.carta { padding: 72px 0 48px; background: var(--bg); }
.carta-head { display: grid; gap: 18px; align-items: end; }
.search {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0 16px; height: 50px; color: var(--dim);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.15); }
.search input { flex: 1; min-width: 0; height: 100%; margin-left: 10px; border: 0; background: none; outline: none; color: var(--text); font-size: 16px; }
.search input::placeholder { color: var(--dim); }
@media (min-width: 768px) { .carta-head { grid-template-columns: 1fr minmax(260px, 360px); } }

.carta-layout { display: grid; gap: 8px; }
.chips {
  position: sticky; top: var(--header-h); z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
  background: rgba(20, 16, 14, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.cat { padding-top: 26px; scroll-margin-top: calc(var(--header-h) + 72px); }
.cat + .cat { margin-top: 18px; }
.cat-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cat-ico {
  width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red), var(--red-800)); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(228, 37, 43, 0.8);
}
.cat-ico svg { width: 24px; height: 24px; }
.cat-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; color: var(--red); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.cat-head p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

.grupo + .grupo { margin-top: 22px; }
.grupo-titulo { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 10px; }
.grupo-titulo::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grupo-nota { margin: -2px 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 210, 31, 0.08); border: 1px dashed rgba(255, 210, 31, 0.4); color: #ffe68a; font-size: 14px; }

.items { display: grid; gap: 10px; }
.item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px;
  padding: 14px 14px 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s, background-color 0.2s;
}
.item.in-cart { border-color: rgba(255, 210, 31, 0.55); background: linear-gradient(90deg, rgba(255, 210, 31, 0.07), var(--surface) 60%); }
.item-name { margin: 0; font-size: 16.5px; line-height: 1.25; font-weight: 800; color: var(--yellow); }
.item-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.item-buy { display: flex; align-items: center; gap: 10px; }
.item-opts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
}
.opt-name { flex: 1; font-weight: 700; font-size: 14.5px; }
.opt .price { min-width: 74px; height: 30px; font-size: 15px; }

.no-results { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); margin-top: 24px; }
.no-results b { color: var(--text); }
.no-results .btn { margin-top: 14px; }

.cremas { margin-top: 40px; padding: 22px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cremas h3 { margin: 0 0 12px; font-family: var(--font-display); font-weight: 400; font-size: 26px; color: var(--red); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.cremas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cremas li { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }
.cremas p { margin: 12px 0 0; color: var(--dim); font-size: 14px; }

@media (min-width: 960px) {
  .carta-layout { grid-template-columns: 220px 1fr; gap: 40px; align-items: start; margin-top: 8px; }
  .chips {
    top: calc(var(--header-h) + 20px); flex-direction: column; overflow: visible;
    margin: 0; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0;
  }
  .chip { height: 46px; border-radius: 14px; padding: 0 14px; font-size: 15px; }
  .cat { scroll-margin-top: calc(var(--header-h) + 20px); }
  .cat:first-child { padding-top: 0; }
}
@media (min-width: 1100px) {
  .items { grid-template-columns: 1fr 1fr; }
  .item:has(.item-opts) { grid-column: span 1; }
}

/* ---------- Cómo pedir ---------- */
.steps { padding: 72px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step-list li {
  position: relative; padding: 24px 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
}
.step-list li > svg { width: 30px; height: 30px; color: var(--yellow); }
.step-n { position: absolute; right: 14px; top: -6px; font-family: var(--font-display); font-size: 92px; line-height: 1; color: rgba(255, 255, 255, 0.05); }
.step-list h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 800; }
.step-list p { margin: 0; color: var(--muted); font-size: 15px; }
.step-list b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 14px; }
@media (min-width: 768px) { .step-list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- Contacto ---------- */
.contacto {
  position: relative; padding: 64px 0; color: var(--ink);
  background: linear-gradient(100deg, var(--yellow), #ffb81f);
  overflow: hidden;
}
.contacto::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-55deg, rgba(0, 0, 0, 0.035) 0 18px, transparent 18px 36px);
}
.contacto-in { position: relative; display: grid; gap: 28px; align-items: center; }
.contacto-title { margin: 0 0 22px; font-family: var(--font-display); font-weight: 400; line-height: 1; font-size: clamp(36px, 7vw, 62px); }
.contacto-title span { display: block; color: var(--red); -webkit-text-stroke: 0.07em #fff; paint-order: stroke fill; text-shadow: 0 0.06em 0 rgba(0, 0, 0, 0.25); white-space: nowrap; }
.contacto-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info:empty { display: none; }
.info li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.45); font-weight: 600; }
.info li svg { margin-top: 2px; }
.info a { font-weight: 800; }
@media (min-width: 960px) { .contacto-in { grid-template-columns: 1.3fr 1fr; } }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 120px; background: #0d0a09; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; text-align: center; }
.footer-in { display: grid; justify-items: center; gap: 8px; }
.footer img { width: 170px; opacity: 0.95; margin-bottom: 6px; }
.footer p { margin: 0; }
.social { list-style: none; margin: 6px 0; padding: 0; display: flex; gap: 10px; }
.social:empty { display: none; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text); }

/* ---------- Barra flotante ---------- */
.cart-fab {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 58px; padding: 0 20px; border: 0; border-radius: 18px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 6px 0 var(--red-800), 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  animation: fab-in 0.35s var(--ease);
}
.cart-fab:hover { background: var(--red-600); }
.fab-left { display: inline-flex; align-items: center; gap: 10px; }
.fab-left b { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 13px; }
.fab-total { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 17px; }
@keyframes fab-in { from { transform: translateY(120%); } }
@media (min-width: 768px) { .cart-fab { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* ---------- Pedido (drawer) ---------- */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(460px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: var(--bg-2); color: var(--text);
  border-left: 1px solid var(--line-2);
}
.drawer::backdrop { background: rgba(5, 3, 2, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in 0.32s var(--ease); }
.drawer[open]::backdrop { animation: fade-in 0.32s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.drawer-in { height: 100%; display: flex; flex-direction: column; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0 auto 0 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--red); -webkit-text-stroke: 4px #fff; paint-order: stroke fill; }
.icon-btn { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-weight: 700; font-size: 14px; display: inline-grid; place-items: center; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.icon-btn[data-close] { padding: 0; }
.drawer-scroll { flex: 1; overflow-y: auto; padding: 8px 20px 24px; overscroll-behavior: contain; }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-name { font-weight: 700; line-height: 1.3; }
.line-name small { display: block; color: var(--dim); font-weight: 600; font-size: 13px; margin-top: 2px; }
.line-total { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.line .stepper { height: 36px; }
.line .stepper button { width: 34px; height: 36px; }

.empty { text-align: center; padding: 48px 12px 24px; color: var(--muted); }
.empty > svg { width: 44px; height: 44px; color: var(--red); margin-bottom: 8px; }
.empty p { margin: 0 0 18px; }

.order-form { display: grid; gap: 16px; margin-top: 22px; }
.order-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.order-form legend, .field > span { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: var(--muted); }
.order-form em { font-style: normal; color: var(--dim); font-weight: 500; }
.field { display: block; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-size: 16px; outline: none; resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 31, 0.15); }
.field.has-error input { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15); }
.err { display: block; margin-top: 6px; color: #ff8f8f; font-weight: 600; font-size: 13px; }
.delivery-only { display: grid; gap: 16px; }

.seg > div, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg legend { width: 100%; }
.seg label { flex: 1 1 0; position: relative; }
.seg input, .cremas-pick input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.seg input:checked + span { background: rgba(255, 210, 31, 0.12); border-color: var(--yellow); color: var(--yellow); }
.seg input:focus-visible + span, .cremas-pick input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cremas-pick > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cremas-pick label { position: relative; }
.cremas-pick span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: 14px; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.cremas-pick input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }

.drawer-foot { padding: 16px 20px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.sum { display: flex; align-items: baseline; justify-content: space-between; }
.sum span { font-weight: 700; color: var(--muted); }
.sum b { font-family: var(--font-display); font-weight: 400; font-size: 32px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.sum-note { margin: 2px 0 12px; color: var(--dim); font-size: 13px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--header-h) + 10px);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14.5px;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.7);
  transition: opacity 0.2s, transform 0.25s var(--ease);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Checkout: vistas, pago y confirmación ---------- */
.drawer-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.drawer-head .icon-btn[data-volver] { padding: 0; }
.field-row { display: grid; gap: 16px; }
@media (min-width: 420px) { .field-row { grid-template-columns: 1.3fr 1fr; } }
.field.has-error input, .pay-opts.has-error .pay-opt span { border-color: #ff6b6b; box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.15); }
.money { position: relative; display: block; }
.money b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 700; }
.money input { padding-left: 42px !important; }

.pay-opts { border: 0; margin: 0; padding: 0; min-width: 0; }
.pay-opts > div { display: grid; gap: 8px; }
.pay-opt { position: relative; display: block; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt span {
  display: grid; gap: 2px; padding: 12px 14px 12px 46px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface); position: relative;
  transition: background-color 0.15s, border-color 0.15s;
}
.pay-opt span::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--bg); transition: border-color 0.15s, box-shadow 0.15s;
}
.pay-opt b { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.pay-opt small { color: var(--muted); font-size: 13px; }
.pay-opt input:checked + span { border-color: var(--yellow); background: rgba(255, 210, 31, 0.08); }
.pay-opt input:checked + span::before { border-color: var(--yellow); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 10px var(--yellow); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pay-sello { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: rgba(37, 211, 102, 0.14); color: #7ff0ab; font-style: normal; font-size: 11.5px; font-weight: 800; letter-spacing: 0.02em; }
.pay-sello svg { width: 12px; height: 12px; }
.pay-card { gap: 6px; background: #2f3a4a; color: #fff; }

.form-error { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffb3b3; font-weight: 600; font-size: 14px; }
.link-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: 10px; padding: 6px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }
.btn:disabled { opacity: 0.75; cursor: progress; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: girar 0.8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }

.pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 14px; }
.pay-head p { margin: 0; color: var(--muted); font-weight: 600; }
.pay-head b { color: var(--text); }
.pay-monto { font-family: var(--font-display); font-size: 34px; color: var(--yellow) !important; }
.sello { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.35); margin-bottom: 14px; }
.sello-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--wa); color: #06210f; flex: none; }
.sello-txt { display: grid; }
.sello-txt small { color: var(--muted); }
.marca-izipay { color: #ff4b5c; font-weight: 800; letter-spacing: -0.01em; }
.iz-caja { padding: 16px; border-radius: 16px; background: #fff; color: #1d1d1f; min-height: 120px; }
.iz-estado { margin: 8px 0 0; text-align: center; color: #555; font-weight: 600; font-size: 14px; }
.iz-estado:empty { display: none; }
.iz-estado.is-error { color: #c62828; }
.demo-pay { display: grid; gap: 10px; }
.demo-tag { justify-self: center; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 12px; border-radius: 999px; background: #6b2bd9; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.demo-txt { margin: 0 0 4px; text-align: center; color: #555; font-size: 14px; }
.demo-campo { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid #d8d8dc; background: #fafafa; }
.demo-campo span { color: #777; font-size: 12px; font-weight: 600; }
.demo-campo b { font-size: 16px; letter-spacing: 0.04em; color: #1d1d1f; }
.demo-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.demo-pay .btn { margin-top: 6px; }
.pay-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 16px; color: var(--dim); font-size: 13px; }

.ok { text-align: center; padding: 18px 4px 6px; }
.ok-check { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #06210f; box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.15); animation: ok-pop 0.45s var(--ease); }
.ok-check svg { width: 38px; height: 38px; stroke-width: 3; }
@keyframes ok-pop { from { transform: scale(0.4); opacity: 0; } }
.ok h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.05; color: var(--yellow); outline: none; }
.ok p { margin: 0 0 12px; color: var(--muted); }
.ok-pago { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--text) !important; font-weight: 700; font-size: 14px; }
.ok-pago.is-paid { background: rgba(37, 211, 102, 0.12); border-color: rgba(37, 211, 102, 0.5); color: #8ff5b8 !important; }
.ok-items { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ok-items li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ok-items b { font-variant-numeric: tabular-nums; }
.ok-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; }
.ok-total b { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--yellow); }
.ok-dato { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 14px; }
.ok-dato svg { margin-top: 2px; color: var(--yellow); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-embers { display: none; }
}
