/* ===========================================================
   ALA NEGRA — Menú Digital
   Sistema de diseño art deco (negro + dorado)
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #1a1a1a;
  --bg-card: #252525;
  --bg-card-hover: #2d2d2d;
  --gold: #c9a84c;
  --gold-light: #e2c87e;
  --gold-dark: #8b6914;
  --white: #ffffff;
  --muted: #b0b0b0;
  --agotado: #c0392b;
  --card-border: rgba(201, 168, 76, 0.4);

  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --maxw: 480px;
  --radius: 12px;
  --radius-sm: 6px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--white);
  line-height: 1.45;
  overflow-x: clip;
}

/* ---------- Patrón art deco ---------- */
.art-deco-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c9a84c' stroke-width='0.5' opacity='0.18'%3E%3Cpolygon points='30,2 58,30 30,58 2,30'/%3E%3Cpolygon points='30,12 48,30 30,48 12,30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* ---------- Layout base ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

main { padding-bottom: 40px; }

section { padding: 36px 0 8px; scroll-margin-top: 72px; }

/* ---------- Títulos de sección ---------- */
.section-head { text-align: center; margin-bottom: 22px; }

.section-title {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: clamp(2.6rem, 11vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-sub {
  font-family: var(--font-body);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  margin-top: 4px;
  text-transform: uppercase;
}

.section-note {
  color: var(--gold-light);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin-top: 6px;
  text-transform: uppercase;
}

.deco-divider {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 10px auto 0; max-width: 200px;
}
.deco-divider::before, .deco-divider::after {
  content: ''; height: 1px; flex: 1; background: var(--gold-dark);
}
.deco-divider span { color: var(--gold); font-size: 0.7rem; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   COVER
   =========================================================== */
.cover {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.cover-frame {
  border: 2px solid var(--gold);
  border-radius: 18px;
  width: 100%; max-width: 360px;
  min-height: 78svh;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.35);
}
.cover-logo {
  width: 70%; max-width: 240px; margin: 0 auto;
  animation: fadeUp 1s ease both;
}
.cover-scroll {
  position: absolute; bottom: 26px; left: 0; right: 0;
  color: var(--gold-light); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; animation: bounce 2s infinite;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px);} to {opacity:1; transform:none;} }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(6px);} }

/* ===========================================================
   NAV STICKY
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26,26,26,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
  transition: transform .3s ease;
}
.nav.hide { transform: translateY(-100%); }
.nav-scroll {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px;
  scrollbar-width: none; -ms-overflow-style: none;
  max-width: var(--maxw); margin: 0 auto;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-tab {
  flex: 0 0 auto;
  background: transparent; border: 1px solid var(--card-border);
  color: var(--muted); padding: 7px 14px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap;
  transition: all .2s ease;
}
.nav-tab.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }

/* ===========================================================
   CARD GENÉRICA
   =========================================================== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

.item-name {
  font-family: var(--font-body);
  font-weight: 700; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--white);
}
.item-portion { color: var(--gold-light); font-weight: 600; font-size: 0.78rem; }
.item-desc { color: var(--muted); font-size: 0.84rem; margin-top: 4px; }

.item-price {
  font-weight: 800; font-size: 1.15rem; color: var(--white); white-space: nowrap;
}
.item-price .cur { color: var(--gold); }
.price-old {
  color: var(--muted); text-decoration: line-through; font-size: 0.82rem;
  font-weight: 600; margin-left: 8px;
}

/* ---------- Badge AGOTADO ---------- */
.card.agotado { opacity: 0.55; }
.badge-agotado {
  position: absolute; top: 10px; right: 10px;
  background: var(--agotado); color: #fff;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
  padding: 4px 8px; border-radius: 4px; text-transform: uppercase;
}

/* ===========================================================
   ESPECIALES
   =========================================================== */
.especial-card {
  border: 1.5px solid var(--gold);
  background: linear-gradient(180deg, rgba(201,168,76,0.06), var(--bg-card));
}
.especial-tag {
  display: inline-block; background: var(--gold-dark); color: var(--gold-light);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.14em;
  padding: 4px 10px; border-radius: 4px; text-transform: uppercase; margin-bottom: 8px;
}
.especial-card .item-name { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 0.02em; }
.especial-price { font-size: 1.9rem; font-weight: 800; color: #ff7a18; margin-top: 8px; }
.especial-price .cur { color: #ff7a18; }
.especial-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mini-especial { padding: 12px; }
.mini-especial .item-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }
.mini-especial .especial-price { font-size: 1.15rem; }
.mini-especial .item-desc { font-size: 0.72rem; }
.especial-nota { color: var(--muted); font-size: 0.68rem; margin-top: 2px; }
@media (max-width: 420px) { .especial-grid { grid-template-columns: 1fr; } }

/* ===========================================================
   LISTA CON FOTO
   =========================================================== */
.food-row { display: flex; gap: 14px; align-items: flex-start; }
.food-thumb {
  flex: 0 0 100px; width: 100px; height: 100px;
  border-radius: var(--radius-sm); object-fit: cover;
  background: var(--bg-card-hover);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid var(--card-border);
}
.food-thumb:hover, .food-thumb:active { transform: scale(1.04); box-shadow: 0 0 0 2px var(--gold); }
.food-body { flex: 1; min-width: 0; }
.food-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }

/* ===========================================================
   LIGHTBOX
   =========================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lb-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 360px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  transform: scale(.94) translateY(16px);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
}
.lightbox.open .lb-card { transform: scale(1) translateY(0); }
.lb-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--bg-card-hover);
}
.lb-body { padding: 16px; }
.lb-name { font-weight: 700; font-size: 1.1rem; text-transform: uppercase; color: var(--white); }
.lb-portion { color: var(--gold-light); font-size: .78rem; font-weight: 600; margin-top: 2px; }
.lb-desc { color: var(--muted); font-size: .84rem; margin-top: 6px; line-height: 1.4; }
.lb-price { font-weight: 800; font-size: 1.4rem; margin-top: 10px; color: var(--white); }
.lb-price .cur { color: var(--gold); }
.lb-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,.6); color: var(--white); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.lb-close:hover { background: rgba(0,0,0,.85); }

/* ---------- Variantes (precios múltiples) ---------- */
.variants { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.variant { font-size: 0.92rem; font-weight: 700; color: var(--white); white-space: nowrap; }
.variant b { color: var(--gold); font-weight: 800; }

/* ===========================================================
   LISTA SIMPLE
   =========================================================== */
.simple-row {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}

/* ===========================================================
   ALITAS
   =========================================================== */
.alitas-box { display: grid; gap: 12px; }
.salsas-wrap {
  margin-top: 8px; border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px;
}
.salsas-title, .aderezos-title {
  font-family: var(--font-display); color: var(--gold); font-size: 1.6rem;
  text-align: center; letter-spacing: 0.04em;
}
.salsas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 8px; }
.salsa { font-size: 0.92rem; }
.chiles { color: #e74c3c; letter-spacing: -1px; }
.aderezos-wrap {
  margin-top: 12px; border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px; text-align: center;
}
.aderezos-desc { color: var(--muted); font-size: 0.8rem; margin: 4px 0 8px; }
.aderezos-list { display: flex; justify-content: center; gap: 28px; font-size: 1rem; font-weight: 600; }

/* ===========================================================
   DESTILADOS (tabla 3 columnas)
   =========================================================== */
.dest-group { margin-bottom: 18px; }
.dest-subtitle {
  color: var(--gold); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px;
}
.dest-head, .dest-row {
  display: grid; grid-template-columns: 1fr 64px 72px; gap: 6px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dest-head { color: var(--gold-light); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-bottom-color: var(--gold-dark); }
.dest-row .d-name { font-weight: 600; font-size: 0.86rem; }
.dest-row .d-val { text-align: right; font-weight: 700; font-size: 0.86rem; }
.dest-row .d-val .cur { color: var(--gold); }
.d-na { color: var(--muted); }

/* ===========================================================
   BEBIDAS
   =========================================================== */
.bev-group { margin-bottom: 16px; }
.bev-subtitle {
  color: var(--gold); font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.bev-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bev-name { font-weight: 700; font-size: 0.88rem; text-transform: uppercase; }
.bev-ml { color: var(--muted); font-weight: 500; font-size: 0.68rem; }
.bev-price { font-weight: 800; font-size: 0.92rem; white-space: nowrap; }
.bev-price .cur { color: var(--gold); }

/* ===========================================================
   CÓCTELES (grid)
   =========================================================== */
.cocteles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coctel { background: var(--bg-card); border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden; }
.coctel-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--bg-card-hover); }
.coctel-body { padding: 10px; }
.coctel-top { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.coctel-name { font-weight: 700; font-size: 0.82rem; text-transform: uppercase; line-height: 1.05; }
.coctel-price { font-weight: 800; font-size: 0.92rem; white-space: nowrap; }
.coctel-price .cur { color: var(--gold); }
.coctel-desc { color: var(--muted); font-size: 0.72rem; margin-top: 4px; }

/* ===========================================================
   INFANTIL
   =========================================================== */
.infantil { background: #141414; border-radius: 18px; padding: 24px 16px; text-align: center; position: relative; overflow: hidden; }
.infantil-title { font-family: var(--font-display); font-size: 2.6rem; letter-spacing: 0.06em;
  background: linear-gradient(90deg,#e74c3c,#f39c12,#2ecc71,#3498db,#9b59b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.infantil-list { list-style: none; margin: 16px 0; }
.infantil-list li { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.03em; line-height: 1.4; }
.infantil-list small { font-size: 0.9rem; color: var(--gold-light); }
.infantil-price { font-size: 3rem; font-weight: 800; color: var(--gold); }
.infantil-price .cur { color: var(--gold); }
.infantil-nota { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.infantil-area { margin-top: 16px; font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-light); }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { text-align: center; padding: 40px 16px 60px; }
.footer-logo { width: 200px; margin: 0 auto 20px; }
.footer-cta { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: #25d366; color: #fff; font-weight: 800; font-size: 1.05rem;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
}
.footer-delivery { display: flex; justify-content: center; gap: 14px; margin: 22px 0; }
.footer-delivery span {
  background: var(--bg-card); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 8px 14px; font-weight: 700; font-size: 0.78rem;
}
.footer-loc { color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 16px; }
.footer-loc b { color: var(--gold-light); }

/* ---------- Placeholder de imagen ---------- */
.img-ph {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark); font-family: var(--font-display); font-size: 1.4rem;
}
