:root {
  --azul-neon: #3A6BFF;
  --rojo-neon: #FF3A4A;
  --gris-oscuro: #111111;
  --gris-medio: #1a1a1a;
  --texto-suave: #cccccc;
}

/* SLOGAN NEÓN */
.slogan-neon {
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  color: #3A6BFF;
  text-align: center;
  margin-top: 10px;

  text-shadow:
    0 0 4px rgba(58,107,255,0.8),
    0 0 10px rgba(58,107,255,0.6),
    0 0 18px rgba(58,107,255,0.35);
}

.slogan-neon span {
  font-weight: 600;
  color: #4f7bff;
  text-shadow:
    0 0 4px rgba(50,90,230,0.8),
    0 0 12px rgba(50,90,230,0.6),
    0 0 20px rgba(50,90,230,0.35);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

/* ========= FONDO GLOBAL (nuevo, con fade suave real) ========= */

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #ffffff;

  /* Fondo base (estable, sin animación brusca) */
  background: radial-gradient(circle at top, #020617 0%, #020617 30%, #000000 100%);
  position: relative;
  overflow-x: hidden;
}

/* Capa con fade azul que prende/apaga suavemente */
body::before {
  content: "";
  position: fixed;
  inset: -80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 59, 112, 0.9) 0%, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(38, 59, 112, 0.6) 0%, transparent 60%);
  opacity: 0.25;
  animation: fondoFade 18s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* FONDO ANIMADO – MÁS RÁPIDO Y MÁS MARCADO */
body::before {
  content: "";
  position: fixed;
  inset: -80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(38, 59, 112, 1) 0%, transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(38, 59, 112, 0.9) 0%, transparent 60%);
  opacity: 0.25;
  animation: fondoFade 7s ease-in-out infinite;  /* velocidad aumentada */
  pointer-events: none;
  z-index: -1;
}

@keyframes fondoFade {
  0%   { opacity: 0.15; }
  30%  { opacity: 0.75; }  /* mucho más brillo */
  60%  { opacity: 0.45; }
  100% { opacity: 0.15; }
}


/* ========= PANELS ========= */

.header,
.menu,
main,
footer {
  background: rgba(0, 0, 0, 0.18);
}

/* HEADER */
.header {
  padding: 20px 10px;
  text-align: center;
  border-bottom: 2px solid var(--azul-neon);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: transparent;
}

.logo {
  max-width: 140px;
  height: auto;
}

.rotulo {
  max-width: 240px;
  height: auto;
}

/* ========= MENÚ – estilo metálico tipo CTA ========= */

.menu {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #222222;
}

.menu button {
  background: linear-gradient(145deg, #262a33 0%, #151820 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #ffffff;
  padding: 8px 16px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(58, 107, 255, 0.25) inset;
  transition: background .25s, color .25s, transform .2s, box-shadow .25s;
}

.menu button.activo,
.menu button:hover {
  background: linear-gradient(145deg, #3A6BFF 0%, #243a82 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(58, 107, 255, 0.7);
}

/* ========= GRID PRODUCTOS ========= */

main {
  padding: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 18px;
}

.producto {
  background: var(--gris-medio);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid #252525;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.producto:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  border-color: var(--azul-neon);
}

.producto img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 180px;
}

.producto h3 {
  margin: 10px 0 4px;
  font-size: 15px;
}

/* CATEGORÍA – más grande y legible */
.producto .categoria {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--azul-neon);
}

.producto p {
  font-size: 12px;
  color: var(--texto-suave);
  margin: 4px 0 8px;
}

.precio {
  font-size: 18px;
  color: var(--rojo-neon);
  margin: 4px 0 8px;
  font-weight: 600;
}

/* ========= BOTÓN “AGREGAR AL CARRITO” – dark + glow ========= */

.producto button {
  margin-top: auto;
  background: #10141f;
  border: 1px solid rgba(58, 107, 255, 0.75);
  padding: 9px;
  width: 100%;
  color: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    0 0 0 1px rgba(58, 107, 255, 0.35),
    0 0 16px rgba(58, 107, 255, 0.5);
  transition:
    background .22s,
    transform .18s,
    box-shadow .22s,
    border-color .22s;
}

.producto button:hover {
  background: #182136;
  box-shadow:
    0 0 0 1px rgba(58, 107, 255, 0.5),
    0 0 22px rgba(58, 107, 255, 0.75);
  transform: translateY(-1px);
}

.producto button:active {
  background: var(--rojo-neon);
  border-color: var(--rojo-neon);
  box-shadow:
    0 0 0 1px rgba(255, 58, 74, 0.6),
    0 0 18px rgba(255, 58, 74, 0.8);
  transform: translateY(0);
}

/* ========= BOTÓN CARRITO FLOAT – dark + glow ========= */

.carrito-float button {
  position: fixed;
  bottom: 20px;
  right: 16px;
  background: #10141f;
  border: 1px solid rgba(58,107,255,0.75);
  padding: 12px 18px;
  color: #ffffff;
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow:
    0 0 0 1px rgba(58, 107, 255, 0.35),
    0 0 20px rgba(58, 107, 255, 0.65);
  z-index: 20;
  transition:
    background .22s,
    box-shadow .22s,
    transform .18s,
    border-color .22s;
}

.carrito-float button:hover {
  background: #182136;
  box-shadow:
    0 0 0 1px rgba(58, 107, 255, 0.5),
    0 0 26px rgba(58, 107, 255, 0.9);
  transform: translateY(-1px);
}

.carrito-float button:active {
  background: var(--rojo-neon);
  border-color: var(--rojo-neon);
  box-shadow:
    0 0 0 1px rgba(255, 58, 74, 0.6),
    0 0 22px rgba(255, 58, 74, 0.9);
  transform: translateY(0);
}

#carrito-count {
  background: #ffffff;
  color: #000000;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 13px;
}

/* ========= MODAL ========= */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.oculto {
  display: none;
}

.modal .contenido {
  background: #1b1b1b;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h2 {
  margin-top: 0;
}

#carrito-lista {
  list-style: none;
  padding-left: 0;
  font-size: 14px;
}

#carrito-lista li {
  margin-bottom: 6px;
}

.carrito-total {
  margin-top: 10px;
  margin-bottom: 10px;
  font-weight: 600;
}

.wsp {
  background: #25D366;
  border: none;
  padding: 10px;
  width: 100%;
  border-radius: 8px;
  margin-top: 10px;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
}

.cerrar {
  background: #444444;
  border: none;
  padding: 8px;
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
}

/* ========= RESPONSIVE ========= */

@media (min-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: center;
  }

  .header .logo {
    margin-right: 20px;
  }

  main {
    padding: 20px 40px 40px;
  }
}
