/* Totos — Hamburguesas al Carbón · menú digital
   Identidad: menú físico real (fondo negro, turquesa/cian/amarillo, letra grunge)
   + acentos de la paleta Stitch (ketchup, mostaza, asador). Validar contra logo real. */

:root {
  /* Base carbón */
  --carbon: #0f0e0d;
  --carbon-2: #1c1917;          /* Stitch neutral */
  --carbon-3: #292524;
  --line: rgba(255, 251, 235, 0.12);

  /* Texto crema (Stitch fondos) */
  --crema: #fffbeb;
  --crema-2: #fef3c7;
  --muted: #b8b0a2;

  /* Acentos del menú físico */
  --turquesa: #2bb3a3;
  --cian: #22d3ee;
  --amarillo: #fde047;

  /* Acentos Stitch */
  --ketchup: #dc2626;
  --mostaza: #f59e0b;
  --asador: #ea580c;

  --cta-bg: var(--amarillo);
  --cta-fg: var(--carbon);

  --font-display: "Rubik Dirt", "Impact", system-ui, sans-serif;
  --font-ui: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 428px;
  --gutter: 16px;
  --radius: 14px;
  --topbar-h: 108px;
  --cta-h: 56px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--carbon);
  color: var(--crema);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(234, 88, 12, 0.16), transparent 60%),
    var(--carbon);
  padding-bottom: calc(var(--cta-h) + 40px + env(safe-area-inset-bottom));
  position: relative;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 14, 13, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--turquesa);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px var(--gutter) 6px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--amarillo);
  letter-spacing: 0.01em;
}
.brand__tag {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquesa);
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px var(--gutter) 12px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.cats::-webkit-scrollbar { display: none; }

.cat {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--crema);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.12s var(--ease);
}
.cat:hover { border-color: var(--turquesa); }
.cat:active { transform: scale(0.96); }
.cat:focus-visible { outline: 2px solid var(--cian); outline-offset: 2px; }
.cat.is-active {
  background: var(--turquesa);
  border-color: var(--turquesa);
  color: var(--carbon);
}

/* ---------- Hero ---------- */
.hero {
  padding: 32px var(--gutter) 12px;
}
.hero__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--asador);
}
.hero__title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 11vw, 46px);
  line-height: 0.98;
  color: var(--crema);
}
.hero__sub {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Secciones ---------- */
.section {
  padding: 36px var(--gutter) 8px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--crema);
}
.section__title small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--turquesa);
}
.section__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.base {
  margin-top: 14px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--crema-2);
}
.base__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--turquesa);
  margin-bottom: 2px;
}

/* ---------- Precios ---------- */
.price {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  color: var(--crema);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cur {
  color: var(--turquesa);
  font-size: 0.72em;
  margin-right: 1px;
  vertical-align: 0.18em;
}
.price--xl { font-size: 34px; }

/* ---------- Tabla hamburguesas ---------- */
.grid { margin-top: 18px; }

.grid__head,
.row {
  display: grid;
  grid-template-columns: 1fr 64px 64px;
  align-items: center;
  column-gap: 8px;
}
.grid__head {
  padding: 0 0 8px;
  border-bottom: 2px solid var(--turquesa);
}
.size {
  text-align: right;
  font-weight: 800;
  font-size: 14px;
  color: var(--cian);
  line-height: 1.1;
}
.size small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.row .price { text-align: right; }
.row__name,
.item__name {
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.row__desc,
.item__desc {
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
}
.row--star,
.item--star {
  margin: 4px -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: var(--radius);
  border-bottom-color: transparent;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(234, 88, 12, 0.08));
  box-shadow: inset 0 0 0 1.5px rgba(220, 38, 38, 0.5);
}

.badge {
  display: inline-block;
  vertical-align: 0.2em;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ketchup);
  color: var(--crema);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Lista simple ---------- */
.list { margin-top: 12px; }
.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.item__info { min-width: 0; }

/* ---------- Jochos: regla de 20 cm ---------- */
.ruler {
  position: relative;
  margin-top: 16px;
  height: 26px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, var(--carbon) 0 1.5px, transparent 1.5px 5%),
    linear-gradient(180deg, var(--amarillo), var(--mostaza));
  background-size: 100% 45%, 100% 100%;
  background-repeat: no-repeat;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
}
.ruler span {
  position: absolute;
  right: 8px;
  bottom: 3px;
  font-weight: 800;
  font-size: 12px;
  color: var(--ketchup);
}

/* ---------- Combo ---------- */
.combo {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 16px;
  border-radius: var(--radius);
  border: 2px dashed var(--turquesa);
}
.combo__label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}
.combo__price {
  grid-row: span 2;
  font-weight: 800;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}
.combo__desc { color: var(--muted); font-size: 13.5px; }

/* ---------- Promos ---------- */
.promo {
  position: relative;
  margin-top: 16px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: var(--carbon-2);
  overflow: hidden;
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.promo--queso { --accent: var(--amarillo); }
.promo--pa2 { --accent: var(--cian); }

.promo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.promo__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1;
  color: var(--accent);
}
.promo__price {
  font-weight: 800;
  font-size: 40px;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.promo__price .cur { color: var(--accent); }
.promo__desc {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
}
.promo__list { margin-top: 12px; display: grid; gap: 6px; }
.promo__list li { font-weight: 700; font-size: 15px; }
.promo__list b {
  display: inline-block;
  min-width: 22px;
  color: var(--accent);
  font-size: 18px;
}
.promo__when {
  margin-top: 14px;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--carbon);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.promo__where {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- Papas ---------- */
.fries {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}
.fries__card {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--carbon-2);
  border: 1.5px solid var(--line);
}
.fries__card--big {
  border-color: var(--mostaza);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.18), var(--carbon-2) 70%);
}
.fries__name {
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.fries__name small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
.fries__opts {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fries__opts > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--carbon);
}
.fries__opts dt { font-weight: 700; font-size: 14px; }

/* ---------- Sabores ---------- */
.flavors {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.flavors li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--carbon-2);
  border: 1.5px solid var(--line);
  font-weight: 700;
  font-size: 13.5px;
}
.flavors li:nth-child(3n+1) { border-color: rgba(34, 211, 238, 0.45); }
.flavors li:nth-child(3n+2) { border-color: rgba(253, 224, 71, 0.45); }
.flavors li:nth-child(3n)   { border-color: rgba(234, 88, 12, 0.5); }
.flavors--soda li:nth-child(1) { border-color: var(--cian); }
.flavors--soda li:nth-child(2) { border-color: #4ade80; }
.flavors--soda li:nth-child(3) { border-color: var(--ketchup); }

/* ---------- Michelada ---------- */
.steps {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--carbon-2);
  display: grid;
  gap: 10px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
}
.steps__n {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--asador);
  color: var(--crema);
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 40px;
  padding: 28px var(--gutter) 8px;
  border-top: 2px solid var(--turquesa);
  text-align: center;
}
.foot__sign {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cian);
  letter-spacing: 0.04em;
}
.foot__small {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- CTA WhatsApp ---------- */
.cta {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: calc(min(100vw, var(--maxw)) - 2 * var(--gutter));
  height: var(--cta-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  border: 2px solid var(--carbon);
  box-shadow: 0 4px 0 var(--asador), 0 10px 28px rgba(234, 88, 12, 0.35);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease);
}
.cta:hover { box-shadow: 0 5px 0 var(--asador), 0 14px 32px rgba(234, 88, 12, 0.45); }
.cta:active {
  transform: translateX(-50%) translateY(3px);
  box-shadow: 0 1px 0 var(--asador), 0 6px 16px rgba(234, 88, 12, 0.3);
}
.cta:focus-visible { outline: 3px solid var(--cian); outline-offset: 3px; }
.cta__icon { width: 22px; height: 22px; }
