:root {
  --bg: #0d0b0a;
  --bg2: #141110;
  --surface: #1b1715;
  --surface2: #26201d;
  --line: rgba(255, 255, 255, .10);
  --line2: rgba(255, 255, 255, .18);
  --orange: #ff7a1a;
  --orange2: #ff9b3d;
  --orange-deep: #e85d00;
  --cream: #f6efe6;
  --text: #ffffff;
  --muted: #b8aca3;
  --ok: #2fc56b;
  --danger: #ff5a4f;
  --radius: 18px;
  --ease: cubic-bezier(.22, .9, .32, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --app-w: 600px;
  --nav-h: 74px;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --font-script: 'Kaushan Script', 'Brush Script MT', cursive;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 600px at 50% -10%, #2a160a 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 2px solid var(--orange2); outline-offset: 3px; border-radius: 10px; }

.app { max-width: var(--app-w); margin: 0 auto; min-height: 100vh; position: relative; }
@media (min-width: 640px) {
  .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px rgba(0, 0, 0, .6); background: var(--bg); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  transition: background .35s var(--ease), backdrop-filter .35s, box-shadow .35s;
}
.topbar.solid {
  background: rgba(13, 11, 10, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: transform .2s var(--ease), background .2s;
  position: relative;
}
.icon-btn:active { transform: scale(.9); }
.cart-btn { border: 1.5px solid var(--line2); justify-self: end; background: rgba(0, 0, 0, .25); }
.cart-btn.bump { animation: bump .55s var(--spring); }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.badge[hidden] { display: none; }
.badge.pop { animation: pop .45s var(--spring); }
.logo { justify-self: center; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name {
  font-family: var(--font-script); color: var(--orange); font-size: 34px;
  text-shadow: 0 2px 0 #7a2c00, 0 6px 18px rgba(255, 122, 26, .35);
  letter-spacing: .5px;
}
.logo-since { font-size: 8.5px; letter-spacing: 3px; font-weight: 600; margin-top: 2px; opacity: .9; }

/* ---------- Views ---------- */
.view { padding-bottom: calc(var(--nav-h) + 34px + env(safe-area-inset-bottom)); min-height: 70vh; }
.view > * { animation: viewIn .5s var(--ease) both; }
.pad { padding: 0 16px; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 55ms); }

.loader { display: flex; gap: 8px; justify-content: center; padding: 120px 0; }
.loader span { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: dot 1s infinite ease-in-out; }
.loader span:nth-child(2) { animation-delay: .15s; }
.loader span:nth-child(3) { animation-delay: .3s; }

/* imágenes con aparición suave */
.ph { background: linear-gradient(110deg, #1d1816 30%, #2a2320 50%, #1d1816 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; overflow: hidden; }
.ph.done { animation: none; background: #1d1816; }
.ph img { opacity: 0; transform: scale(1.04); filter: blur(6px); transition: opacity .6s var(--ease), transform .9s var(--ease), filter .6s var(--ease); width: 100%; height: 100%; object-fit: cover; }
.ph img.loaded { opacity: 1; transform: none; filter: none; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; margin-top: -64px; padding: 78px 20px 0; min-height: 600px; overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 70%; animation: kenburns 18s ease-in-out infinite alternate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 11, 10, .92) 0%, rgba(13, 11, 10, .55) 32%, rgba(13, 11, 10, 0) 55%, rgba(13, 11, 10, .35) 80%, var(--bg) 100%),
    linear-gradient(90deg, rgba(13, 11, 10, .7) 0%, rgba(13, 11, 10, 0) 60%);
}
.hero h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: .95; margin: 0; letter-spacing: .5px; }
.hero h1 .l1 { display: block; font-size: clamp(44px, 13vw, 66px); color: #fff; animation: slideIn .8s var(--ease) both .1s; }
.hero h1 .l2 { display: block; font-size: clamp(44px, 13vw, 66px); color: var(--orange); animation: slideIn .8s var(--ease) both .22s; text-shadow: 0 8px 30px rgba(255, 122, 26, .35); }
.hero .script {
  font-family: var(--font-script); font-size: clamp(30px, 9vw, 46px); color: #fff; margin: 4px 0 0 36px; display: inline-block;
  transform: rotate(-6deg); animation: fadeIn 1s var(--ease) both .45s;
}
.hero .swoosh { display: block; width: 170px; height: 14px; margin: 0 0 0 120px; color: var(--orange); }
.hero .swoosh path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1s var(--ease) forwards .8s; }
.hero-side {
  position: absolute; left: 20px; top: 330px; font-family: var(--font-script); font-size: 22px; line-height: 1.15;
  transform: rotate(-8deg); text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.hero-side span { display: block; animation: fadeUp .7s var(--ease) both; }
.hero-side span:nth-child(1) { animation-delay: .9s; } .hero-side span:nth-child(2) { animation-delay: 1s; }
.hero-side span:nth-child(3) { animation-delay: 1.1s; } .hero-side span:nth-child(4) { animation-delay: 1.2s; }

.search {
  position: relative; margin: -46px 16px 0; z-index: 2; animation: fadeUp .7s var(--ease) both .5s;
}
.search input {
  width: 100%; height: 52px; border-radius: 26px; border: 0; padding: 0 20px 0 50px;
  background: var(--cream); color: #1b1410; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.search input::placeholder { color: #8b7d72; }
.search input:focus { outline: none; box-shadow: 0 0 0 3px rgba(255, 122, 26, .55), 0 12px 30px rgba(0, 0, 0, .45); }
.search svg { position: absolute; left: 18px; top: 15px; color: #1b1410; }

.cat-circles { display: flex; gap: 14px; overflow-x: auto; padding: 22px 16px 6px; scrollbar-width: none; justify-content: space-between; }
.cat-circles::-webkit-scrollbar { display: none; }
.cat-circle { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 62px; font-size: 12.5px; font-weight: 500; }
.cat-circle .ring {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, var(--orange2), var(--orange) 55%, var(--orange-deep));
  box-shadow: 0 8px 20px rgba(255, 122, 26, .28), inset 0 -3px 0 rgba(0, 0, 0, .15);
  transition: transform .3s var(--spring), box-shadow .3s;
}
.cat-circle .ring svg { width: 32px; height: 32px; color: #fff; }
.cat-circle:hover .ring { transform: translateY(-4px) rotate(-6deg); box-shadow: 0 14px 26px rgba(255, 122, 26, .4); }
.cat-circle:active .ring { transform: scale(.92); }

.promo-banner {
  display: grid; grid-template-columns: 1.1fr 1fr; margin: 22px 16px 0; border-radius: var(--radius); overflow: hidden;
  min-height: 150px; position: relative; background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4); transition: transform .35s var(--ease);
}
.promo-banner:hover { transform: translateY(-3px); }
.promo-banner .txt {
  background: linear-gradient(135deg, var(--orange2), var(--orange) 50%, var(--orange-deep));
  padding: 18px 16px; position: relative; z-index: 1;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.promo-banner .k1 { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; display: block; }
.promo-banner .k2 { font-family: var(--font-display); font-size: 38px; line-height: .95; text-transform: uppercase; display: block; text-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.promo-banner .k3 { font-family: var(--font-display); font-size: 14px; text-transform: uppercase; color: #2a1305; display: block; margin-top: 4px; line-height: 1.1; }
.promo-banner .img { position: absolute; inset: 0 0 0 40%; }
.promo-banner .img img { transition: transform 1.2s var(--ease); }
.promo-banner:hover .img img { transform: scale(1.06); }
.promo-banner .go { position: absolute; z-index: 2; left: calc(55% - 22px); top: 50%; margin-top: -21px; }

.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 30px 16px 12px; }
.section-title h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 24px; margin: 0; letter-spacing: .3px; }
.section-title h2 em { font-style: normal; color: var(--orange); }
.section-title a { font-size: 13px; color: var(--orange2); font-weight: 600; }

.carousel { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.mini {
  flex: 0 0 158px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s; position: relative;
}
.mini:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, .45); }
.mini .ph { aspect-ratio: 1; }
.mini .body { padding: 10px 12px 12px; }
.mini .name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.mini .price { color: var(--orange); font-weight: 700; margin-top: 4px; }
.mini .add { position: absolute; right: 10px; bottom: 10px; }

/* ---------- Botones ---------- */
.round-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--orange2), var(--orange) 60%, var(--orange-deep)); color: #fff;
  box-shadow: 0 6px 16px rgba(255, 122, 26, .35);
  transition: transform .25s var(--spring), box-shadow .25s;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(255, 122, 26, .5); }
.round-btn:active { transform: scale(.88); }
.round-btn.sm { width: 34px; height: 34px; }
.round-btn.sm svg { width: 17px; height: 17px; }
.round-btn.dark { background: rgba(0, 0, 0, .55); box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .5); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 28px;
  font-weight: 700; font-size: 16px; background: linear-gradient(135deg, var(--orange2), var(--orange) 45%, var(--orange-deep)); color: #fff;
  box-shadow: 0 12px 28px rgba(255, 122, 26, .35); transition: transform .2s var(--ease), box-shadow .2s, opacity .2s;
  position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line2); box-shadow: none; }
.btn.wa { background: linear-gradient(135deg, #3be07f, #1fb35a); box-shadow: 0 12px 28px rgba(31, 179, 90, .35); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface2); border-radius: 22px; padding: 3px; border: 1px solid var(--line); }
.stepper button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, transform .2s var(--spring); }
.stepper button:hover { background: rgba(255, 255, 255, .08); }
.stepper button:active { transform: scale(.85); }
.stepper button.plus { background: var(--orange); }
.stepper svg { width: 16px; height: 16px; }
.stepper .q { min-width: 22px; text-align: center; font-weight: 700; }
.stepper .q.tick { animation: pop .35s var(--spring); }

/* ---------- Chips ---------- */
.chips { position: sticky; top: 64px; z-index: 20; display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px 12px; scrollbar-width: none; background: linear-gradient(var(--bg) 70%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 18px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px; background: var(--surface2); border: 1px solid var(--line); transition: background .25s, transform .2s, color .25s;
}
.chip:hover { background: #312925; }
.chip.on { background: var(--orange); border-color: var(--orange); box-shadow: 0 6px 16px rgba(255, 122, 26, .35); }

/* ---------- Grid de categorías ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.tile {
  position: relative; aspect-ratio: .92; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.tile .ph { position: absolute; inset: 0; }
.tile .ph img { transition: transform 1s var(--ease), opacity .6s, filter .6s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, .6); box-shadow: 0 16px 36px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 122, 26, .2); }
.tile:hover .ph img.loaded { transform: scale(1.08); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .88) 100%); }
.tile .meta { position: absolute; left: 12px; right: 56px; bottom: 12px; z-index: 1; }
.tile h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; text-transform: uppercase; line-height: 1; }
.tile p { margin: 4px 0 0; font-size: 12px; color: #ddd3cb; line-height: 1.25; }
.tile .round-btn { position: absolute; right: 10px; bottom: 12px; z-index: 1; width: 36px; height: 36px; }

/* ---------- Página de categoría ---------- */
.cat-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 0 16px 4px; }
.cat-head h1 { margin: 0; text-align: center; font-size: 22px; font-weight: 700; }
.cat-banner {
  position: relative; margin: 8px 16px 14px; border-radius: var(--radius); overflow: hidden; min-height: 168px;
  background: linear-gradient(135deg, var(--orange2), var(--orange) 45%, var(--orange-deep));
}
.cat-banner .ph { position: absolute; inset: 0 0 0 42%; background: none; }
.cat-banner .ph img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
.cat-banner .txt { position: relative; z-index: 1; padding: 22px 18px; max-width: 62%; }
.cat-banner .s1 { font-family: var(--font-script); font-size: 30px; line-height: 1; display: block; transform: rotate(-5deg); transform-origin: left; animation: slideIn .7s var(--ease) both .1s; }
.cat-banner .s2 { font-family: var(--font-script); font-size: 40px; line-height: 1.05; display: block; transform: rotate(-5deg); transform-origin: left; animation: slideIn .7s var(--ease) both .2s; word-break: break-word; }
.cat-banner .s3 { font-family: var(--font-display); font-size: 15px; text-transform: uppercase; color: #2a1305; display: block; margin-top: 12px; line-height: 1.15; animation: fadeIn .8s var(--ease) both .4s; }

.items { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), #161210); border: 1px solid var(--line); cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.item:hover { border-color: rgba(255, 122, 26, .45); transform: translateX(3px); }
.item .ph { width: 92px; height: 92px; border-radius: 14px; }
.item .row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.item h3 { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.2; }
.item .price { color: var(--orange); font-weight: 700; font-size: 17px; white-space: nowrap; }
.item .old { color: var(--muted); text-decoration: line-through; font-size: 12px; font-weight: 500; margin-right: 4px; }
.item p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item .act { align-self: center; }
.item.in-cart { border-color: rgba(255, 122, 26, .5); background: linear-gradient(180deg, #221813, #161210); }
.empty-note { text-align: center; color: var(--muted); padding: 50px 20px; }
.empty-note svg { width: 56px; height: 56px; color: var(--orange); opacity: .8; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }

/* ---------- Modal de plato ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.modal.open, .drawer.open { pointer-events: auto; }
.modal-backdrop, .drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s var(--ease); backdrop-filter: blur(3px); }
.open .modal-backdrop, .open .drawer-backdrop { opacity: 1; }
.modal-card {
  position: absolute; left: 50%; bottom: 0; width: 100%; max-width: var(--app-w); transform: translate(-50%, 105%);
  background: var(--bg2); border-radius: 26px 26px 0 0; overflow: hidden; transition: transform .5s var(--ease);
  max-height: 92vh; overflow-y: auto; border: 1px solid var(--line); border-bottom: 0;
}
.modal.open .modal-card { transform: translate(-50%, 0); }
.modal-card .ph { aspect-ratio: 1.25; }
.modal-card .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal-card .content { padding: 18px 20px calc(22px + env(safe-area-inset-bottom)); }
.modal-card h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 32px; text-transform: uppercase; letter-spacing: .3px; }
.modal-card .price { color: var(--orange); font-size: 24px; font-weight: 700; }
.modal-card p { color: var(--muted); margin: 8px 0 18px; }
.modal-card .bar { display: flex; gap: 12px; align-items: center; }
.modal-card .bar .btn { flex: 1; }
.modal-card .stepper { padding: 6px; }
.modal-card .stepper button { width: 38px; height: 38px; }
.field-note { width: 100%; margin-bottom: 16px; }

/* ---------- Drawer ---------- */
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(82vw, 320px); background: var(--bg2); border-right: 1px solid var(--line);
  transform: translateX(-102%); transition: transform .45s var(--ease); padding: calc(16px + env(safe-area-inset-top)) 18px 20px; overflow-y: auto;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-links a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; font-weight: 600; transition: background .2s, transform .25s var(--ease); }
.drawer-links a:hover { background: var(--surface2); transform: translateX(4px); }
.drawer-links a svg { width: 26px; height: 26px; color: var(--orange); }
.drawer-links hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.drawer.open .drawer-links a { animation: fadeRight .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 120ms); }

/* ---------- Bottom nav ---------- */
.bottomnav {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom));
  width: calc(100% - 24px); max-width: calc(var(--app-w) - 24px); height: var(--nav-h);
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cream); border-radius: 24px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.bottomnav a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #6d5f55; font-size: 11.5px; font-weight: 500; transition: color .3s; }
.bottomnav a svg { width: 24px; height: 24px; transition: transform .35s var(--spring); }
.bottomnav a.on { color: #fff; }
.bottomnav a.on svg { transform: translateY(-1px) scale(1.08); }
.nav-pill {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 4); border-radius: 19px;
  background: linear-gradient(135deg, var(--orange2), var(--orange) 50%, var(--orange-deep)); box-shadow: 0 8px 18px rgba(255, 122, 26, .45);
  transition: transform .5s var(--spring), opacity .3s;
}
.bottomnav .navbadge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* ---------- Pedido ---------- */
.page-title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 34px; margin: 4px 16px 14px; letter-spacing: .3px; }
.page-title em { font-style: normal; color: var(--orange); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 16px 14px; }
.card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card h3 .n { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 12px; }
.cart-line { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .ph { width: 54px; height: 54px; border-radius: 12px; }
.cart-line .nm { font-weight: 600; font-size: 14px; line-height: 1.2; }
.cart-line .pr { color: var(--orange); font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.cart-line.leaving { animation: leave .35s var(--ease) forwards; }
.totals { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { color: #fff; font-size: 20px; font-weight: 700; }
.totals .grand span:last-child { color: var(--orange); }

.f { display: grid; gap: 6px; margin-bottom: 12px; }
.f label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.f input, .f textarea {
  width: 100%; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--bg2); padding: 13px 14px; font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.f textarea { resize: vertical; min-height: 74px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 26, .15); }
.f.err input, .f.err textarea { border-color: var(--danger); animation: shake .4s; }
.f .msg { font-size: 12px; color: var(--danger); display: none; }
.f.err .msg { display: block; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--bg2);
  font-weight: 600; font-size: 14px; text-align: left; transition: border-color .25s, background .25s, transform .2s var(--ease);
  position: relative;
}
.opt svg { color: var(--orange); }
.opt:active { transform: scale(.97); }
.opt.on { border-color: var(--orange); background: rgba(255, 122, 26, .12); }
.opt.on::after { content: ''; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 122, 26, .25); animation: pop .35s var(--spring); }
.opts-err .opt { border-color: var(--danger); animation: shake .4s; }
.pay-info { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 122, 26, .08); border: 1px dashed rgba(255, 122, 26, .45); font-size: 13.5px; white-space: pre-line; animation: fadeUp .4s var(--ease) both; }
.pay-info b { color: var(--orange2); display: block; margin-bottom: 4px; }
.collapse { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease), opacity .4s; opacity: 0; }
.collapse > div { overflow: hidden; }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }

.sticky-cta { position: sticky; bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); padding: 0 16px; z-index: 10; }
.sticky-cta .btn { box-shadow: 0 14px 36px rgba(0, 0, 0, .55); }

.success { text-align: center; padding: 30px 20px; }
.success .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; margin: 10px auto 16px; animation: pop .6s var(--spring); box-shadow: 0 0 0 10px rgba(47, 197, 107, .15); }
.success .ok svg { width: 44px; height: 44px; color: #fff; }

/* ---------- Ubicación ---------- */
.map { margin: 0 16px 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); aspect-ratio: 1.3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.7) brightness(.95); }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.info-row svg { color: var(--orange); margin-top: 1px; }

/* ---------- Toast + vuelo al carrito ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 80;
  background: #fff; color: #1b1410; padding: 11px 18px; border-radius: 22px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: opacity .3s, transform .4s var(--spring); pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 90; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .5); border: 2px solid var(--orange); }
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Keyframes ---------- */
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeRight { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translate(-1.5%, -1%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pop { 0% { transform: scale(.4); } 100% { transform: scale(1); } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22) rotate(-8deg); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes dot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes leave { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; } }

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

@media (max-width: 370px) {
  .tile h3 { font-size: 20px; }
  .item { grid-template-columns: 76px 1fr auto; }
  .item .ph { width: 76px; height: 76px; }
  .opts { grid-template-columns: 1fr; }
}
