:root {
  --bg-main: #0b0f14;
  --panel: #111827;
  --accent: #16f2b3;
  --accent2: #3b82f6;
  --danger: #ef4444;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --glow: 0 0 20px rgba(22,242,179,.5);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at top, #0f172a, var(--bg-main));
  color: var(--text);
  scroll-behavior: smooth;
}

/* BANNER */
.banner {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-bottom: 2px solid var(--accent);
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CONTENEDOR */
.contenedor {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}

/* ===============================
   CATEGORÍAS TIENDA
================================= */
.menus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 50px;
}

.menu-card {
  position: relative;
  background: linear-gradient(160deg, #020617, #0f172a);
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(22,242,179,.25);
  transition: .3s;
  overflow: hidden;
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--glow);
}

.menu-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.menu-card h3 {
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

/* ===============================
   PRODUCTOS
================================= */
.productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.producto {
  background: linear-gradient(160deg, #020617, #0f172a);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(22,242,179,.25);
  transition: .3s;
}

.producto:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow);
}

.producto img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.producto h4 {
  margin: 10px 0;
}

.producto .descripcion {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 10px 0;
  min-height: 36px;
}

.producto .precio {
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 10px;
}

.producto button {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  font-weight: bold;
  transition: transform 0.2s, box-shadow 0.2s;
}

.producto button:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

/* ===============================
   CARRITO
================================= */
.carrito {
  margin-bottom: 60px;
  padding: 20px;
  background: var(--panel);
  border-radius: 16px;
  border: 1px solid rgba(22,242,179,.25);
  box-shadow: var(--glow);
}

.carrito h2 {
  margin-bottom: 16px;
  color: var(--accent);
}

.carrito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.carrito-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.carrito-item span {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carrito-item .eliminar {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: none;
  background: var(--danger);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carrito-item .eliminar:hover {
  transform: scale(1.15);
  box-shadow: 0 0 10px var(--danger);
}

.carrito button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #020617;
  margin-top: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* ===============================
   CONTADOR FLOTANTE
================================= */
.carrito-contador {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #020617;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow);
  z-index: 1000;
}

/* ===============================
   NOTIFICACIÓN
================================= */
.notificacion {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #020617;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.notificacion.mostrar {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   BLOQUE MEDIA
================================= */
.bloque-media {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* CATEGORÍAS PRINCIPALES VIDEO */
.video-categorias {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.video-categorias button {
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid rgba(22,242,179,.3);
  background: var(--panel);
  color: var(--accent);
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-categorias button.active,
.video-categorias button:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #020617;
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* SUBMENÚ VIDEO */
.video-menu {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.video-menu button {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: var(--panel);
  color: var(--accent);
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
}

.video-menu button.active,
.video-menu button:hover {
  background: var(--accent);
  color: #020617;
}

/* VIDEO */
.media-video {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin: auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--glow);
}

.media-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===============================
   BOTÓN DISCORD FLOTANTE
================================= */
.flotantes {
  position: fixed;
  bottom: 100px; /* subido para no tapar footer */
  right: 30px;
  z-index: 1000;
  pointer-events: auto;
}

.boton-flotante {
  width: 70px;
  height: 70px;
  background: #5865F2;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: all 0.2s ease;
  text-align: center;
}

.boton-flotante:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(22,242,179,0.7);
}

.boton-texto {
  font-size: 12px;
  margin-top: 6px;
  color: #fff;
  font-weight: bold;
}

/* ICONO DISCORD */
.icono-discord {
  width: 32px;
  height: 32px;
  position: relative;
}

.icono-discord::before,
.icono-discord::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.icono-discord::before {
  width: 14px;
  height: 14px;
  background: #fff;
  top: 6px;
  left: 4px;
}

.icono-discord::after {
  width: 14px;
  height: 14px;
  background: #fff;
  top: 6px;
  right: 4px;
}

/* ===============================
   FOOTER
================================= */
.footer {
  background: var(--panel);
  text-align: center;
  padding: 20px 10px;
  border-top: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
}

.footer .propiedad {
  color: var(--accent);
  font-weight: bold;
  font-size: 13px;
}

/* REDES FOOTER */
.footer-redes {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-redes a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(22,242,179,.3);
  background: var(--panel);
  transition: all 0.2s ease;
}

.footer-redes a svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.footer-redes a:hover {
  background: var(--accent);
}

.footer-redes a:hover svg {
  fill: #020617;
}

/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 768px) {
  .banner { height: 180px; }
  .productos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .menus { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
