/* === Tipografía galáctica === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* === Reset y base === */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Orbitron', sans-serif;
  background-color: #0f0f2f;
  color: #fff;
  margin: 0;
  padding: 2rem;
  text-align: center;
}

/* === Encabezado tipo HUD === */
header {
  background: linear-gradient(to right, #0f0f2f, #1a1a4f);
  border-bottom: 2px solid #00ffff;
  box-shadow: 0 0 20px #00ffff;
  padding: 20px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

h1 {
  font-size: 3rem;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff;
  margin-bottom: 0.5rem;
}

.subtitulo {
  font-size: 1.5rem;
  color: #ff00ff;
  text-shadow: 0 0 10px #ff00ff;
  margin-bottom: 1rem;
  margin-top: -1rem;
}

.logo-nexus {
  max-width: 180px;
  margin: 1rem auto 20px;
  display: block;
  filter: drop-shadow(0 0 6px #00ffff);
  animation: flotar 3s ease-in-out infinite;
}

/* === Navegación === */
nav {
  margin-bottom: 1rem;
}

.volver,
.boton-tienda {
  display: inline-block;
  background-color: #00ffff;
  color: #0f0f2f;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 0 8px #00ffff80;
  transition: background-color 0.3s ease;
}

.volver:hover,
.boton-tienda:hover {
  background-color: #00cccc;
}

/* === Sección de productos === */
#productos,
.opciones-nexus {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 1rem;
}

.producto {
  background-color: #1a1a3f;
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 0 10px #00ffff50;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.producto:hover {
  transform: scale(1.03);
}

.producto img {
  width: 80%;
  max-width: 200px;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 0 12px #00ffff80;
}

.producto .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.producto h3 {
  margin: 0;
  color: #00ffff;
}

.producto p {
  margin: 0.3rem 0;
  color: #ccc;
}

/* === Botones === */
.boton-comprar,
.ver-rango,
.boton-cerrar {
  background-color: #00ffff;
  color: #0f0f2f;
  border: none;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 10px #00ffff;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.boton-comprar:hover,
.ver-rango:hover,
.boton-cerrar:hover {
  background-color: #00cccc;
  box-shadow: 0 0 16px #00ffff;
}

.ver-rango.activo {
  background-color: #ff00ff;
  box-shadow: 0 0 20px #ff00ff;
}

/* === Lightbox galáctico para rangos === */
.lightbox-rango,
.lightbox-nexus,
.lightbox-imagen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 15, 47, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(4px);
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-rango .contenido,
.lightbox-nexus .contenido,
.contenido-imagen {
  background-color: #1a1a3f;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px #00ffff;
  border: 2px solid #00ffff;
  color: #ccc;
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.lightbox-rango .contenido {
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-rango .contenido img,
.contenido-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 12px #00ffff80;
  margin-bottom: 1rem;
}

/* === Beneficios visuales === */
.lightbox-rango .beneficios {
  display: block;
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  color: #ccc;
  box-shadow: 0 0 10px #00ffff50;
}

.lightbox-rango .beneficios img {
  max-width: 100%;
  height: auto;
  border: 2px solid cyan;
  box-shadow: 0 0 12px #0ff;
  border-radius: 6px;
}

/* === Recuadros interactivos === */
.opcion {
  background-color: #1a1a3f;
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 1rem;
  width: 100%;
  max-width: 200px;
  box-shadow: 0 0 10px #00ffff50;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  color: #00ffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opcion:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px #00ffff;
}

/* === Imágenes del servidor === */
.imagen-servidor {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 0 12px #00ffff80;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-servidor:hover {
  transform: scale(1.03);
  box-shadow: 0 0 20px #00ffff;
}

/* === Vista móvil === */
@media (max-width: 600px) {
  .producto {
    max-width: 90%;
  }

  .logo-nexus {
    width: 120px;
  }

  .imagenes img {
    width: 100%;
  }
}

