/* ================================
   TESTIMONIALS HOME - CAROUSEL 3 TESTIMONIOS SIN DESTACADO
   ================================ */

.home-testimonials {
  padding: 80px 20px;
  background: #ffffff;
  position: relative;
}

.home-testimonials .container {
  max-width: 1200px;
  margin: 0 auto;
}

.home-testimonials h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #174f78;
  margin-bottom: 12px;
  font-weight: 700;
}

.home-testimonials > .container > p:first-of-type {
  text-align: center;
  color: #64748b;
  font-size: 1.05rem;
  margin-bottom: 50px;
}

/* Contenedor carrusel */
.testimonials-carousel {
  position: relative;
  padding: 0 60px;
}

/* Grid de 3 columnas (tres testimonios visibles) */
.testimonials-carousel-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 3 columnas en desktop */
  gap: 30px;
  transition: opacity 0.4s ease-in-out;
}

/* Tarjeta individual */
.testimonials-home-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 30px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  
  /* Altura uniforme */
  display: flex;
  flex-direction: column;
  min-height: 420px;
  max-height: 420px;
  position: relative;
}

.testimonials-home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  border-color: #174f78;
}

/* ELIMINAR estilos del testimonio destacado para que no tenga efecto */
.testimonials-home-card[featured],
.testimonials-home-card.featured {
  grid-column: span 1;  /* Ocupa solo 1 columna igual que los demás */
  border: 2px solid #e5e7eb;  /* Borde igual que tarjetas normales */
  background: #ffffff;  /* Fondo blanco normal */
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);  /* Sombra normal */
}

.testimonials-home-card[featured]:hover,
.testimonials-home-card.featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  border-color: #174f78;
}

/* OCULTAR Badge Featured completamente */
.testimonials-home-card[featured]::before,
.testimonials-home-card.featured::before {
  display: none;  /* Badge "FEATURED" no se muestra */
}

/* Header con avatar */
.testimonials-home-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.testimonials-home-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #174f78 0%, #0d3a57 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonials-home-avatar span {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.testimonials-home-info h3 {
  font-size: 1.15rem;
  color: #174f78;
  margin: 0 0 4px 0;
  font-weight: 700;
}

.testimonials-home-info p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

.testimonials-home-company {
  font-style: italic;
  color: #94a3b8;
  margin-top: 2px !important;
}

/* Estrellas */
.testimonials-home-rating {
  font-size: 1.2rem;
  color: #fbbf24;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

/* Texto testimonial */
.testimonials-home-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #475569;
  font-style: italic;
  margin: 0;
  flex: 1;
  overflow-y: auto;
  max-height: 180px;
}

/* Scroll suave en el texto */
.testimonials-home-text::-webkit-scrollbar {
  width: 4px;
}

.testimonials-home-text::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.testimonials-home-text::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.testimonials-home-text::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Botones navegación (flechas) */
.testimonials-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #174f78;
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(23, 79, 120, 0.3);
}

.testimonials-carousel-btn:hover {
  background: #0d3a57;
  transform: translateY(-50%) scale(1.1);
}

.testimonials-carousel-btn.prev {
  left: 0;
}

.testimonials-carousel-btn.next {
  right: 0;
}

/* Botón "Read More" */
.home-testimonials > .container > p:last-of-type {
  text-align: center;
  margin-top: 40px;
}

/* DOTS DE NAVEGACIÓN */
.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.testimonials-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonials-dot:hover {
  background: #94a3b8;
  transform: scale(1.2);
}

.testimonials-dot.active {
  background: #174f78;
  width: 32px;
  border-radius: 6px;
}

/* Soporte para imágenes de avatar */
.testimonials-home-avatar .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .testimonials-carousel-inner {
    grid-template-columns: 1fr;   /* móvil: 1 testimonio */
    gap: 24px;
  }
  
  .testimonials-home-card[featured],
  .testimonials-home-card.featured {
    grid-column: span 1;
  }

  .testimonials-carousel {
    padding: 0 50px;
  }

  .testimonials-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }

  .home-testimonials {
    padding: 60px 20px;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .testimonials-carousel-inner {
    grid-template-columns: repeat(2, 1fr); /* tablet: 2 testimonios */
  }
  
  .testimonials-home-card[featured],
  .testimonials-home-card.featured {
    grid-column: span 1;
  }
}
