/* =============================================================================
   THE PIZZA BOSS — styles.css
   1. Tokens  2. Base  3. Header / nav  4. Bottom bar (móvil)  5. Botones
   6. Hero  7. Secciones comunes  8. Portada  9. Carta  10. Nosotros
   11. Contacto / reservas  12. Carrito y checkout  13. Footer  14. QR
   15. Reveal / utilidades
   ============================================================================= */

/* 1. Tokens ----------------------------------------------------------------- */
:root {
  --bg: #f7f0e4;
  --bg-2: #efe4d1;
  --paper: #fffdf8;
  --ink: #1e1612;
  --ink-soft: #3b2f28;
  --ink-mute: #7a6b60;
  --red: #d42a1f;
  --red-deep: #a81d15;
  --green: #1f7a3a;
  --gold: #e9a23b;
  --line: rgba(30, 22, 18, 0.12);
  --shadow: 0 18px 40px -22px rgba(80, 30, 10, 0.45);
  --radius: 22px;
  --display: "Anton", "Impact", sans-serif;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --header-h: 78px;
}

/* 2. Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
[hidden] { display: none !important; }
/* radios ocultos de chips/segmentos: sin desbordar */
.sizes label, .people label, .seg label { position: relative; }
.sizes input, .people input, .seg input { width: 1px; height: 1px; margin: 0; top: 0; left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--red); color: #fff; }

/* Datos de ejemplo pendientes de sustituir: se ven resaltados */
.ph { background: linear-gradient(transparent 55%, rgba(233, 162, 59, 0.45) 55%); }

/* 3. Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(247, 240, 228, 0.92);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(247, 240, 228, 0.75); backdrop-filter: blur(14px) saturate(1.3); }
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(0,0,0,.5); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 58px; height: 58px; object-fit: contain; transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand-name { font-family: var(--display); font-size: 22px; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.brand-name em { display: block; font-family: var(--serif); font-style: italic; font-weight: 600; text-transform: none; color: var(--red); font-size: 15px; letter-spacing: 0; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 9px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-2); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative; width: 48px; height: 48px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s;
}
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s cubic-bezier(.3,1.8,.5,1);
}
.cart-count.has-items { transform: scale(1); }
.cart-btn.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95); } }

/* 4. Bottom bar (móvil, inspirada en apps de delivery) ----------------------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .main-nav, .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .brand img { width: 48px; height: 48px; }
  body { padding-bottom: 86px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60;
    background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
    box-shadow: 0 18px 40px -16px rgba(60, 20, 0, .35);
    padding: 10px 4px; height: auto;
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 11px; font-weight: 500; text-decoration: none; color: var(--ink-mute);
  }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { color: var(--red); }
  .tabbar .tab-order { position: relative; margin-top: -34px; font-weight: 700; }
  .tabbar .tab-order span.bubble {
    width: 62px; height: 62px; border-radius: 50%; background: var(--red); color: #fff;
    display: grid; place-items: center; border: 5px solid var(--bg);
    box-shadow: 0 10px 22px -8px rgba(212, 42, 31, .8);
  }
  .tabbar .tab-order em { font-style: normal; color: var(--red); }
}

/* 5. Botones ---------------------------------------------------------------- */
.btn {
  --b: var(--red);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid var(--b);
  background: var(--b); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px var(--b); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--ink); --b: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { --b: #fff; color: var(--ink); }
.btn-green { --b: var(--green); }
.btn-wa { --b: #1f9d55; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* 6. Hero ------------------------------------------------------------------- */
.hero {
  position: relative; min-height: calc(100svh - var(--header-h));
  display: grid; align-items: center; overflow: hidden;
  padding: 60px 0 90px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.hero-title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(54px, 8.4vw, 124px); line-height: .92; letter-spacing: -.005em;
}
.hero-title .red { color: var(--red); }
.hero-title em {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 500;
  text-transform: none; font-size: .5em; letter-spacing: -.01em; color: var(--ink-soft); margin-top: .18em;
}
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 470px; margin: 26px 0 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; font-size: 14px; color: var(--ink-mute); }
.hero-meta b { display: block; color: var(--ink); font-size: 15px; }
.open-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-mute); }
.open-pill.is-open i { background: #22b35a; box-shadow: 0 0 0 4px rgba(34,179,90,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34,179,90,0); } }

.hero-visual { position: relative; aspect-ratio: 1; }
.hero-plate {
  position: absolute; inset: 6%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 50px 80px -40px rgba(90, 30, 0, .7), 0 0 0 14px var(--paper), 0 0 0 15px var(--line);
}
.hero-plate img { width: 100%; height: 100%; object-fit: cover; animation: spin 80s linear infinite; transform: scale(1.35); }
@keyframes spin { from { transform: rotate(0) scale(1.35); } to { transform: rotate(360deg) scale(1.35); } }
.hero-logo {
  position: absolute; width: 38%; left: -4%; bottom: -2%;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }
.hero-sticker {
  position: absolute; top: 4%; right: 0; width: 116px; height: 116px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center; text-align: center;
  font-family: var(--display); text-transform: uppercase; font-size: 18px; line-height: 1;
  transform: rotate(12deg); box-shadow: var(--shadow);
}
.hero-sticker small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .08em; margin-top: 4px; }
.hero-deco { position: absolute; pointer-events: none; opacity: .9; }

@media (max-width: 860px) {
  .hero { padding: 26px 0 40px; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { order: -1; width: min(420px, 92%); margin: 0 auto; }
  .hero-sticker { width: 92px; height: 92px; font-size: 15px; }
  .hero-sub { font-size: 16px; margin: 18px 0 24px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* 7. Secciones comunes ------------------------------------------------------ */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 76px); line-height: .95; }
.h2 em { font-family: var(--serif); font-style: italic; text-transform: none; color: var(--red); font-weight: 500; }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.section-dark { background: var(--ink); color: var(--bg); }
.section-dark .lead { color: rgba(247,240,228,.75); }
.section-red { background: var(--red); color: #fff; }

/* Marquee */
.marquee { overflow: hidden; background: var(--red); color: #fff; padding: 16px 0; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); text-transform: uppercase; font-size: clamp(22px, 3vw, 34px); padding-inline: 22px; white-space: nowrap; }
.marquee span::after { content: "✦"; margin-left: 44px; color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 8. Portada: modos de pedido ------------------------------------------------ */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mode {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s;
  overflow: hidden;
}
.mode:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mode-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--bg-2); margin-bottom: 8px; }
.mode-icon svg { width: 28px; height: 28px; color: var(--red); }
.mode h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; }
.mode p { color: var(--ink-mute); margin: 0; }
.mode .go { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--red); display: inline-flex; gap: 6px; align-items: center; }
.mode .go svg { width: 18px; transition: transform .25s; }
.mode:hover .go svg { transform: translateX(5px); }
.mode-num { position: absolute; top: 18px; right: 22px; font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 15px; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } }

/* Tarjetas de producto (portada y carta) */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1060px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.p-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.p-card-img { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.p-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.p-card:hover .p-card-img img { transform: scale(1.08) rotate(2deg); }
.p-card-body { padding: 14px 6px 4px; display: flex; flex-direction: column; flex: 1; }
.p-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.p-card p { font-size: 14px; color: var(--ink-mute); line-height: 1.45; }
.p-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; font-size: 20px; }
.price small { font-weight: 500; font-size: 12px; color: var(--ink-mute); margin-right: 4px; }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--red); color: #fff;
}
.tag-veggie { background: var(--green); }
.tag-nuevo { background: var(--gold); color: var(--ink); }
.tag-picante { background: #ff5a1f; }
.p-card-img .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.add-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--red); color: #fff;
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  transition: transform .25s cubic-bezier(.3,1.8,.5,1), background .2s;
}
.add-btn:hover { transform: scale(1.12) rotate(90deg); background: var(--red-deep); }
.add-btn svg { width: 20px; height: 20px; }
.add-btn.added { background: var(--green); transform: scale(1.1); }

/* Historia teaser */
.story-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.story-img { position: relative; border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-badge {
  position: absolute; bottom: 22px; left: 22px; right: 22px; background: var(--paper); color: var(--ink);
  border-radius: 16px; padding: 14px 18px; font-family: var(--serif); font-style: italic; font-size: 17px;
}
@media (max-width: 860px) { .story-split { grid-template-columns: 1fr; } .story-img { aspect-ratio: 1; } }

/* Info rápida (horario / dirección) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.info-card { border: 1px solid rgba(247,240,228,.18); border-radius: var(--radius); padding: 26px; }
.info-card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin-bottom: 12px; color: var(--gold); }
.info-card p, .info-card li { color: rgba(247,240,228,.85); font-size: 15px; }
.info-card a { color: #fff; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

.hours-list { list-style: none; padding: 0; margin: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed currentColor; border-color: rgba(127,127,127,.25); }
.hours-list li.today { font-weight: 700; }

/* QR teaser */
.qr-teaser { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
.qr-box { background: #fff; padding: 18px; border-radius: 20px; box-shadow: var(--shadow); width: 200px; height: 200px; display: grid; place-items: center; }
.qr-box canvas, .qr-box img { width: 164px !important; height: 164px !important; }
@media (max-width: 700px) { .qr-teaser { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* 9. Carta ------------------------------------------------------------------ */
.page-hero { padding: clamp(40px, 7vw, 90px) 0 30px; }
.page-hero .h2 { font-size: clamp(52px, 9vw, 120px); }
.menu-cats {
  position: sticky; top: var(--header-h); z-index: 30; background: var(--bg);
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.menu-cats .wrap { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.menu-cats .wrap::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .2s;
}
.cat-chip:hover { border-color: var(--ink); }
.cat-chip.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.menu-section { padding: 56px 0 10px; scroll-margin-top: calc(var(--header-h) + 70px); }
.menu-section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 26px; flex-wrap: wrap; }
.menu-section-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(36px, 5vw, 56px); }
.menu-section-head p { margin: 0; font-family: var(--serif); font-style: italic; color: var(--ink-mute); font-size: 17px; }
.menu-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 860px) { .menu-list { grid-template-columns: 1fr; } }
.m-item {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  transition: box-shadow .3s, transform .3s;
}
.m-item.has-photo { grid-template-columns: 104px 1fr; }
.m-item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.m-item-img { width: 104px; height: 104px; border-radius: 16px; overflow: hidden; }
.m-item-img img { width: 100%; height: 100%; object-fit: cover; }
.m-item h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.m-item p { font-size: 14px; color: var(--ink-mute); margin: 0 0 10px; line-height: 1.45; }
.m-item-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.m-item.has-photo .m-item-buy { grid-column: 1 / -1; }
.sizes { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 3px; }
.sizes label { cursor: pointer; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes span { display: block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; transition: background .2s; }
.sizes input:checked + span { background: var(--ink); color: var(--bg); }
.sizes input:focus-visible + span { outline: 2px solid var(--red); }
.m-item-buy .right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.qr-banner {
  background: var(--green); color: #fff; padding: 12px 0; font-size: 14px; text-align: center;
}
.qr-banner b { font-weight: 700; }
.allergen-note { font-size: 13px; color: var(--ink-mute); margin-top: 50px; }

/* 10. Nosotros -------------------------------------------------------------- */
.manifesto { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 44px); line-height: 1.22; font-weight: 400; max-width: 980px; }
.manifesto em { color: var(--red); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: t; }
.timeline article { border-top: 2px solid var(--ink); padding-top: 20px; }
.timeline .year { font-family: var(--display); font-size: 48px; color: var(--red); line-height: 1; }
.timeline h3 { font-size: 20px; margin: 10px 0 8px; }
.timeline p { color: var(--ink-mute); }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { background: var(--paper); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.value b { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 26px; display: block; margin-bottom: 8px; }
.value p { color: var(--ink-mute); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* 11. Contacto / reservas --------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3.5vw, 38px); }
.panel h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 4vw, 46px); margin-bottom: 6px; }
.panel > p { color: var(--ink-mute); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--bg); transition: border-color .2s, background .2s; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.people { display: flex; flex-wrap: wrap; gap: 8px; }
.people label { cursor: pointer; }
.people input { position: absolute; opacity: 0; }
.people span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; transition: all .15s; }
.people input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.people input:focus-visible + span { outline: 2px solid var(--ink); }
.form-note { font-size: 13px; color: var(--ink-mute); margin-top: 12px; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .ic svg { width: 20px; height: 20px; color: var(--red); }
.contact-list b { display: block; font-size: 13px; color: var(--ink-mute); font-weight: 600; }
.contact-list a { text-decoration: none; font-weight: 600; }
.map { margin-top: 22px; border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; background: var(--bg-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* 12. Carrito y checkout ---------------------------------------------------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(30, 22, 18, .45); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(460px, 100%);
  background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.9,.2,1);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,.4);
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.steps { display: flex; gap: 6px; padding: 0 22px 14px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.steps i.on { background: var(--red); }
.cart-empty { text-align: center; padding: 50px 10px; color: var(--ink-mute); }
.cart-empty .big { font-size: 56px; }
.c-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.c-line b { font-weight: 700; }
.c-line small { color: var(--ink-mute); display: block; }
.c-line .c-price { font-weight: 700; text-align: right; }
.qty { justify-self: start; display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg); cursor: pointer; font-weight: 700; font-size: 16px; }
.qty span { min-width: 22px; text-align: center; font-weight: 700; }
.totals { display: grid; gap: 6px; font-size: 15px; margin-bottom: 14px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-size: 20px; font-weight: 800; padding-top: 6px; border-top: 1px solid var(--line); }
.totals .muted { color: var(--ink-mute); font-size: 13px; }
.warn { background: #fff2dc; border: 1px solid #f0c27a; color: #7a4a00; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--paper); padding: 5px; border-radius: 18px; border: 1px solid var(--line); margin-bottom: 18px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; border-radius: 14px; font-weight: 700; transition: all .2s; text-align: center; }
.seg span small { font-weight: 500; font-size: 12px; opacity: .8; }
.seg input:checked + span { background: var(--red); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }
.drawer .form-grid { margin: 0; }
.drawer .field input, .drawer .field select, .drawer .field textarea { background: var(--paper); }

.toast {
  position: fixed; left: 50%; bottom: 110px; z-index: 200; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .35s cubic-bezier(.2,.9,.3,1.3); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 861px) { .toast { bottom: 30px; } }

/* 13. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(247,240,228,.8); padding: 70px 0 34px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 90px; margin-bottom: 12px; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(247,240,228,.15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: rgba(247,240,228,.55); }
.footer-bottom a { color: inherit; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 14. Página QR (imprimible) ------------------------------------------------ */
.qr-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; }
.qr-page > div { width: min(440px, 100%); }
.qr-card { background: #fff; border-radius: 32px; padding: 40px 36px; text-align: center; width: min(440px, 100%); box-shadow: var(--shadow); border: 1px solid var(--line); }
.qr-card img.logo { width: 150px; margin: 0 auto 6px; }
.qr-card h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 40px; }
.qr-card .sub { font-family: var(--serif); font-style: italic; color: var(--ink-mute); margin: 6px 0 22px; }
.qr-card #qr { display: grid; place-items: center; margin: 0 auto 18px; }
.qr-card #qr img, .qr-card #qr canvas { width: 240px; height: 240px; }
.qr-card .url { font-size: 13px; color: var(--ink-mute); word-break: break-all; }
.qr-tools { margin-top: 24px; display: grid; gap: 12px; text-align: left; }
@media print {
  body { background: #fff; padding: 0; }
  .qr-tools, .tabbar, .site-header { display: none !important; }
  .qr-card { box-shadow: none; border: 2px solid #000; }
}

/* 15. Reveal / utilidades --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }
.center { text-align: center; }
.mt-l { margin-top: 40px; }

/* 16. Portada = carta ------------------------------------------------------ */
.carta-hero { padding: clamp(28px, 5vw, 64px) 0 26px; }
.carta-hero-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.carta-hero .hero-logo { position: static; width: clamp(130px, 18vw, 230px); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(0,0,0,.2)); }
.carta-hero .hero-title { font-size: clamp(46px, 7vw, 104px); }
.carta-hero .hero-sub { margin: 16px 0 22px; max-width: 560px; }
.carta-hero .top-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.order-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.order-mode {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; text-decoration: none;
  background: var(--paper); border: 1.5px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s; cursor: pointer;
  font: inherit; text-align: left; color: inherit;
}
.order-mode:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--red); }
.order-mode .mode-icon { width: 48px; height: 48px; margin: 0; flex-shrink: 0; border-radius: 14px; }
.order-mode .mode-icon svg { width: 24px; height: 24px; }
.order-mode b { display: block; font-size: 16px; }
.order-mode small { color: var(--ink-mute); font-size: 13px; }
.order-mode.primary { background: var(--red); border-color: var(--red); color: #fff; }
.order-mode.primary small { color: rgba(255,255,255,.8); }
.order-mode.primary .mode-icon { background: rgba(255,255,255,.18); }
.order-mode.primary .mode-icon svg { color: #fff; }
@media (max-width: 860px) {
  .carta-hero-grid { grid-template-columns: 1fr; text-align: left; }
  .carta-hero .hero-logo { width: 120px; position: absolute; right: 16px; top: 76px; }
  .carta-hero { position: relative; }
  .carta-hero .hero-title { padding-right: 110px; }
  .order-modes { grid-template-columns: 1fr; }
}

/* Selector de idioma */
.lang-switch { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.menu-cats .wrap { align-items: center; }
.menu-cats .lang-switch { flex-shrink: 0; margin-left: auto; }

/* Tarjetas de Menú (combos) */
.combo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .combo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .combo-grid { grid-template-columns: 1fr; } }
.combo {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.combo:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.combo-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.combo-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.combo:hover .combo-img img { transform: scale(1.07); }
.combo-img-empty { display: grid; place-items: center; font-size: 54px; background: linear-gradient(135deg, var(--bg-2), #f3d9c4); }
.combo-body { padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.combo h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 30px; color: var(--red); }
.combo-list { list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; line-height: 1.45; }
.combo-list li:not(:first-child) { color: var(--ink-soft); font-weight: 500; }
.combo-note { font-size: 13px; color: var(--ink-mute); margin: 0; }
.combo-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.combo-price { font-family: var(--display); font-size: 34px; line-height: 1; }

/* Solo en el local */
.tag-local { background: var(--bg-2); color: var(--ink-soft); }
.add-btn.is-local { background: var(--bg-2); color: var(--ink-mute); cursor: not-allowed; }
.add-btn.is-local:hover { transform: none; background: var(--bg-2); }
.sizes { flex-wrap: wrap; border-radius: 18px; }
.carta-hero.hero { min-height: 0; display: block; overflow: visible; }
/* Platos: info arriba, compra abajo (evita aplastar el texto con variantes) */
.m-item { grid-template-columns: 1fr; gap: 10px; align-items: start; }
.m-item.has-photo { grid-template-columns: 84px 1fr; }
.m-item.has-photo .m-item-img { width: 84px; height: 84px; }
.m-item-buy { grid-column: 1 / -1; }
.m-item p { margin-bottom: 0; }
@media (max-width: 860px) {
  .carta-hero-grid { grid-template-columns: 96px 1fr; gap: 14px; align-items: start; }
  .carta-hero .hero-logo { position: static; width: 96px; left: auto; bottom: auto; }
  .carta-hero .hero-title { padding-right: 0; font-size: clamp(46px, 14vw, 64px); }
  .carta-hero .hero-sub { font-size: 15px; margin: 10px 0 0; }
  .carta-hero .order-modes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
  .order-mode { flex-direction: column; text-align: center; gap: 8px; padding: 14px 6px; }
  .order-mode b { font-size: 14px; }
  .order-mode small { font-size: 11.5px; }
  .order-mode .mode-icon { width: 40px; height: 40px; }
  .combo-img { aspect-ratio: 16/8; }
}
@media (min-width: 861px) { .carta-hero .order-modes { grid-column: 2; margin-top: 0; } .carta-hero-grid { row-gap: 22px; } }
/* Icono animado de reparto (sin fondo) */
.order-mode .mode-icon.mode-icon-anim, .order-mode.primary .mode-icon.mode-icon-anim { background: none; width: 64px; height: 64px; }
.mode-icon-anim img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
@media (max-width: 860px) { .order-mode .mode-icon.mode-icon-anim { width: 52px; height: 52px; margin: -6px 0 -4px; } }

/* Banner de portada (foto del local con el letrero) */
.banner { position: relative; width: 100%; overflow: hidden; background: var(--ink); }
.banner img { width: 100%; height: clamp(220px, 42vw, 560px); object-fit: cover; object-position: center 22%; }
.banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.carta-hero-grid.no-logo { grid-template-columns: 1fr; }
.carta-hero-grid.no-logo .order-modes { grid-column: 1; }
@media (min-width: 861px) {
  .carta-hero-grid.no-logo { grid-template-columns: 1.1fr 1fr; align-items: end; column-gap: 48px; }
  .carta-hero-grid.no-logo .order-modes { grid-column: 2; grid-row: 1; grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 860px) {
  .banner img { height: auto; aspect-ratio: 1672 / 941; }
  .banner::after { height: 40px; }
}
.banner + .carta-hero { padding-top: 10px; }
