/* principal.css */

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #f0f0f0;
  min-height: 100vh;
}

body {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* Internet Explorer y Edge */
  overflow-y: scroll;           /* Previene movimientos raros en móviles */
}

body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}

/* Animación fadeInUp */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fadeInUp {
  animation: fadeInUp 0.8s ease both;
}

/* HEADER */
header {
  background-color: #1a1a1a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
  box-shadow: 0 0 10px #00ffff44;
}
.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffffaa;
}
#menu-toggle {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  display: none;
  cursor: pointer;
  z-index: 999;
}

/* NAV */
#main-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
#main-nav a {
  color: #f0f0f0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background 0.3s;
}
#main-nav a:hover {
  background: #00ffff33;
  border-radius: 8px;
}

/* MONEDAS Y PERFIL */
.monedas {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
}
#recargar-monedas {
  padding: 0.4rem 0.8rem;
  background: #00ffff;
  border: none;
  border-radius: 6px;
  color: #000;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}
#recargar-monedas:hover {
  background: #00cccc;
}
.user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #00ffff;
}

/* Banner */
.banner {
  background: url('/img/banner.png') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 5rem 1rem;
}
.banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.cta-btn {
  background-color: #e50914;
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.cta-btn:hover {
  background-color: #ff1f1f;
}

/* Títulos de secciones */
main h1 {
  text-align: center;
  font-size: 2rem;
  color: #00ffff;
  margin-top: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 8px #00ffff88;
  animation: fadeInUp 1s ease both;
}

/* Productos */
.productos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem;
}
.producto {
  background: #1f1f1f;
  border-radius: 12px;
  padding: 1rem;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.8s ease both;
  box-shadow: 0 0 8px #00ffff22;
  text-align: center;
  gap: 0.8rem;
}
.producto:hover {
  transform: scale(1.10);
  box-shadow: 0 0 20px #00ffff66, 0 0 40px #00ffff33;
}
.producto a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.producto img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  transition: filter 0.3s;
}
.producto .info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.5rem;
}
.producto .info h3 {
  font-size: 1rem;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 6px #00ffff44;
}

.producto .info p {
  font-size: 0.85rem;
  line-height: 1.3;
  color: #ccc;
}

.producto .info p strong {
  color: #00ffcc;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #ccc;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  animation: fadeInUp 1s ease both;
  border-top: 1px solid #00ffff33;
  margin-top: 3rem;
}
footer a {
  color: #00ffff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

#promo-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-content {
  background: #111;
  padding: 1.5rem 2rem 2.5rem;
  border-radius: 12px;
  text-align: center;
  color: #00fff2;
  position: relative;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 0 20px #00fff2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cerrar-promo {
  position: absolute;
  top: 10px; right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #00fff2;
  cursor: pointer;
  transition: transform 0.2s ease;
}
#cerrar-promo:hover {
  transform: scale(1.2);
}

.promo-img {
  width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.promo-slide-container {
  width: 100%;
}

.promo-slide {
  display: none;
}

.promo-slide.active {
  display: block;
}

.promo-nav {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 10px;
}

.promo-nav button {
  background: transparent;
  border: 2px solid #00fff2;
  color: #00fff2;
  font-size: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.promo-nav button:hover {
  background: #00fff2;
  color: #111;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .logo {
    display: none;
  }

  #menu-toggle {
    display: block;
    font-size: 1.5rem;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 70px;
    background-color: #1f1f1f;
    border: 1px solid #333;
    padding: 1rem;
    border-radius: 12px;
    flex-direction: column;
    box-shadow: 0 0 10px #00ffff88;
    z-index: 998;
  }

  #main-nav.visible {
    display: flex;
  }

  body {
    font-size: 15px;
  }

  .productos {
    flex-direction: row;
    justify-content: center;
    padding: 1rem;
    gap: 0.8rem;
  }

  .producto {
    width: 140px;
    padding: 0.8rem;
  }

  .producto .info h3 {
    font-size: 0.9rem;
  }

  .producto .info p {
    font-size: 0.8rem;
  }

  .banner {
    padding: 3.5rem 1rem;
  }

  .banner-text h1 {
    font-size: 1.5rem;
  }

  .banner-text p {
    font-size: 1rem;
  }

  .cta-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
  }

  main h1 {
    font-size: 1.7rem;
  }

  .monedas {
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  #recargar-monedas {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  footer {
    font-size: 0.85rem;
    padding: 1.5rem 0.8rem;
  }
}