/* ============ Q'Tortilla · identidad ============
   Negro texturizado + blanco + amarillo tortilla (del logo oficial) */
:root {
  --ink: #0c0b0a;
  --ink-2: #171513;
  --ink-3: #24211d;
  --paper: #fbf5e6;
  --paper-2: #f3e9d0;
  --yellow: #f5c518;
  --yellow-2: #e3ac00;
  --white: #ffffff;
  --muted: #a8a197;
  --muted-dark: #6d6559;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(12, 11, 10, 0.12);
  --radius: 22px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", cursive;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --logo-bg: var(--ink);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.02em; margin: 0; }

/* textura de pizarra negra del logo */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 600px at 80% 0%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(255,255,255,.04), transparent 60%);
}

.hand { font-family: var(--hand); color: var(--yellow); font-size: 1.7rem; line-height: 1; margin: 0; transform: rotate(-3deg); display: inline-block; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow); margin: 0 0 .8rem;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 14px 0 0 var(--yellow), 28px 0 0 var(--yellow); margin-right: 30px; }
.eyebrow.dark { color: var(--ink); }
.eyebrow.dark::before { background: var(--yellow-2); box-shadow: 14px 0 0 var(--yellow-2), 28px 0 0 var(--yellow-2); }

/* ============ botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn:active { transform: scale(.97); }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 0 var(--yellow-2); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--yellow-2); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--white); }
.btn.sm { padding: .6rem 1.1rem; font-size: .92rem; box-shadow: 0 4px 0 var(--yellow-2); }
.btn.sm.btn-ghost { box-shadow: none; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px);
  background: rgba(12, 11, 10, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; color: var(--white); }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--yellow); }
.nav-actions { display: flex; align-items: center; gap: .8rem; }
.open-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.open-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-pill.is-open { color: var(--white); }
.open-pill.is-open i { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
/* acceso al panel (solo aparece cuando el sitio corre con servidor) */
.admin-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; text-decoration: none;
  padding: .42rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.admin-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.admin-link:hover { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.cart-btn {
  position: relative; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; transition: transform .25s var(--ease);
}
.cart-btn:hover { transform: rotate(-8deg) scale(1.05); }
.cart-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: .75rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--ink);
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ============ hero ============ */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem;
  min-height: min(calc(100vh - 72px), 960px);
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 72px);
  overflow: hidden;
}
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); font-weight: 800; margin: .5rem 0 1.2rem; }
.hero h1 em { font-style: normal; color: var(--yellow); position: relative; }
.hero .lead { color: var(--muted); max-width: 34rem; font-size: 1.12rem; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-stats { list-style: none; padding: 0; margin: 2.8rem 0 0; display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--display); font-size: 1.9rem; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 640px; width: 100%; justify-self: center; }
.hero-logo-wrap { position: absolute; inset: 12%; display: grid; place-items: center; }
.hero-logo { width: 100%; height: 100%; color: var(--white); filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hero-logo .lt { transform-box: fill-box; transform-origin: center; animation: flip 5s var(--ease) infinite; }
.hero-logo .lt2 { animation-delay: .25s; }
.hero-logo .lt3 { animation-delay: .5s; }
@keyframes flip { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.18) translateY(-6px); } 86% { transform: scale(.94); } }

.hero-photo {
  position: absolute; margin: 0; padding: 10px 10px 34px; background: var(--white);
  border-radius: 10px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  transition: transform .5s var(--ease);
  will-change: transform;
}
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 4px; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-family: var(--hand); font-size: 1.3rem; color: var(--ink); }
.hp-1 { width: 42%; left: -2%; bottom: 6%; --r: -8deg; }
.hp-2 { width: 38%; right: -2%; top: 2%; --r: 7deg; }
.hp-3 { width: 36%; right: 4%; bottom: -2%; --r: -3deg; }
.hero-photo { transform: rotate(var(--r)); }
.sticker {
  position: absolute; left: 8%; top: 8%;
  width: 118px; height: 118px; border-radius: 50%;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-weight: 600; line-height: 1.05; font-size: .95rem;
  transform: rotate(-14deg); box-shadow: 0 16px 30px -10px rgba(0,0,0,.7);
}
.sticker b { font-family: var(--display); font-size: 1.5rem; }

/* ============ marquee ============ */
.marquee { background: var(--yellow); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: 0 -10px; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 800; font-size: 1.6rem; padding: .7rem 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 1.4rem; }
.marquee-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ secciones ============ */
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; padding: 0 16px; }
.section-head h2 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; margin-bottom: .8rem; }
.section-head p:not(.eyebrow) { margin: 0; color: var(--muted-dark); font-size: 1.08rem; }
.section-head.light p:not(.eyebrow) { color: var(--muted); }

/* ============ LA MESA (render) ============ */
.mesa-section { padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px) clamp(70px, 8vw, 110px); background: var(--ink); }
.mesa {
  position: relative; max-width: 1180px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden;
  perspective: 1400px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 0 0 1px var(--line);
}
.mesa-surface {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,.018) 0 2px, transparent 2px 38px),
    radial-gradient(ellipse at 40% 35%, #2b2622 0%, #1a1714 55%, #0f0d0b 100%);
}
.mesa-napkin {
  position: absolute; width: 20%; aspect-ratio: 1; left: 3%; bottom: -6%;
  background: repeating-linear-gradient(45deg, #f5c518 0 12px, #e8b700 12px 24px);
  transform: rotate(18deg); border-radius: 6px; opacity: .92;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,.6);
}
.mesa-cup {
  position: absolute; width: 11%; aspect-ratio: 1; right: 4%; top: 7%;
  border-radius: 50%; background: radial-gradient(circle, #3a200f 0 52%, #5a331a 53% 56%, #fff 57% 100%);
  box-shadow: 0 18px 28px -8px rgba(0,0,0,.7), inset 0 -4px 8px rgba(0,0,0,.15);
}
.mesa-cup::after { content: ""; position: absolute; right: -24%; top: 38%; width: 30%; height: 24%; border: 7px solid #fff; border-left: 0; border-radius: 0 50% 50% 0; }

.steam { position: absolute; left: 50%; top: 10%; width: 60%; height: 90%; transform: translateX(-50%); pointer-events: none; }
.steam i { position: absolute; bottom: 30%; width: 34%; height: 55%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.22), transparent 65%); filter: blur(10px); animation: steam 3.6s ease-in infinite; opacity: 0; }
.steam i:nth-child(1) { left: 10%; }
.steam i:nth-child(2) { left: 40%; animation-delay: 1.2s; }
.steam i:nth-child(3) { left: 68%; animation-delay: 2.4s; }
@keyframes steam { 0% { transform: translateY(20%) scaleX(.6); opacity: 0; } 30% { opacity: .9; } 100% { transform: translateY(-90%) scaleX(1.3); opacity: 0; } }

.dish {
  position: absolute; border: 0; padding: 0; background: none;
  width: var(--s); aspect-ratio: 1;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%) rotate(var(--rot)) scale(.6);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), filter .3s;
  z-index: 2;
}
.mesa.in-view .dish { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); transition-delay: var(--d); }
.mesa.in-view .dish:hover, .dish:focus-visible { transform: translate(-50%, -58%) rotate(0deg) scale(1.12); z-index: 5; transition-delay: 0s; outline: none; }
.dish .rim {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f1efe9 45%, #d9d5cc 100%);
  box-shadow: 0 22px 34px -12px rgba(0,0,0,.85), 0 4px 8px rgba(0,0,0,.35), inset 0 -4px 10px rgba(0,0,0,.12);
  transition: box-shadow .4s var(--ease);
}
.dish:hover .rim { box-shadow: 0 50px 60px -18px rgba(0,0,0,.9), 0 8px 14px rgba(0,0,0,.35), inset 0 -4px 10px rgba(0,0,0,.12); }
.dish .food {
  position: absolute; inset: 11%; border-radius: 50%; overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.05), 0 0 0 3px rgba(255,255,255,.6);
}
.dish .food img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform .6s var(--ease); }
.dish:hover .food img { transform: scale(1.3) rotate(-6deg); }
.dish .food::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.28), transparent 45%), radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,0,0,.25)); }
.dish .tag {
  position: absolute; left: 50%; bottom: -8%; transform: translate(-50%, 8px) rotate(calc(var(--rot) * -1));
  background: var(--yellow); color: var(--ink); white-space: nowrap;
  padding: .35rem .8rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
  opacity: 0; transition: opacity .25s, transform .35s var(--ease); pointer-events: none;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,.6);
}
.dish .tag b { font-family: var(--display); margin-left: .3rem; }
.dish:hover .tag, .dish:focus-visible .tag { opacity: 1; transform: translate(-50%, 0) rotate(0deg); }

/* ============ MENÚ ============ */
.menu-section {
  background: var(--paper); color: var(--ink);
  padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px);
  border-radius: 40px 40px 0 0; position: relative; z-index: 3;
  color-scheme: light;
}
.menu-tools { max-width: 1180px; margin: 0 auto 2rem; display: flex; flex-direction: column; gap: 1.1rem; align-items: center; }
.search {
  display: flex; align-items: center; gap: .6rem; width: min(520px, 100%);
  background: var(--white); border: 2px solid var(--ink); border-radius: 999px; padding: .75rem 1.2rem;
  box-shadow: 0 5px 0 var(--ink);
}
.search svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2.2; flex-shrink: 0; }
.search input { border: 0; outline: 0; width: 100%; font: inherit; background: transparent; color: var(--ink); }
.tabs-nav { display: flex; align-items: center; gap: .5rem; max-width: 100%; width: 100%; }
.tabs-arrow {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  transition: background .2s, color .2s, transform .2s var(--ease), opacity .2s, box-shadow .2s;
}
.tabs-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs-arrow:hover { background: var(--yellow); transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.tabs-arrow:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.tabs-arrow[disabled] { opacity: .3; pointer-events: none; box-shadow: 0 4px 0 var(--ink); }
.tabs { display: flex; gap: .5rem; overflow-x: auto; max-width: 100%; flex: 1; padding: .4rem .2rem .6rem; scroll-behavior: smooth; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; border: 2px solid var(--ink); background: transparent; color: var(--ink);
  padding: .55rem 1.05rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s, transform .2s var(--ease);
}
.tab:hover { transform: translateY(-2px); }
.tab.active { background: var(--ink); color: var(--yellow); }
.tab small { opacity: .6; margin-left: .25rem; font-weight: 500; }

.menu-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--ink); box-shadow: 0 6px 0 var(--ink);
  display: flex; flex-direction: column; text-align: left; padding: 0;
  transform-style: preserve-3d; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: cardIn .5s var(--ease) backwards; animation-delay: var(--d, 0s);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card:hover { box-shadow: 0 12px 0 var(--ink); }
.card-media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--ink); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(calc(var(--zoom, 1) * 1.08)); }
.card-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.35), transparent 50%); opacity: 0; transition: opacity .3s; }
.card:hover .card-glare { opacity: 1; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px; border: 2px solid var(--ink);
}
.card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; font-weight: 800; }
.card-body p { margin: 0; color: var(--muted-dark); font-size: .92rem; line-height: 1.4; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.add {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--yellow); color: var(--ink); font-size: 1.5rem; line-height: 1; display: grid; place-items: center;
  transition: transform .3s var(--ease), background .2s;
}
.add:hover { transform: rotate(90deg); background: var(--ink); color: var(--yellow); }
.card-open { position: absolute; inset: 0; border: 0; background: transparent; z-index: 1; border-radius: var(--radius); }
.card-open:focus-visible { outline: 3px solid var(--yellow-2); outline-offset: 3px; }
.card .add { position: relative; z-index: 2; }

/* ilustración para productos sin foto (estilo pizarra de la marca) */
.illus { width: 100%; height: 100%; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 45%, #2a2622, #0c0b0a 75%); }
.illus .emoji { font-size: 4.6rem; filter: drop-shadow(0 14px 18px rgba(0,0,0,.6)); transition: transform .5s var(--ease); }
.card:hover .illus .emoji { transform: scale(1.12) rotate(-8deg); }
.illus .soon { position: absolute; bottom: 10px; right: 12px; font-family: var(--hand); color: var(--yellow); font-size: 1.15rem; }
.bottle { width: 34%; height: 78%; position: relative; filter: drop-shadow(0 16px 18px rgba(0,0,0,.6)); transition: transform .5s var(--ease); }
.card:hover .bottle { transform: rotate(-8deg) translateY(-4px); }
.bottle::before { content: ""; position: absolute; left: 34%; right: 34%; top: 0; height: 12%; background: #ddd; border-radius: 4px 4px 0 0; }
.bottle::after { content: ""; position: absolute; left: 0; right: 0; top: 11%; bottom: 0; border-radius: 30% 30% 14px 14px / 18% 18% 14px 14px; background: linear-gradient(90deg, rgba(255,255,255,.35) 0 12%, transparent 30% 80%, rgba(0,0,0,.2)), var(--liquid); }
.bottle span { position: absolute; left: -10%; right: -10%; top: 48%; z-index: 1; background: var(--white); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: .72rem; text-align: center; padding: .25rem 0; transform: rotate(-4deg); border: 2px solid var(--ink); }

/* bebidas calientes / batidos */
.cupdrink { width: 42%; aspect-ratio: 1 / 1.06; position: relative; border-radius: 10px 10px 45% 45% / 10px 10px 30% 30%; background: linear-gradient(180deg, var(--liquid) 0 72%, rgba(0,0,0,.35) 100%); filter: drop-shadow(0 16px 18px rgba(0,0,0,.6)); transition: transform .5s var(--ease); }
.card:hover .cupdrink { transform: rotate(-7deg) translateY(-4px); }
.cupdrink::before { content: ""; position: absolute; left: -7%; right: -7%; top: -5%; height: 16%; border-radius: 50%; background: #fff; box-shadow: inset 0 -3px 6px rgba(0,0,0,.18); }
.cupdrink::after { content: ""; position: absolute; right: -26%; top: 24%; width: 28%; height: 34%; border: 7px solid #fff; border-left: 0; border-radius: 0 50% 50% 0; }
.cupdrink.cold::after { content: none; }
.cupdrink span { position: absolute; left: -12%; right: -12%; top: 52%; background: var(--white); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: .7rem; text-align: center; padding: .25rem 0; transform: rotate(-4deg); border: 2px solid var(--ink); }

.empty { text-align: center; font-weight: 600; margin: 2rem 0 0; }
.caja { text-align: center; color: var(--muted); font-weight: 600; margin: 1.6rem 0 0; }

/* opciones "a elegir" dentro del visor */
.choice { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .2rem; }
.choice + .choice { margin-top: .7rem; }
.choice-label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-dark); }
.chips.pick li { background: var(--paper-2); }
.chips.pick li::before { content: ""; }
.chips.pick li.on { background: var(--yellow); }
.chips.pick li.on::before { content: "✓ "; color: var(--ink); }

.promo {
  max-width: 1180px; margin: 3.5rem auto 0; background: var(--ink); color: var(--white);
  border-radius: 28px; padding: clamp(24px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; overflow: hidden;
}
.promo h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; margin: .4rem 0 .5rem; }
.promo p:not(.hand) { color: var(--muted); margin: 0; }
.promo-price { flex-shrink: 0; width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2rem; transform: rotate(-10deg); }

/* ============ sucursales ============ */
.places { padding: clamp(80px, 10vw, 130px) clamp(16px, 4vw, 48px); background: var(--ink); }
.places-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.place { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.place-map { aspect-ratio: 16 / 9; background: var(--ink-3); }
.place-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }
.place-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; flex: 1; }
.place-body h3 { font-size: 1.7rem; font-weight: 800; }
.place-body p { margin: 0; color: var(--muted); }
.place-body p b { color: var(--white); font-weight: 600; }
.hours { list-style: none; padding: 0; margin: .2rem 0; display: grid; gap: .25rem; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: .3rem 0; color: var(--muted); }
.hours li.today { color: var(--yellow); font-weight: 700; }
.place-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
.delivery { max-width: 1180px; margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem .8rem; color: var(--muted); }
.delivery a { color: var(--yellow); font-weight: 700; text-decoration: none; }
.delivery .dot { opacity: .4; }

/* ============ footer ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem clamp(16px, 4vw, 48px); display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer p { color: var(--muted); max-width: 520px; margin: 0; }
.socials { display: flex; gap: .7rem; }
.socials a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s; }
.socials a:hover { background: var(--yellow); color: var(--ink); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.footer small { color: var(--muted); }

/* ============ páginas legales ============ */
.legal-hero {
  padding: clamp(60px, 9vw, 110px) clamp(16px, 5vw, 72px) clamp(70px, 9vw, 120px);
  text-align: center;
}
.legal-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; margin: .4rem 0 1rem; }
.legal-hero .lead { color: var(--muted); max-width: 40rem; margin: 0 auto; font-size: 1.1rem; }
.legal-fecha {
  display: inline-block; margin-top: 1.6rem; padding: .45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600;
}

.legal-sheet {
  background: var(--paper); color: var(--ink); color-scheme: light;
  border-radius: 40px 40px 0 0; margin-top: -40px; position: relative; z-index: 2;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 6vw, 90px) clamp(60px, 8vw, 100px);
  max-width: 1000px; margin-inline: auto;
}
.legal-sheet h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 2.6rem 0 .8rem; scroll-margin-top: 90px;
}
.legal-sheet section:first-of-type h2 { margin-top: 0; }
.legal-sheet p { margin: 0 0 1rem; line-height: 1.7; }
.legal-sheet ul { margin: 0 0 1.2rem; padding-left: 0; list-style: none; }
.legal-sheet li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; line-height: 1.6; }
.legal-sheet li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
}
.legal-sheet a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 2px; }
.legal-sheet a:hover { background: var(--yellow); }
.legal-sheet strong { font-weight: 700; }

.legal-indice {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  background: var(--white); border: 2px solid var(--ink); border-radius: 20px;
  padding: 1.1rem 1.3rem; margin-bottom: 2.5rem; box-shadow: 0 6px 0 var(--ink);
}
.legal-indice span { font-weight: 700; margin-right: .3rem; }
.legal-indice a {
  text-decoration: none; font-size: .88rem; font-weight: 600;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: .28rem .8rem;
  transition: background .2s, color .2s;
}
.legal-indice a:hover { background: var(--ink); color: var(--yellow); }
.legal-contacto li::before { background: var(--ink); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: var(--yellow); }

/* ============ modal visor ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 4, 3, .78); backdrop-filter: blur(6px); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.modal-card {
  position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--paper); color: var(--ink); border-radius: 28px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  animation: pop .45s var(--ease); color-scheme: light;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); font-size: 1rem; transition: transform .25s var(--ease); }
.modal-close:hover { transform: rotate(90deg); }
.modal-close.static { position: static; }

.viewer { position: relative; background: var(--ink); color: var(--white); min-height: 460px; display: flex; flex-direction: column; }
.viewer-toggle { position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.viewer-toggle button { border: 0; background: transparent; padding: .45rem .95rem; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.viewer-toggle button.active { background: var(--yellow); color: var(--ink); }
.stage { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: grab; }
.stage.grabbing { cursor: grabbing; }
.stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, #2c2723, #0c0b0a 70%); }
.plate-scene { position: relative; width: min(78%, 400px); aspect-ratio: 1; perspective: 1100px; }
.plate-shadow { position: absolute; left: 8%; right: 8%; bottom: -2%; height: 30%; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.75), transparent 70%); filter: blur(10px); transform: translateY(var(--sh, 0)); }
.plate {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff 0%, #f2f0ea 42%, #d4cfc4 100%);
  transform: rotateX(var(--tilt, 50deg)) rotateZ(var(--spin, 0deg));
  transform-style: preserve-3d;
  box-shadow: 0 2px 0 #cfc9bd, 0 5px 0 #b9b2a4, 0 7px 0 #a39c8e;
  transition: transform .08s linear;
}
.plate.settle { transition: transform .9s var(--ease); }
.plate-food { position: absolute; inset: 10%; border-radius: 50%; background-size: cover; background-position: center; box-shadow: inset 0 0 30px rgba(0,0,0,.35), 0 0 0 4px rgba(255,255,255,.7); transform: translateZ(2px); }
.plate-emoji { position: absolute; inset: 0; display: grid; place-items: center; font-size: 6rem; }
.plate-gloss { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from calc(var(--spin, 0deg) * -1), transparent 0 20%, rgba(255,255,255,.35) 25%, transparent 32% 70%, rgba(255,255,255,.15) 76%, transparent 82%); mix-blend-mode: soft-light; pointer-events: none; }
.steam.big { top: -18%; height: 70%; width: 50%; }
.photo-zoom { position: relative; width: 88%; aspect-ratio: 5 / 4; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); cursor: zoom-in; }
.photo-zoom[hidden] { display: none; }
.photo-zoom img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transition: transform .25s ease-out; }
.photo-zoom:hover img { transform: scale(calc(var(--zoom, 1) * 1.9)); }
.drink-scene { position: relative; width: min(70%, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.drink-scene[hidden] { display: none; }
.drink-scene .bottle, .drink-scene .cupdrink { width: 62%; }
.drink-scene .bottle span, .drink-scene .cupdrink span { font-size: .95rem; }
.stage-hint { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; margin: 0; font-size: .8rem; color: var(--muted); pointer-events: none; }

.modal-info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: .9rem; }
.modal-info h3 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; padding-right: 40px; }
.m-desc { margin: 0; color: var(--muted-dark); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips[hidden] { display: none; }
.chips li { border: 2px solid var(--ink); border-radius: 999px; padding: .28rem .75rem; font-size: .86rem; font-weight: 600; background: var(--white); cursor: pointer; user-select: none; transition: background .2s, opacity .2s; }
.chips li::before { content: "✓ "; color: var(--yellow-2); }
.chips li.off { opacity: .45; text-decoration: line-through; }
.chips li.off::before { content: "✕ "; color: var(--muted-dark); }
.chips-hint { font-size: .8rem; color: var(--muted-dark); margin: -.3rem 0 0; }
.notes { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; font-weight: 600; }
.notes textarea, .field select { font: inherit; font-weight: 400; border: 2px solid var(--ink); border-radius: 14px; padding: .65rem .85rem; background: var(--white); color: var(--ink); resize: vertical; }
.m-buy { display: flex; gap: .8rem; margin-top: auto; padding-top: .5rem; }
.qty { display: flex; align-items: center; border: 2px solid var(--ink); border-radius: 999px; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 1.3rem; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }

/* ============ carrito ============ */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .35s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .45s var(--ease); color-scheme: light;
}
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel > header { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.4rem; border-bottom: 2px solid var(--ink); }
.drawer-panel h3 { font-size: 1.8rem; font-weight: 800; }
.cart-list { list-style: none; margin: 0; padding: .6rem 1.4rem; overflow: auto; flex: 1; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .8rem; align-items: center; padding: .8rem 0; border-bottom: 1px dashed var(--line-dark); animation: cardIn .35s var(--ease); }
.cart-thumb { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ink); display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line-dark); }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0; font-family: var(--display); font-size: 1.05rem; }
.cart-item small { display: block; color: var(--muted-dark); font-size: .8rem; line-height: 1.3; }
.cart-item .mini-qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .3rem; }
.cart-item .mini-qty button { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; line-height: 1; color: var(--ink); }
.cart-item .line-price { font-weight: 700; font-family: var(--display); }
.cart-empty { padding: 2rem 1.4rem; text-align: center; color: var(--muted-dark); margin: 0; }
.drawer-foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: .75rem; }
.modo-pedido {
  margin: 0; padding: .6rem 1rem; border-radius: 999px; text-align: center;
  border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font-weight: 700;
}
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; font-weight: 600; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.total strong { font-family: var(--display); font-size: 1.9rem; }
#waBtn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, calc(100% + 40px)); background: var(--ink); color: var(--white);
  border: 2px solid var(--yellow); padding: .75rem 1.2rem; border-radius: 999px; font-weight: 600;
  transition: transform .45s var(--ease), visibility 0s .45s; max-width: calc(100% - 32px); text-align: center;
  visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; text-align: left; }
  .hero-visual { max-width: 520px; }
  .places-grid { grid-template-columns: 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .viewer { min-height: 360px; }
  .mesa { aspect-ratio: 4 / 5; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .open-pill span { display: none; }
  .open-pill { padding: .45rem; }
  .admin-link span { display: none; }
  .admin-link { padding: .45rem; }
  .brand-word { font-size: 1.15rem; }
  .hero-stats { gap: 1.2rem; }
  .hero-stats strong { font-size: 1.5rem; }
  .sticker { width: 92px; height: 92px; font-size: .8rem; }
  .sticker b { font-size: 1.15rem; }
  .hero-photo figcaption { font-size: 1rem; }
  .hero-photo { padding: 6px 6px 26px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .promo-price { width: 120px; height: 120px; font-size: 1.6rem; align-self: flex-end; margin-top: -40px; }
  .dish .tag { font-size: .72rem; }
  .menu-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .card-body { padding: .75rem; }
  .card-body h3 { font-size: 1.02rem; }
  .card-body p { display: none; }
  .price { font-size: 1.05rem; }
  .add { width: 34px; height: 34px; font-size: 1.2rem; }
  .badge { font-size: .6rem; top: 8px; left: 8px; }
  .illus .emoji { font-size: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
