/* === CONTENEDOR PRINCIPAL === */
.reviews-swiper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
  --swiper-navigation-color: #fff; /* flechas blancas por defecto */
}

/* Wrapper de Swiper */
.reviews-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Cada slide (evita width:100% de Avada) */
.reviews-swiper .swiper-slide {
  width: auto !important;
  flex: 0 0 auto !important;
  display: flex;
  justify-content: center;
}

/* === TARJETA DE REVIEW === */
.review-tarjeta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid #3A66B1 !important;
  border-radius: 12px;
  padding: 45px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  width: 100%;
  max-width: 652px;
  height: 380px;                  /* 🔹 alto fijo */
  display: flex;
  flex-direction: column;         /* ⬅️ apilar estrellas + texto */
  align-items: flex-start;        /* ⬅️ alineado a la izquierda */
  justify-content: flex-start;    /* ⬅️ contenido desde arriba */
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.review-tarjeta:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,.45);
}

/* === ESTRELLAS DE RATING === */
.review-stars{
  display: block;
  margin-bottom: 20px;   /* separación hacia el texto */
  text-align: left;      /* usa center si prefieres centradas */
}

.review-stars .star{
  font-size: 20px;
  color: #334155;        /* color apagado para vacías */
}

.review-stars .star.filled{
  color: #FACC15;        /* amarillo para llenas */
}

@media (min-width: 641px){
  .review-stars .star { font-size: 20px; }
}

/* === CONTENIDO === */
.review-contenido {
  width: 100%;
}

/* Truncado multi-línea con puntos suspensivos */
.review-contenido p {
  font-size: 18px;
  line-height: 20px;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 12;          /* 🔹 nº de líneas visibles */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === FLECHAS DE NAVEGACIÓN === */
.reviews-swiper .swiper-button-prev,
.reviews-swiper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  background: rgba(15,23,42,0.7);
  border-radius: 50%;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.reviews-swiper .swiper-button-prev { left: 8px; }
.reviews-swiper .swiper-button-next { right: 8px; }

/* Iconos de Swiper (::after) */
.reviews-swiper .swiper-button-prev::after,
.reviews-swiper .swiper-button-next::after {
  font-size: 18px;
  color: #fff !important;
}

.reviews-swiper .swiper-button-prev:hover,
.reviews-swiper .swiper-button-next:hover {
  background: rgba(58,102,177,0.95);
  color: #fff !important;
}

/* === PAGINACIÓN === */
.reviews-swiper .swiper-pagination {
  position: absolute;
  left: 0; right: 0;
  bottom: 10px;
}

.reviews-swiper .swiper-pagination-bullet {
  background: #3A66B1;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.reviews-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Sobrescribe los pseudo-elementos de Swiper */
.reviews-swiper .swiper-button-prev::after,
.reviews-swiper .swiper-button-next::after {
  font-family: none !important;
  content: "" !important;
}

/* Flecha izquierda */
.reviews-swiper .swiper-button-prev::before {
  content: "‹"; /* símbolo flecha izquierda */
  font-size: 28px;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Flecha derecha */
.reviews-swiper .swiper-button-next::before {
  content: "›"; /* símbolo flecha derecha */
  font-size: 28px;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
  /* el carrusel no debe superar el viewport */
  .reviews-swiper{
    max-width: 100vw;
    padding: 16px 10px;      /* algo de margen interno */
    overflow: hidden;
  }

  /* evita que cada slide crezca más que la pantalla */
  .reviews-swiper .swiper-slide{
    max-width: 100%;
  }

  .review-tarjeta{
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 28px;
    height: 260px;
  }

  .review-contenido p{
    -webkit-line-clamp: 10;
    font-size: 18px;
    line-height: 20px;
  }

  /* opcional: ocultar flechas en móvil */
  .reviews-swiper .swiper-button-prev,
  .reviews-swiper .swiper-button-next{
    display: none;
  }
}

.review-name{
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 4px;
}

.review-date{
  opacity: .8;
  font-size: 14px;
  margin-bottom: 12px; /* separación respecto a estrellas */
}

