/* -------------------------
   PRODUCTOS - CONTENEDORES Y FILAS
-------------------------- */
#productos-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

#productos-container.horizontal-layout {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 120px;
  justify-content: center;
}

#productos-container.centrado-tvbox {
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.fila-productos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* -------------------------
   PRODUCTOS - TARJETAS Y DETALLES
-------------------------- */
.producto {
  background-color: #4c4949;
  border-radius: 12px;
  padding: 15px;
  width: 260px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: perspective(600px) translateZ(-50px) scale(0.9);
  animation: entradaFuturista 0.6s ease-out forwards;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.producto img {
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.producto h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 5px;
}

.producto .descripcion {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 8px;
}

.producto .precio {
  font-weight: bold;
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 10px;
}

.producto a {
  background-color: #25d366;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.producto a:hover {
  background-color: #1da851;
}

.producto .btn-info {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 14px;
  background-color: #3726ec;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: none;
}

.producto .btn-info:hover {
  background-color: #2a1fd4;
  transform: scale(1.03);
}

.producto.tvbox-destacado {
  width: 320px;
  padding: 20px;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.producto.tvbox-destacado img {
  max-height: 180px;
  object-fit: contain;
}

/* -------------------------
   PRODUCTOS - SECCIONES
-------------------------- */
.seccion-categoria {
  background-color: #333333;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.seccion-categoria h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff; /* ← blanco para el texto */
  margin: 30px 0 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.seccion-categoria h2::before,
.seccion-categoria h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #ffffff;
}

/* -------------------------
   ANIMACIÓN DE ENTRADA
-------------------------- */
@keyframes entradaFuturista {
  0% {
    opacity: 0;
    transform: perspective(600px) translateZ(-50px) scale(0.9) rotateX(15deg);
    filter: brightness(0.6);
  }
  100% {
    opacity: 1;
    transform: perspective(600px) translateZ(0) scale(1) rotateX(0deg);
    filter: brightness(1);
  }
}

/* -------------------------
   RESPONSIVE - MOVILES
-------------------------- */
@media (max-width: 480px) {
  .producto {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }

  .seccion-categoria h2 {
    gap: 10px;
  }
}
