/* ===== CARRUSEL FRONTEND ===== */
.cefpp-carousel-section {
  position: relative;
  width: 100%;
  display: block;
}

.cefpp-carousel {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  background: #221014;
}

@media (max-width: 768px) {
  .cefpp-carousel { height: 480px; }
}
@media (max-width: 480px) {
  .cefpp-carousel { height: 380px; }
}

/* Slides */
.cefpp-carousel__track {
  position: absolute;
  inset: 0;
}

.cefpp-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: opacity;
}

.cefpp-carousel__slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Overlay gradient */
.cefpp-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.82) 0%,
    rgba(15, 23, 42, 0.55) 50%,
    rgba(15, 23, 42, 0.2) 100%
  );
  z-index: 1;
}

/* Content */
.cefpp-carousel__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
}

.cefpp-carousel__inner {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cefpp-carousel__inner { padding-inline: 3rem; }
}

.cefpp-carousel__title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cefpp-carousel__desc {
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.125rem);
  color: rgba(226, 232, 240, 0.95);
  line-height: 1.65;
  margin: 0;
  max-width: 36rem;
  font-weight: 400;
}

.cefpp-carousel__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: #d41138;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: 0.625rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
  width: fit-content;
  box-shadow: 0 4px 14px rgba(212, 17, 56, 0.35);
}

.cefpp-carousel__btn:hover {
  background: #b80f2f;
  transform: translateY(-2px);
  color: #ffffff;
}

.cefpp-carousel__btn svg {
  transition: transform 0.2s;
}

.cefpp-carousel__btn:hover svg {
  transform: translateX(4px);
}

/* Flechas */
.cefpp-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}

.cefpp-carousel__arrow:hover {
  background: rgba(212, 17, 56, 0.7);
  transform: translateY(-50%) scale(1.08);
}

.cefpp-carousel__arrow--prev { left: 1.25rem; }
.cefpp-carousel__arrow--next { right: 1.25rem; }

@media (max-width: 480px) {
  .cefpp-carousel__arrow { width: 2.5rem; height: 2.5rem; }
  .cefpp-carousel__arrow--prev { left: 0.5rem; }
  .cefpp-carousel__arrow--next { right: 0.5rem; }
}

/* Dots */
.cefpp-carousel__dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cefpp-carousel__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, width 0.3s, transform 0.2s;
}

.cefpp-carousel__dot.is-active {
  background: #d41138;
  width: 1.75rem;
  transform: none;
}

.cefpp-carousel__dot:hover:not(.is-active) {
  background: rgba(255,255,255,0.7);
  transform: scale(1.2);
}

/* Empty state (admin only) */
.cefpp-carousel-empty {
  background: #f8f6f6;
  padding: 3rem;
  text-align: center;
  border: 2px dashed #e2e8f0;
  border-radius: 0.75rem;
  margin: 1rem;
}
.cefpp-carousel-empty a { color: #d41138; font-weight: 700; }
