/* === ESTILOS GLOBALES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

/* === VIDEO DE FONDO === */
video#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* === CAPA DE DEGRADADO ENCIMA DEL VIDEO === */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.9) 100%);
  z-index: -1;
}

/* === CABECERA / NAVEGACIÓN === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 18px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.65);
  z-index: 10;
  overflow: hidden; /* evita que la línea sobresalga */
}

/* Línea verde animada debajo del header */
header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #00ff80, #ffffff, #00ff80, #0f0);
  background-size: 400% 100%;
  animation: moverLineaVerde 5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 255, 80, 0.7);
}

/* Animación del borde */
@keyframes moverLineaVerde {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header h1 {
  font-size: 2rem;
  color: #fff;
  letter-spacing: 2px;
  text-transform: uppercase;
}






/* === MENÚ === */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  display: inline-block;
  min-width: 130px; /* ancho mínimo uniforme */
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 10px 18px;
  border-radius: 30px;
  transition: all 0.4s ease;
  background: transparent;
  position: relative;
}

/* Hover: se muestra fondo gradiente directamente */
nav ul li a:hover,
nav ul li a.active {
  background: linear-gradient(120deg, red, black);
  color: #fff;
  font-weight: bold;
  transform: scale(1.05);
}



/* === SECCIÓN PRINCIPAL (HERO) === */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ff4d4d 15%,
    #1a1a1a 30%,
    #ff0000 50%,
    #4d4d4d 70%,
    #ffffff 85%,
    #ff1a1a 100%
  );
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: moverReflejo 16s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.45));
}

/* Movimiento del reflejo */
@keyframes moverReflejo {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}



.hero p {
  font-size: 1.3rem;
  color: #ffffff;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.15),
               0 0 20px rgba(255, 0, 0, 0.3);
  margin-bottom: 30px;
  animation: brillarTexto 4s ease-in-out infinite;
}

@keyframes brillarTexto {
  0%, 100% { text-shadow: 0 0 8px rgba(255, 0, 0, 0.3); }
  50% { text-shadow: 0 0 18px rgba(255, 0, 0, 0.6); }
}



.hero button {
  position: relative;
  padding: 14px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 40px;
  background-color: #0a0a0a; /* fondo oscuro permanente */
  color: #f5f5f5;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0, 255, 80, 0.2);
}

/* Borde animado en verde y blanco */
.hero button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  padding: 2px;
  background: linear-gradient(120deg, #00ff80, #ffffff, #00ff80, #0f0);
  background-size: 400% 400%;
  animation: moverBordeVerde 6s linear infinite;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 0;
}

/* Efecto neón al pasar el cursor */
.hero button:hover {
  background-color: #0d0d0d;
  color: #f3ebeb;
  box-shadow: 0 0 25px #00ff80, 0 0 60px #00ffaa;
  transform: scale(1.05);
}

.hero button:hover::before {
  background: linear-gradient(120deg, #00ff99, #00ffcc, #ffffff, #00ff99);
  animation: moverBordeBrillante 2s linear infinite;
}

/* Animación del borde normal */
@keyframes moverBordeVerde {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Animación del borde en modo hover (más rápido y brillante) */
@keyframes moverBordeBrillante {
  0% { background-position: 0% 50%; filter: brightness(1.2); }
  50% { background-position: 100% 50%; filter: brightness(2); }
  100% { background-position: 0% 50%; filter: brightness(1.2); }
}



/* === SECCIÓN DE DESTACADOS === */
.destacados {
  background: #0a0a0a;
  padding: 120px 50px;
  text-align: center;
}

.destacados h2 {
  font-size: 2.7rem;
  margin-bottom: 60px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}

.destacados h2::after {
  content: "";
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, red, white, black);
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
}

/* === SECCIÓN DESTACADOS (FONDO Y LÍNEA SUPERIOR) === */
.destacados {
  position: relative; /* necesario para el pseudo-elemento de la línea */
  padding: 80px 80px 40px 80px; /* espacio arriba para la línea y abajo para productos */
  background: linear-gradient(270deg, #111, #222, #111); /* fondo suave como el footer */
  overflow: hidden;
}

/* === LÍNEA SUPERIOR ANIMADA EN EL FONDO DE DESTACADOS === */
.destacados::before {
  content: "";
  position: absolute;
  top: 0; /* pegada al borde superior */
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00ff80, #ffffff, #00ff80, #0f0);
  background-size: 400% 100%;
  animation: moverLineaVerde 5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 255, 80, 0.7);
  border-radius: 2px;
  z-index: 2;
}

/* === ANIMACIÓN DE LA LÍNEA === */
@keyframes moverLineaVerde {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === PRODUCTOS DESTACADOS (ALINEADOS Y DISTRIBUIDOS) === */
.productos {
  display: flex;
  justify-content: space-between; /* Distribuye de forma uniforme */
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  padding: 40px 0 0 0; /* Eliminamos padding horizontal, ya viene de la sección */
  box-sizing: border-box;
  position: relative; /* por si quieres agregar efectos sobre productos */
  z-index: 1; /* debajo de la línea */
}

/* Cada tarjeta de producto */
.producto {
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  flex: 1 1 300px; /* Permite que se ajusten sin romper el diseño */
  max-width: 320px;
  min-width: 260px;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(40px);
  animation: aparecer 1s ease forwards;
}

/* Borde animado sutil */
.producto::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(90deg, red, #ff3333, red);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.producto:hover::before {
  opacity: 1;
  animation: bordeSutil 3s linear infinite;
}

@keyframes bordeSutil {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* Animación de aparición */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Imagen */
.producto img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
  transition: all 0.4s ease;
}

.producto:hover img {
  transform: scale(1.03);
}

/* Info */
.producto-info {
  padding: 20px;
  text-align: center;
}

.producto-info h3 {
  color: #ff2a2a;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.producto-info p {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Botón */
.producto-info button {
  background: linear-gradient(45deg, #ff2a2a, #000);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.producto-info button:hover {
  background: linear-gradient(45deg, white, #ff2a2a);
  color: black;
  transform: scale(1.1);
}


/* === PIE DE PÁGINA PRINCIPAL (COLUMNAS) === */
.footer {
  position: relative;
  background: linear-gradient(270deg, #111, #222, #111); /* gradiente más suave */
  background-size: 400% 400%;
  animation: moverFondo 60s ease infinite; /* movimiento muy lento y suave */
  color: white;
  padding: 0 80px; /* eliminamos padding vertical para controlar altura con flex */
  display: flex;
  flex-direction: column; /* columna principal para organizar contenido y copyright */
  justify-content: center; /* centra verticalmente las columnas dentro del footer */
  align-items: center; /* centra horizontalmente las columnas */
  overflow: hidden;
  z-index: 1;
  min-height: 90vh; /* ocupa buena parte de la pantalla */
}

/* Línea superior animada (verde) */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00ff80, #ffffff, #00ff80, #0f0);
  background-size: 400% 100%;
  animation: moverLineaVerde 5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 255, 80, 0.7);
}

/* Eliminamos la línea inferior */
.footer::after {
  display: none;
}

/* Animaciones */
@keyframes moverFondo {
  0% { background-position: 0% 50%; }
  50% { background-position: 10% 50%; } /* movimiento muy sutil */
  100% { background-position: 0% 50%; }
}

@keyframes moverLineaVerde {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Contenedor de las columnas centrado */
.footer-columns-wrapper {
  display: flex;
  justify-content: center; /* centra columnas horizontalmente */
  align-items: flex-start; /* sube columnas hacia arriba */
  flex-wrap: wrap;
  width: 100%;
  gap: 40px; /* espacio entre columnas */
  z-index: 2;
}

/* Columnas del footer */
.footer-column {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-column h4 {
  color: red;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 1.4rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin: 10px 0;
}

.footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: white;
}

/* Iconos redes sociales */
.footer-social {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.footer-social a {
  color: white;
  margin: 0 10px;
  font-size: 1.7rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: red;
  transform: scale(1.2);
}

/* === BLOQUE INFERIOR (COPYRIGHT) PEGADO AL BORDE INFERIOR CON LÍNEA SUPERIOR === */
.footer-bottom {
  text-align: center;
  width: 100vw;
  padding: 20px 0;
  font-size: 0.9rem;
  background-color: #111; /* fondo sólido */
  color: #aaa;
  position: absolute; /* pegado al borde inferior */
  bottom: 0;
  left: 0;
  z-index: 2;
  overflow: hidden; /* para la línea animada */
}

/* === LÍNEA SUPERIOR ANIMADA DEL BLOQUE COPYRIGHT === */
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0; /* borde superior del bloque */
  left: 0;
  width: 100%;
  height: 3px; /* altura de la línea */
  background: linear-gradient(90deg, #00ff80, #ffffff, #00ff80, #0f0);
  background-size: 400% 100%;
  animation: moverLineaVerde 5s linear infinite;
  box-shadow: 0 0 12px rgba(0, 255, 80, 0.7);
  border-radius: 2px;
  z-index: 3; /* sobre el contenido del bloque */
}

/* === ANIMACIÓN DE LA LÍNEA === */
@keyframes moverLineaVerde {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


















/* Resaltar solo la sección Tendencias */
nav ul li a.tendencias {
  position: relative;
  font-weight: 600;
  color: #ff4d4d; /* color principal normal */
  transition: all 0.4s ease;
  z-index: 0;
  border-radius: 30px;
  padding: 10px 20px;
  display: inline-block;
}

/* Borde tipo “gusano” animado al hover */
nav ul li a.tendencias::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(270deg, red, white, red, white);
  background-size: 200% 100%;
  opacity: 0; /* invisible por defecto */
  transition: opacity 0.3s ease;
  z-index: -1;
}

/* Hover: fondo negro y borde animado */
nav ul li a.tendencias:hover {
  background-color: black; /* fondo negro */
  color: #fff; /* opcional, texto blanco para contraste */
}

nav ul li a.tendencias:hover::before {
  opacity: 1;
  animation: gusanoBorde 2s linear infinite;
}

/* Animación de borde tipo gusano */
@keyframes gusanoBorde {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

/* Icono 🔥 efecto neón */
nav ul li a.tendencias span.emoji-fire {
  display: inline-block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

nav ul li a.tendencias:hover span.emoji-fire {
  transform: scale(1.3) rotate(-10deg);
  filter: drop-shadow(0 0 10px #ff2a2a)
          drop-shadow(0 0 20px #ff4d4d)
          drop-shadow(0 0 30px #ff8080);
}
