/**
 * TESTIMONIAL CAROUSEL - SWIPER SIMPLE
 */

.cc--testimonial-swiper {
  padding: 3rem 0;
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-swiper {
  position: relative;
  width: 100%;
  padding: 2rem 0;
  overflow: hidden;
}

.testimonial-swiper .swiper-slide {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  min-height: 400px;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-image {
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.testimonial-image img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f0f0f0;
}

.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.testimonial-quote {
  position: relative;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.quote-text {
  font-family: 'Palanquin', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #221E1F;
  margin: 0;
  text-align: center;
  font-weight: 400;
  z-index: 1;
  position: relative;
}

.quote-icon {
  font-size: 2rem;
  color: #0044b5;
  font-family: Georgia, serif;
  font-weight: bold;
  line-height: 1;
  position: absolute;
}

.quote-icon.left {
  left: -10px;
  top: -10px;
}

.quote-icon.right {
  right: -10px;
  bottom: -15px;
}

.testimonial-author {
  text-align: center;
  margin-top: auto;
}

.author-name {
  font-family: 'Palanquin', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.3rem;
}

.author-company {
  font-family: 'Palanquin', sans-serif;
  font-size: 0.95rem;
  color: #0044b5;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Navigation Buttons */
.testimonial-next,
.testimonial-prev {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  color: white !important;
  font-size: 20px !important;
  font-weight: bold !important;
  margin-top: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.testimonial-next:after,
.testimonial-prev:after {
  display: none !important;
}

.testimonial-next {
  right: 10px !important;
}

.testimonial-prev {
  left: 10px !important;
}

.testimonial-next:hover,
.testimonial-prev:hover {
  transform: scale(1.1);
}

.testimonial-next img,
.testimonial-prev img {
  width: 100%;
  height: 100%;
}

.testimonial-next::after,
.testimonial-prev::after {
  display: none;
}

/* Disabled state for navigation buttons */
.testimonial-next.swiper-button-disabled,
.testimonial-prev.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.testimonial-next.swiper-button-disabled:hover,
.testimonial-prev.swiper-button-disabled:hover {
  transform: translateY(-50%);
}

/* Custom Pagination */
.testimonial-pagination {
  position: relative !important;
  margin-top: 2rem;
  text-align: center;
  display: none; /* Oculta por defecto en desktop */
}

.testimonial-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(0, 68, 181, 0.3);
  border-radius: 50%;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.testimonial-pagination .swiper-pagination-bullet-active {
  background: #0044b5;
}

/* Estilos base para las comillas */
.quote-comillas {
  position: absolute;
  width: 52px;
  transition: all 0.3s ease;
}

/* Posicionamiento dinámico por atributos de datos */
.quote-comillas[data-position="top-left"] {
  top: var(--offset-y, 0px);
  left: var(--offset-x, -45px);
}

.quote-comillas[data-position="top-right"] {
  top: var(--offset-y, 0px);
  right: var(--offset-x, -45px);
}

.quote-comillas[data-position="top-center"] {
  top: var(--offset-y, -20px);
  left: 50%;
  transform: translateX(calc(-50% + var(--offset-x, 0px)));
}

.quote-comillas[data-position="center"] {
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--offset-x, 0px)), calc(-50% + var(--offset-y, 0px)));
}

.quote-comillas[data-position="bottom-left"] {
  bottom: var(--offset-y, 0px);
  left: var(--offset-x, -45px);
}

.quote-comillas[data-position="bottom-right"] {
  bottom: var(--offset-y, 0px);
  right: var(--offset-x, -45px);
}

.quote-comillas[data-position="bottom-center"] {
  bottom: var(--offset-y, 0px);
  left: 50%;
  transform: translateX(calc(-50% + var(--offset-x, 0px)));
}

/* Indicadores de página */
.testimonial-indicators {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 10px;
}

.testimonial-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 68, 181, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-indicator.active {
  background: #0044b5;
  transform: scale(1.2);
}

/* Autoplay progress bar */
.testimonial-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #0044b5;
  transition: width 0.1s linear;
  border-radius: 0 0 20px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cc--testimonial-swiper {
    padding: 2rem 0;
  }

  .testimonial-card {
    padding: 2rem 1.5rem;
    min-height: 350px;
  }

  .testimonial-image img {
    width: 80px;
    height: 80px;
  }

  /* Ocultar flechas de navegación en mobile */
  .testimonial-next,
  .testimonial-prev {
    display: none !important;
  }

  /* Mostrar y mejorar paginación en mobile */
  .testimonial-pagination {
    display: block !important;
    margin-top: 2rem !important;
  }

  .quote-text {
    font-size: 1rem;
  }

  .testimonial-nav-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }

  .testimonial-nav-btn.prev {
    left: 5px;
  }

  .testimonial-nav-btn.next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .testimonial-carousel-container {
    padding: 1rem 40px;
  }

  .testimonial-card {
    padding: 1.5rem 1rem;
    min-height: 320px;
    max-width: 310px;
  }

  .testimonial-image img {
    width: 70px;
    height: 70px;
  }

  .quote-text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .quote-comillas {
    width: 40px;
  }

  .author-name {
    font-size: 1rem;
  }

  .author-company {
    font-size: 0.85rem;
  }

  /* Mantener flechas ocultas también en mobile small */
  .testimonial-next,
  .testimonial-prev {
    display: none !important;
  }
}