/* productos-grid6x9.css - Estilos Premium adaptados para 6 columnas */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap");

.contenedor-productos {
  margin: 1rem;
  padding: 0 2rem;
  font-family: "Inter", sans-serif;
}

.titulo-principal {
  text-align: center;
  font-size: 2.5rem;
  color: #111827;
  margin-bottom: 3rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.titulo-principal::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 7px;
  background: linear-gradient(90deg, #009eb3, #0062ff);
  border-radius: 4px;
}

/* Responsividad del título */
@media (max-width: 850px) {
  .titulo-principal {
    font-size: 2rem;
  }
  .contenedor-productos {
    padding: 0 1rem;
  }
}

@media (max-width: 550px) {
  .titulo-principal {
    font-size: 1.5rem;
  }
}

.grilla-productos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  font-family: "Inter", sans-serif;
}

.tarjeta-producto {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.04),
    0 4px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(231, 235, 240, 0.8);
  z-index: 1;
}

.tarjeta-producto::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(0, 86, 179, 0.03) 0%,
    rgba(0, 210, 255, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.tarjeta-producto:hover {
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.177),
    0 8px 16px rgba(0, 86, 179, 0.177);
  border-color: rgba(0, 87, 179, 0.375);
}

.tarjeta-producto:hover::before {
  opacity: 1;
}

.imagen-producto {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  max-height: 250px;
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.imagen-producto::after {
  content: "Sin Imagen";
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.imagen-producto.imagen-cargada::after {
  display: none;
}

.imagen-producto picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.imagen-producto img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.tarjeta-producto:hover .imagen-producto img {
  transform: scale(1.08);
}

.info-producto {
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  cursor: text;
  text-align: center;
}

.info-producto::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #0056b3, #00d2ff);
  transition: width 0.4s ease;
}

.info-producto:hover::after {
  width: 100%;
}

.info-producto h3 {
  font-size: 0.95rem;
  color: #1e293b;
  margin: 0;
  line-height: 1.4;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Responsividad adaptada para 6 columnas */
@media (max-width: 1400px) {
  .grilla-productos {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1100px) {
  .grilla-productos {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 850px) {
  .grilla-productos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .grilla-productos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .grilla-productos {
    grid-template-columns: 1fr;
  }
}
