/* Alice Pizza Artesanal — menú para pedir.
   Mismo mundo que la página de hoy: crema, café oscuro y dorado; Playfair Display para títulos, DM Sans para leer. */
:root {
  --crema: #FAF7F2;
  --papel: #FFFDF9;
  --cafe: #1C1410;
  --cafe-2: #2B2019;
  --dorado: #C9A55A;
  --dorado-osc: #8A6A2B;
  --brown: #8B5E3C;
  --suave: #6B5B4E;
  --linea: rgba(28, 20, 16, .12);
  --wa: #128C4A;
  --rojo: #A3271B;
  --sombra: 0 10px 30px rgba(28, 20, 16, .10), 0 2px 6px rgba(28, 20, 16, .05);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fuera: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--cafe);
  font: 400 16px/1.5 var(--sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 88px;
}
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: var(--brown); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--dorado-osc); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.saltar { position: absolute; left: -999px; top: 8px; background: var(--cafe); color: var(--crema); padding: .6rem 1rem; border-radius: 999px; z-index: 50; }
.saltar:focus { left: 8px; }
.sobre { color: var(--dorado-osc); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* ─── Barra ─── */
.barra { position: sticky; top: 0; z-index: 20; background: rgba(28, 20, 16, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--crema); }
.barra-in { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; padding-left: max(1rem, env(safe-area-inset-left)); }
.marca { display: flex; align-items: center; gap: .6rem; color: var(--crema); text-decoration: none; min-width: 0; flex: 1; }
.marca img { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(201, 165, 90, .7); object-fit: cover; }
.marca span { font: 700 1.08rem/1.05 var(--serif); white-space: nowrap; }
.marca em { display: block; font-style: normal; font: 700 .62rem/1.3 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--dorado); }
.barra nav { display: flex; gap: .2rem; }
.barra nav a { color: rgba(250, 247, 242, .88); text-decoration: none; font-size: .88rem; font-weight: 600; padding: .5rem .55rem; border-radius: 999px; }
.barra nav a:hover { color: var(--dorado); }
.idioma { flex: none; border: 1.5px solid rgba(201, 165, 90, .75); background: transparent; color: var(--dorado); font-weight: 700; font-size: .8rem; letter-spacing: .1em; border-radius: 999px; min-width: 44px; min-height: 36px; padding: 0 .7rem; }
.idioma:hover { background: var(--dorado); color: var(--cafe); }
@media (max-width: 380px) { .barra nav a:first-child { display: none; } }

/* ─── Portada ─── */
.portada { max-width: 1080px; margin: 0 auto; padding: 1.6rem 1.15rem 1.2rem; display: grid; gap: 1.3rem; align-items: center; }
.portada h1 { font: 700 clamp(2.1rem, 9vw, 3.6rem)/1.04 var(--serif); margin: .55rem 0 .8rem; letter-spacing: -.01em; }
.portada h1 em { color: var(--brown); font-style: italic; display: block; }
.bajada { color: var(--suave); font-size: 1.04rem; max-width: 34rem; }
.datos-rapidos { margin: 1rem 0 1.25rem; display: grid; gap: .35rem; font-size: .93rem; color: var(--cafe-2); }
.datos-rapidos li { padding-left: 1.2rem; position: relative; }
.datos-rapidos li::before { content: ''; position: absolute; left: 0; top: .58em; width: 7px; height: 7px; border-radius: 50%; background: var(--dorado); }
.portada-foto { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--sombra); background: #e9dfcf; }
.portada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
@media (min-width: 820px) { .portada { grid-template-columns: 1.1fr .9fr; padding-top: 3rem; } .portada-foto { aspect-ratio: 4 / 5; } }

/* ─── Botones ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.35rem; border: 0; border-radius: 999px; background: var(--cafe); color: var(--crema); font-weight: 700; text-decoration: none; transition: transform .15s ease, background .2s ease; }
.btn:hover { background: var(--cafe-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-grande { min-height: 54px; font-size: 1.04rem; padding: .8rem 1.7rem; }
.btn-claro { background: transparent; color: var(--cafe); box-shadow: inset 0 0 0 1.5px var(--cafe); }
.btn-claro:hover { background: rgba(28, 20, 16, .06); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0e7a40; }

/* ─── Promos ─── */
.promo { max-width: 1080px; margin: 0 auto; padding: .8rem 1.15rem 0; }
.promo h2, .menu-cab h2 { font: 700 1.75rem/1.15 var(--serif); }
.promo-cards { display: grid; gap: .7rem; margin-top: .8rem; }
.promo-card { text-align: left; border: 1.5px solid var(--dorado); background: var(--papel); border-radius: 18px; padding: 1rem 1.1rem; display: grid; gap: .25rem; box-shadow: var(--sombra); }
.promo-card strong { font: 700 1.15rem/1.2 var(--serif); }
.promo-card .pc-d { color: var(--suave); font-size: .92rem; }
.promo-card b { color: var(--brown); font-size: 1.1rem; }

/* ─── Menú ─── */
.menu { max-width: 1080px; margin: 0 auto; padding: 1.6rem 0 1rem; }
.menu-cab { padding: 0 1.15rem; }
.aviso { color: var(--suave); font-size: .9rem; margin-top: .3rem; }
.cats { position: sticky; top: 56px; z-index: 10; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .75rem 1.15rem; background: rgba(250, 247, 242, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); margin-top: .6rem; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; border: 1.5px solid var(--linea); background: var(--papel); border-radius: 999px; padding: .45rem 1rem; min-height: 40px; font-weight: 600; font-size: .92rem; color: var(--cafe-2); }
.cats button[aria-pressed="true"] { background: var(--cafe); border-color: var(--cafe); color: var(--crema); }
.cargando { padding: 1.5rem 1.15rem; color: var(--suave); }
.grupo { padding: 1.3rem 1.15rem .4rem; scroll-margin-top: 112px; }
.grupo h3 { font: 700 1.45rem/1.2 var(--serif); margin-bottom: .75rem; display: flex; align-items: center; gap: .7rem; }
.grupo h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--dorado), transparent); }
.lista-platos { display: grid; gap: .7rem; }
@media (min-width: 760px) { .lista-platos { grid-template-columns: 1fr 1fr; } }
.plato { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: .9rem; align-items: start; text-align: left; width: 100%; padding: .7rem; border: 1px solid var(--linea); border-radius: 18px; background: var(--papel); box-shadow: 0 1px 2px rgba(28, 20, 16, .04); transition: transform .18s var(--fuera), box-shadow .18s ease, border-color .18s ease; }
.plato:hover { border-color: rgba(201, 165, 90, .7); box-shadow: var(--sombra); }
.plato:active { transform: scale(.985); }
.plato-foto { width: 96px; height: 112px; border-radius: 13px; overflow: hidden; background: #efe6d8; display: grid; place-items: center; }
.plato-foto img { width: 100%; height: 100%; object-fit: cover; }
.plato-foto.sin-foto { color: var(--brown); }
.plato-foto.sin-foto svg { width: 46px; height: 46px; }
.plato-txt { display: grid; gap: .2rem; min-width: 0; padding-right: 2.2rem; }
.plato-txt strong { font: 700 1.08rem/1.2 var(--serif); }
.plato-txt small { color: var(--suave); font-size: .86rem; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.plato-pie { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin-top: .25rem; }
.precio { font-weight: 700; font-size: 1.04rem; font-variant-numeric: tabular-nums; }
.o-puntos { color: var(--dorado-osc); font-size: .82rem; font-weight: 700; }
.mas { position: absolute; right: .7rem; bottom: .7rem; width: 34px; height: 34px; border-radius: 50%; background: var(--cafe); color: var(--crema); display: grid; place-items: center; font-size: 1.35rem; line-height: 1; }

/* ─── Banda de puntos ─── */
.puntos-banda { background: var(--cafe); color: var(--crema); margin-top: 1.6rem; padding: 2.4rem 1.15rem; }
.puntos-in { max-width: 680px; margin: 0 auto; display: grid; gap: .7rem; justify-items: start; }
.puntos-banda .sobre { color: var(--dorado); }
.puntos-banda h2 { font: 700 1.85rem/1.15 var(--serif); }
.puntos-banda p:not(.sobre) { color: rgba(250, 247, 242, .8); }
.puntos-banda .btn-claro { color: var(--dorado); box-shadow: inset 0 0 0 1.5px var(--dorado); margin-top: .4rem; }
.puntos-banda .btn-claro:hover { background: var(--dorado); color: var(--cafe); }

/* ─── Pie ─── */
.pie { text-align: center; padding: 2.2rem 1.15rem 1.5rem; display: grid; gap: .45rem; justify-items: center; color: var(--suave); font-size: .9rem; }
.pie-logo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: .3rem; }
.pie a { font-weight: 700; }
.nota-priv { max-width: 34rem; font-size: .8rem; margin-top: .4rem; }
.seqlogic-firma { margin-top: 1.1rem; display: grid; justify-items: center; gap: .25rem; }
.seqlogic-firma span { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.seqlogic-firma img { width: 150px; height: auto; }
.seqlogic-firma a { display: inline-block; transition: transform .3s ease; }
.seqlogic-firma a:hover { transform: scale(1.04); }
.seqlogic-firma.bota img { animation: bota .9s var(--fuera) 1; }
@keyframes bota { 0% { transform: translateY(14px) scale(.9); opacity: 0; } 55% { transform: translateY(-6px) scale(1.04); opacity: 1; } 78% { transform: translateY(2px) scale(.99); } 100% { transform: none; } }

/* ─── Barra del carrito ─── */
.carrito-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: .6rem .8rem; padding-bottom: max(.6rem, env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(250, 247, 242, .95) 35%); }
.cb-btn { width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: .8rem; min-height: 56px; border: 0; border-radius: 999px; background: var(--cafe); color: var(--crema); padding: .4rem .5rem .4rem .5rem; font-weight: 700; box-shadow: 0 10px 24px rgba(28, 20, 16, .28); }
.cb-n { min-width: 40px; height: 40px; border-radius: 999px; background: var(--dorado); color: var(--cafe); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cb-n.pop { animation: pop .35s var(--fuera); }
@keyframes pop { 40% { transform: scale(1.25); } }
.cb-txt { flex: 1; text-align: left; }
.cb-total { padding-right: 1rem; font-variant-numeric: tabular-nums; }

/* ─── Hojas (dialog) ─── */
.hoja { border: 0; padding: 0; width: min(560px, 100%); max-width: 100%; max-height: 92dvh; margin: auto auto 0; border-radius: 26px 26px 0 0; background: var(--papel); color: var(--cafe); box-shadow: 0 -10px 40px rgba(0, 0, 0, .25); overflow: auto; }
.hoja::backdrop { background: rgba(28, 20, 16, .55); }
.hoja[open] { animation: sube .32s var(--fuera); }
@keyframes sube { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) { .hoja { margin: auto; border-radius: 26px; } }
.cerrar { position: absolute; top: .7rem; right: .7rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(28, 20, 16, .72); color: #fff; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; z-index: 2; }
.hp-foto { position: relative; aspect-ratio: 16 / 11; background: #efe6d8; overflow: hidden; }
.hp-foto img { width: 100%; height: 100%; object-fit: cover; }
.hp-foto.sin-foto { aspect-ratio: auto; height: 64px; background: var(--cafe); }
.hp-cuerpo { padding: 1.1rem 1.15rem .4rem; }
.hp-cuerpo h2 { font: 700 1.6rem/1.15 var(--serif); padding-right: 2rem; }
.hp-pts { color: var(--dorado-osc); font-weight: 700; font-size: .9rem; margin-top: .25rem; }
#hp-d { color: var(--suave); margin: .5rem 0 1rem; }
.elige { border: 0; margin: 0 0 1rem; padding: 0; }
.elige legend { font-weight: 700; margin-bottom: .5rem; }
.elige-lista { display: grid; gap: .45rem; }
.elige-lista label { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .55rem .85rem; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; }
.elige-lista label:has(input:checked) { border-color: var(--dorado); background: #fbf5e8; }
.elige-lista input { width: 20px; height: 20px; accent-color: var(--cafe); }
.op-txt { flex: 1; }
.pr { color: var(--brown); font-weight: 700; }
.campo { display: grid; gap: .35rem; margin-bottom: .9rem; font-weight: 600; font-size: .94rem; }
.campo input { width: 100%; min-height: 48px; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; padding: .6rem .85rem; font-weight: 400; font-size: 1rem; }
.campo input:focus { outline: none; border-color: var(--dorado-osc); box-shadow: 0 0 0 3px rgba(201, 165, 90, .25); }
.hoja-pie { position: sticky; bottom: 0; display: flex; gap: .7rem; align-items: center; padding: .8rem 1.15rem; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); background: var(--papel); border-top: 1px solid var(--linea); }
.hoja-pie .btn { flex: 1; }
.paso { display: inline-flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px; background: #fff; }
.paso button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 700; }
.paso output { min-width: 1.6rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.hc-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.15rem .4rem; position: relative; }
.hc-top h2 { font: 700 1.6rem/1.2 var(--serif); }
.hc-top .cerrar { position: static; background: rgba(28, 20, 16, .08); color: var(--cafe); }
.hc-cuerpo { padding: 0 1.15rem 1.2rem; }
.lineas { display: grid; gap: .1rem; }
.lineas li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; padding: .75rem 0; border-bottom: 1px solid var(--linea); }
.lineas li.vacio { display: block; color: var(--suave); }
.lineas small { grid-column: 1 / -1; color: var(--suave); font-size: .85rem; }
.lp { font-weight: 700; font-variant-numeric: tabular-nums; }
.acciones { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: .3rem; }
.quitar { border: 0; background: transparent; color: var(--rojo); font-weight: 600; min-height: 44px; padding: 0 .4rem; }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; padding: .9rem 0 1rem; }
.total-fila b { font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.elige-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.elige-grid label { display: flex; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem .75rem; border: 1.5px solid var(--linea); border-radius: 14px; background: #fff; font-weight: 600; font-size: .95rem; }
.elige-grid label:has(input:checked) { border-color: var(--dorado); background: #fbf5e8; }
.elige-grid input { accent-color: var(--cafe); width: 18px; height: 18px; }
.campo-puntos { border: 1.5px dashed rgba(201, 165, 90, .9); border-radius: 16px; padding: .85rem .85rem .4rem; margin-bottom: 1rem; background: #fdf8ee; }
.campo-puntos .campo { margin-bottom: .45rem; }
.ayuda-pts { color: var(--dorado-osc); font-size: .85rem; font-weight: 600; margin-bottom: .45rem; }
.error { color: var(--rojo); background: #fbecea; border-radius: 12px; padding: .65rem .8rem; margin-bottom: .8rem; font-weight: 600; font-size: .93rem; }
#p-enviar { width: 100%; }
.priv { color: var(--suave); font-size: .8rem; margin-top: .7rem; text-align: center; }
.hm { position: relative; padding: 1.3rem 1.15rem 1.3rem; }
.hm h2 { font: 700 1.5rem/1.2 var(--serif); margin: .3rem 2.6rem .5rem 0; }
.hm-nota { color: var(--suave); margin-bottom: .8rem; }
.ticket { white-space: pre-wrap; word-break: break-word; background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: .9rem; font: .86rem/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; max-height: 38vh; overflow: auto; }
.hm-botones { display: grid; gap: .55rem; margin-top: 1rem; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 60; width: min(92vw, 460px); background: var(--cafe); color: var(--crema); border-radius: 14px; padding: .8rem 1rem; box-shadow: var(--sombra); font-weight: 600; }
