/* Carrusel */
.carousel {
  position: relative;
  width: 100%;
  height: 700px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.header {
  position: relative;
  z-index: 2;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%; 
  transition: transform 0.8s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

/* Animaci贸n del carrusel */
@keyframes slide {
  0% { transform: translateX(0); }
  33% { transform: translateX(-100%); }
  66% { transform: translateX(-200%); }
  100% { transform: translateX(0); }
}

.carousel-track {
  animation: slide 20s infinite;
}
/* Grid de productos */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto 20px;
}

.items {
  position: relative;
  overflow: hidden;
  border-radius: 25px;
  transition: transform 0.3s ease;
  width: 100%;
  display: flex;
  align-items: stretch; 
  min-height: 400px;
}

.items:hover {
  transform: scale(1.05);
}

.items img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}


/* Aparece cuando pasas el mouse sobre .items */
.items:hover .info {
  opacity: 1;
  visibility: visible;
}

.info h3, .info p {
  color: white;
  margin: 5px 0;
}

/* Botón estilo elegante */
.titulo {
  text-align: center;
  font-size: 5rem;
  margin: 30px 0;
  color: #333;
}

a.Categoria {
  display: inline-block;
  background: linear-gradient(135deg, #ff69b4, #ff1493);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgba(255, 20, 147, 0.5);
}

/* Efecto hover: cambia el degradado y eleva el botón */
a.Categoria:hover {
  background: linear-gradient(135deg, #ff1493, #ff69b4);
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(255, 20, 147, 0.7);
}

/* Dise帽o Responsive */
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel {
    height: 300px; 
    width: 100%;
  }
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
  }
}

@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr; 
    gap: 20px; 
    padding: 0 15px; 
  }
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
  }
  .carousel {
    height: 100%;
    width: 100%;
  }
  
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .carousel {
    height: 400px; 
    width: 100%;
  }
  .slide img {
    width: 800px;
    height: 100%;
    object-fit: cover;
  }
}

.info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  margin: 0px 0px 0px 1px;
}

.items:hover .info {
  opacity: 1;
  visibility: visible;
}

/* Ajustes responsivos manteniendo tamaño relativo */
@media (max-width: 1024px), (max-width: 768px), (max-width: 480px) {
  .info {
    width: 100%;
    height: 100%;
  }

  .info h3 {
    font-size: 1.5rem;
  }

  .info p {
    font-size: 1rem;
  }
}

