/* Carta nocturna: negro, neón rosa, amarillo mostaza y rojo. Pensada primero para celular. */
:root {
  --fondo: #0c0a0f; --panel: #17121d; --panel2: #221a2b; --borde: #3a2c47;
  --rosa: #ff2e93; --amarillo: #ffc21f; --rojo: #e8432e; --texto: #fdf6ee; --suave: #c3b6c9; --verde: #25d366;
  --titulo: 'Shrikhand', 'Cooper Black', Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 500 16px/1.45 'Nunito Sans', system-ui, sans-serif; padding-bottom: 96px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 2px; }

.demo { margin: 0; padding: 6px 12px; background: var(--amarillo); color: #1b1200; text-align: center; font-size: .8rem; font-weight: 800; }
.portada { text-align: center; padding: 26px 16px 18px; background: radial-gradient(120% 80% at 50% 0%, #3b0f33 0%, var(--fondo) 70%); }
.marca { margin: 0; font: 400 clamp(2.9rem, 15vw, 5rem)/1.15 var(--titulo); color: var(--amarillo); -webkit-text-stroke: 6px var(--rojo); paint-order: stroke fill;
  filter: drop-shadow(0 0 10px #ff2e93cc) drop-shadow(0 0 26px #ff2e9377); transform: rotate(-3deg); }
.lema { margin: 4px 0 18px; letter-spacing: .34em; text-transform: uppercase; font-size: .75rem; font-weight: 800; color: var(--rosa); }
.suc-barra { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--panel); border: 1px solid var(--rosa); border-radius: 16px; padding: 10px 12px; box-shadow: 0 0 18px #ff2e9344; }
.suc-barra p { margin: 0; flex: 1; display: grid; }
.suc-barra small { color: var(--suave); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.suc-barra b { font-size: 1.1rem; }
.suc-barra span { color: var(--suave); font-size: .85rem; }
.estado { display: inline-block; margin: 12px 0 0; padding: 4px 14px; border-radius: 99px; background: #12321f; color: #8df0b4; font-size: .85rem; font-weight: 800; }
.estado.cerrado { background: #3a1214; color: #ffb3a8; }
.estado.duda { background: var(--panel2); color: var(--suave); }

.aviso { width: min(640px, 100% - 24px); margin: 12px auto; padding: 14px; border: 2px solid var(--amarillo); border-radius: 16px; background: #2a2008; }
.aviso p { margin: 0 0 10px; font-weight: 700; }
.aviso-botones { display: flex; flex-wrap: wrap; gap: 8px; }

.chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: #0c0a0ff2; border-bottom: 1px solid var(--borde); justify-content: safe center; scrollbar-width: none; }
.chips:empty { display: none; }
.chips a { flex: none; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-weight: 700; font-size: .9rem; }
.chips a:active { background: var(--rosa); }

main { max-width: 980px; margin: 0 auto; padding: 0 14px; }
section h2 { font: 400 1.7rem/1.2 var(--titulo); color: var(--rosa); text-shadow: 0 0 14px #ff2e9399; margin: 26px 2px 12px; }
.grilla { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); }
.prod { display: grid; grid-template-columns: 92px 1fr; gap: 12px; position: relative; padding: 12px; background: var(--panel); border: 1px solid var(--borde); border-radius: 18px; }
.prod img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--panel2); }
.prod h3 { margin: 0 0 4px; font-size: 1.08rem; font-weight: 800; }
.desc { margin: 0 0 6px; color: var(--suave); font-size: .86rem; }
.precio { margin: 0; padding-right: 52px; min-height: 40px; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; column-gap: 7px; }
.precio strong { color: var(--amarillo); font-size: 1.2rem; font-weight: 800; }
.precio s { color: var(--suave); font-size: .85rem; }
.sin, small.sin { color: #ffd979; font-size: .84rem; font-weight: 700; margin: 0 0 6px; }
.badge { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border-radius: 8px; background: var(--rojo); color: #fff; font-weight: 800; font-size: .8rem; }
.prod.no img, .prod.no h3, .prod.no .desc, .prod.no .precio { opacity: .45; }
.mas { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--amarillo); color: #1b1200; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.mas:disabled { background: var(--panel2); color: #75667f; }
.cargando { text-align: center; color: var(--suave); padding: 40px 0; }

.pie { text-align: center; color: var(--suave); font-size: .82rem; padding: 34px 16px 10px; }
.pie a { color: var(--rosa); font-weight: 800; }

.barra-pedido { position: fixed; z-index: 6; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 0; border-radius: 18px; background: var(--rosa); color: #fff; font-weight: 800; box-shadow: 0 6px 30px #ff2e9388; }
.barra-pedido b { background: #fff; color: var(--rosa); border-radius: 99px; min-width: 28px; height: 28px; display: grid; place-items: center; }
.barra-pedido span { flex: 1; text-align: left; }

dialog { width: min(560px, 100%); max-width: 100%; max-height: 92dvh; overflow: auto; margin: auto auto 0; padding: 20px 18px calc(22px + env(safe-area-inset-bottom)); border: 1px solid var(--rosa); border-bottom: 0; border-radius: 22px 22px 0 0; background: var(--panel); color: var(--texto); }
@media (min-width: 700px) { dialog { margin: auto; border-bottom: 1px solid var(--rosa); border-radius: 22px; } }
dialog::backdrop { background: #05030acc; backdrop-filter: blur(3px); }
dialog h2 { font: 400 1.45rem/1.25 var(--titulo); color: var(--amarillo); margin: 0 44px 12px 0; }
.cerrar { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--borde); background: var(--panel2); font-size: 1.4rem; line-height: 1; }

.suc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.suc-lista button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--borde); background: var(--panel2); }
.suc-lista button:hover, .suc-lista button[aria-current] { border-color: var(--rosa); }
.suc-lista b { font-size: 1.15rem; }
.suc-lista span { color: var(--suave); font-size: .9rem; }

.btn-principal, .btn-wsp { display: block; width: 100%; margin-top: 12px; padding: 15px; border: 0; border-radius: 14px; background: var(--amarillo); color: #1b1200; font-weight: 800; font-size: 1.05rem; text-align: center; text-decoration: none; }
.btn-principal:disabled { background: var(--panel2); color: #8d7f98; }
.btn-wsp { background: var(--verde); color: #052b13; }
.aviso .btn-wsp { width: auto; margin: 0; padding: 10px 16px; font-size: .95rem; }
.btn-borde { padding: 10px 14px; border-radius: 12px; border: 1px solid var(--rosa); background: transparent; font-weight: 700; font-size: .88rem; }
#dListo .btn-borde { width: 100%; margin-top: 10px; }
.btn-texto { background: none; border: 0; color: var(--suave); text-decoration: underline; padding: 10px; }
dialog > .btn-texto { display: block; margin: 6px auto 0; }

.campo { display: grid; gap: 5px; margin: 12px 0; font-weight: 700; font-size: .9rem; }
.campo input, .campo select, .campo textarea { width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--borde); background: var(--fondo); font-size: 16px; font-weight: 500; }
.opciones { border: 0; padding: 0; margin: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; }
.opciones legend { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.opciones label { flex: 1; min-width: 130px; display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--borde); background: var(--fondo); font-weight: 700; }
.opciones label:has(input:checked) { border-color: var(--amarillo); }
.opciones input { accent-color: var(--amarillo); width: 18px; height: 18px; }
.ayuda { color: var(--suave); font-size: .86rem; margin: 6px 0; }
.ayuda.limite { color: var(--texto); font-weight: 800; }
.calle-numero { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.envio-estado { margin: 4px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); color: var(--suave); font-size: .9rem; font-weight: 700; }
.envio-estado.ok { background: #12321f; color: #8df0b4; }
.envio-estado.lejos { background: #3a1214; color: #ffb3a8; }
.envio-estado.sin-verificar { background: #2a2008; color: #ffd979; }
#envioControl .btn-wsp { margin: 0 0 10px; }
#envioControl .btn-borde { width: 100%; }
.cantidad { display: flex; align-items: center; gap: 14px; justify-content: center; }
.cantidad > button:not(.btn-texto) { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--borde); background: var(--panel2); font-size: 1.3rem; }
.cantidad output { min-width: 2ch; text-align: center; font-weight: 800; }
.cantidad.chica { justify-content: flex-end; gap: 8px; }
.cantidad.chica > button:not(.btn-texto) { width: 38px; height: 38px; }
.pedido-suc { margin: -6px 0 8px; color: var(--rosa); font-weight: 800; }
.lineas { list-style: none; margin: 0; padding: 0; }
.lineas li { padding: 10px 0; border-bottom: 1px solid var(--borde); }
.lineas li > div:first-child { display: grid; gap: 2px; }
.lineas small { color: var(--suave); }
.lineas small.sin { color: #ffd979; }
.lineas strong { color: var(--amarillo); }
.lineas .rota { background: #3a121466; border-radius: 10px; padding: 10px; }
.lineas small.mal { color: #ffb3a8; font-weight: 700; }
.lineas .vacio { color: var(--suave); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.2rem; font-weight: 800; margin: 16px 0 0; }
.total strong { color: var(--amarillo); font-size: 1.5rem; }
.errores { list-style: none; margin: 10px 0 0; padding: 0; color: #ffb3a8; font-weight: 700; font-size: .92rem; }
.errores:empty { display: none; }

#toast { position: fixed; z-index: 20; left: 50%; bottom: 92px; transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--texto); color: #1b1200; font-weight: 800; opacity: 0; pointer-events: none; transition: .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Luces de bar: neón del nombre y tiras LED ---------- */
.marca { animation: encender 1.6s ease both, neon 7s linear 1.6s infinite; }
@keyframes encender { 0%, 14% { opacity: .12; } 28% { opacity: .9; } 40% { opacity: .35; } 60%, 100% { opacity: 1; } }
@keyframes neon { 0%, 90%, 94%, 100% { opacity: 1; } 92% { opacity: .62; } 97% { opacity: .85; } }

.portada { position: relative; padding-top: 38px; }
.portada > :not(.tira) { position: relative; z-index: 1; }
.tira, section h2::after { --luz: var(--rosa); height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--luz) 12%, color-mix(in srgb, var(--luz) 45%, #fff) 50%, var(--luz) 88%, transparent);
  box-shadow: 0 0 6px var(--luz), 0 0 16px 2px color-mix(in srgb, var(--luz) 70%, transparent), 0 0 36px 6px color-mix(in srgb, var(--luz) 35%, transparent); }
.tira { position: absolute; left: 0; right: 0; pointer-events: none; }
/* Resplandor que la tira tira sobre la pared */
.tira::after { content: ''; position: absolute; left: 4%; right: 4%; height: 90px; opacity: .3; background: radial-gradient(50% 100% at 50% 0%, var(--luz), transparent); }
.tira-techo { top: 0; animation: tira 6s linear infinite; }
.tira-techo::after { top: 3px; }
section h2 { display: flex; align-items: center; gap: 16px; font-size: clamp(1.35rem, 5.8vw, 1.7rem); }
section h2::after { content: ''; flex: 1; min-width: 36px; animation: tira 7s linear -2s infinite; }
section:nth-of-type(even) h2::after { --luz: var(--amarillo); animation-delay: -5s; }
/* Prendida casi siempre; se apaga un momento y vuelve con un titileo */
@keyframes tira { 0%, 62% { opacity: 1; } 66%, 78% { opacity: .14; } 81% { opacity: .9; } 84% { opacity: .35; } 88%, 100% { opacity: 1; } }

/* Quien pide menos movimiento no tiene transiciones. Las luces se ven siempre: son lentas, sin destellos rápidos. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}
