/* ============================================================
   CAFÉ CREYENTES — Carousel (Refinamiento Visual Client-Ready)
   ============================================================ */

.carousel-module {
  position: relative;
  width: 100%;
  height: 64vh;
  min-height: 520px;
  max-height: 840px;
  overflow: hidden;
  background: var(--bg);
}

.carousel-slides {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

/* Overlay gradient sutil para garantizar contraste fotográfico */
.carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 11, 0.4) 0%,
    rgba(13, 13, 11, 0.2) 40%,
    rgba(13, 13, 11, 0.75) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.carousel-picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.carousel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.72);
  transition: transform 6s ease;
}

.carousel-slide.active .carousel-img {
  transform: scale(1.02);
}

.carousel-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
}

.carousel-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.carousel-subtitle {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(240, 236, 228, 0.92);
  margin-bottom: 32px;
  line-height: 1.6;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.carousel-cta {
  display: inline-flex;
}

/* Controles de Navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(13, 13, 11, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 169, 110, 0.35);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
  font-size: 16px;
}

.carousel-btn:hover, .carousel-btn:focus-visible {
  background: var(--gold);
  color: #0d0d0b;
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 20px rgba(200, 169, 110, 0.3);
  outline: none;
}

.carousel-prev {
  left: 28px;
}

.carousel-next {
  right: 28px;
}

/* Indicadores de Diapositiva (Pills) */
.carousel-indicators {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.carousel-dot.active {
  width: 28px;
  background: var(--gold);
  box-shadow: 0 2px 8px rgba(200, 169, 110, 0.4);
}

.carousel-dot:hover, .carousel-dot:focus-visible {
  background: var(--gold-light);
  outline: none;
}

/* Adaptación Mobile First */
@media (max-width: 768px) {
  .carousel-module {
    height: 68vh;
    min-height: 480px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .carousel-prev {
    left: 14px;
  }

  .carousel-next {
    right: 14px;
  }

  .carousel-indicators {
    bottom: 20px;
    gap: 6px;
  }

  .carousel-dot.active {
    width: 22px;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-slide,
  .carousel-img,
  .carousel-dot {
    transition: none !important;
    transform: none !important;
  }
}

