/* =============================================================
   Nozomi · Menú digital
   Marca: verde olivo del logo, crema de su menú, el terracota del
   fondo de sus fotos y café profundo. El ensō (círculo de pincel)
   de su logo es el hilo de todo el diseño.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --crema: #F3E8DC;          /* fondo de su menú */
  --crema-2: #EADAC8;
  --papel: #FBF6EF;
  --linea: rgba(74, 36, 33, .12);
  --olivo: #828C43;          /* el del logo */
  --olivo-osc: #5C6530;      /* botones y texto sobre claro (AA) */
  --olivo-claro: #C9D08E;    /* acentos sobre oscuro */
  --barro: #AF8777;          /* fondo de sus fotos */
  --barro-osc: #8A5C4D;
  --rosa: #BA7770;
  --cafe: #4A2421;
  --cafe-2: #6E4A44;
  --cafe-3: #8F726B;
  --noche: #2E1716;
  --noche-2: #3E2421;
  --noche-3: #4D2F2B;

  --sombra-1: 0 1px 2px rgba(74, 36, 33, .05), 0 8px 22px rgba(74, 36, 33, .07);
  --sombra-2: 0 2px 6px rgba(74, 36, 33, .08), 0 22px 44px rgba(74, 36, 33, .16);
  --radio: 18px;

  --sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --gutter: 16px;
  --ancho: 1180px;
  --barra-h: 112px;
  --washi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .14 0 0 0 0 .13 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scrollbar-gutter: stable; }
html.hoja-abierta { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cafe);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
input { font: inherit; color: inherit; }
::selection { background: var(--olivo); color: #fff; }
:focus-visible { outline: 3px solid var(--olivo); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
[lang="ja"] { font-family: var(--serif); }

.ico { width: 20px; height: 20px; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.no-js .js-only { display: none !important; }
.js .solo-sin-js { display: none !important; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1rem; background: var(--noche); color: var(--crema); border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Papel washi: una textura muy suave sobre los fondos claros */
.portada::before, main::before, .papel-hoja::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: var(--washi); opacity: .06; mix-blend-mode: multiply;
}

/* Sello (hanko) con el kanji de cada sección */
.sello {
  flex: none;
  display: grid; place-items: center;
  width: 42px; min-height: 54px; padding: 8px 0;
  border-radius: 9px;
  background: var(--barro-osc);
  color: var(--papel);
  rotate: -4deg;
  box-shadow: inset 0 0 0 2px var(--barro-osc), inset 0 0 0 3.5px rgba(251, 246, 239, .55);
}
.sello span {
  font: 800 15px/1.05 var(--serif);
  writing-mode: vertical-rl;
  letter-spacing: .04em;
}

/* Platillo sin foto: terracota de sus fotos con el ensō */
.sin-foto {
  position: relative;
  background-color: var(--barro);
  background-image: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .16), transparent 60%);
}
.sin-foto::after {
  content: "";
  position: absolute; inset: 26%;
  background: url("assets/img/marca/enso-crema.webp") center / contain no-repeat;
  opacity: .9;
}

/* =============================================================
   3. Botones
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 22px;
  border-radius: 999px;
  font: 600 15.5px/1.1 var(--sans);
  letter-spacing: .01em;
  text-align: center;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s, border-color .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 19px; height: 19px; }
.btn-olivo { background: var(--olivo-osc); color: var(--papel); box-shadow: 0 10px 24px rgba(92, 101, 48, .28); }
.btn-olivo-claro { background: var(--olivo-claro); color: var(--noche); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.btn-crema { background: var(--papel); color: var(--cafe); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.btn-contorno { border: 1.5px solid rgba(74, 36, 33, .28); color: var(--cafe); }
.btn-contorno-oscuro { border: 1.5px solid rgba(74, 36, 33, .22); color: var(--cafe); }
.btn-contorno-claro { border: 1.5px solid rgba(251, 246, 239, .5); color: var(--papel); }
.btn-grande { min-height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-ancho { flex: 1; padding: 0 14px; white-space: nowrap; }
.btn-texto {
  font: 600 14px/1 var(--sans); color: var(--olivo-osc);
  padding: 10px 6px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px;
}
.btn-texto--claro { color: var(--papel); }
.btn-icono {
  width: 50px; height: 50px; flex: none; border-radius: 50%;
  border: 1.5px solid var(--linea); display: grid; place-items: center; color: var(--cafe);
}
@media (hover: hover) {
  .btn-olivo:hover, .btn-crema:hover, .btn-olivo-claro:hover { transform: translateY(-2px); }
  .btn-contorno:hover, .btn-contorno-oscuro:hover { background: rgba(74, 36, 33, .05); }
  .btn-contorno-claro:hover { background: rgba(251, 246, 239, .1); }
}

/* Estado: abierto / cerrado ahora */
.estado {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 99px;
  background: rgba(92, 101, 48, .1); color: var(--olivo-osc);
  font: 600 13.5px/1.2 var(--sans);
}
.estado-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--olivo); box-shadow: 0 0 0 0 rgba(130, 140, 67, .5); }
.estado.is-abierto .estado-punto { animation: latido 2.2s ease-out infinite; }
.estado.is-cerrado { background: rgba(138, 92, 77, .12); color: var(--barro-osc); }
.estado.is-cerrado .estado-punto { background: var(--barro); }
.estado--claro { background: rgba(251, 246, 239, .12); color: var(--papel); }
.estado--claro.is-cerrado { background: rgba(251, 246, 239, .1); color: var(--papel); }
.estado--claro .estado-punto { background: var(--olivo-claro); }

/* =============================================================
   4. Portada
   ============================================================= */
.portada {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 26px) var(--gutter) 30px;
  background:
    radial-gradient(90% 60% at 50% 30%, rgba(255, 255, 255, .55), transparent 70%),
    var(--crema);
  text-align: center;
}
.portada-vertical {
  position: absolute; z-index: 0; right: -.08em; top: 50%;
  translate: 0 -50%;
  writing-mode: vertical-rl;
  font: 800 clamp(150px, 34vh, 340px)/1 var(--serif);
  color: var(--barro);
  opacity: .1;
  pointer-events: none;
  animation: aparecer 2s ease-out .6s backwards;
}
.portada-inner { position: relative; z-index: 1; width: 100%; max-width: 640px; display: flex; flex-direction: column; align-items: center; }
.portada-arte {
  --arte: min(68vw, 38svh, 400px);
  position: relative;
  width: var(--arte); aspect-ratio: 1;
  margin-bottom: clamp(10px, 2.4vh, 22px);
}
.ventana {
  position: absolute; inset: 20%;
  border-radius: 50%; overflow: hidden;
  background: var(--barro);
  box-shadow: 0 24px 50px rgba(74, 36, 33, .22), inset 0 0 0 1px rgba(74, 36, 33, .08);
  animation: ventanaEntra 1.1s var(--ease-out) .5s backwards;
}
.ventana img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.2s ease, transform 6.5s ease-out;
}
.ventana img.is-activa { opacity: 1; transform: scale(1); }
.ventana-toque { position: absolute; inset: 0; z-index: 2; border-radius: 50%; }
.enso { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.enso-trazo { fill: var(--olivo); }
.enso-hebras { stroke: var(--olivo); opacity: .75; }
.enso-gotas { fill: var(--olivo); animation: aparecer .6s ease-out 1.75s backwards; }
.enso-guia { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: pincel 1.5s cubic-bezier(.55, .1, .3, 1) .15s forwards; }
.no-js .enso-guia { stroke-dashoffset: 0; animation: none; }

.portada-textos { display: flex; flex-direction: column; align-items: center; }
.portada-lugar {
  font: 600 11.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--barro-osc);
  margin-bottom: 14px;
  animation: subir .8s var(--ease-out) .55s backwards;
}
.portada-titulo { width: min(74vw, 360px); animation: subir .9s var(--ease-out) .7s backwards; }
.portada-titulo img { width: 100%; }
.portada-sobre {
  max-width: 34ch; margin-top: 14px;
  font: 400 16px/1.5 var(--sans); color: var(--cafe-2);
  animation: subir .9s var(--ease-out) .8s backwards;
}
.portada-textos .estado { margin-top: 16px; animation: subir .9s var(--ease-out) .9s backwards; }
.portada-acciones {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  width: min(100%, 340px); margin-top: 20px;
  animation: subir .9s var(--ease-out) 1s backwards;
}
.portada-acciones .btn { flex: 1 1 100%; }
.portada-pregunta {
  margin-top: 16px;
  font: 800 19px/1.2 var(--serif); color: var(--cafe);
  animation: subir .9s var(--ease-out) .95s backwards;
}
.portada-pregunta + .portada-acciones { margin-top: 12px; }
.portada-deseo {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 8px; padding: 8px 6px;
  font: 500 14.5px/1.2 var(--sans); color: var(--cafe-2);
  animation: subir .9s var(--ease-out) 1.05s backwards;
}
.portada-deseo .ico { width: 18px; height: 18px; color: var(--olivo-osc); }
.portada-deseo b { font-weight: 600; color: var(--olivo-osc); text-decoration: underline; text-underline-offset: 3px; }
.portada-plato {
  min-height: 1.4em; margin-top: 6px;
  font: italic 500 13px/1.4 var(--sans); color: var(--cafe-3);
  transition: opacity .5s;
}
.portada-plato b { font-style: normal; font-weight: 600; color: var(--cafe-2); }

/* =============================================================
   5. Barra fija (buscador + chips)
   ============================================================= */
.barra {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 232, 220, .97);
  border-bottom: 1px solid var(--linea);
  box-shadow: 0 6px 20px rgba(74, 36, 33, .05);
}
@supports (backdrop-filter: blur(12px)) {
  .barra { background: rgba(243, 232, 220, .9); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.barra-fila {
  display: flex; align-items: center; gap: 8px;
  width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto;
  padding: 10px 0 6px;
}
.barra-marca { display: none; flex: none; margin-right: 8px; }
.barra-marca img { width: 118px; }
.buscador {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 6px 0 14px;
  border-radius: 999px;
  background: var(--papel);
  box-shadow: inset 0 0 0 1px var(--linea);
  color: var(--cafe-3);
  transition: box-shadow .2s, background-color .2s;
}
.buscador:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--olivo-osc); color: var(--cafe); }
.buscador input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font: 500 15px var(--sans); color: var(--cafe);
  -webkit-appearance: none; appearance: none;
}
.buscador input::placeholder { color: var(--cafe-3); }
.buscador input::-webkit-search-cancel-button { display: none; }
.buscador-borrar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--cafe-2); }
.buscador-borrar .ico { width: 16px; height: 16px; }
.barra-boton {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--noche); color: var(--papel);
  transition: transform .2s var(--ease-out);
}
.barra-boton:active { transform: scale(.94); }
.barra-boton--olivo { background: var(--olivo-osc); }
.barra-badge {
  position: absolute; top: -3px; right: -3px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
  background: var(--olivo); color: #fff; border: 2px solid var(--crema);
  font: 700 10.5px/15px var(--sans); text-align: center;
}
.barra-chips { display: flex; align-items: flex-start; width: min(100%, var(--ancho)); margin: 0 auto; }
.modo-chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; margin: 4px 0 0 var(--gutter); padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--noche); color: var(--papel);
  font: 600 13.5px/1 var(--sans);
}
.modo-chip .ico { width: 18px; height: 18px; }
.chips {
  position: relative; flex: 1; min-width: 0;
  display: flex; gap: 6px;
  overflow-x: auto; overflow-y: hidden;
  padding: 4px var(--gutter) 10px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center;
  height: 34px; padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--linea);
  font: 500 14px/1 var(--sans);
  color: var(--cafe-2);
  transition: background-color .25s, color .25s, border-color .25s, opacity .25s;
}
.chip.is-activo { background: var(--olivo-osc); border-color: var(--olivo-osc); color: var(--papel); }
.chip.is-apagado { opacity: .35; }
@media (hover: hover) { .chip:not(.is-activo):hover { border-color: rgba(74, 36, 33, .35); color: var(--cafe); } }
.barra-resumen {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto;
  padding: 0 0 8px;
  font: 500 13.5px/1.3 var(--sans); color: var(--cafe-2);
}
.barra-resumen .btn-texto { padding: 6px 2px; font-size: 13px; flex: none; }

/* =============================================================
   6. Secciones
   ============================================================= */
main { position: relative; display: block; background: var(--crema); outline: none; }
.seccion { position: relative; z-index: 1; padding: 46px 0 30px; scroll-margin-top: calc(var(--barra-h) - 2px); }
.seccion-inner { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 0 auto; }
.seccion.is-vacia { display: none; }
.seccion-cabeza { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.seccion-textos { min-width: 0; padding-top: 2px; }
.seccion-lectura { font: 600 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olivo-osc); }
.seccion-lectura [lang="ja"] { letter-spacing: .05em; font-weight: 800; }
.seccion-titulo { margin-top: 6px; font: 800 clamp(30px, 8.4vw, 48px)/1.04 var(--serif); letter-spacing: -.01em; color: var(--cafe); }
.seccion-nota { margin-top: 8px; max-width: 58ch; font: 400 15px/1.5 var(--sans); color: var(--cafe-2); }

/* Creaciones Nozomi: de noche, como galería */
.seccion--galeria { background: var(--noche); color: var(--papel); overflow: clip; padding-top: 54px; padding-bottom: 40px; }
.seccion--galeria::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: max(560px, 120vmin); aspect-ratio: 1; right: -38%; top: -10%;
  background: url("assets/img/marca/enso-crema.webp") center / contain no-repeat;
  opacity: .05; rotate: 18deg;
}
.seccion--galeria .seccion-titulo { color: var(--papel); }
.seccion--galeria .seccion-lectura { color: var(--olivo-claro); }
.seccion--galeria .seccion-nota { color: rgba(251, 246, 239, .78); }
.seccion--galeria .sello { background: var(--olivo); box-shadow: inset 0 0 0 2px var(--olivo), inset 0 0 0 3.5px rgba(251, 246, 239, .6); }

.envuelto { margin: -4px 0 18px; }
.envuelto-titulo { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font: 600 13px/1 var(--sans); letter-spacing: .06em; color: var(--olivo-claro); }
.envuelto-titulo .ico { width: 17px; height: 17px; }
.envuelto-chips {
  display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px;
  -webkit-overflow-scrolling: touch;
}
.envuelto-chips::-webkit-scrollbar { display: none; }
.envuelto-chip {
  flex: none; height: 36px; padding: 0 14px; border-radius: 99px;
  border: 1.5px solid rgba(251, 246, 239, .3); color: var(--papel);
  font: 500 14px/1 var(--sans);
  transition: background-color .2s, color .2s, border-color .2s;
}
.envuelto-chip[aria-pressed="true"] { background: var(--olivo-claro); border-color: var(--olivo-claro); color: var(--noche); }

/* Bebidas: de olivo, como barra */
.seccion--bebidas { background: var(--olivo-osc); color: var(--papel); padding-bottom: 46px; }
.seccion--bebidas .seccion-titulo { color: var(--papel); }
.seccion--bebidas .seccion-lectura { color: var(--olivo-claro); }
.seccion--bebidas .sello { background: var(--noche-2); box-shadow: inset 0 0 0 2px var(--noche-2), inset 0 0 0 3.5px rgba(251, 246, 239, .5); }

.grupo + .grupo { margin-top: 26px; }
.grupo-cabeza { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.grupo-titulo { font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olivo-osc); }
.grupo-nota { font: 500 13px/1 var(--sans); color: var(--cafe-3); }
.grupo.is-vacio, .bebidas-grupo.is-vacio { display: none; }
.seccion-vacia { display: none; }

/* Invitación al omikuji (entre secciones) */
.invitacion {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 16px;
  width: min(100% - 2 * var(--gutter), var(--ancho)); margin: 26px auto 4px;
  padding: 18px;
  border-radius: 22px;
  background: var(--papel);
  box-shadow: var(--sombra-1), inset 0 0 0 1px var(--linea);
}
.invitacion-caja {
  width: 54px; height: 64px; position: relative;
  background: linear-gradient(90deg, #A9703F, #D49A62 55%, #B07643);
  clip-path: polygon(12% 12%, 88% 12%, 100% 20%, 100% 92%, 88% 100%, 12% 100%, 0 92%, 0 20%);
  border-radius: 4px;
}
.invitacion-caja::before {
  content: ""; position: absolute; left: 50%; top: -10px; width: 6px; height: 26px; margin-left: -3px;
  background: #EAD7AE; border-radius: 2px;
  animation: palitoAsoma 3.2s var(--ease-out) infinite;
}
.invitacion-caja span { position: absolute; left: 34%; right: 34%; top: 30%; bottom: 16%; background: #F7EFE2; border-radius: 2px; }
.invitacion-titulo { font: 800 20px/1.15 var(--serif); color: var(--cafe); }
.invitacion-texto p:last-child { margin-top: 3px; font: 400 14px/1.45 var(--sans); color: var(--cafe-2); }
.invitacion .btn { grid-column: 1 / -1; }

/* =============================================================
   7. Platillos
   ============================================================= */
.lista { display: grid; gap: 10px; }
.plato {
  position: relative;
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 13px;
  padding: 10px;
  background: var(--papel);
  color: var(--cafe);
  border-radius: var(--radio);
  box-shadow: var(--sombra-1);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .6s var(--ease-out);
}
.plato.is-oculto { display: none !important; }
.plato-toque { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.plato-foto {
  position: relative; overflow: hidden;
  aspect-ratio: 1; align-self: start;
  border-radius: 13px;
  background: var(--barro);
}
.plato-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.plato-cuerpo { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.plato-titulo { display: flex; align-items: flex-start; gap: 6px; }
.plato-nombre { font: 600 16.5px/1.18 var(--sans); letter-spacing: .005em; }
.marcas { display: flex; gap: 2px; flex: none; margin-top: 0; }
.marca .ico { width: 17px; height: 17px; }
.marca--favorito .ico { color: var(--rosa); }
.marca--picosito .ico { color: #B5452F; }
.marca--nuevo .ico { color: var(--olivo); }
.plato-desc {
  font: 400 13.5px/1.42 var(--sans); color: var(--cafe-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.plato-opciones { font: 600 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--cafe-3); }
.plato-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
.precio { font: 600 19px/1 var(--sans); letter-spacing: -.01em; color: var(--cafe); white-space: nowrap; }
.precio-signo { font-size: .62em; vertical-align: .5em; margin-right: 1px; }
.solo-mesa { display: none; max-width: 92px; font: 600 11.5px/1.2 var(--sans); color: var(--barro-osc); text-align: right; }
html[data-pedido="domicilio"] [data-solo-mesa] .plato-mas { display: none; }
html[data-pedido="domicilio"] [data-solo-mesa] .solo-mesa { display: block; }
.precio--texto { font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--olivo-osc); }
.plato-mas {
  position: relative; z-index: 2; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--olivo-osc); color: var(--papel);
  box-shadow: 0 6px 14px rgba(92, 101, 48, .28);
  transition: transform .3s var(--ease-bounce), background-color .2s;
}
.plato-mas .ico { width: 18px; height: 18px; }
.plato-mas:active { transform: scale(.88); }
.plato-cuenta {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--noche); color: var(--papel); border: 2px solid var(--papel);
  font: 700 11px/16px var(--sans); text-align: center;
  transform: scale(0); transition: transform .3s var(--ease-bounce);
}
.plato-mas.tiene .plato-cuenta { transform: scale(1); }
@media (hover: hover) {
  .plato:hover { transform: translateY(-2px); box-shadow: var(--sombra-2); }
  .plato:hover .plato-foto img { transform: scale(1.05); }
}

/* Tarjetas de la galería */
.galeria { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.plato--tarjeta {
  display: flex; flex-direction: column; gap: 0;
  padding: 0; overflow: hidden;
  background: var(--noche-2); color: var(--papel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
}
.plato--tarjeta .plato-foto { border-radius: 0; }
.plato--tarjeta .plato-cuerpo { flex: 1; padding: 11px 12px 12px; gap: 5px; }
.plato--tarjeta .plato-nombre { font: 800 18px/1.1 var(--serif); }
.plato--tarjeta .plato-desc { color: rgba(251, 246, 239, .7); font-size: 12.5px; -webkit-line-clamp: 3; }
.plato--tarjeta .precio { color: var(--olivo-claro); }
.plato--tarjeta .plato-mas { width: 38px; height: 38px; background: var(--olivo-claro); color: var(--noche); box-shadow: none; }
.plato--tarjeta .plato-cuenta { border-color: var(--noche-2); background: var(--papel); color: var(--noche); }
.plato--tarjeta .marca .ico { width: 16px; height: 16px; }
.plato--tarjeta .marca--favorito .ico { color: #E7A9A1; }
.plato--tarjeta .marca--picosito .ico { color: #F08A6C; }
/* la primera tarjeta va a lo ancho: así la cuadrícula cierra pareja */
.plato--destacado { grid-column: 1 / -1; }
.plato--destacado .plato-foto { aspect-ratio: 16 / 10; }
.plato--destacado .plato-nombre { font-size: 24px; }
.plato--destacado .plato-desc { font-size: 13.5px; -webkit-line-clamp: 2; }
.tarjeta-corte {
  position: absolute; top: 9px; left: 9px; z-index: 1;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(46, 23, 22, .55); color: var(--papel);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.tarjeta-corte .ico { width: 17px; height: 17px; }
@media (hover: hover) { .plato--tarjeta:hover { box-shadow: 0 22px 40px rgba(0, 0, 0, .35); } }

/* Variantes (brochetas, yakimeshi, teppanyaki) */
.variantes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plato--variante { display: flex; flex-direction: column; gap: 10px; }
.plato--variante .plato-foto { width: 100%; }
.plato--variante .plato-cuerpo { padding: 0 2px 2px; flex: 1; }
.plato--variante .plato-desc { -webkit-line-clamp: 3; font-size: 12.5px; }

/* Bebidas */
.bebidas { display: grid; gap: 28px; }
.bebidas-grupo .grupo-titulo { color: var(--olivo-claro); margin-bottom: 6px; }
.plato--bebida {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 12px;
  padding: 11px 0; border-radius: 0;
  background: none; color: var(--papel); box-shadow: none;
  border-bottom: 1px solid rgba(251, 246, 239, .14);
}
.plato--bebida.con-foto { grid-template-columns: 46px minmax(0, 1fr) auto auto; }
.plato--bebida .plato-toque { border-radius: 10px; }
.bebida-foto { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: var(--noche-2); }
.bebida-foto img { width: 100%; height: 100%; object-fit: cover; }
.bebida-cuerpo { min-width: 0; }
.plato--bebida .plato-nombre { font-size: 16px; }
.bebida-desc { font: 400 13px/1.35 var(--sans); color: rgba(251, 246, 239, .72); margin-top: 2px; }
.bebida-puntos { display: none; }
.plato--bebida .precio { color: var(--papel); font-size: 17px; }
.plato--bebida .precio--texto { color: var(--olivo-claro); font-size: 12.5px; }
.plato--bebida .plato-mas { width: 36px; height: 36px; background: var(--papel); color: var(--olivo-osc); box-shadow: none; }
.plato--bebida .plato-mas .ico { width: 16px; height: 16px; }
.plato--bebida .solo-mesa { max-width: 74px; color: var(--olivo-claro); }
.plato--bebida .plato-cuenta { background: var(--noche); border-color: var(--olivo-osc); }
.plato--bebida .marca--favorito .ico { color: #F2C2BB; }
.plato--bebida .marca--nuevo .ico { color: var(--olivo-claro); }
@media (hover: hover) { .plato--bebida:hover { transform: none; box-shadow: none; background: rgba(251, 246, 239, .04); } }

/* Sin resultados */
.sin-resultados {
  position: relative; z-index: 1;
  width: min(100% - 2 * var(--gutter), 480px); margin: 0 auto; padding: 56px 0 40px;
  text-align: center; color: var(--cafe-2);
}
.sin-resultados img { width: 80px; margin: 0 auto 12px; opacity: .85; }
.sin-resultados-titulo { font: 800 26px/1.2 var(--serif); color: var(--cafe); margin-bottom: 4px; }
.sin-resultados-botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* Aparición al hacer scroll */
.con-revelado .plato:not(.is-visto), .con-revelado .seccion-cabeza:not(.is-visto) { opacity: 0; transform: translateY(16px); }
.con-revelado .plato, .con-revelado .seccion-cabeza { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .5s var(--ease-out); }

/* =============================================================
   8. Visítanos y pie
   ============================================================= */
.visita { position: relative; padding: 48px 0 52px; background: var(--barro-osc); color: var(--papel); scroll-margin-top: calc(var(--barra-h) - 2px); }
.seccion-cabeza--clara .seccion-titulo { color: var(--papel); }
.seccion-cabeza--clara .seccion-lectura { color: #F1D9CF; }
.seccion-cabeza--clara .sello { background: var(--noche-2); box-shadow: inset 0 0 0 2px var(--noche-2), inset 0 0 0 3.5px rgba(251, 246, 239, .5); }
.visita-grid { display: grid; gap: 14px; }
.visita-lugar, .visita-horario { padding: 20px; border-radius: 22px; background: rgba(46, 23, 22, .22); box-shadow: inset 0 0 0 1px rgba(251, 246, 239, .12); }
.visita-dir { font: 800 22px/1.25 var(--serif); }
.visita-ciudad { margin-top: 4px; font: 500 15px/1.4 var(--sans); color: rgba(251, 246, 239, .8); }
.visita-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.visita-acciones .btn { flex: 1 1 auto; min-height: 46px; padding: 0 16px; font-size: 14.5px; }
.visita-acciones .btn-crema { flex-basis: 100%; }
.visita-subtitulo { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #F1D9CF; }
.visita-subtitulo .ico { width: 18px; height: 18px; }
.visita-horario .estado { margin-top: 14px; }
.horario { margin-top: 12px; }
.horario li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 2px; border-bottom: 1px solid rgba(251, 246, 239, .12);
  font: 400 15px/1.3 var(--sans); color: rgba(251, 246, 239, .86);
}
.horario li:last-child { border-bottom: 0; }
.horario li.is-hoy { font-weight: 600; color: var(--papel); }
.horario li.is-hoy span:first-child::after { content: " · hoy"; font-weight: 500; color: var(--olivo-claro); }

.pie {
  position: relative; overflow: clip;
  padding: 50px var(--gutter) calc(110px + env(safe-area-inset-bottom, 0px));
  background: var(--noche); color: var(--papel);
  text-align: center;
}
.pie-enso { width: 54px; margin: 0 auto 14px; opacity: .9; }
.pie-palabra { width: min(52vw, 200px); margin: 0 auto; }
.pie-lema { margin: 8px 0 22px; font: 600 11.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--olivo-claro); }
.pie-legal { font: 400 12.5px/1.6 var(--sans); color: rgba(251, 246, 239, .6); }

/* =============================================================
   9. Mi orden (flotante) y avisos
   ============================================================= */
.mi-orden {
  position: fixed; z-index: 45;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  width: max-content; height: 60px; padding: 0 20px 0 11px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--noche); color: var(--papel);
  box-shadow: 0 16px 36px rgba(46, 23, 22, .4);
  transform: translate(-50%, 160%);
  opacity: 0;
  pointer-events: none;
  transition: transform .55s var(--ease-bounce), opacity .3s;
}
.mi-orden.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.mi-orden.bump { animation: bump .5s var(--ease-bounce); }
.mi-orden-icono { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--olivo); display: grid; place-items: center; }
.mi-orden-icono .ico { width: 21px; height: 21px; }
.mi-orden-cuenta {
  position: absolute; top: -5px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--papel); color: var(--noche);
  font: 700 11px/20px var(--sans); text-align: center;
}
.mi-orden-texto { font: 600 15.5px/1 var(--sans); }
.mi-orden-total { font: 700 15.5px/1 var(--sans); color: var(--olivo-claro); padding-left: 12px; border-left: 1px solid rgba(251, 246, 239, .22); }
.volador {
  position: fixed; left: 0; top: 0; z-index: 46;
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
  pointer-events: none;
}
.volador img { width: 100%; height: 100%; object-fit: cover; }

.aviso {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  max-width: calc(100% - 32px);
  padding: 12px 16px; border-radius: 14px;
  background: var(--noche); color: var(--papel);
  font: 500 14px/1.35 var(--sans);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease-out), opacity .25s;
}
.aviso.is-visible { transform: translate(-50%, 0); opacity: 1; }
dialog .aviso { position: absolute; bottom: 96px; }
.omikuji .aviso, .mesero .aviso { position: fixed; background: var(--papel); color: var(--cafe); }

/* =============================================================
   10. Hojas (diálogos)
   ============================================================= */
dialog { color: inherit; }
.hoja {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: min(92svh, 900px);
  margin: 0; padding: 0; border: 0;
  border-radius: 26px 26px 0 0;
  background: var(--papel); color: var(--cafe);
  overflow: hidden;
  transform: translateY(105%);
  transition: transform .5s var(--ease-out);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18);
}
.hoja[open] { display: flex; flex-direction: column; }
.hoja.is-open { transform: none; }
.hoja::backdrop { background: rgba(46, 23, 22, 0); transition: background-color .35s; }
.hoja.is-open::backdrop { background: rgba(46, 23, 22, .55); }
.hoja-agarradera {
  position: absolute; top: 0; left: 50%; z-index: 5;
  width: 100px; height: 26px; margin-left: -50px;
  touch-action: none; cursor: grab;
}
.hoja-agarradera::before {
  content: ""; position: absolute; left: 50%; top: 9px; width: 42px; height: 5px; margin-left: -21px;
  border-radius: 9px; background: rgba(74, 36, 33, .22);
}
.hoja--plato .hoja-agarradera::before { background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.hoja-cabeza {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 26px 16px 10px 20px;
  touch-action: none;
}
.hoja-cabeza h2 { font: 800 26px/1 var(--serif); }
.hoja-cerrar {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--crema); color: var(--cafe);
}
.hoja-cerrar .ico { width: 18px; height: 18px; }
.hoja-cerrar--flotante { position: absolute; top: 12px; right: 12px; z-index: 6; background: rgba(251, 246, 239, .94); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.hoja-cerrar--claro { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: 14px; z-index: 6; background: rgba(251, 246, 239, .14); color: var(--papel); }
.hoja-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.hoja-pie {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  background: var(--papel);
}

/* Detalle del platillo */
.detalle-foto { position: relative; width: 100%; height: min(100vw, 46svh, 520px); background: var(--barro); overflow: hidden; touch-action: pan-y; }
.detalle-foto img { width: 100%; height: 100%; object-fit: cover; }
.detalle-foto.sin-foto img { display: none; }
.detalle-foto.sin-foto::after { inset: 30% 36%; }
.detalle-foto.cambia img { animation: fotoEntra .45s var(--ease-out); }
.detalle-nav {
  position: absolute; top: 50%; z-index: 3;
  width: 40px; height: 40px; margin-top: -20px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 246, 239, .92); color: var(--cafe);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.detalle-nav--prev { left: 12px; }
.detalle-nav--next { right: 12px; }
.detalle-cuerpo { padding: 18px 20px 22px; }
.detalle-seccion { display: flex; align-items: center; gap: 8px; font: 600 12px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--olivo-osc); }
.detalle-seccion [lang="ja"] { letter-spacing: .04em; font-weight: 800; font-size: 13px; color: var(--barro-osc); }
.detalle-nombre { font: 800 clamp(28px, 8vw, 36px)/1.05 var(--serif); margin: 8px 0 6px; }
.detalle-precio { font: 600 22px/1 var(--sans); color: var(--cafe); margin-bottom: 12px; }
.detalle-precio .precio-signo { font-size: .6em; vertical-align: .5em; }
.detalle-marcas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 2px; }
.detalle-marcas:empty { display: none; }
.detalle-marcas li {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px 0 8px; border-radius: 99px;
  background: var(--crema); color: var(--cafe-2);
  font: 600 12.5px/1 var(--sans);
}
.detalle-marcas .ico { width: 17px; height: 17px; }
.detalle-marcas .m-favorito .ico { color: var(--rosa); }
.detalle-marcas .m-picosito .ico { color: #B5452F; }
.detalle-marcas .m-nuevo .ico { color: var(--olivo); }
.detalle-desc { margin-top: 12px; font: 400 16px/1.6 var(--sans); color: var(--cafe-2); }
.detalle-desc:empty { display: none; }
.detalle-opciones { margin-top: 18px; }
.detalle-opciones-titulo { font: 600 12.5px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px; color: var(--cafe-2); }
.opciones { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion {
  height: 40px; padding: 0 16px; border-radius: 99px;
  border: 1.5px solid var(--linea); font: 500 14.5px/1 var(--sans);
  transition: background-color .2s, color .2s, border-color .2s;
}
.opcion[aria-checked="true"] { background: var(--olivo-osc); border-color: var(--olivo-osc); color: var(--papel); }
.detalle-porcion { margin-top: 16px; font: 500 13.5px/1.4 var(--sans); color: var(--cafe-3); }
.detalle-porcion:empty { display: none; }
.cantidad { display: flex; align-items: center; height: 50px; border-radius: 99px; background: var(--crema); flex: none; }
.cantidad button { width: 44px; height: 50px; display: grid; place-items: center; border-radius: 99px; }
.cantidad button .ico { width: 17px; height: 17px; }
.cantidad output { min-width: 22px; text-align: center; font: 600 17px/1 var(--sans); }
.cantidad--chica { height: 38px; }
.cantidad--chica button { width: 36px; height: 38px; }
.cantidad--chica button .ico { width: 14px; height: 14px; }
.cantidad--chica output { min-width: 18px; font-size: 15px; }

.detalle-solo { flex: 1; font: 600 15px/1.2 var(--sans); color: var(--barro-osc); text-align: center; }

/* Así va armado (corte del rollo) */
.corte { margin: 18px 0 0; padding: 14px 14px 12px; border-radius: 20px; background: var(--crema); box-shadow: inset 0 0 0 1px var(--linea); }
.corte-titulo { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--olivo-osc); }
.corte-titulo .ico { width: 18px; height: 18px; }
.corte-cuerpo { display: grid; grid-template-columns: 142px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 10px; }
.corte-dibujo svg { width: 100%; height: auto; overflow: visible; }
.corte-capas { display: grid; gap: 9px; }
.corte-capas dt { font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cafe-3); }
.corte-capas dd { display: flex; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; font: 500 14px/1.3 var(--sans); color: var(--cafe); }
.ing { display: inline-flex; align-items: center; gap: 6px; }
.ing i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(74, 36, 33, .2); flex: none; }
.corte-capa { opacity: 0; transform: translateX(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.corte.is-armado .corte-capa { opacity: 1; transform: none; }
.corte svg .c-dentro, .corte svg .c-arroz, .corte svg .c-fuera, .corte svg .c-corona { transform-origin: 100px 128px; }
.corte svg .c-dentro { transform: scale(.2); opacity: 0; transition: transform .55s var(--ease-bounce), opacity .3s; }
.corte svg .c-arroz { transform: scale(.6); opacity: 0; transition: transform .55s var(--ease-out) .12s, opacity .35s .12s; }
.corte svg .c-fuera { transform: rotate(-80deg) scale(.92); opacity: 0; transition: transform .7s var(--ease-out) .26s, opacity .4s .26s; }
.corte svg .c-corona { transform: translateY(-34px); opacity: 0; transition: transform .6s var(--ease-bounce) .5s, opacity .3s .5s; }
.corte.is-armado svg .c-dentro, .corte.is-armado svg .c-arroz, .corte.is-armado svg .c-fuera, .corte.is-armado svg .c-corona { transform: none; opacity: 1; }

/* Mi orden */
.orden-lista { padding: 0 20px; }
.orden-linea {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--linea);
}
.orden-mini { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: var(--barro); position: relative; }
.orden-mini img { width: 100%; height: 100%; object-fit: cover; }
.orden-mini.sin-foto::after { inset: 24%; }
.orden-nombre { font: 600 15px/1.2 var(--sans); }
.orden-opcion { font: 500 12.5px/1.3 var(--sans); color: var(--cafe-3); }
.orden-precio { font: 500 13.5px/1.3 var(--sans); color: var(--cafe-2); margin-top: 2px; }
.orden-vacia { padding: 30px 24px 40px; text-align: center; font: 400 15px/1.5 var(--sans); color: var(--cafe-2); }
.orden-vacia img { width: 70px; margin: 0 auto 12px; }
.orden-vacia-titulo { font: 800 21px/1.2 var(--serif); color: var(--cafe); margin-bottom: 4px; }
.hoja-pie--orden { flex-direction: column; align-items: stretch; gap: 10px; }
.orden-total { display: flex; align-items: baseline; justify-content: space-between; font: 500 14.5px/1 var(--sans); color: var(--cafe-2); }
.orden-total strong { font: 700 28px/1 var(--sans); color: var(--cafe); letter-spacing: -.01em; }
.orden-botones { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.orden-botones .btn { padding: 0 16px; white-space: nowrap; }
.hoja-pie--orden > .btn { width: 100%; }
.orden-elige { font: 500 14px/1.4 var(--sans); color: var(--cafe-2); text-align: center; }
.orden-extras { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 20px 12px; }
.orden-extras .btn-texto { padding: 8px 6px; font-size: 13px; }
.orden-nota { font: 400 13px/1.45 var(--sans); color: var(--cafe-2); text-align: center; }
.orden-nota:empty { display: none; }
.orden-modo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  margin: 2px 20px 4px; padding: 4px;
  border-radius: 99px; background: var(--crema);
}
.orden-modo button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; border-radius: 99px;
  font: 600 14px/1 var(--sans); color: var(--cafe-2);
  transition: background-color .2s, color .2s;
}
.orden-modo .ico { width: 18px; height: 18px; }
.orden-modo button[aria-checked="true"] { background: var(--olivo-osc); color: var(--papel); }

/* Datos para la entrega */
.domicilio { display: grid; gap: 12px; padding: 18px 20px 4px; }
.domicilio-titulo { font: 800 20px/1.2 var(--serif); }
.domicilio-cerrado { padding: 10px 12px; border-radius: 12px; background: rgba(138, 92, 77, .12); font: 500 13.5px/1.4 var(--sans); color: var(--barro-osc); }
.campo { display: grid; gap: 5px; }
.campo > span { font: 600 13.5px/1.2 var(--sans); color: var(--cafe-2); }
.campo i { font-style: normal; font-weight: 400; color: var(--cafe-3); }
.campo input {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1.5px solid rgba(74, 36, 33, .22); border-radius: 12px;
  background: #fff; outline: none;
  font: 400 16px var(--sans); color: var(--cafe);  /* 16px: el iPhone no acerca la página al escribir */
  transition: border-color .2s, box-shadow .2s;
}
.campo input::placeholder { color: var(--cafe-3); }
.campo input:focus { border-color: var(--olivo-osc); box-shadow: 0 0 0 1px var(--olivo-osc); }
.campo input[aria-invalid="true"] { border-color: #A63B26; box-shadow: 0 0 0 1px #A63B26; }
.campo-error { font: 500 13px/1.3 var(--sans); color: #A63B26; }

/* En el restaurante o a domicilio */
.modo-opciones { display: grid; gap: 10px; padding: 6px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.modo-opcion {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 14px; border-radius: 18px;
  background: var(--crema); text-align: left;
}
.modo-opcion[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--olivo-osc); }
.modo-opcion-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--olivo-osc); color: var(--papel); }
.modo-opcion b { display: block; font: 600 16.5px/1.2 var(--sans); }
.modo-opcion small { display: block; margin-top: 3px; font: 400 14px/1.35 var(--sans); color: var(--cafe-2); }

/* Filtros */
.filtros { padding: 4px 20px 16px; }
.filtros fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.filtros legend { padding: 0; margin-bottom: 10px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--cafe-3); }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 15px; border-radius: 99px;
  border: 1.5px solid var(--linea);
  font: 500 14.5px/1 var(--sans); color: var(--cafe);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease-out);
}
.fchip .ico { width: 18px; height: 18px; color: var(--olivo-osc); }
.fchip:active { transform: scale(.96); }
.fchip[aria-pressed="true"] { background: var(--olivo-osc); border-color: var(--olivo-osc); color: var(--papel); }
.fchip[aria-pressed="true"] .ico { color: var(--olivo-claro); }
.fprecio { display: flex; align-items: center; gap: 14px; }
.fprecio input { flex: 1; accent-color: var(--olivo-osc); height: 30px; }
.fprecio output { min-width: 128px; text-align: right; font: 600 14.5px/1 var(--sans); }
.hoja--filtros .hoja-pie .btn-texto { padding: 10px 8px; }

/* =============================================================
   11. Pide un deseo (omikuji)
   ============================================================= */
.omikuji {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--noche); color: var(--papel);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; transition: opacity .35s;
}
.omikuji.is-open { opacity: 1; }
.omikuji::backdrop { background: var(--noche); }
.omikuji-fondo {
  position: fixed; inset: 0; pointer-events: none; overflow: hidden;
  background: radial-gradient(70% 50% at 50% 58%, rgba(201, 208, 142, .14), transparent 70%);
}
.omikuji-fondo img { position: absolute; width: max(620px, 130vmin); left: 50%; top: 56%; translate: -50% -50%; opacity: .045; rotate: -24deg; max-width: none; }
.omikuji-inner {
  position: relative; min-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 30px) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 24px);
  text-align: center;
}
.omikuji-kana { font: 800 14px/1 var(--serif); letter-spacing: .4em; color: var(--olivo-claro); margin-right: -.4em; }
.omikuji-titulo { font: 800 clamp(30px, 8.6vw, 44px)/1.05 var(--serif); }
.omikuji-sub { max-width: 34ch; font: 400 15px/1.45 var(--sans); color: rgba(251, 246, 239, .78); }
.antojos {
  display: flex; gap: 7px;
  max-width: calc(100% + 2 * var(--gutter)); margin: 4px calc(-1 * var(--gutter)) 0;
  padding: 2px var(--gutter) 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.antojos::-webkit-scrollbar { display: none; }
.antojo {
  flex: none;
  height: 36px; padding: 0 14px; border-radius: 99px;
  border: 1.5px solid rgba(251, 246, 239, .35);
  font: 500 14px/1 var(--sans); color: var(--papel);
  transition: background-color .2s, color .2s, border-color .2s;
}
.antojo[aria-checked="true"] { background: var(--olivo-claro); color: var(--noche); border-color: var(--olivo-claro); }
.templo {
  position: relative;
  width: 100%; max-width: 420px;
  height: clamp(330px, 50svh, 440px);
  display: grid; place-items: end center;
  padding-bottom: 4%;
  margin: 4px 0;
}
.caja {
  position: relative;
  width: clamp(118px, 34vw, 156px); aspect-ratio: 160 / 220;
  transform-origin: 50% 90%;
  touch-action: none; cursor: grab;
  transition: opacity .45s, translate .6s var(--ease-out), scale .6s var(--ease-out);
}
.caja:active { cursor: grabbing; }
.caja.is-atras { opacity: .22; translate: 0 26%; scale: .78; }
.caja-dibujo { position: relative; z-index: 2; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .38)); }
.caja-sombra { position: absolute; z-index: 0; left: 8%; right: 8%; bottom: -4%; height: 10%; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(8px); }
.palito-hueco {
  position: absolute; z-index: 1;
  left: 50%; bottom: 81.6%;
  width: 16px; height: 72%; margin-left: -8px;
  overflow: hidden;
}
.palito {
  position: absolute; left: 2px; right: 2px; bottom: 0; height: 100%;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #D7BC86, #EFDDB4 45%, #D9BF8A);
  box-shadow: inset 0 0 0 .5px rgba(110, 65, 32, .35);
  transform: translateY(102%);
  display: flex; justify-content: center; padding-top: 8px;
}
.palito::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px; border-radius: 3px 3px 0 0; background: var(--barro-osc); }
.palito span { position: relative; margin-top: 6px; writing-mode: vertical-rl; font: 800 8.5px/1 var(--serif); color: var(--barro-osc); letter-spacing: .05em; }
.papel {
  position: absolute; z-index: 5;
  left: 50%; top: 50%;
  width: min(80vw, 292px);
  translate: -50% -50%;
}
.papel-hoja {
  position: relative; overflow: hidden;
  padding: 16px 18px 20px;
  border-radius: 3px;
  background: var(--papel); color: var(--cafe);
  box-shadow: 0 26px 50px rgba(0, 0, 0, .45);
}
.papel-hoja > * { position: relative; z-index: 1; }
.papel-rodillo {
  position: absolute; z-index: 6; left: -7px; right: -7px; top: 100%; height: 14px; margin-top: -7px;
  border-radius: 7px;
  background: linear-gradient(180deg, #E4D2B6, #C7AE8A 60%, #A98E6A);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
  opacity: 0;
}
.papel-num { font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cafe-3); }
.papel-num [lang="ja"] { letter-spacing: .06em; font-weight: 800; color: var(--barro-osc); }
.papel-nivel { margin-top: 8px; font: 800 46px/1 var(--serif); color: var(--barro-osc); }
.papel-nivel-es { margin-top: 4px; font: 600 12.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--olivo-osc); }
.papel-linea { height: 1px; margin: 12px 8px; background: repeating-linear-gradient(90deg, var(--linea) 0 6px, transparent 6px 10px); }
.papel-foto { position: relative; width: 108px; height: 108px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: var(--barro); box-shadow: 0 0 0 4px var(--crema), 0 0 0 5px var(--linea); }
.papel-foto img { width: 100%; height: 100%; object-fit: cover; }
.papel-foto.sin-foto::after { inset: 24%; }
.papel-seccion { margin-top: 12px; font: 600 11px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--olivo-osc); }
.papel-nombre { margin-top: 5px; font: 800 24px/1.1 var(--serif); }
.papel-precio { margin-top: 5px; font: 600 18px/1 var(--sans); }
.papel-frase { margin: 12px auto 0; max-width: 24ch; font: italic 500 15px/1.4 var(--sans); color: var(--cafe-2); }
.papel-sello {
  position: absolute !important; right: 12px; top: 12px;
  width: 28px; height: 28px; border-radius: 6px; rotate: 8deg;
  display: grid; place-items: center;
  background: var(--barro-osc); color: var(--papel);
  font: 800 16px/1 var(--serif);
  opacity: .9;
}
.omikuji-pista { min-height: 1.3em; font: 500 13.5px/1.3 var(--sans); color: rgba(251, 246, 239, .62); }
.omikuji-acciones { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.omikuji-despues { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.omikuji-despues .btn-texto { flex-basis: 100%; }

/* Mostrar al mesero */
.mesero {
  position: fixed; inset: 0;
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0;
  background: var(--noche); color: var(--papel);
  overflow-y: auto;
  opacity: 0; transition: opacity .3s;
}
.mesero.is-open { opacity: 1; }
.mesero::backdrop { background: var(--noche); }
.mesero-inner { width: min(100% - 40px, 720px); margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 40px) 0 calc(env(safe-area-inset-bottom, 0px) + 40px); }
.mesero-enso { width: 52px; }
.mesero-titulo { margin: 14px 0 10px; font: 600 15px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--olivo-claro); }
.mesero-lista li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid rgba(251, 246, 239, .12);
  font: 800 clamp(26px, 7.6vw, 44px)/1.1 var(--serif);
}
.mesero-cant { flex: none; min-width: 2.1ch; color: var(--olivo-claro); font-family: var(--sans); font-weight: 700; }
.mesero-opcion { display: block; margin-top: 6px; font: 500 17px/1.2 var(--sans); color: rgba(251, 246, 239, .72); }
.mesero-total { margin-top: 22px; display: flex; justify-content: space-between; align-items: baseline; font: 500 16px/1 var(--sans); color: rgba(251, 246, 239, .8); }
.mesero-total strong { font: 700 34px/1 var(--sans); color: var(--papel); }

/* =============================================================
   12. Animaciones
   ============================================================= */
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
@keyframes aparecer { from { opacity: 0; } }
@keyframes pincel { to { stroke-dashoffset: 0; } }
@keyframes ventanaEntra { from { opacity: 0; transform: scale(.82); } }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(130, 140, 67, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(130, 140, 67, 0); } }
@keyframes bump { 0% { transform: translate(-50%, 0) scale(1); } 35% { transform: translate(-50%, 0) scale(1.08); } 100% { transform: translate(-50%, 0) scale(1); } }
@keyframes fotoEntra { from { opacity: .2; transform: scale(1.04); } }
@keyframes palitoAsoma { 0%, 55%, 100% { transform: translateY(10px); } 70%, 88% { transform: translateY(0); } }

/* =============================================================
   13. Responsive
   ============================================================= */
@media (max-width: 359px) {
  .corte-cuerpo { grid-template-columns: 1fr; justify-items: center; }
  .corte-dibujo { width: 150px; }
  .corte-capas { justify-self: stretch; }
}
@media (max-width: 959px) and (max-height: 720px) {
  .portada-arte { --arte: min(56vw, 30svh); }
  .portada-sobre, .portada-plato { display: none; }
}
@media (min-width: 540px) {
  :root { --gutter: 22px; }
  .portada-acciones { width: auto; }
  .portada-acciones .btn { flex: 0 1 auto; }
  .plato { grid-template-columns: 108px minmax(0, 1fr); }
  .plato--tarjeta, .plato--variante, .plato--bebida { grid-template-columns: none; }
  .plato--bebida { grid-template-columns: minmax(0, 1fr) auto auto; }
  .plato--bebida.con-foto { grid-template-columns: 46px minmax(0, 1fr) auto auto; }
  .variantes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .invitacion { grid-template-columns: auto minmax(0, 1fr) auto; }
  .invitacion .btn { grid-column: auto; }
  .visita-acciones .btn-crema { flex-basis: auto; }
  .corte-cuerpo { grid-template-columns: 160px minmax(0, 1fr); }
}
@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .antojos { flex-wrap: wrap; justify-content: center; max-width: 600px; margin: 4px 0 0; overflow: visible; }
  .lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .envuelto-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 2px 0 4px; }
  .bebidas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 44px; align-items: start; }
  .visita-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .seccion { padding: 64px 0 40px; }
  .barra-marca { display: block; }
  .hoja {
    inset: 0; margin: auto;
    width: min(100% - 48px, 600px); max-height: min(90vh, 900px);
    border-radius: 26px;
    transform: translateY(26px) scale(.97); opacity: 0;
    transition: transform .45s var(--ease-out), opacity .3s;
  }
  .hoja.is-open { transform: none; opacity: 1; }
  .hoja-agarradera { display: none; }
  .hoja-cabeza { padding-top: 20px; }
  .detalle-foto { height: min(420px, 50vh); }
  .mi-orden { left: auto; right: 28px; transform: translate(0, 160%); }
  .mi-orden.is-visible { transform: none; }
  @keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.08); } 100% { transform: scale(1); } }
}
@media (min-width: 960px) {
  .buscador { max-width: 560px; margin-left: auto; }
  .barra-fila { padding-top: 12px; }
  .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .variantes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .portada-inner { max-width: 1060px; flex-direction: row; justify-content: center; gap: 64px; }
  .portada-arte { --arte: min(44vw, 72vh, 480px); margin: 0; flex: none; }
  .portada-textos { align-items: flex-start; text-align: left; max-width: 430px; }
  .portada-titulo { width: 400px; }
  .portada-acciones { justify-content: flex-start; }
  .portada-sobre { font-size: 17px; }
}
@media (min-width: 1280px) {
  .lista { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =============================================================
   14. Movimiento reducido
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enso-guia { animation-duration: .01s; animation-delay: 0s; }
  .ventana img { transition: opacity .6s ease; transform: none; }
  .invitacion-caja::before { animation: none; transform: none; }
  .estado.is-abierto .estado-punto { animation: none; }
}
