/* Crazy Brownie · menú online. Colores y letras de la web de Crazy Brownie (noche, violeta y turquesa del logo). */
@font-face { font-family: "Paytone One"; src: url(/fuentes/paytone-one-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Paytone One"; src: url(/fuentes/paytone-one-latin-ext-400-normal.woff2) format("woff2"); font-display: swap; unicode-range: U+0100-024F; }
@font-face { font-family: "Figtree"; font-weight: 400; src: url(/fuentes/figtree-latin-400-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; font-weight: 600; src: url(/fuentes/figtree-latin-600-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; font-weight: 700; src: url(/fuentes/figtree-latin-700-normal.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Figtree"; font-weight: 800; src: url(/fuentes/figtree-latin-800-normal.woff2) format("woff2"); font-display: swap; }

:root {
  --noche: #170c24;
  --noche-2: #21123a;
  --noche-3: #2c1a4b;
  --uva: #5a2b93;
  --uva-2: #7b45bd;
  --turq: #36b9c7;
  --turq-ink: #0d2a2e;
  --caramelo: #e09455;
  --fucsia: #c95dc5; /* el del anillo del logo, un poco menos saturado */
  --crema: #f6eee4;
  --niebla: #bcaed3;
  --rojo: #ff8a8a;
  --verde: #7fe0a8;
  --linea: rgba(246, 238, 228, .13);
  --f-disp: "Paytone One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --f-text: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 18px;
  --pad: max(16px, env(safe-area-inset-left, 0px));
  --ancho: 640px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--crema); font: 400 16px/1.45 var(--f-text); min-height: 100vh; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }
a { color: var(--turq); }
h1, h2, h3 { font-family: var(--f-disp); font-weight: 400; letter-spacing: .3px; margin: 0; line-height: 1.1; }
.envuelve { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--pad); }
.cargando { min-height: 80vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--niebla); }
.cargando img { animation: late 1.4s ease-in-out infinite; }
@keyframes late { 50% { transform: scale(1.06); } }
.noscript { padding: 24px; text-align: center; }

/* encabezado */
.top { background: radial-gradient(120% 140% at 10% 0%, #3b1f66 0%, var(--noche) 62%); padding: 18px 0 14px; }
.marca { display: flex; align-items: center; gap: 12px; }
.marca img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(54, 185, 199, .25); }
.marca h1 { font-size: 28px; }
.marca p { margin: 2px 0 0; color: var(--niebla); font-size: 14px; }
.estado { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(127, 224, 168, .12); color: var(--verde); font-weight: 600; font-size: 14px; }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.estado.cerrado { background: rgba(255, 138, 138, .12); color: var(--rojo); }
.info { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; color: var(--niebla); font-size: 14px; }
.info b { color: var(--crema); font-weight: 600; }
.mensaje { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(224, 148, 85, .14); color: #ffd2ad; font-size: 14px; }

/* categorías */
.cats { position: sticky; top: 0; z-index: 5; background: rgba(23, 12, 36, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.cats .envuelve { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats .envuelve::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--noche-2); color: var(--crema); text-decoration: none; font-weight: 600; font-size: 14px; border: 1px solid var(--linea); }
.cats a.activa { background: var(--uva); border-color: var(--uva-2); }

/* productos */
.seccion { padding: 22px 0 6px; scroll-margin-top: 64px; }
.seccion h2 { font-size: 24px; }
.seccion > .envuelve > p { margin: 4px 0 0; color: var(--niebla); font-size: 14px; }
.lista { display: grid; gap: 12px; margin-top: 14px; }
.prod { display: grid; grid-template-columns: 1fr 104px; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 12px; border-radius: var(--r); background: var(--noche-2); border: 1px solid var(--linea); transition: transform .12s, border-color .12s; }
.prod:hover { border-color: rgba(54, 185, 199, .5); }
.prod:active { transform: scale(.99); }
.prod img { width: 104px; height: 104px; object-fit: cover; border-radius: 14px; background: var(--noche-3); }
.prod h3 { font-size: 19px; }
.prod .frase { margin: 4px 0 0; color: var(--fucsia); font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .desc { margin: 4px 0 0; color: var(--niebla); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod .precio { margin-top: 8px; font-weight: 800; font-size: 17px; }
/* precio de lista: tachado y más chico, antes del precio */
s { color: var(--niebla); font-weight: 600; font-size: .82em; text-decoration-thickness: 1.5px; }
.hoja .precio-hoja { margin: 10px 0 0; font-weight: 800; font-size: 18px; }
.hoja .precio-hoja small { color: var(--niebla); font-weight: 600; font-size: 13px; }
.opcion .off { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(127, 224, 168, .14); color: var(--verde); font-size: 12px; font-weight: 800; vertical-align: 1px; }
.prod.agotado { opacity: .55; }
.prod.sin-foto { grid-template-columns: 1fr; }
.etiqueta { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 138, 138, .16); color: var(--rojo); font-size: 12px; font-weight: 700; vertical-align: middle; }
@media (min-width: 720px) {
  :root { --ancho: 980px; }
  .lista { grid-template-columns: 1fr 1fr; }
}

/* barra del pedido */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 10px var(--pad) max(10px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(23, 12, 36, 0), rgba(23, 12, 36, .96) 30%); }
.barra .btn { max-width: var(--ancho); margin: 0 auto; display: flex; width: 100%; justify-content: space-between; }
.espacio-barra { height: 96px; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 20px; border: 0; border-radius: 16px; background: var(--turq); color: var(--turq-ink); font-weight: 800; font-size: 17px; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: transparent; color: var(--crema); border: 2px solid var(--linea); font-weight: 700; }
.btn.chico { min-height: 40px; padding: 8px 14px; font-size: 15px; border-radius: 12px; }
.btn.ancho { width: 100%; }
.cuenta { background: rgba(13, 42, 46, .15); padding: 3px 10px; border-radius: 999px; font-size: 15px; }
.link { background: none; border: 0; color: var(--turq); font-weight: 700; padding: 6px 0; }

/* hoja (producto) */
#hoja { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 3, 14, .72); }
#hoja[hidden] { display: none; }
.hoja { position: relative; width: 100%; max-width: 560px; max-height: 94vh; overflow: auto; background: var(--noche-2); border-radius: 22px 22px 0 0; }
.hoja.entra { animation: sube .2s ease-out; }
@keyframes sube { from { transform: translateY(30px); opacity: .6; } }
@media (min-width: 720px) { #hoja { align-items: center; } .hoja { border-radius: 22px; max-height: 88vh; } }
.hoja > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hoja .cuerpo { padding: 16px var(--pad) 0; }
.hoja h2 { font-size: 26px; }
.hoja .frase { margin: 8px 0 0; color: var(--fucsia); font-weight: 700; font-size: 14px; text-transform: uppercase; }
.hoja .desc { margin: 6px 0 0; color: var(--niebla); }
.encargo-aviso { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(54, 185, 199, .12); color: var(--crema); font-size: 14px; font-weight: 600; }
.cerrar { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(23, 12, 36, .8); color: var(--crema); font-size: 22px; line-height: 1; }
.pie-hoja { position: sticky; bottom: 0; margin-top: 18px; padding: 12px var(--pad) max(12px, env(safe-area-inset-bottom)); background: var(--noche-2); border-top: 1px solid var(--linea); display: flex; gap: 12px; align-items: center; }
.pie-hoja .btn { flex: 1; }
.grupo { margin-top: 18px; }
.grupo h3 { font-family: var(--f-text); font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.grupo h3 small { font-weight: 600; color: var(--niebla); font-size: 13px; }
.grupo h3 small.listo { color: var(--verde); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 2px solid var(--linea); background: transparent; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--uva); border-color: var(--uva-2); }
.chip:disabled { opacity: .4; text-decoration: line-through; }
/* los caterings: checks con los gustos que quiere que incluya */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 14px; border: 2px solid var(--linea); font-weight: 600; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--uva-2); cursor: pointer; }
.check:has(input:checked) { background: rgba(123, 69, 189, .18); border-color: var(--uva-2); }
.check:has(input:focus-visible) { outline: 2px solid var(--turq); outline-offset: 2px; }
.check.off { opacity: .4; cursor: default; }
.grupo .todos { margin-top: 10px; }
.filas { margin-top: 8px; }
.fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linea); }
.fila:last-child { border-bottom: 0; }
.fila.off { opacity: .45; }
.fila small { color: var(--rojo); font-weight: 700; margin-left: 6px; }
.fila small.extra { color: var(--fucsia); }
.paso { display: inline-flex; align-items: center; border: 2px solid var(--linea); border-radius: 999px; }
.paso button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; font-weight: 800; color: var(--crema); border-radius: 50%; }
.paso button:disabled { opacity: .3; }
.paso span { min-width: 26px; text-align: center; font-weight: 800; }

/* pedido */
.pagina { padding-top: 18px; padding-bottom: 40px; }
.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pagina h1 { font-size: 30px; }
.caja { margin-top: 16px; padding: 14px; border-radius: var(--r); background: var(--noche-2); border: 1px solid var(--linea); }
.caja > h2 { font-size: 20px; margin-bottom: 10px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.item:last-child { border-bottom: 0; }
.item b { font-weight: 700; }
.item small { color: var(--niebla); grid-column: 1; }
.item .acciones { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; }
.segm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--noche); border: 1px solid var(--linea); }
.segm button { min-height: 46px; border: 0; border-radius: 11px; background: none; font-weight: 700; }
.segm button[aria-pressed="true"] { background: var(--uva); }
.campo { display: grid; gap: 6px; margin-top: 12px; }
.campo label { font-weight: 600; font-size: 14px; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--linea); background: var(--noche); }
.campo textarea { min-height: 70px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--turq); outline: none; }
.campo.error input, .campo.error select { border-color: var(--rojo); }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--rojo); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.nota { color: var(--niebla); font-size: 14px; margin: 8px 0 0; }
.ok { color: var(--verde); font-weight: 600; }
.opciones { display: grid; gap: 8px; margin-top: 4px; }
.opcion { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px; border-radius: 14px; border: 2px solid var(--linea); background: var(--noche); text-align: left; width: 100%; }
.opcion[aria-pressed="true"] { border-color: var(--turq); background: rgba(54, 185, 199, .08); }
.opcion .punto { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--niebla); grid-row: span 2; }
.opcion[aria-pressed="true"] .punto { border: 6px solid var(--turq); }
.opcion b { font-weight: 700; }
.opcion small { color: var(--niebla); grid-column: 2; }
.totales { margin-top: 6px; }
.totales div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--niebla); }
.totales .total { color: var(--crema); font-weight: 800; font-size: 20px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--linea); }
.vacio { text-align: center; padding: 40px 0; color: var(--niebla); }

/* seguimiento */
.seguimiento h1 { font-size: 28px; }
.codigo { color: var(--niebla); margin-top: 4px; }
.pasos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.pasos li { position: relative; padding: 0 0 18px 34px; color: var(--niebla); }
.pasos li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--linea); background: var(--noche); }
.pasos li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: 2px; width: 2px; background: var(--linea); }
.pasos li:last-child::after { display: none; }
.pasos li.hecho:not(:last-child)::after { background: var(--turq); }
.pasos li.hecho { color: var(--crema); }
.pasos li.hecho::before { background: var(--turq); border-color: var(--turq); }
.pasos li.ahora { color: var(--crema); font-weight: 700; }
.pasos li.ahora::before { background: var(--caramelo); border-color: var(--caramelo); box-shadow: 0 0 0 5px rgba(224, 148, 85, .2); }
.alias { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 12px; background: var(--noche); border: 2px dashed rgba(54, 185, 199, .5); }
.alias b { font-size: 18px; word-break: break-all; }
.cvu b { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0; }
.quien { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(224, 148, 85, .12); color: #ffd9b8; font-size: 14px; }
.alerta { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 138, 138, .12); color: #ffc4c4; }
/* primer pedido en efectivo: se confirma por WhatsApp; y el repartidor en camino */
.caja.confirma { border: 2px solid rgba(127, 224, 168, .55); background: rgba(127, 224, 168, .08); }
.caja.confirma p { margin: 0 0 12px; }
.btn.wa { background: #25d366; color: #0b2b16; }
.caja.reparto { border-color: rgba(54, 185, 199, .45); }
.caja.reparto p { margin: 0 0 10px; }
/* el mapa del repartidor (OpenStreetMap): se actualiza solo mientras lleva el pedido */
.mapa { position: relative; height: 230px; margin: 4px 0 10px; border-radius: 14px; overflow: hidden; background: #e8e3da; border: 1px solid var(--linea); isolation: isolate; }
@media (min-width: 560px) { .mapa { height: 290px; } }
.mapa-t img { position: absolute; width: 256px; height: 256px; max-width: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.mapa-pin { position: absolute; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid #fff; font-size: 17px; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.mapa-casa { background: var(--turq); }
.mapa-moto { z-index: 2; background: var(--caramelo); transition: left 1.5s linear, top 1.5s linear; }
.mapa-moto::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--caramelo); animation: latido 1.8s ease-out infinite; }
@keyframes latido { from { transform: scale(.55); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.mapa-osm { position: absolute; right: 0; bottom: 0; z-index: 3; padding: 1px 6px; border-top-left-radius: 8px; background: rgba(255, 255, 255, .85); color: #333; font-size: 11px; line-height: 1.5; }
.mapa-osm a { color: #333; }
.caja.reparto .mapa-dato { margin: 0; font-size: 14px; color: var(--niebla); }
.mapa-dato b { color: var(--crema); }
@media (prefers-reduced-motion: reduce) { .mapa-moto { transition: none; } .mapa-moto::after { animation: none; } }
.pie { padding: 26px 0 36px; color: var(--niebla); font-size: 13px; text-align: center; }
.pie a { color: var(--niebla); }

#aviso { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px; background: var(--crema); color: var(--noche); font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
#aviso[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
