/* Barra de bebidas · menú digital NFC
   Dirección: pizarrón urbano — carbón mate, tiza blanca, cinta industrial amarilla. */

:root {
  --carbon: #111111;
  --slate: #181818;
  --slate-raised: #242424;
  --board-line: #333333;
  --tape: #ffd400;
  --tape-dark: #f59e0b;
  --ink-on-tape: #111111;
  --chalk: #f5f3ee;
  --chalk-dust: #a3a3a3;
  --chamoy: #ef4444;
  --berry: #3b82f6;
  --wa: #25d366;
  --wa-ink: #06260f;

  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;

  --gutter: 16px;
  --radius: 4px;
  --hard-shadow: 2px 2px 0 #000;
  --topbar-h: 108px;
  --dock-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 8px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: #0a0a0a;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.app {
  position: relative;
  max-width: 428px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--carbon);
  /* textura de pizarrón: grano sutil + barrido de tiza */
  background-image:
    radial-gradient(120% 60% at 20% 0%, rgba(255, 255, 255, 0.045), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom, 0px));
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--tape);
  outline-offset: 2px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(17, 17, 17, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--board-line);
  padding-top: env(safe-area-inset-top, 0px);
}

.brand {
  display: flex;
  align-items: center;
  padding: 10px var(--gutter) 6px;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-kicker {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tape);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cats {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px var(--gutter) 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cats::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--board-line);
  border-radius: var(--radius);
  background: var(--slate);
  color: var(--chalk-dust);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.pill:hover { color: var(--chalk); border-color: #555; }
.pill:active { transform: translateY(1px); }
.pill.is-active {
  background: var(--tape);
  border-color: var(--tape);
  color: var(--ink-on-tape);
  box-shadow: var(--hard-shadow);
}

/* ---------- Aviso demo ---------- */
.demo-note {
  margin: 0;
  padding: 8px var(--gutter);
  background: repeating-linear-gradient(-45deg, #1d1a0c 0 10px, #17150a 10px 20px);
  border-bottom: 1px dashed rgba(255, 212, 0, 0.35);
  color: #e8d88a;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero { padding: 22px var(--gutter) 8px; }

.tape {
  display: inline-block;
  padding: 4px 9px;
  background: var(--tape);
  color: var(--ink-on-tape);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.8);
  transform: rotate(-1.5deg);
  clip-path: polygon(0 4%, 3% 0, 97% 3%, 100% 0, 99% 96%, 96% 100%, 4% 97%, 1% 100%);
  white-space: nowrap;
}
.tape-red { background: var(--chamoy); color: #fff; transform: rotate(1.5deg); }
.tape-chalk { background: var(--chalk); color: var(--ink-on-tape); transform: rotate(1deg); }

.tape-hero { white-space: normal; max-width: 100%; }

.hero h1 {
  margin: 16px 0 8px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--tape);
  text-decoration: underline wavy rgba(255, 212, 0, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.hero-sub {
  margin: 0 0 20px;
  color: var(--chalk-dust);
  font-size: 14px;
  max-width: 34ch;
}

/* Recomendados: bento 2x2 tipo recortes pegados al pizarrón */
.picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pick {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 42px;
  background: var(--slate);
  border: 1px solid #2d2d2d;
  border-radius: 0;
  box-shadow: var(--hard-shadow);
  min-width: 0;
}
.pick:nth-child(1) { grid-column: 1 / -1; padding-right: 90px; padding-bottom: 14px; border-top: 3px solid var(--tape); }
.pick-hot { border-top: 3px solid var(--chamoy); }
.pick-cold { border-top: 3px solid var(--berry); }
.pick:nth-child(3) { border-top: 3px solid var(--chalk-dust); }

.pick-cat {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-dust);
}
.pick h3 {
  margin: 4px 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
}
.pick:nth-child(1) h3 { font-size: 24px; }
.pick p { margin: 0; font-size: 12px; line-height: 1.4; color: var(--chalk-dust); }

.price-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  background: var(--tape);
  color: var(--ink-on-tape);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.8);
  transform: rotate(-2deg);
}
.pick:nth-child(1) .price-tag { top: 14px; bottom: auto; font-size: 22px; }

/* ---------- Secciones ---------- */
.menu-section {
  padding: 34px var(--gutter) 6px;
}
.menu-section + .menu-section { border-top: 1px dashed var(--board-line); margin-top: 22px; }

.sec-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.sec-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.sec-desc {
  margin: 8px 0 14px;
  color: var(--chalk-dust);
  font-size: 13px;
}

.sec-foot {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--chalk-dust);
  border-left: 2px solid var(--tape);
  padding-left: 8px;
}

/* Lista estilo pizarrón con líneas guía de tiza */
.board {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 11px 6px;
  border-bottom: 1px solid #1f1f1f;
  border-radius: 2px;
  transition: background-color 0.15s;
}
.board li:hover { background: var(--slate); }
.board li span {
  font-weight: 500;
  font-size: 15px;
  min-width: 0;
}
.board li i {
  flex: 1 1 auto;
  min-width: 12px;
  border-bottom: 2px dotted #3d3d3d;
  transform: translateY(-4px);
}
.board li b {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--tape);
  white-space: nowrap;
}

.chili {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid var(--chamoy);
  color: #ff8a8a;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.sec-hot .board li b { color: #ffb0a8; }

/* Tamaños de sodas */
.sizes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.size {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: end;
  padding: 12px;
  background: var(--slate);
  border: 1px solid #2d2d2d;
  border-top: 3px solid var(--berry);
  border-radius: 0;
  box-shadow: var(--hard-shadow);
}
.size-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.size-vol { grid-row: 2; font-size: 12px; color: var(--chalk-dust); }
.size b {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--tape);
}

.chips-label {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chalk-dust);
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 8px 12px;
  background: var(--slate);
  border: 1px solid var(--board-line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.sec-cold .chips li { border-color: rgba(59, 130, 246, 0.45); }
.chips-tape li {
  border-style: dashed;
  border-color: rgba(255, 212, 0, 0.4);
}

/* ---------- Pie ---------- */
.foot {
  margin-top: 36px;
  padding: 22px var(--gutter) 12px;
  border-top: 1px solid var(--board-line);
  text-align: center;
  font-size: 12px;
  color: var(--chalk-dust);
}
.foot p { margin: 0 0 4px; }
.foot-credit {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
  color: #6b6b6b;
}

/* ---------- CTA WhatsApp ---------- */
.cta-dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 30;
  width: 100%;
  max-width: 428px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(24, 24, 24, 0.97);
  border-top: 2px solid var(--tape);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.6);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border-radius: var(--radius);
  background: var(--wa);
  color: var(--wa-ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 3px 3px 0 #000;
  transition: transform 0.1s, box-shadow 0.1s, background-color 0.15s;
}
.cta svg { width: 24px; height: 24px; }
.cta:hover { background: #2fe072; }
.cta:active { transform: translate(3px, 3px); box-shadow: 0 0 0 #000; }
