/**
 * v1.2.0 – style.css (Ancho Fijo en Desktop)
 */
.dioses-carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 0 50px;
  box-sizing: border-box;
  margin: 20px 0;
}

/* Contenedor del carrusel (el que oculta y se centra) */
.dioses-carousel {
  overflow: hidden;
  width: 100%;
  /* CAMBIO: Se añade transición para suavizar el cambio de tamaño y se permite centrar */
  transition: max-width 0.4s ease;
  margin: 0 auto;
}

/* Contenedor de los ítems (el que se mueve) */
.dioses-carousel-container {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

/* Ítem individual del carrusel */
.dioses-carousel-item {
  flex-shrink: 0;
  flex-grow: 0;
  display: flex;
  flex-direction: column;
}

/* Contenedor de la imagen */
.dioses-carousel-image {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-bottom: 15px;
  width: 100%;
  /* MEJORA: La proporción 330x450 es aproximadamente 1:1.36. Usamos aspect-ratio. */
  aspect-ratio: 330 / 450;
}

.dioses-carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dioses-carousel-item:hover .dioses-carousel-image img {
  transform: scale(1.05);
}

/* Título y Fecha */
.dioses-carousel-title, .dioses-carousel-date {
  padding: 0 5px;
  text-align: center;
}
.dioses-carousel-title a, .dioses-carousel-date a {
  text-decoration: none;
  color: inherit;
}
.dioses-carousel-title {
  margin: 0 0 5px;
  font-weight: 700;
  color: #333;
}
.dioses-carousel-date {
  margin: 0;
  font-size: 0.9em;
  color: #666;
}

/* Flechas y Dots (Sin cambios) */
.dioses-carousel-arrow {
  position: absolute;
  top: calc(50% - 30px);
  transform: translateY(-50%);
  background: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  color: #86222b;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dioses-carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.dioses-carousel-arrow.prev { left: 10px; }
.dioses-carousel-arrow.next { right: 10px; }
.dioses-carousel-dots {
  text-align: center;
  margin-top: 20px;
}
.dioses-carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background .3s;
}
.dioses-carousel-dot.active {
  background: #86222b;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .dioses-carousel-wrapper { padding: 0 40px; }
}

@media (max-width: 768px) {
  .dioses-carousel-wrapper { padding: 0 15px; }
  .dioses-carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  .dioses-carousel-arrow.prev { left: 5px; }
  .dioses-carousel-arrow.next { right: 5px; }
}

@media (max-width: 576px) {
  .dioses-carousel-container { gap: 15px; }
}