/* === ESTILOS OPTIMIZADOS PARA CATEGORÍA === */
.categoria-page {
  color: #232323;
  background: linear-gradient(135deg, #fff 0%, #fef9f3 30%, #fff8f0 100%);
  font-family: 'Georgia', serif;
  min-height: 100vh;
  position: relative;
}

/* Efecto de fondo decorativo */
.categoria-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 225, 178, 0.1) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.category-section {
  position: relative;
  z-index: 1;
}

/* Sección introductoria */
.categoria-page .seccion-intro {
  text-align: center;
  padding-bottom: 2rem;
  position: relative;
}

.categoria-page .categoria-titulo-img {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 340px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.decorative-line {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffc107, transparent);
  border-radius: 2px;
}

.categoria-page .categoria-descripcion {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 0;
  font-style: italic;
}

/* Galería moderna */
.categoria-page .galeria-categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

/* Enlace principal de la tarjeta */
.card-link {
  display: block;
  transition: transform 0.3s ease;
}

.card-link:hover {
  transform: translateY(-5px);
  text-decoration: none;
}

/* Tarjeta de colección */
.categoria-page .tarjeta-categoria {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1.2rem;
  border: 1.5px solid #ffe082;
  box-shadow: 0 6px 32px rgba(255, 193, 7, 0.07), 0 1.5px 8px rgba(0, 0, 0, 0.04);
  padding: 1.2rem;
  margin-bottom: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 2, 0.6, 1);
  position: relative;
  cursor: pointer;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  backdrop-filter: blur(10px);
}

.card-link:hover .tarjeta-categoria {
  box-shadow: 0 16px 40px rgba(255, 193, 7, 0.15), 0 4px 20px rgba(44, 44, 44, 0.1);
  border-color: #ffc107;
  transform: translateY(-8px) scale(1.02);
  background: #fff;
}

/* Efecto hover decorativo */
.card-hover-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.card-link:hover .card-hover-effect {
  left: 100%;
}

/* Carrusel de imágenes */
.categoria-page .carousel-categoria-wrapper {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1.1rem;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.1);
  position: relative;
  z-index: 2;
}

.categoria-page .galeria-img {
  object-fit: cover;
  width: 100%;
  height: 500px;
  transition: transform 0.5s cubic-bezier(0.4, 2, 0.6, 1);
  object-position: center top;
}

.card-link:hover .galeria-img {
  transform: scale(1.05);
}

/* Controles del carrusel */
.carousel-control-prev,
.carousel-control-next {
  width: 15%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-categoria-wrapper:hover .carousel-control-prev,
.carousel-categoria-wrapper:hover .carousel-control-next {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(80, 79, 79, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 12px;
}

/* Contenido de la tarjeta */
.categoria-page .contenido-categoria {
  position: relative;
  z-index: 2;
  padding: 1rem 0 0;
}

.categoria-page .categoria-titulo {
  font-size: 1.35rem;
  font-family: 'Playfair Display', serif;
  font-weight: bold;
  color: #232323;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}

.card-link:hover .categoria-titulo {
  color: #d4af37;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categoria-page .contenido-categoria .categoria-descripcion {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 0;
  transition: all 0.3s ease;
  font-style: italic;
}

.card-link:hover .contenido-categoria .categoria-descripcion {
  color: #d4af37;
  transform: translateX(5px);
}

/* Indicadores del carrusel (si se necesitan) */
.carousel-indicators {
  bottom: -35px;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: #ffc107;
  opacity: 0.5;
}

.carousel-indicators button.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 1199px) {
  .categoria-page .galeria-categorias {
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .categoria-page .tarjeta-categoria {
    min-height: 380px;
  }
  
  .categoria-page .galeria-img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .categoria-page .tarjeta-categoria {
    min-height: 340px;
    padding: 1rem;
  }
  
  .categoria-page .categoria-titulo-img {
    max-width: 280px;
  }
  
  .categoria-page .categoria-titulo {
    font-size: 1.2rem;
  }
  
  .categoria-page .galeria-img {
    height: 220px;
  }
  
  .categoria-page .galeria-categorias {
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .categoria-page .tarjeta-categoria {
    min-height: 300px;
  }
  
  .categoria-page .categoria-titulo-img {
    max-width: 220px;
  }
  
  .categoria-page .categoria-titulo {
    font-size: 1.1rem;
  }
  
  .categoria-page .galeria-img {
    height: 180px;
  }
  
  .decorative-line {
    width: 60px;
  }
}