/* Menú público · portada "Rótulo" (pared + tabla pintada) y cuerpo "Fachadas de Flores".
   Colores por establecimiento: --wall y --accent llegan desde la base de datos. */
:root {
    color-scheme: light;
    --brand: #2BB1D3;          /* turquesa Hoteles de Petén */
    --brand-ink: #14246B;
    --sky: #E8F6FA;            /* cielo detrás de las casas */
    --roof: #C9452C;           /* lámina roja */
    --roof-2: #E2603F;
    --ink: #1F1B33;
    --muted: #57536B;
    --paper: #FFFFFF;
    --leaf: #3F8A25;
    --soldout: #B4232A;
    --wall: #3E2A8F;
    --accent: #F4C02F;
    /* Letra de los rótulos: serif clásica de letrero, elegante y legible */
    --f-brush: "DM Serif Display", Georgia, "Times New Roman", serif;
    --f-grot: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
    --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
    --street-h: 92px;
}
* { box-sizing: border-box; }
/* “hidden” siempre oculta, aunque el elemento tenga display: flex/grid. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* La página nunca se desplaza hacia los lados: solo el carrusel y la calle. */
html, body { overflow-x: clip; }
/* Vista previa dentro del administrador */
html.embedded { scrollbar-width: none; }
html.embedded::-webkit-scrollbar { display: none; }
html.embedded .preview-bar { display: none; }
body { margin: 0; background: var(--sky); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.45; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu, .home { max-width: 560px; margin-inline: auto; background: var(--sky); min-height: 100vh; }
@media (min-width: 600px) { body { background: #D5ECF2; } .menu, .home { box-shadow: 0 0 40px rgba(20, 36, 107, .12); } }

/* ---------- Marca Hoteles de Petén ---------- */
.hdp { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 11.5px; letter-spacing: .2em; line-height: 1.15; }

/* ---------- Selector de idioma ---------- */
.langs { display: flex; gap: 4px; }
.langs a { text-decoration: none; border: 2px solid currentColor; border-radius: 6px 9px 7px 10px; padding: 4px 9px; font-weight: 800; font-size: 12.5px; letter-spacing: .04em; }
.langs a[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--wall); }

/* ---------- Portada: la pared y el rótulo ---------- */
.preview-bar { background: #1F1B33; color: #fff; font-size: 13px; text-align: center; padding: 8px 16px; }
/* La pared termina en un borde chorreado recortado con máscara: la foto (si hay) llega hasta la onda. */
.wall { --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 0H400V8C380 10 372 22 360 12S330 4 318 14 296 22 282 9 250 6 238 16 214 20 200 8 170 4 158 18 130 22 118 10 92 4 80 15 50 22 38 9 12 6 0 12Z'/%3E%3C/svg%3E");
    background: var(--wall); color: #fff; padding: 16px 16px 56px; padding-top: calc(16px + env(safe-area-inset-top, 0px));
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 25px) no-repeat, var(--drip) bottom / 100% 26px no-repeat;
    mask: linear-gradient(#000 0 0) top / 100% calc(100% - 25px) no-repeat, var(--drip) bottom / 100% 26px no-repeat; }
/* Hero con foto real del restaurante: velo del color de la pared para que el rótulo se lea */
.wall.has-photo { background:
    linear-gradient(180deg, color-mix(in srgb, var(--wall) 70%, transparent) 0%, color-mix(in srgb, var(--wall) 15%, transparent) 55%, color-mix(in srgb, var(--wall) 35%, transparent) 100%),
    var(--hero) center 60% / cover no-repeat, var(--wall); padding-bottom: 40px; }
.wall.has-photo .board { max-width: 250px; padding: 10px 14px 8px; }
.wall.has-photo .board img { max-height: 120px; }
.wall.has-photo .board-sub { font-size: 10.5px; }
.wall-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.back { text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 2px; white-space: nowrap; }
/* Hora en Flores: cápsula discreta con sol (día) o luna (noche) */
.clock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
    background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 4px 10px 4px 7px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.clock b { font-weight: 800; font-variant-numeric: tabular-nums; }
.clock svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.clock .clock-sun { color: #FFD45C; }
.clock .clock-sun circle { fill: currentColor; }
.clock .clock-moon { display: none; color: #FFE8A3; fill: currentColor; stroke: none; }
html.night .clock .clock-sun { display: none; }
html.night .clock .clock-moon { display: block; }
@media (max-width: 360px) { .clock span { display: none; } .clock { padding: 4px 7px; } }
/* El rótulo cuelga de dos cadenitas y se balancea al abrir el menú (termina inclinado -1.5°). */
.board { position: relative; margin: 36px auto 0; max-width: 330px; background: #fff; color: var(--wall); border: 7px solid var(--accent);
    border-radius: 18px 26px 20px 30px / 26px 18px 30px 20px; padding: 14px 18px 10px; transform: rotate(-1.5deg); transform-origin: 50% -34px;
    box-shadow: 6px 8px 0 rgba(0, 0, 0, .25); text-align: center; animation: hang 1.8s cubic-bezier(.3, .7, .4, 1) both; }
.board::before, .board::after { content: ""; position: absolute; top: -41px; width: 3px; height: 36px; border-radius: 2px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .9) 0 5px, rgba(255, 255, 255, .35) 5px 7px); }
.board::before { left: 20%; } .board::after { right: 20%; }
@keyframes hang {
    0% { transform: rotate(-10deg); }
    30% { transform: rotate(6deg); }
    55% { transform: rotate(-4.5deg); }
    75% { transform: rotate(.5deg); }
    100% { transform: rotate(-1.5deg); }
}
.board img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.board-name { margin: 6px 0; font-family: var(--f-brush); font-weight: 400; font-size: 52px; line-height: 1; }
.board-sub { margin: 6px 0 0; font-family: var(--f-grot); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hidden-flag { margin: 16px 0 0; text-align: center; font-size: 13px; font-weight: 700; }

.intro-desc { margin: 4px 16px 0; color: var(--muted); max-width: 60ch; }
/* Notas en la portada: discretas, en blanco, debajo del rótulo */
.wall-notes { margin: 16px auto 0; width: fit-content; max-width: 34ch; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .02em;
    padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--wall) 70%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }

/* ---------- Buscador ---------- */
.search { margin: 16px 16px 0; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--ink);
    border-radius: 14px; padding: 0 12px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 12px 0; color: var(--ink); outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.result-count { margin: 10px 16px 0; font-size: 14px; color: var(--muted); }

/* ---------- Calle de casitas ---------- */
.street { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--sky); display: flex; gap: 6px;
    overflow-x: auto; padding: 14px 12px 8px; scrollbar-width: none; scroll-snap-type: x proximity;
    border-bottom: 1px solid rgba(31, 27, 51, .08); }
.street::-webkit-scrollbar { display: none; }
.street a { flex: none; scroll-snap-align: start; text-decoration: none; display: grid; justify-items: center; gap: 5px;
    width: 78px; text-align: center; font-size: 12px; font-weight: 700; line-height: 1.15; padding-bottom: 2px; }
.street a span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Mini fachada: techo, una ventana y la puerta a un lado (asimétrica para que no parezca una cara) */
.mini { width: 54px; height: 42px; position: relative; background: var(--c); border-radius: 0 0 2px 2px; margin-top: 9px;
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); }
.mini::before { content: ""; position: absolute; left: -5px; right: -5px; top: -9px; height: 9px; border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--roof) 0 4px, var(--roof-2) 4px 8px); box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.mini::after { content: ""; position: absolute; right: 8px; bottom: 0; width: 13px; height: 23px;
    background: #6B4532; border: 2px solid #FFF8EC; border-bottom: 0; border-radius: 8px 8px 0 0; }
/* Ventana con contraventanas a la izquierda */
.mini i { position: absolute; top: 12px; left: 9px; width: 14px; height: 15px; background: #2E3550; border: 2px solid #FFF8EC; }
.mini i::before, .mini i::after { content: ""; position: absolute; top: -2px; width: 4px; height: 15px; background: #FFF8EC; }
.mini i::before { left: -7px; } .mini i::after { right: -7px; }
/* Una casa sí y otra no, la puerta cambia de lado */
.street a:nth-child(even) .mini { transform: scaleX(-1); }
/* Casita actual: se levanta y enciende sus ventanas; las demás quedan un poco apagadas. */
.street a .mini { transition: transform .25s ease, filter .25s ease, opacity .25s ease; filter: saturate(.6); opacity: .72; }
.street a[aria-current="true"] .mini { transform: translateY(-4px) scale(1.12); filter: none; opacity: 1; box-shadow: 0 8px 14px -6px rgba(31, 27, 51, .45); }
.street a[aria-current="true"] .mini i, .street a[aria-current="true"] .mini i::before, .street a[aria-current="true"] .mini i::after { transition: background .25s; }
.street a[aria-current="true"] .mini i { background: #FFD45C; box-shadow: 0 0 8px 2px rgba(255, 212, 92, .7); }
.street a span:last-child { color: var(--muted); transition: color .2s; }
.street a[aria-current="true"] span:last-child { color: var(--ink); font-weight: 800; }
.street a::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: -1px; transition: background .2s; }
.street a[aria-current="true"]::after { background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .board, .sign.swing { animation: none; } .street a .mini { transition: none; } }

/* ---------- Cada categoría: una fachada de Flores con su rótulo, y debajo la hoja de platos ---------- */
main { padding-bottom: 8px; }
.house { margin: 30px 12px 0; scroll-margin-top: calc(var(--street-h) + env(safe-area-inset-top, 0px)); }
.slides.searching > .house { margin: 26px 0 0; }
.facade { position: relative; }
.roof { height: 18px; margin-inline: -8px; position: relative; z-index: 1; border-radius: 3px;
    background: repeating-linear-gradient(90deg, var(--roof) 0 8px, var(--roof-2) 8px 16px); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); }
.facade-wall { background-color: var(--c); padding: 22px 16px 0; display: grid; justify-items: center; gap: 16px;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .06)); }
/* Rótulo pintado: misma mano que la tabla de la portada */
.sign { margin: 0; max-width: 100%; background: #fff; color: var(--wall); border: 4px solid var(--wall);
    border-radius: 12px 18px 14px 20px / 18px 12px 20px 14px; padding: 4px 20px 6px; --tilt: -1.2deg; transform: rotate(var(--tilt)); transform-origin: 50% -10px;
    font-family: var(--f-brush); font-weight: 400; font-size: 29px; line-height: 1.1; letter-spacing: .01em; text-align: center; text-wrap: balance;
    box-shadow: 3px 4px 0 rgba(0, 0, 0, .2); }
.house:nth-child(even) .sign { --tilt: 1deg; }
/* Al llegar a una categoría, su rótulo se mece. */
.sign.swing { animation: swing 1s cubic-bezier(.3, .7, .4, 1); }
@keyframes swing {
    0% { transform: rotate(calc(var(--tilt) - 7deg)); }
    35% { transform: rotate(calc(var(--tilt) + 4deg)); }
    65% { transform: rotate(calc(var(--tilt) - 2deg)); }
    100% { transform: rotate(var(--tilt)); }
}
.openings { display: flex; align-items: flex-end; justify-content: center; gap: 30px; width: 100%; }
/* Ventana: marco blanco, vidrio oscuro, contraventanas a los lados y repisa */
.win { position: relative; width: 40px; height: 50px; margin-bottom: 18px; background: #2E3550; border: 4px solid #FFF8EC;
    box-shadow: 0 6px 0 -2px #FFF8EC; }
.win::before, .win::after { content: ""; position: absolute; top: -4px; width: 14px; height: 50px;
    background: repeating-linear-gradient(180deg, #FFF8EC 0 5px, rgba(0, 0, 0, .15) 5px 6px); }
.win::before { left: -20px; } .win::after { right: -20px; }
/* Puerta de madera en arco */
.door { width: 50px; height: 76px; background: #6B4532; border: 4px solid #FFF8EC; border-bottom: 0; border-radius: 25px 25px 0 0;
    background-image: linear-gradient(90deg, transparent 47%, rgba(0, 0, 0, .25) 47% 53%, transparent 53%); }
.sidewalk { height: 9px; background: #D6CBBB; border-radius: 0 0 2px 2px; }

.sheet { background: var(--paper); padding: 6px 16px 10px; border-radius: 0 0 10px 10px; box-shadow: 0 8px 24px rgba(31, 27, 51, .08); }
.cat-note { margin: 10px 0 2px; font-size: 14px; color: var(--muted); max-width: 58ch; font-style: italic; }
.items { list-style: none; margin: 0; padding: 0; }
.item { padding: 13px 0; border-bottom: 1px solid #ECEAF1; display: grid; gap: 12px; }
.item:last-child { border-bottom: 0; }
/* Con foto: miniatura a la derecha, los nombres quedan alineados con los platos sin foto. */
.item.has-photo { grid-template-columns: minmax(0, 1fr) 60px; align-items: center; column-gap: 12px; }
.item.has-photo .photo-btn { order: 2; }
.photo-btn { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; display: block; }
.photo { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; display: block; box-shadow: 0 2px 6px rgba(31, 27, 51, .18); }

/* Foto en grande */
.photo-view { position: fixed; inset: 0; z-index: 60; background: rgba(15, 13, 30, .9); display: flex; flex-direction: column; justify-content: center;
    gap: 16px; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
.photo-view figure { margin: 0 auto; width: 100%; max-width: 520px; background: #fff; border-radius: 18px; overflow: hidden; }
.photo-view img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; max-height: 60vh; }
.photo-view figcaption { padding: 14px 16px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.photo-view figcaption span { font-family: var(--f-brush); font-size: 26px; line-height: 1.1; color: var(--wall); }
.photo-view figcaption b { font-size: 20px; font-variant-numeric: tabular-nums; }
.photo-view figcaption small { grid-column: 1 / -1; color: var(--muted); font-size: 14.5px; }
.photo-view figcaption small:empty { display: none; }
.photo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 520px; margin: 0 auto; }
.photo-actions:has(> :only-child) { grid-template-columns: 1fr; }
.item-body { min-width: 0; }
.item-row { display: flex; align-items: baseline; gap: 8px; }
.name { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; min-width: 0; }
.dots { flex: 1; min-width: 14px; border-bottom: 2px dotted #C9C4D6; transform: translateY(-4px); }
.price { font-family: var(--f-body); font-weight: 700; font-size: 16.5px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.badges { margin: 5px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; border-radius: 4px; padding: 2px 7px; }
/* Recomendado: estrella en el color del rótulo, fila apenas más cálida y etiqueta discreta */
.badge.feat { color: color-mix(in srgb, var(--wall) 85%, #000); background: color-mix(in srgb, var(--accent) 30%, #fff); }
.badge.out { color: #fff; background: var(--soldout); }
.star { color: var(--accent); margin-right: 5px; font-size: .95em; text-shadow: 0 1px 0 color-mix(in srgb, var(--wall) 40%, transparent); }
.item.is-featured { background: color-mix(in srgb, var(--accent) 9%, var(--paper)); margin-inline: -16px; padding-inline: 16px; border-radius: 10px; }
/* Agotado: atenuado con el precio tachado */
.item.is-out .price, .item.is-out .variants .price { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.hidden-badge { color: #fff; background: #57536B; margin-left: 8px; vertical-align: 5px; }
.badges .hidden-badge { margin-left: 0; vertical-align: 0; }
.desc, .opts { margin: 4px 0 0; font-size: 14.5px; color: var(--muted); max-width: 56ch; }
.opts { font-style: italic; }
.variants { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.variants li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; padding-left: 14px; position: relative; }
.variants li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); }
.variants .price { font-size: 15.5px; }
.item.is-out .name, .item.is-out .price, .item.is-out .variants, .item.is-out .photo { opacity: .5; }
.empty { margin: 32px 16px; text-align: center; color: var(--muted); }

/* ---------- Pedidos: botón agregar ---------- */
.add { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--wall); color: #fff; font: 700 20px/1 var(--f-body);
    display: grid; place-items: center; cursor: pointer; margin-left: 4px; align-self: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.add:active { transform: scale(.92); }
.add.added { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.25); background: var(--leaf); } }
.variants li .add { width: 26px; height: 26px; font-size: 17px; }

/* ---------- Pedidos: barra y panel del carrito ---------- */
.cart-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    width: min(calc(100% - 28px), 532px); display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px;
    background: var(--wall); color: #fff; font: 700 16px var(--f-body); cursor: pointer; box-shadow: 0 10px 30px rgba(20, 20, 40, .35); }
.cart-bar-count { min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--wall); display: grid; place-items: center; font-size: 14px; }
.cart-bar-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.menu:has(.cart-bar:not([hidden])) .lake { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
body.cart-open { overflow: hidden; }
.cart-backdrop { position: fixed; inset: 0; background: rgba(20, 18, 40, .5); z-index: 40; }
.cart { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin-inline: auto; max-height: 92vh; overflow-y: auto;
    background: var(--paper); border-radius: 22px 22px 0 0; padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
.cart-head { display: flex; justify-content: space-between; align-items: center; }
.cart-head h2 { margin: 0; font-family: var(--f-brush); font-weight: 400; font-size: 30px; color: var(--wall); }
.cart-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #DDD9E6; background: #fff; font-size: 24px; cursor: pointer; }
.cart-error, .cart-msg { margin: 10px 0 0; background: #FDECEA; color: var(--soldout); border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: 14.5px; }
.cart-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #ECEAF1; }
.cart-line-name { font-weight: 600; font-size: 15px; min-width: 0; }
.cart-line-price { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.cart-empty { padding: 18px 0; color: var(--muted); text-align: center; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--wall); background: #fff; color: var(--wall); font: 700 17px/1 var(--f-body); cursor: pointer; }
.qty button:disabled { opacity: .35; }
.qty b { min-width: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-totals { margin: 12px 0 0; display: grid; gap: 4px; }
.cart-totals div { display: flex; justify-content: space-between; font-size: 15px; }
.cart-totals dt { color: var(--muted); }
.cart-totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.cart-totals .cart-total { margin-top: 4px; padding-top: 8px; border-top: 2px dotted #C9C4D6; font-size: 18px; }
.cart-totals .cart-total dt, .cart-totals .cart-total dd { color: var(--ink); font-weight: 800; }
.cart-form { margin-top: 18px; display: grid; gap: 12px; }
.seg { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid #DDD9E6; border-radius: 12px; padding: 10px; font-weight: 700; cursor: pointer; }
.seg label:has(input:checked) { border-color: var(--wall); background: color-mix(in srgb, var(--wall) 8%, #fff); color: var(--wall); }
.seg input { accent-color: var(--wall); }
.cart-field { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.cart-field input, .cart-field textarea { font: inherit; font-weight: 500; font-size: 16px; padding: 11px 12px; border: 1.5px solid #C9C4D6; border-radius: 10px; width: 100%; color: var(--ink); background: #fff; }
.cart-field textarea { resize: vertical; }
.cart-actions { display: grid; gap: 8px; margin-top: 4px; }
.cart-pay, .cart-counter { display: block; text-align: center; text-decoration: none; border-radius: 14px; padding: 15px; font: 800 16px var(--f-body); cursor: pointer; }
.cart-pay { border: 0; background: var(--wall); color: #fff; }
.cart-counter { border: 2px solid var(--wall); background: #fff; color: var(--wall); }
.cart-pay:disabled, .cart-counter:disabled { opacity: .6; }
.cart-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- “Mostrar al mesero”: el rótulo con la mesa y una comanda de papel ---------- */
.show-order { position: fixed; inset: 0; z-index: 50; overflow-y: auto; max-width: 560px; margin-inline: auto; background: var(--sky);
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.show-wall { background: var(--wall); color: #fff; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 70px; position: relative; }
.show-back { background: transparent; border: 0; color: #fff; font: 700 15px var(--f-body); cursor: pointer; padding: 6px 2px; }
.show-board { margin-top: 12px; padding: 12px 18px 10px; }
.show-title { margin: 0; font-family: var(--f-brush); font-weight: 400; font-size: 32px; line-height: 1.05; }
.show-place { margin: 4px 0 0; font-family: var(--f-grot); font-weight: 800; font-size: clamp(30px, 11vw, 44px); line-height: 1.05; letter-spacing: -.01em; overflow-wrap: anywhere; }
.show-room { margin: 2px 0 0; font-weight: 800; font-size: 17px; }
/* Código de la comanda (para que el mesero la envíe a cocina) */
.show-code { margin: 8px auto 2px; display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 12px; border-radius: 8px; border: 2px dashed currentColor;
    font-family: var(--f-grot); font-weight: 800; font-size: 26px; letter-spacing: .12em; }
.show-code::before { content: attr(data-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.show-wait { margin: 10px 0 0; text-align: center; color: #fff; opacity: .8; font-size: 13.5px; }
/* Después de mostrarlo: aviso de recibido y botón para vaciar el pedido */
.show-done { display: grid; gap: 10px; justify-items: center; padding: 18px 16px 34px; }
.show-received { margin: 0; padding: 12px 16px; border-radius: 14px; background: #DDF5E7; color: #0E6B3E; font-weight: 800; text-align: center; animation: show-in .4s ease both; }
@keyframes show-in { from { opacity: 0; transform: translateY(8px); } }
.show-clear { font: inherit; font-weight: 700; font-size: 15px; color: var(--wall); background: transparent; border: 2px solid currentColor; border-radius: 999px; padding: 10px 18px; cursor: pointer; }
.show-received:not([hidden]) + .show-clear { background: var(--wall); color: #fff; border-color: var(--wall); }
.show-hint { margin: 18px auto 0; max-width: 330px; text-align: center; background: var(--accent); color: var(--wall); font-weight: 800; font-size: 15px;
    border-radius: 12px 6px 14px 5px; padding: 10px 14px; transform: rotate(1deg); box-shadow: 3px 4px 0 rgba(0, 0, 0, .18); }
/* Comanda: borde dentado arriba y abajo con máscaras */
.ticket { position: relative; margin: -40px 18px 0; background: #fff; padding: 26px 20px 30px; box-shadow: 0 14px 30px rgba(31, 27, 51, .14);
    --tooth: radial-gradient(circle at 8px 0, transparent 7px, #000 7.5px) top / 16px 51% repeat-x,
             radial-gradient(circle at 8px 100%, transparent 7px, #000 7.5px) bottom / 16px 51% repeat-x;
    -webkit-mask: var(--tooth); mask: var(--tooth); }
.ticket-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticket-lines li { display: flex; align-items: baseline; gap: 8px; font-size: 20px; line-height: 1.25; }
.ticket-lines .q { font-family: var(--f-grot); font-weight: 800; color: var(--wall); min-width: 34px; }
.ticket-lines .n { font-weight: 600; min-width: 0; }
.ticket-lines .p { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 17px; }
.ticket-notes { margin: 16px 0 0; font-size: 18px; font-style: italic; border-left: 4px solid var(--accent); padding: 4px 0 4px 12px; }
.ticket-totals { margin: 18px 0 0; padding-top: 12px; border-top: 2px dashed #C9C4D6; display: grid; gap: 4px; }
.ticket-totals div { display: flex; justify-content: space-between; color: var(--muted); font-size: 16px; }
.ticket-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.ticket-totals .ticket-total { color: var(--ink); font-size: 26px; font-weight: 800; margin-top: 6px; }
.ticket-foot { margin: 16px 0 0; text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Carrusel de categorías (deslizar hacia los lados) ---------- */
.slides { display: flex; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain; transition: height .25s ease; }
.slides::-webkit-scrollbar { display: none; }
.slides > .house { flex: 0 0 100%; margin: 26px 0 0; padding: 0 12px 6px; scroll-snap-align: start; scroll-snap-stop: always; min-width: 0; }
.slides.searching { display: block; height: auto !important; overflow: visible; }
.slides.searching .slide-nav { display: none; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-60%); width: 40px; height: 40px; border-radius: 50%; border: 0; z-index: 2;
    background: rgba(255, 255, 255, .92); color: var(--wall); font: 800 26px/1 var(--f-body); cursor: pointer; display: grid; place-items: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .18); padding-bottom: 3px; }
.slide-nav.prev { left: 8px; } .slide-nav.next { right: 8px; }
.facade-wall { position: relative; }
.swipe-hint { margin: 6px 16px 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); }
.swipe-hint span { display: inline-block; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .slides { transition: none; } .swipe-hint span { animation: none; } }

/* En celular, la portada y las fachadas dejan espacio para los platos. */
@media (max-width: 599px) {
    .wall { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-bottom: 28px; }
    .wall.has-photo { padding-bottom: 28px; }
    .wall-top { gap: 8px; }
    .wall .clock span { display: none; }
    .wall .clock { padding: 4px 7px; }
    .menu .wall .board { margin-top: 18px; max-width: 220px; padding: 8px 12px 6px; border-width: 5px; }
    .menu .wall .board img { max-height: 72px; }
    .menu .wall .board-name { font-size: 36px; }
    .menu .wall .board-sub { font-size: 10px; }
    .wall .board::before, .wall .board::after { top: -23px; height: 18px; }
    .wall-notes { margin-top: 10px; font-size: 12px; }
    .menu .search { margin-top: 10px; }
    .menu .street { padding-top: 8px; padding-bottom: 6px; }
    .menu .street a { font-size: 11.5px; }
    .menu .mini { width: 42px; height: 24px; }
    .menu .mini::after { width: 11px; height: 20px; right: 6px; }
    .menu .mini i { top: 8px; left: 7px; width: 12px; height: 12px; }
    .menu .mini i::before, .menu .mini i::after { height: 12px; }
    .menu .swipe-hint { display: none; }
    .menu .slides > .house { margin-top: 8px; }
    .menu .roof { height: 12px; }
    .menu .facade-wall { padding-top: 10px; gap: 8px; }
    .menu .sign { font-size: 26px; }
    /* Ventanas y puerta pequeñas: conservan la fachada sin alejar los platos. */
    .menu .openings { display: flex; gap: 24px; }
    .menu .win { width: 22px; height: 22px; margin-bottom: 5px; border-width: 2px; }
    .menu .win::before, .menu .win::after { top: -2px; width: 8px; height: 22px; }
    .menu .win::before { left: -11px; }
    .menu .win::after { right: -11px; }
    .menu .door { width: 28px; height: 32px; border-width: 2px; border-bottom: 0; border-radius: 14px 14px 0 0; }
    .menu .facade-wall { gap: 4px; padding-bottom: 0; }
    .menu .sidewalk { height: 6px; }
    .menu .cat-note { font-size: 13px; }
}

/* ---------- Pantalla del pedido ---------- */
.order-head { padding-bottom: 26px; }
.order-board { max-width: 300px; }
.order-label { margin: 2px 0 0; font-family: var(--f-grot); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.order-code { margin: 0; font-family: var(--f-grot); font-weight: 800; font-size: 58px; line-height: 1.05; letter-spacing: .08em; }
.order-body { padding: 4px 14px 30px; display: grid; gap: 14px; }
.order-state { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff; border-left: 6px solid var(--muted); }
.order-state strong { font-size: 18px; }
.order-state span { color: var(--muted); }
.order-state.ok { border-color: var(--leaf); }
.order-state.counter { border-color: var(--accent); }
.order-state.wait { border-color: var(--brand); }
.order-state.bad { border-color: var(--soldout); }
.order-sheet { border-radius: 12px; }
.order-retry { margin: 0; }
.order-foot { margin: 0; text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- Pie: el lago al final de la calle ---------- */
.lake { --waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V10C10 10 10 2 20 2S30 10 40 10 50 2 60 2 70 10 80 10 90 2 100 2 110 10 120 10V20Z'/%3E%3C/svg%3E");
    margin-top: 40px; color: #fff; text-align: center; display: grid; justify-items: center; gap: 4px;
    padding: 46px 20px calc(34px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, #2BB1D3 0%, #1E93B8 55%, #17789B 100%);
    -webkit-mask: var(--waves) top / 60px 20px repeat-x, linear-gradient(#000 0 0) 0 19px / 100% 100% no-repeat;
    mask: var(--waves) top / 60px 20px repeat-x, linear-gradient(#000 0 0) 0 19px / 100% 100% no-repeat; }
.lake p { margin: 0; }
.lake-name { font-family: var(--f-brush); font-size: 32px; line-height: 1.1; }
.lake-place { font-size: 14px; opacity: .92; }
.lake-notes { margin-top: 10px !important; font-size: 12.5px; opacity: .8; max-width: 38ch; }
.lake-link { margin-top: 16px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .6);
    border-radius: 999px; padding: 8px 16px; }
.lake-link:hover { background: rgba(255, 255, 255, .12); }
.lake-hdp { margin-top: 22px; display: block; width: 150px; opacity: .95; }
.lake-hdp img { display: block; width: 100%; height: auto; }

/* ---------- Inicio: portada de la carta (turquesa, "Menú" manuscrito, pestañas blancas desde el borde) ---------- */
/* Cielo turquesa → silueta de Flores → pestañas sobre la isla → lago */
.home { --island: #1E9AC0; position: relative; overflow: hidden; background: var(--island); color: #fff; display: flex; flex-direction: column; }
.home-head, .home-title { background: var(--brand); }
.home-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 16px 0; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
.home-logo { display: block; width: min(56vw, 230px); height: auto; }
.home .langs a { color: #fff; }
.home .langs a[aria-current="true"] { background: #fff; border-color: #fff; color: var(--brand-ink); }
.home-title { padding: 44px 20px 0; position: relative; }
.skyline { display: block; width: calc(100% + 40px); height: 90px; margin: 18px -20px 0; fill: var(--island); }
.home-title h1 { margin: 0; font-family: "Allura", "Segoe Script", cursive; font-weight: 400; font-size: clamp(96px, 30vw, 140px); line-height: .8;
    text-shadow: 0 2px 18px rgba(20, 36, 107, .18); }
.home-title p { margin: 14px 0 0; font-size: 17px; font-weight: 600; max-width: 26ch; }

.tabs-list { display: grid; gap: 18px; padding: 10px 0 34px 22px; }
/* Las pestañas salen desde el borde una tras otra. */
.venue-tab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; text-decoration: none; color: var(--brand-ink);
    background: #fff; border-radius: 999px 0 0 999px; padding: 14px 18px 14px 30px; min-height: 112px;
    box-shadow: 0 10px 28px rgba(20, 36, 107, .22); transition: transform .2s ease, box-shadow .2s ease;
    animation: tab-in .75s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(.2s + var(--i, 0) * .14s); }
@keyframes tab-in { from { transform: translateX(105%); } }
.venue-tab:hover, .venue-tab:focus-visible { transform: translateX(-8px); box-shadow: 0 14px 32px rgba(20, 36, 107, .26); }
.venue-tab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.venue-tab-logo { display: flex; align-items: center; min-width: 0; }
.venue-tab-logo img { display: block; max-height: 78px; max-width: 100%; width: auto; object-fit: contain; }
.venue-tab-name { font-family: var(--f-grot); font-weight: 800; font-size: 28px; color: var(--wall); }
.venue-tab-meta { display: grid; justify-items: end; gap: 8px; text-align: right; }
.venue-tab-hotel { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); max-width: 11ch; line-height: 1.25; }
.venue-tab-go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--wall); color: #fff; font-size: 18px; font-weight: 700; }
/* Con foto real: círculo a la izquierda, la pestaña conserva su forma */
.venue-tab:has(.venue-tab-photo) { grid-template-columns: auto 1fr auto; padding-left: 12px; }
.venue-tab-photo { order: -1; width: 86px; height: 86px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--wall); }
.venue-tab:has(.venue-tab-photo) .venue-tab-logo img { max-height: 64px; }
.home-empty { padding: 20px; }
.home-lake { margin-top: auto; }
.home-lake .lake-hdp { margin-top: 12px; }
/* Los tres restaurantes quedan a la vista al entrar desde un celular. */
@media (max-width: 599px) {
    .home-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
    .home-title { padding-top: 18px; }
    .home-title h1 { font-size: clamp(88px, 26vw, 110px); }
    .home-title p { margin-top: 10px; font-size: 15px; }
    .skyline { height: 44px; margin-top: 8px; }
    .tabs-list { gap: 12px; padding: 10px 0 24px 16px; }
    .venue-tab { gap: 10px; min-height: 100px; padding: 10px 14px 10px 24px; }
    .venue-tab:has(.venue-tab-photo) { padding-left: 10px; }
    .venue-tab-photo { width: 72px; height: 72px; }
    .venue-tab-meta { gap: 6px; }
    .venue-tab-hotel { font-size: 10.5px; }
    .venue-tab-go { width: 34px; height: 34px; }
}
@media (max-width: 599px) and (max-height: 640px) {
    .home-title { padding-top: 12px; }
    .home-title h1 { font-size: 88px; }
    .skyline { height: 28px; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .venue-tab { transition: none; animation: none; } }

/* ---------- Error ---------- */
.error-page { padding: 60px 20px; text-align: center; }
.error-page h1 { font-family: var(--f-brush); font-weight: 400; font-size: 48px; margin: 0 0 8px; }
.error-page a { color: #fff; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =====================================================================
   NOCHE: de 6 p. m. a 6 a. m. o con modo oscuro (clase .night, ver night.js)
   El cielo se oscurece, las casas encienden sus luces y el lago se pone de noche.
   ===================================================================== */
html.night {
    color-scheme: dark;
    --sky: #0E1632;
    --paper: #18213F;
    --ink: #EEF0F8;
    --muted: #A9B1CA;
}
html.night body { background: var(--sky); }
@media (min-width: 600px) { html.night body { background: #090F24; } }
/* Estrellas muy tenues en el cielo */
html.night .menu, html.night .home { background-color: var(--sky);
    background-image: radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, .35) 50%, transparent 51%),
                      radial-gradient(1px 1px at 70% 12%, rgba(255, 255, 255, .3) 50%, transparent 51%),
                      radial-gradient(1.5px 1.5px at 85% 45%, rgba(255, 255, 255, .25) 50%, transparent 51%),
                      radial-gradient(1px 1px at 40% 70%, rgba(255, 255, 255, .25) 50%, transparent 51%);
    background-size: 220px 220px; }
html.night .wall { box-shadow: inset 0 0 0 9999px rgba(5, 8, 25, .18); }
html.night .board { box-shadow: 6px 8px 0 rgba(0, 0, 0, .35), 0 0 34px rgba(255, 214, 120, .28); }

/* Buscador y calle */
html.night .search { background: var(--paper); border-color: #3A4572; color: var(--muted); }
html.night .search input { color: var(--ink); }
html.night .street { background: rgba(14, 22, 50, .94); border-bottom-color: rgba(255, 255, 255, .06); }
html.night .street a .mini { opacity: .85; filter: brightness(.8) saturate(.8); }
html.night .street a[aria-current="true"] .mini { opacity: 1; filter: brightness(.95); }
html.night .street a[aria-current="true"]::after { background: #FFD45C; }

/* Luces encendidas: ventanas amarillas con resplandor */
html.night .mini i { background: #FFD45C; box-shadow: 0 0 6px 1px rgba(255, 212, 92, .6); }
html.night .win { background: #FFD45C; box-shadow: 0 6px 0 -2px #FFF8EC, 0 0 18px 4px rgba(255, 210, 90, .45); }
html.night .facade-wall { box-shadow: inset 0 0 0 9999px rgba(5, 8, 25, .22); }
html.night .sign { box-shadow: 3px 4px 0 rgba(0, 0, 0, .35), 0 0 16px rgba(255, 220, 130, .35); }
html.night .roof { filter: brightness(.8); }
html.night .sidewalk { background: #5A5566; }

/* Hoja de platos */
html.night .sheet { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
html.night .item { border-bottom-color: rgba(255, 255, 255, .08); }
html.night .dots { border-bottom-color: rgba(255, 255, 255, .22); }
html.night .item.is-featured { background: color-mix(in srgb, var(--accent) 12%, var(--paper)); }
html.night .badge.feat { color: #1F1B33; background: color-mix(in srgb, var(--accent) 80%, #fff); }
html.night .slide-nav { background: rgba(24, 33, 63, .92); color: #fff; }

/* Carrito */
html.night .cart { background: var(--paper); }
html.night .cart-close, html.night .qty button { background: transparent; color: var(--ink); border-color: #3A4572; }
html.night .cart-line { border-bottom-color: rgba(255, 255, 255, .08); }
html.night .cart-field input, html.night .cart-field textarea { background: #10182F; color: var(--ink); border-color: #3A4572; }
html.night .seg label { border-color: #3A4572; }
html.night .seg label:has(input:checked) { background: color-mix(in srgb, var(--wall) 30%, var(--paper)); color: #fff; border-color: color-mix(in srgb, var(--wall) 60%, #fff); }
html.night .cart-counter { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--wall) 50%, #fff); }

/* La comanda y la foto en grande siguen siendo papel blanco */
html.night .ticket, html.night .photo-view figure { --ink: #1F1B33; --muted: #57536B; color: var(--ink); }

/* El lago de noche */
html.night .lake { background: linear-gradient(180deg, #1B5873 0%, #12405A 55%, #0B2C40 100%); }

/* Inicio de noche */
html.night .home { --island: #0F2A44; }
html.night .home-head, html.night .home-title { background: #123A5C; }
html.night .skyline { fill: var(--island); }
