:root {
  --acento: #0b7a53;
  --acento-texto: #ffffff;
  --fondo: #f6f6f3;
  --tarjeta: #ffffff;
  --texto: #1c1c1c;
  --suave: #6b6b66;
  --linea: #e6e5e0;
  --radio: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  -webkit-text-size-adjust: 100%;
}
body.sin-scroll { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.contenedor { max-width: 640px; margin: 0 auto; padding: 0 14px 120px; }

/* Cabecera */
.cabecera { display: flex; align-items: center; gap: 12px; padding: 22px 0 12px; }
.logo { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; flex: none; }
h1 { font-size: 1.4rem; margin: 0; line-height: 1.15; }
.lema { margin: 3px 0 0; color: var(--suave); font-size: .9rem; }

/* Tasa del día */
.tasas {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px;
  background: var(--tarjeta); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 10px 12px; font-size: .85rem;
}
.tasas .valores { display: flex; flex-direction: column; gap: 2px; }
.tasas small { color: var(--suave); }
.interruptor { display: inline-flex; border: 1px solid var(--linea); border-radius: 99px; overflow: hidden; }
.interruptor button { border: 0; background: transparent; padding: 6px 14px; font-size: .85rem; }
.interruptor button[aria-pressed="true"] { background: var(--acento); color: var(--acento-texto); }

/* Categorías */
.cats {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto;
  padding: 10px 0; margin-top: 6px; background: var(--fondo); scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 7px 14px; border-radius: 99px; background: var(--tarjeta);
  border: 1px solid var(--linea); color: var(--texto); text-decoration: none; font-size: .9rem;
}
section { scroll-margin-top: 62px; margin-top: 6px; }
section h2 { font-size: 1.1rem; margin: 14px 0 8px; }

/* Platos */
.plato {
  display: flex; gap: 12px; background: var(--tarjeta); border: 1px solid var(--linea);
  border-radius: var(--radio); padding: 10px; margin-bottom: 10px;
}
.plato.agotado { opacity: .6; }
.media {
  flex: 0 0 92px; height: 92px; border-radius: 10px; overflow: hidden; background: #e4e3de;
  display: flex; align-items: center; justify-content: center; font-size: 2.1rem;
}
.media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* Solo en demos: franja para saltar entre menús de ejemplo */
.demos {
  display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 14px; background: #1f1f1f; color: #bbb; font-size: .8rem; white-space: nowrap;
}
.demos::-webkit-scrollbar { display: none; }
.demos a { color: #fff; text-decoration: none; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.demos a[aria-current="page"] { background: #fff; color: #1f1f1f; font-weight: 700; }

/* Foto en grande */
.visor {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; cursor: zoom-out; overscroll-behavior: contain; animation: aparecer .18s ease;
}
.visor img { max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.visor-pie { color: #fff; margin: 12px 0 0; font-weight: 600; text-align: center; }
.visor .cerrar {
  position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16);
  color: #fff; font-size: 1.2rem;
}
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.cuerpo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plato h3 { font-size: 1rem; margin: 0 0 2px; }
.plato p { margin: 0; color: var(--suave); font-size: .85rem; line-height: 1.3; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px; margin: 5px 0 0; }
.etq { font-size: .72rem; padding: 2px 9px; border-radius: 99px; background: var(--linea); }
.etq.top { background: var(--acento); color: var(--acento-texto); }
.fila-precio { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.precio { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.precio b { font-size: 1.08rem; }
.precio span { color: var(--suave); font-size: .8rem; }

/* Botones */
.btn-mini {
  border: 1px solid var(--acento); background: transparent; color: var(--acento);
  border-radius: 99px; padding: 6px 14px; font-size: .85rem; font-weight: 600;
}
.btn {
  width: 100%; border: 0; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 1rem;
  background: var(--acento); color: var(--acento-texto);
}
.btn:disabled { background: #bdbdb7; color: #fff; cursor: not-allowed; }
.paso { display: inline-flex; align-items: center; gap: 10px; }
.paso button {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--acento);
  background: var(--tarjeta); color: var(--acento); font-size: 1.1rem; line-height: 1; padding: 0;
}
.paso b { min-width: 1.2em; text-align: center; }

/* Barra del pedido y hoja */
.barra-pedido {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 24px 14px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, transparent, var(--fondo) 40%);
}
.barra-pedido .btn { max-width: 612px; display: block; margin: 0 auto; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.velo { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.5); }
.hoja {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto;
  max-height: 92vh; overflow-y: auto; background: var(--tarjeta);
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
}
.hoja-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.hoja h2 { margin: 0; font-size: 1.2rem; }
.cerrar { border: 0; background: var(--linea); width: 34px; height: 34px; border-radius: 50%; }
.linea { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.linea-nombre { flex: 1; min-width: 0; font-size: .95rem; }
.linea-nombre small { display: block; color: var(--suave); font-size: .78rem; }
.linea > b { min-width: 3.4em; text-align: right; }
.totales { padding: 12px 0; }
.totales .grande { font-size: 1.3rem; font-weight: 800; color: var(--texto); }
.totales div { color: var(--suave); font-size: .9rem; }
.campo { display: block; margin: 12px 0 0; font-size: .85rem; color: var(--suave); }
.campo input, .campo textarea {
  display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--linea); background: #fff; color: var(--texto); font-size: 1rem;
}
.opciones { display: flex; gap: 8px; margin-top: 12px; }
.opciones button {
  flex: 1; padding: 11px; border-radius: 10px; border: 1px solid var(--linea); background: #fff; font-weight: 600;
}
.opciones button[aria-pressed="true"] { border-color: var(--acento); background: var(--acento); color: var(--acento-texto); }
.subtitulo { margin: 14px 0 0; font-size: .85rem; color: var(--suave); }
.pagos button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; }
.pagos button small { font-weight: 400; font-size: .76rem; opacity: .9; }
.extras { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .92rem; }
.extras label { display: inline-flex; align-items: center; gap: 6px; }
.aviso { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fff6e0; color: #6b4b00; font-size: .85rem; line-height: 1.35; }
.ayuda { margin: 8px 0 12px; color: var(--suave); font-size: .82rem; line-height: 1.35; }

/* Pie y pantallas sueltas */
.pie { margin-top: 18px; color: var(--suave); font-size: .78rem; line-height: 1.4; text-align: center; }
.pantalla { text-align: center; padding: 70px 10px; }
.pantalla h1 { margin-bottom: 8px; }
.pantalla p { color: var(--suave); }
.pantalla a.btn { display: block; text-decoration: none; max-width: 320px; margin: 18px auto 0; }
a.plato { color: inherit; text-decoration: none; }

/* Táctil: sin zoom por doble toque, sin menú al dejar el dedo y sin que la hoja arrastre la página */
button, a, label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .cats a { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.velo, .hoja { overscroll-behavior: contain; }
.linea.cero { opacity: .45; }
.btn.incompleto { opacity: .75; }
.ayuda.rojo { color: #b3261e; font-weight: 600; }

/* ---------- Diseño personalizado ---------- */
/* Foto del local de fondo, difuminada y oscurecida */
.hero { position: relative; overflow: hidden; margin: 0 -14px; padding: 36px 18px 30px; border-radius: 0 0 26px 26px; color: #fff; }
.hero-fondo { position: absolute; inset: -28px; background-size: cover; background-position: center; filter: blur(7px) saturate(1.15); transform: scale(1.1); }
.hero-velo { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(22, 8, 4, .30), rgba(22, 8, 4, .74)); }
.hero-contenido { position: relative; display: flex; align-items: center; gap: 14px; }
.hero .lema { color: rgba(255, 255, 255, .88); }
.hero .logo { border: 2px solid rgba(255, 255, 255, .9); }
.hero + .tasas { margin-top: 14px; }

/* Más carácter: títulos con serif, tarjetas con filo de color, precios en el color de la marca */
.personalizado h1, .personalizado section h2 { font-family: Georgia, "Times New Roman", serif; }
.personalizado h1 { font-size: 1.75rem; }
.personalizado section h2 { font-size: 1.4rem; color: var(--acento); margin: 10px 0 12px; }
.personalizado .plato { border-left: 4px solid var(--acento); border-radius: 10px; }
.personalizado .precio b { color: var(--acento); }

/* Separador vectorial de un solo color: abre cada sección */
.divisor { color: var(--acento); margin: 16px 0 4px; line-height: 0; }

/* Pasador: cada sección es una página y se cambia deslizando de lado */
.pager { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; margin: 0 -14px; scrollbar-width: none; overscroll-behavior-x: contain; transition: height .25s ease; }
.pager::-webkit-scrollbar { display: none; }
.pane { flex: 0 0 100%; min-width: 0; box-sizing: border-box; padding: 0 14px; scroll-snap-align: start; scroll-snap-stop: always; }
.cats .chip { flex: none; padding: 7px 14px; border-radius: 99px; background: var(--tarjeta); border: 1px solid var(--linea); color: var(--texto); font-size: .9rem; }
.cats .chip.activo { background: var(--acento); border-color: var(--acento); color: var(--acento-texto); font-weight: 700; }
