/* =========================================================
   SNACKS CENTER — Menú QR (versión básica)
   Paleta: negro + naranja fuego + dorados
   ========================================================= */

:root {
  --bg: #050505;
  --bg-card: #0d0b09;
  --fire: #ff5a1f;
  --fire-deep: #d32f0f;
  --ember: #ff8c42;
  --gold: #e6b64c;
  --gold-soft: #f0cf7a;
  --text: #f4ede4;
  --text-muted: #b8a99a;
  --line: rgba(230, 182, 76, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Seguridad: ninguna imagen puede desbordar su contenedor */
img {
  max-width: 100%;
  height: auto;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* textura sutil de brasas */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 90, 31, 0.10), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(230, 182, 76, 0.08), transparent 40%);
}

/* ---------- Contenedor ---------- */
.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 18px 48px;
}

/* ---------- Encabezado ---------- */
.header {
  text-align: center;
  padding: 34px 0 22px;
  position: relative;
}

.logo-fire {
  font-family: 'Impact', 'Arial Black', 'Franklin Gothic Bold', sans-serif;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 2.6rem;
  line-height: 0.95;
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 30%, var(--fire) 70%, var(--fire-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(255, 90, 31, 0.45));
}

.logo-img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.logo-sub {
  font-family: 'Impact', 'Arial Black', sans-serif;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 4px;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 12px;
}

.meta {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.meta .at { color: var(--ember); }

.flame-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  width: 80%;
  color: var(--fire);
  font-size: 1.1rem;
}
.flame-divider::before,
.flame-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* ---------- Secciones ---------- */
.section {
  margin-top: 34px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Arial Black', 'Impact', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title .icon { color: var(--fire); font-size: 1.3rem; }
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

/* ---------- Items ---------- */
.item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 0%, rgba(255, 90, 31, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
}
.item:hover {
  transform: translateY(-2px);
  border-color: var(--fire);
  box-shadow: 0 6px 22px rgba(255, 90, 31, 0.22);
}
.item:hover::before { opacity: 1; }

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.item-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.item-price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.02rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.item-desc {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

/* Foto de producto (mini a la izquierda) */
.item-con-foto {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.item-foto {
  width: 72px;
  height: 72px;
  max-width: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
  overflow: hidden;
  align-self: flex-start;
}
.item-body {
  flex: 1;
  min-width: 0;
}

/* Niveles de picor */
.spice {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 8px;
}
.spice.infernal { background: rgba(211, 47, 15, 0.2); color: #ff6b4a; border: 1px solid var(--fire-deep); }
.spice.purgatorio { background: rgba(255, 90, 31, 0.16); color: var(--ember); border: 1px solid var(--fire); }
.spice.limo { background: rgba(230, 182, 76, 0.14); color: var(--gold-soft); border: 1px solid var(--gold); }

/* ---------- Nav / tabs de categoría ---------- */
.catnav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  margin: 0 -18px 8px;
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.catnav-btn {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: all .18s ease;
}
.catnav-btn:hover {
  color: var(--text);
  border-color: var(--fire);
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.25);
}
.catnav-btn.active {
  color: #050505;
  background: linear-gradient(180deg, var(--ember), var(--fire-deep));
  border-color: var(--fire);
}

/* ---------- Animación reveal ---------- */
.item, .section-title {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}
.item.revealed, .section-title.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--fire-deep), var(--gold));
  z-index: 50;
  transition: width .08s linear;
}

/* ---------- Botón ir hacia arriba ---------- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 999;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #ff8c42 0%, #e0520f 55%, #b92a0a 100%);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 4px 18px rgba(255, 90, 31, 0.55);
}
.to-top:hover {
  box-shadow: 0 8px 28px rgba(255, 90, 31, 0.75);
  transform: translateY(-3px);
  border-color: #fff;
}
.to-top:active { transform: scale(0.92); }
.to-top.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
}
.to-top-arrow {
  display: block;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
  margin-top: -2px;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 44px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.footer .brand {
  font-family: 'Impact', 'Arial Black', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-size: 1rem;
}

.footer .addr {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 8px;
}

.icon-pin, .icon-clock {
  margin-right: 4px;
}

.footer .hours {
  color: var(--ember);
  font-size: 0.86rem;
  margin-top: 8px;
}

.footer .handle {
  color: var(--gold);
  font-size: 0.84rem;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all .18s ease;
}
.socials a:hover {
  border-color: var(--fire);
  color: var(--fire);
  box-shadow: 0 0 14px rgba(255, 90, 31, 0.35);
}

.demo-note {
  margin-top: 20px;
  font-size: 0.7rem;
  color: #6f6359;
  letter-spacing: 0.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 380px) {
  .logo-fire { font-size: 2.1rem; }
  .logo-sub { letter-spacing: 0.3em; }
}
