:root { --c: #e4572e; --ink: #1f1a14; --muted: #8a7a68; --line: #efe4d6; --bg: #fffaf3; --gold: #f5b301; --spring: cubic-bezier(.34, 1.56, .64, 1); }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
body.has-dock { padding-bottom: 92px; }
a { color: var(--c); }
button { font: inherit; }

.demo-bar { background: var(--ink); color: #fff; text-align: center; font-size: .85rem; padding: .6em; }
.demo-bar a { color: #ffb08f; font-weight: 700; }

/* Encabezado animado */
.mh { position: relative; overflow: hidden; text-align: center; padding: 2.6em 1.2em 2em; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 22%, #fff) 0%, var(--bg) 70%); }
.orb { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .45; pointer-events: none; }
.o1 { width: 180px; height: 180px; background: var(--c); top: -60px; left: -40px; animation: float 9s ease-in-out infinite; }
.o2 { width: 140px; height: 140px; background: #f2a541; top: 20px; right: -40px; animation: float 11s ease-in-out infinite reverse; }
.o3 { width: 100px; height: 100px; background: color-mix(in srgb, var(--c) 60%, #fff); bottom: -40px; left: 40%; animation: float 13s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, 14px) scale(1.12); } }
.mh > *:not(.orb) { position: relative; }
.mh-logo { width: 92px; height: 92px; border-radius: 28px; object-fit: cover; background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .35); animation: pop .7s var(--spring) both; }
.mh-ini { display: inline-grid; place-items: center; background: var(--c); color: #fff; font-weight: 800; font-size: 2rem; }
@keyframes pop { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.mh h1 { margin: .5em 0 .15em; font-size: 1.9rem; letter-spacing: -.02em; }
.mh p { margin: 0; color: var(--muted); }
.up { animation: up .6s ease both; }
.u1 { animation-delay: .15s; } .u2 { animation-delay: .25s; } .u3 { animation-delay: .35s; } .u4 { animation-delay: .45s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mh-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .45em 1em; margin-top: .9em; font-size: .85rem; color: #5b4f42; }
.mesa-chip { background: var(--ink); color: #fff; padding: .25em .8em; border-radius: 999px; font-weight: 700; }
.mh-social { display: flex; justify-content: center; gap: .6em; margin-top: 1em; }
.mh-social a { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .4); transition: transform .2s var(--spring), color .2s; }
.mh-social a:hover { transform: translateY(-3px) rotate(-6deg); color: var(--c); }

/* Promo */
.promo { position: relative; overflow: hidden; display: flex; align-items: center; gap: .7em; margin: 0 1em; max-width: 640px; margin-inline: auto; padding: .9em 1.1em; border-radius: 18px; background: var(--c); color: #fff; font-weight: 700; box-shadow: 0 14px 30px -16px var(--c); animation: up .6s .5s ease both; }
@media (max-width: 672px) { .promo { margin-inline: 1em; } }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s 1.2s ease-in-out infinite; }
@keyframes shine { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.promo-ic { font-size: 1.4rem; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-16deg) scale(1.15); } 85% { transform: rotate(14deg) scale(1.15); } }

/* Barra: buscador, categorías y filtros */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(255, 250, 243, .93); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: .7em 0 .55em; margin-top: 1em; }
.search { display: flex; align-items: center; gap: .5em; max-width: 640px; margin: 0 auto .55em; padding: 0 1em; color: var(--muted); }
.search input { flex: 1; border: 0; background: #f4ebdf; border-radius: 14px; padding: .7em .9em; font: inherit; color: var(--ink); outline: none; transition: box-shadow .2s, background .2s; }
.search input:focus { background: #fff; box-shadow: 0 0 0 2px var(--c); }
.mt, .chips { display: flex; gap: .4em; overflow-x: auto; padding: 0 1em; max-width: 640px; margin: 0 auto; scrollbar-width: none; }
.mt::-webkit-scrollbar, .chips::-webkit-scrollbar { display: none; }
.mt a { flex-shrink: 0; text-decoration: none; color: var(--ink); background: #f4ebdf; font-weight: 700; font-size: .85rem; padding: .45em 1em; border-radius: 999px; transition: background .25s, color .25s, transform .2s var(--spring); }
.mt a.on { background: var(--c); color: #fff; transform: scale(1.05); }
.chips { margin-top: .45em; }
.chip { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .35em .85em; font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .2s var(--spring); }
.chip.on { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-1px); }

/* Platos */
.mm { max-width: 640px; margin: 0 auto; padding: 0 1em 2em; }
.cat { padding-top: 1.4em; scroll-margin-top: 150px; }
.mm h2 { font-size: 1.2rem; margin: 0 0 .7em; }
.rv { opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .55s ease, transform .55s var(--spring); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
.mi { position: relative; display: flex; gap: .9em; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: .85em; margin-bottom: .6em; }
.mi.star { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: linear-gradient(135deg, #fffdf5, #fff); }
.mi.picked { border-color: var(--c); box-shadow: 0 10px 24px -18px var(--c); }
.mi img { width: 78px; height: 78px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.mi-t { flex: 1; min-width: 0; }
.mi-t b { display: block; }
.mi-t small { display: block; color: var(--muted); font-size: .85rem; margin-top: .15em; }
.mi-tags { display: flex; flex-wrap: wrap; gap: .3em; margin-top: .4em; }
.mi-tags i { font-style: normal; font-size: .7rem; font-weight: 700; background: #f7f1e8; padding: 2px 8px; border-radius: 999px; }
.mi-t em { display: inline-block; font-style: normal; font-size: .72rem; font-weight: 700; color: #c0392b; background: #fdecea; padding: 2px 8px; border-radius: 999px; margin-top: .35em; }
.mi-r { display: flex; flex-direction: column; align-items: flex-end; gap: .45em; flex-shrink: 0; }
.mi-p { font-weight: 800; color: var(--c); white-space: nowrap; }
.mi.off { opacity: .55; filter: grayscale(.4); }
.step { display: flex; align-items: center; gap: 0; background: #f4ebdf; border-radius: 999px; overflow: hidden; }
.step button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.2rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.step .st-minus, .step .st-n { display: none; }
.step .st-plus { background: var(--c); color: #fff; border-radius: 50%; transition: transform .2s var(--spring); }
.step .st-plus:active { transform: scale(.85); }
.step.has { background: color-mix(in srgb, var(--c) 14%, #fff); }
.step.has .st-minus, .step.has .st-n { display: inline-grid; place-items: center; }
.step .st-n { min-width: 22px; font-weight: 800; text-align: center; }
.fly { position: fixed; z-index: 60; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--c); pointer-events: none; animation: fly .65s cubic-bezier(.5, -.4, .7, 1) forwards; }
@keyframes fly { to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: .6; } }
.no-res, .empty { text-align: center; color: var(--muted); padding: 2.5em 0; }

/* Wi-Fi, pagos y calificación */
.wifi { display: flex; align-items: center; gap: .9em; margin-top: 1.6em; padding: 1em 1.1em; border-radius: 20px; background: var(--ink); color: #fff; }
.wifi-ic { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .1); }
.wifi > div:nth-child(2) { flex: 1; min-width: 0; }
.wifi small { color: #d9cbb8; font-size: .75rem; display: block; }
.wifi b { display: block; }
.wifi code { font-family: inherit; color: #ffb08f; font-weight: 700; }
.wifi .copy { background: #fff; color: var(--ink); }
.pays { margin-top: 1.4em; }
.pays-note { color: var(--muted); font-size: .88rem; margin: -.4em 0 .8em; }
.pm { display: flex; justify-content: space-between; align-items: center; gap: .8em; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: .9em 1em; margin-bottom: .6em; text-decoration: none; color: var(--ink); }
.pm b { display: block; }
.pm small { color: var(--muted); font-size: .78rem; }
.pm code { display: block; font-family: inherit; font-weight: 700; font-size: 1.02rem; margin-top: .15em; word-break: break-all; }
.pm.link { background: var(--c); border-color: var(--c); color: #fff; transition: transform .2s var(--spring); }
.pm.link:active { transform: scale(.98); }
.pm.link span { font-weight: 700; }
.copy { border: 0; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); font-weight: 700; font-size: .85rem; padding: .55em 1em; border-radius: 999px; cursor: pointer; flex-shrink: 0; transition: transform .2s var(--spring), background .2s; }
.copy.ok { background: #2a9d8f; color: #fff; transform: scale(1.06); }
.rate { margin-top: 1.6em; text-align: center; background: #fff; border: 1.5px dashed var(--line); border-radius: 22px; padding: 1.4em 1em; }
.rate p { margin: -.4em 0 .6em; color: var(--muted); }
.rate-stars { display: flex; justify-content: center; gap: .2em; }
.rate-stars button { border: 0; background: none; font-size: 2.1rem; line-height: 1; color: #e3d7c6; cursor: pointer; transition: transform .2s var(--spring), color .15s; padding: .05em; }
.rate-stars button:hover { transform: scale(1.18) rotate(-8deg); }
.rate-stars button.on { color: var(--gold); }
.rate-stars.big button { font-size: 2.8rem; }
.rate-stars button.pop { animation: starpop .45s var(--spring); }
@keyframes starpop { 50% { transform: scale(1.5) rotate(15deg); } }
.mf { text-align: center; color: var(--muted); font-size: .82rem; padding: 1.4em 1em 2.4em; }
.mf a { font-weight: 700; text-decoration: none; }

/* Dock inferior */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: .6em; justify-content: center; padding: .8em 1em calc(.8em + env(safe-area-inset-bottom)); pointer-events: none; }
.dock-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: .5em; border: 0; border-radius: 999px; padding: .95em 1.3em; font-weight: 800; white-space: nowrap; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); transition: transform .2s var(--spring); }
.dock-btn:active { transform: scale(.95); }
.dock-btn.main { background: var(--ink); color: #fff; flex: 1 1 0; min-width: 0; max-width: 420px; justify-content: center; }
.dock-btn.ghost { flex-shrink: 0; }
@media (max-width: 400px) {
  .dock-btn { padding: .9em 1em; gap: .4em; }
  .dock-btn.main .dock-total { display: none; }
}
.dock-btn.ghost { background: #fff; color: var(--ink); }
.dock-btn.enter { animation: dockin .55s var(--spring); }
@keyframes dockin { from { transform: translateY(120%); } }
.badge { background: var(--c); color: #fff; min-width: 24px; height: 24px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .8rem; padding: 0 6px; }
.badge.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
.dock-total { opacity: .8; font-weight: 700; }

/* Hojas inferiores */
.sheet { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(20, 14, 8, .45); opacity: 0; transition: opacity .3s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: .6em 1.3em calc(1.4em + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .45s var(--spring); }
.sheet.open { pointer-events: auto; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { width: 44px; height: 5px; border-radius: 9px; background: #e6dccd; margin: .2em auto 1em; }
.sheet h3 { margin: 0 0 1em; font-size: 1.25rem; }
.lines { display: grid; gap: .55em; margin-bottom: 1em; }
.line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8em; }
.line-step { display: flex; align-items: center; background: #f4ebdf; border-radius: 999px; }
.line-step button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.line-step b { min-width: 18px; text-align: center; }
.line-n { font-weight: 600; }
.line-s { font-weight: 800; color: var(--c); }
.muted-c { color: var(--muted); text-align: center; }
.field { display: grid; gap: .35em; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .9em; }
.field textarea, .field input { font: inherit; font-size: 1rem; border: 2px solid transparent; background: #f7f1e8; border-radius: 14px; padding: .75em .9em; resize: none; color: var(--ink); outline: none; }
.field textarea:focus, .field input:focus { background: #fff; border-color: var(--ink); }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; margin: .4em 0 1em; }
.sum b { font-size: 1.5rem; }
.big-btn { display: flex; align-items: center; justify-content: center; width: 100%; border: 0; border-radius: 16px; padding: 1em; font-weight: 800; font-size: 1rem; cursor: pointer; background: var(--ink); color: #fff; margin-bottom: .6em; text-decoration: none; transition: transform .15s; }
.big-btn:active { transform: scale(.98); }
.big-btn.wa { background: #25d366; }
.big-btn.ghost { background: #f4ebdf; color: var(--ink); }
.big-btn:disabled { opacity: .45; }
.big-btn.loading, .w-btn.loading { position: relative; color: transparent !important; }
.big-btn.loading::after, .w-btn.loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.w-btn.loading::after { border-color: rgba(0, 0, 0, .15); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.link { display: block; margin: .3em auto 0; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.w-btn { display: flex; flex-direction: column; align-items: center; gap: .4em; border: 2px solid var(--line); background: #fff; border-radius: 20px; padding: 1.3em .6em; font-weight: 800; cursor: pointer; transition: transform .2s var(--spring), border-color .2s; }
.w-btn span { font-size: 2.1rem; transition: transform .3s var(--spring); }
.w-btn:hover { border-color: var(--c); }
.w-btn:hover span { transform: scale(1.2) rotate(-10deg); }
.w-btn:active { transform: scale(.95); }
.done { text-align: center; padding: 1em 0 .4em; }
.done svg { width: 76px; height: 76px; }
.done circle { fill: none; stroke: #2a9d8f; stroke-width: 3; stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .6s ease forwards; }
.done path { fill: none; stroke: #2a9d8f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done p { font-weight: 700; font-size: 1.05rem; }
.sheet.full .sheet-panel { top: 0; max-height: none; max-width: none; border-radius: 0; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--c); color: #fff; padding: 2em 1.6em; }
.show-k { opacity: .85; font-weight: 700; margin: 0; }
.show-panel h2 { font-size: 2.6rem; margin: .1em 0 .6em; }
.show-line { display: flex; gap: .6em; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: .25em 0; }
.show-sum { margin: 1em 0 1.6em; font-size: 1.1rem; opacity: .9; }
.show-panel .big-btn { background: #fff; color: var(--ink); max-width: 360px; margin: 0 auto; }

/* Toast y confeti */
.toast { position: fixed; left: 50%; bottom: 100px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: .75em 1.2em; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transition: all .35s var(--spring); pointer-events: none; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); } }

/* Ubicación */
.mh-meta .addr { color: inherit; text-decoration: none; border-bottom: 1.5px dashed color-mix(in srgb, var(--c) 60%, transparent); }
.mh-meta .addr:hover { color: var(--c); }
.loc { margin-top: 1.6em; padding: 1.1em; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .35); scroll-margin: 90px; }
.loc.ping { animation: locping .9s var(--spring); }
@keyframes locping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 55%, transparent); transform: scale(.98); } 60% { transform: scale(1.01); } 100% { box-shadow: 0 0 0 18px transparent; transform: none; } }
.loc-head { display: flex; align-items: center; gap: .8em; margin-bottom: .9em; }
.loc-head h2 { margin: 0; font-size: 1.15rem; }
.loc-head p { margin: .15em 0 0; font-size: .85rem; color: var(--muted); }
.loc-pin { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.4rem; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, #fff); }
.loc.in .loc-pin { animation: pinbounce 1.1s var(--spring) .2s both; }
@keyframes pinbounce { 0% { transform: translateY(-26px) scale(.6); opacity: 0; } 55% { transform: translateY(0) scale(1.08); opacity: 1; } 75% { transform: translateY(-6px); } 100% { transform: none; } }
.loc-map { position: relative; height: 210px; border-radius: 16px; overflow: hidden; margin-bottom: .9em; background:
  linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 26px 26px,
  linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px) 0 0 / 26px 26px,
  color-mix(in srgb, var(--c) 7%, #f6efe4); }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s; }
.loc-map.ready iframe { opacity: 1; }
.loc-ph { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .6em; transition: opacity .4s; }
.loc-map.ready .loc-ph { opacity: 0; pointer-events: none; }
.loc-drop { font-size: 2.2rem; animation: drop 1.6s ease-in-out infinite; filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .18)); }
@keyframes drop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.loc-load { border: 0; border-radius: 999px; padding: .55em 1.1em; font: inherit; font-weight: 700; font-size: .85rem; background: #fff; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .35); cursor: pointer; }
.loc-map.on .loc-load { display: none; }
.loc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.loc-actions .big-btn { margin: 0; font-size: .9rem; padding: .85em .6em; text-align: center; }
.loc-actions .big-btn:first-child { background: var(--c); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
