/* ============================================================
   URBAN BITE · Carta digital
   Concepto: LETRERO DE NEÓN CALLEJERO sobre pared de ladrillo.
   Carta estilo menú de local (nombre · · · precio). Mobile-first.
   ============================================================ */
:root {
  --bg:        #07060d;
  --panel:     rgba(16, 12, 26, 0.72);
  --panel-2:   rgba(22, 16, 34, 0.9);
  --borde:     rgba(255, 255, 255, 0.10);

  --rojo:      #ff2740;
  --rojo-2:    #ff003c;
  --cyan:      #22e6ff;
  --naranja:   #ff9f1c;
  --magenta:   #ff39e6;
  --amarillo:  #ffe24a;
  --verde:     #35ff9b;

  --texto:     #f7f2ff;
  --texto-sut: #a89bc8;

  --max:       760px;
  --nav-h:     60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--texto);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ================= CAPAS DE AMBIENTE ================= */
.amb { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
/* grafiti colorido de fondo (imagen YA desenfocada y liviana: sin filtros en vivo) */
.amb--wall {
  background: url('../img/wall-bg.jpg') center top / cover no-repeat;
}
/* oscurecido para que el texto del menú se lea bien sobre el grafiti */
.amb--dark {
  background:
    linear-gradient(to bottom, rgba(7,6,13,.62), rgba(7,6,13,.74) 45%, rgba(7,6,13,.82));
}
.amb--glow {
  background:
    radial-gradient(60vw 40vh at 82% -6%,  rgba(255,39,64,.22), transparent 60%),
    radial-gradient(55vw 40vh at 6% 10%,   rgba(34,230,255,.16), transparent 60%),
    radial-gradient(60vw 45vh at 50% 108%, rgba(255,57,230,.18), transparent 60%);
  mix-blend-mode: screen;
}
.amb--grain {
  opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}
.amb--scan {
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.14) 0 2px, transparent 2px 4px);
  opacity: .25;
}

/* ================= EFECTOS NEÓN (líneas + destellos) ================= */
.fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* marco de neón que se traza solo */
.fx-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-frame rect {
  fill: none; stroke: var(--cyan); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  stroke-dasharray: 390; stroke-dashoffset: 390; opacity: .4;
  filter: drop-shadow(0 0 5px var(--cyan));
  animation: trace 9s ease-in-out infinite;
}
@keyframes trace {
  0%   { stroke-dashoffset: 390;  opacity: .1; stroke: var(--cyan); }
  45%  { stroke-dashoffset: 0;    opacity: .5; }
  55%  { stroke: var(--magenta); }
  70%  { opacity: .5; }
  100% { stroke-dashoffset: -390; opacity: .1; stroke: var(--magenta); }
}
/* haces de luz que cruzan */
.fx-beam {
  position: absolute; left: 0; width: 100%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--c), transparent);
  box-shadow: 0 0 12px var(--c), 0 0 26px var(--c);
}
.fx-beam.b1 { --c: var(--cyan);    top: 30%; animation: beamX 11s linear infinite 1s; }
.fx-beam.b2 { --c: var(--magenta); top: 58%; animation: beamX 14s linear infinite 6s; }
.fx-beam.b3 { --c: var(--naranja); top: 82%; animation: beamXr 17s linear infinite 3s; }
@keyframes beamX  { 0% { transform: translateX(-100%); opacity: 0; } 7% { opacity: .85; } 43% { opacity: .85; } 50% { transform: translateX(100%); opacity: 0; } 100% { opacity: 0; } }
@keyframes beamXr { 0% { transform: translateX(100%);  opacity: 0; } 7% { opacity: .85; } 43% { opacity: .85; } 50% { transform: translateX(-100%); opacity: 0; } 100% { opacity: 0; } }
/* destellos que titilan */
.fx-spark {
  position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 8px var(--c), 0 0 16px var(--c); opacity: 0;
  animation: spark 3.8s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes spark { 0%,100% { opacity: 0; transform: scale(.4); } 8% { opacity: 1; transform: scale(1.25); } 17% { opacity: 0; transform: scale(.5); } 26% { opacity: .9; transform: scale(1); } 34% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) { .fx { display: none; } }

/* ================= LOGO (imagen de neón real) ================= */
@keyframes flicker { 0%,18%,22%,80%,100% { filter: none; } 20% { filter: brightness(.82); } 81% { filter: brightness(.9); } }
@keyframes glowpulse {
  0%,100% { box-shadow: 0 0 26px rgba(255,39,64,.4), inset 0 0 40px rgba(255,39,64,.1), 0 18px 44px rgba(0,0,0,.65); }
  50%     { box-shadow: 0 0 44px rgba(255,39,64,.6), inset 0 0 48px rgba(255,39,64,.16), 0 18px 44px rgba(0,0,0,.65); }
}

/* ================= INTRO ================= */
.intro {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; background: var(--bg);
  background-image: radial-gradient(70vw 50vh at 50% 40%, rgba(255,39,64,.22), transparent 60%);
  transition: opacity .5s ease, visibility .5s ease;
}
.intro--out { opacity: 0; visibility: hidden; }
.intro__img { width: min(260px, 70vw); max-height: 56vh; object-fit: contain; border-radius: 16px; box-shadow: 0 0 50px rgba(255,39,64,.45); }
.intro__bar { width: min(240px, 60vw); height: 6px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.intro__fill { display: block; width: 0%; height: 100%; background: linear-gradient(90deg, var(--rojo), var(--naranja), var(--magenta)); box-shadow: 0 0 14px var(--rojo); }
.intro__pct { font-family: 'Oswald', sans-serif; letter-spacing: 3px; font-size: .78rem; color: var(--texto-sut); text-transform: uppercase; }

/* ================= HERO ================= */
.hero { position: relative; z-index: 1; padding: 18px 14px 6px; display: flex; flex-direction: column; align-items: center; }
.hero__banner {
  position: relative; width: 100%; max-width: var(--max);
  height: clamp(220px, 64vw, 360px); border-radius: 20px; overflow: hidden;
  border: 1.5px solid rgba(255,39,64,.5); animation: glowpulse 4.5s ease-in-out infinite;
}
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; display: block; animation: flicker 7s infinite; }
/* viñeta para fundir el banner con el fondo */
.hero__banner::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7,6,13,.15) 0%, transparent 22% 68%, rgba(7,6,13,.95) 100%),
              radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(7,6,13,.5));
}
.hero__open {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .72rem; letter-spacing: 1.5px;
  color: var(--verde); background: rgba(0,0,0,.5); padding: 5px 11px; border-radius: 99px;
  border: 1px solid rgba(53,255,155,.5); text-shadow: 0 0 10px rgba(53,255,155,.9);
}
.hero__tag {
  position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; text-align: center;
  font-family: 'Oswald', sans-serif; font-weight: 600; font-size: .74rem; letter-spacing: 4px;
  color: var(--cyan); text-shadow: 0 0 12px rgba(34,230,255,.9), 0 2px 6px #000;
}
.hero__modo { margin-top: 14px; }
.modo-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 17px; border-radius: 99px;
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .9rem; letter-spacing: .5px;
  border: 1.5px solid; background: rgba(0,0,0,.3);
}
.modo-chip--mesa     { color: var(--cyan);    border-color: var(--cyan);    box-shadow: 0 0 18px rgba(34,230,255,.4); }
.modo-chip--delivery { color: var(--naranja); border-color: var(--naranja); box-shadow: 0 0 18px rgba(255,159,28,.4); }

/* ================= NAV CATEGORÍAS (scroll-spy) ================= */
.cats {
  position: sticky; top: 0; z-index: 30; display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; padding: 11px 14px; max-width: var(--max); margin: 8px auto 0;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(to bottom, rgba(7,6,13,.97), rgba(7,6,13,.8) 72%, transparent);
  backdrop-filter: blur(8px);
}
.cats::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; white-space: nowrap;
  padding: 8px 14px; border-radius: 99px; font-family: 'Oswald', sans-serif; font-weight: 600;
  font-size: .9rem; letter-spacing: .4px; color: var(--texto-sut);
  background: rgba(255,255,255,.04); border: 1.5px solid var(--borde); transition: all .18s ease;
}
.tab.activo { color: #fff; border-color: var(--rojo); background: rgba(255,39,64,.16); box-shadow: 0 0 16px rgba(255,39,64,.45); }

/* ================= MENÚ (scroll continuo) ================= */
.menu { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 6px 14px 130px; }
.cargando { text-align: center; color: var(--texto-sut); padding: 50px 0; }

.seccion { scroll-margin-top: calc(var(--nav-h) + 10px); margin-top: 30px; --c: var(--rojo); }
/* colores neón alternados por sección (como la carta original) */
.seccion.c0 { --c: var(--rojo); }
.seccion.c1 { --c: var(--cyan); }
.seccion.c2 { --c: var(--naranja); }
.seccion.c3 { --c: var(--magenta); }
.seccion.c4 { --c: var(--verde); }
.seccion.c5 { --c: var(--amarillo); }
.seccion__head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.seccion__emoji {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-size: 1.3rem;
  background: rgba(255,255,255,.04); border: 1.5px solid var(--c);
  box-shadow: 0 0 16px var(--c), inset 0 0 14px rgba(255,255,255,.05);
}
.seccion__nombre {
  font-family: 'Bebas Neue', sans-serif; font-size: clamp(26px, 7.5vw, 38px); letter-spacing: 1.5px;
  line-height: 1; color: #fff; text-shadow: 0 0 8px var(--c), 0 0 20px var(--c), 0 0 38px var(--c);
}
.seccion__count { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--texto-sut); }
.seccion__linea { height: 2px; margin: 10px 2px 8px; border-radius: 2px; background: linear-gradient(90deg, var(--c), transparent); box-shadow: 0 0 8px var(--c); }

/* ---- fila de ítem (estilo menú con línea punteada) ---- */
.item { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.item.agotado { opacity: .5; }
.item__row { display: flex; align-items: baseline; gap: 8px; }
.item__nombre { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.06rem; letter-spacing: .3px; color: #fff; }
.item__lead { flex: 1; min-width: 14px; align-self: center; border-bottom: 2px dotted rgba(255,255,255,.22); transform: translateY(-3px); }
.item__precio { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .5px; color: var(--amarillo); text-shadow: 0 0 12px rgba(255,226,74,.55); white-space: nowrap; }
.item__desc { margin-top: 3px; font-size: .82rem; color: var(--texto-sut); line-height: 1.35; max-width: 92%; }
.item__bajo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }

.tamanos { display: flex; flex-wrap: wrap; gap: 6px; }
.tamano { font-size: .76rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; cursor: pointer; color: var(--texto-sut); background: transparent; border: 1px solid var(--borde); transition: all .15s ease; }
.tamano.activo { color: #fff; border-color: var(--cyan); background: rgba(34,230,255,.14); box-shadow: 0 0 10px rgba(34,230,255,.3); }

.btn-add {
  border: none; cursor: pointer; color: #fff; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: .84rem;
  letter-spacing: .4px; padding: 9px 16px; border-radius: 99px; white-space: nowrap;
  background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
  box-shadow: 0 0 16px rgba(255,39,64,.5); transition: transform .12s ease, filter .12s ease;
}
.btn-add:active { transform: scale(.93); }
.btn-add:hover { filter: brightness(1.08); }
.item__off { font-size: .8rem; color: var(--texto-sut); font-weight: 600; }

.stepper { display: inline-flex; align-items: center; gap: 2px; background: rgba(0,0,0,.35); border: 1px solid var(--rojo); border-radius: 99px; box-shadow: 0 0 12px rgba(255,39,64,.35); }
.stepper button { width: 32px; height: 32px; border: none; background: transparent; color: #fff; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.stepper button:active { color: var(--rojo); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }

/* ================= BARRA CARRITO ================= */
.barra-carrito {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 40;
  width: min(var(--max), calc(100% - 28px)); display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 13px 18px; border: none; border-radius: 99px; color: #fff;
  background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
  box-shadow: 0 10px 30px rgba(255,0,60,.5), inset 0 0 0 1.5px rgba(255,255,255,.12); animation: pop .25s ease;
}
@keyframes pop { from { transform: translate(-50%,16px); opacity: 0; } to { transform: translate(-50%,0); opacity: 1; } }
.barra-carrito__cont { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; background: #fff; color: var(--rojo-2); border-radius: 99px; font-weight: 800; font-size: .9rem; }
.barra-carrito__txt { font-family: 'Oswald', sans-serif; font-weight: 700; letter-spacing: .5px; flex: 1; text-align: left; }
.barra-carrito__total { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: .5px; }

/* ================= HOJA / MODAL ================= */
.hoja { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; }
.hoja__fondo { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(3px); }
.hoja__panel { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; max-height: 88dvh; display: flex; flex-direction: column; background: linear-gradient(to bottom, var(--panel-2), var(--bg)); border: 1.5px solid var(--borde); border-bottom: none; border-radius: 22px 22px 0 0; box-shadow: 0 -14px 44px rgba(0,0,0,.6); animation: subir .28s cubic-bezier(.2,.8,.2,1); }
@keyframes subir { from { transform: translateY(100%); } to { transform: translateY(0); } }
.hoja__cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; border-bottom: 1px solid var(--borde); }
.hoja__cab h2 { font-family: 'Oswald', sans-serif; font-size: 1.25rem; letter-spacing: .5px; }
.hoja__cerrar { width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--borde); background: rgba(255,255,255,.05); color: var(--texto); cursor: pointer; font-size: 1rem; }
.hoja__items, .hoja__form { padding: 12px 16px; overflow-y: auto; flex: 1; }

.citem { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--borde); }
.citem__info { flex: 1; }
.citem__nombre { font-weight: 700; font-size: .95rem; }
.citem__meta { font-size: .78rem; color: var(--texto-sut); }
.citem__sub { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--amarillo); min-width: 62px; text-align: right; }
.hoja__vacio { text-align: center; color: var(--texto-sut); padding: 30px 0; }

.hoja__pie { padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--borde); background: rgba(0,0,0,.28); }
.hoja__total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hoja__total span { color: var(--texto-sut); font-weight: 600; }
.hoja__total strong { font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; color: var(--amarillo); text-shadow: 0 0 12px rgba(255,226,74,.5); }

.btn-primario { width: 100%; border: none; cursor: pointer; color: #fff; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: .5px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--rojo), var(--rojo-2)); box-shadow: 0 0 22px rgba(255,39,64,.5); transition: transform .12s ease, filter .12s ease; }
.btn-primario:active { transform: scale(.98); }
.btn-primario:hover { filter: brightness(1.08); }

/* formulario */
.campo { margin-bottom: 14px; }
.campo__label { display: block; font-size: .85rem; font-weight: 600; color: var(--texto-sut); margin-bottom: 6px; }
.campo__label b { color: var(--rojo); }
.campo input, .campo textarea, .campo select { width: 100%; padding: 12px 13px; border-radius: 12px; font-size: 1rem; font-family: inherit; color: var(--texto); background: rgba(0,0,0,.32); border: 1.5px solid var(--borde); transition: border-color .15s ease, box-shadow .15s ease; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--rojo); box-shadow: 0 0 0 3px rgba(255,39,64,.18); }
.campo textarea { resize: vertical; min-height: 56px; }
.segmento { display: flex; gap: 8px; }
.segmento label { flex: 1; text-align: center; cursor: pointer; padding: 11px 8px; border-radius: 12px; font-weight: 700; font-size: .92rem; color: var(--texto-sut); background: rgba(0,0,0,.3); border: 1.5px solid var(--borde); transition: all .15s ease; }
.segmento input { position: absolute; opacity: 0; pointer-events: none; }
.segmento label:has(input:checked) { color: #fff; border-color: var(--rojo); background: rgba(255,39,64,.16); box-shadow: 0 0 14px rgba(255,39,64,.35); }

/* ================= ÉXITO ================= */
.exito { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(5,3,9,.9); backdrop-filter: blur(5px); }
.exito__caja { max-width: 420px; width: 100%; text-align: center; padding: 30px 24px; background: linear-gradient(to bottom, var(--panel-2), var(--bg)); border: 1.5px solid var(--verde); border-radius: 22px; box-shadow: 0 0 36px rgba(53,255,155,.3); animation: subir .3s ease; }
.exito__check { font-size: 3.4rem; filter: drop-shadow(0 0 16px rgba(53,255,155,.7)); }
.exito__titulo { font-family: 'Oswald', sans-serif; font-size: 1.5rem; margin: 10px 0 8px; }
.exito__texto { color: var(--texto-sut); line-height: 1.45; margin-bottom: 22px; }

/* ================= TOAST / LIGHTBOX ================= */
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 70; background: rgba(20,12,28,.96); color: #fff; font-weight: 600; font-size: .9rem; padding: 11px 18px; border-radius: 99px; border: 1px solid var(--rojo); box-shadow: 0 0 18px rgba(255,39,64,.4); animation: pop .2s ease; }
.lightbox { position: fixed; inset: 0; z-index: 85; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox__fondo { position: absolute; inset: 0; background: rgba(0,0,0,.9); }
.lightbox__img { position: relative; max-width: 100%; max-height: 90dvh; border-radius: 14px; box-shadow: 0 0 40px rgba(255,39,64,.4); }
.lightbox__cerrar { position: absolute; top: 16px; right: 16px; z-index: 2; width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--borde); background: rgba(0,0,0,.5); color: #fff; font-size: 1.1rem; cursor: pointer; }

/* ================= PIE ================= */
.pie { position: relative; z-index: 1; text-align: center; padding: 34px 18px 130px; color: var(--texto-sut); margin-top: 30px; border-top: 1px solid var(--borde); }
.pie__logo { width: 150px; max-width: 54vw; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 0 26px rgba(255,39,64,.35); }
.pie__tag { font-size: .9rem; margin-bottom: 10px; }
.pie__contacto { font-size: .86rem; line-height: 1.7; }
.pie__credito { margin-top: 16px; font-size: .8rem; }
.pie__credito a { color: var(--cyan); text-decoration: none; }

[hidden] { display: none !important; }
