/* 
 * Hoja de estilo para la sección de testimonios de Amigos sin Fronteras
 * Inspirada en el diseño moderno y editorial de Fora Travel
 */

.testimonials-section {
  padding: 6rem 0;
  background-color: #FAF8F2; /* Color crema base de la web */
  position: relative;
  overflow: hidden;
}

.testimonials-header {
  margin-bottom: 4rem;
}

.testimonials-subtitle {
  display: inline-block;
  color: var(--primary, #2A585E);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  padding-bottom: 8px;
  border-bottom: 3px solid #F4BC33; /* Línea dorada */
  margin-bottom: 15px;
}

.testimonials-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--dark, #211E1C);
  margin-bottom: 15px;
}

.testimonials-desc {
  font-family: 'Raleway', sans-serif;
  color: #6c757d;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
}

/* Masonry Grid */
.testimonials-masonry {
  column-count: 3;
  column-gap: 2rem;
  width: 100%;
}

@media (max-width: 992px) {
  .testimonials-masonry {
    column-count: 2;
    column-gap: 1.5rem;
  }
}

@media (max-width: 767px) {
  .testimonials-masonry {
    column-count: 1;
    column-gap: 0;
  }
}

/* Testimonial Cards */
.testimonial-card {
  break-inside: avoid;
  margin-bottom: 2rem;
  display: inline-block;
  width: 100%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

/* Image Container */
.testimonial-image-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #eaeaea;
}

.testimonial-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover .testimonial-image {
  transform: scale(1.05);
}

/* Destination Badge (now Attraction Badge in Gold at the top) */
.testimonial-destination-badge {
  position: absolute;
  top: 15px; /* Moved to top! */
  left: 15px;
  background: rgba(244, 188, 51, 0.95); /* Brand gold con transparencia */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #211E1C !important; /* Dark text for contrast on gold */
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card Content */
.testimonial-content {
  padding: 1.8rem;
}

.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  margin-bottom: 1.5rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-quote::before {
  content: '“';
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  position: absolute;
  top: -35px;
  left: -15px;
  color: rgba(196, 125, 62, 0.4); /* Sienna Cálido (#C47D3E) con mayor opacidad */
  line-height: 1;
  z-index: -1;
  pointer-events: none;
}

/* Author Row */
.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 1rem;
}

.testimonial-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: var(--primary, #2A585E);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(42, 88, 94, 0.15);
  flex-shrink: 0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
}

.testimonial-author-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--dark, #211E1C);
  margin-bottom: 1px;
}

.testimonial-author-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  color: #6c757d;
}

/* Card Variations (Without Photos) */

/* Peach Variation */
.testimonial-card.card-peach {
  background-color: var(--light, #FEF1EF);
  border: none;
}

.testimonial-card.card-peach .testimonial-quote {
  color: #2D2522;
}

.testimonial-card.card-peach .testimonial-quote::before {
  color: rgba(42, 88, 94, 0.08); /* --primary muy sutil */
}

.testimonial-card.card-peach .testimonial-avatar {
  background-color: var(--primary, #2A585E);
  color: #ffffff;
}

/* Teal Variation */
.testimonial-card.card-teal {
  background-color: var(--primary, #2A585E);
  border: none;
}

.testimonial-card.card-teal .testimonial-quote {
  color: #ffffff;
}

.testimonial-card.card-teal .testimonial-quote::before {
  color: rgba(255, 255, 255, 0.12);
}

.testimonial-card.card-teal .testimonial-avatar {
  background-color: #ffffff;
  color: var(--primary, #2A585E);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.testimonial-card.card-teal .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.testimonial-card.card-teal .testimonial-author-name {
  color: #ffffff;
}

.testimonial-card.card-teal .testimonial-author-title {
  color: rgba(255, 255, 255, 0.7);
}

/* Fora Style Testimonial Carousel */
.fora-carousel-section {
  padding: 6rem 0;
  background-color: #FAF8F2; /* Color crema base */
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.fora-carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 4rem;
}

.fora-carousel-viewport {
  overflow: hidden;
  width: 100%;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fora-carousel-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.fora-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 1rem;
  box-sizing: border-box;
}

.fora-slide-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  line-height: 1.6;
  color: var(--dark, #211E1C);
  margin-bottom: 2rem;
  font-weight: 500;
  text-align: left;
}

.fora-slide-author {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.fora-slide-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fora-slide-author-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.fora-slide-author-name {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark, #211E1C);
}

.fora-slide-author-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  color: #718096;
  margin-top: 2px;
}

/* Nav Buttons */
.fora-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: #333333;
  font-size: 0.95rem;
}

.fora-carousel-btn:hover {
  background-color: #ffffff;
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  color: var(--primary, #2A585E);
}

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

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

/* Progress Indicator */
.fora-carousel-indicator-container {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.5rem;
  padding-left: 75px; /* Alineación con el texto del autor */
}

@media (max-width: 767px) {
  .fora-carousel-indicator-container {
    padding-left: 0;
    justify-content: center;
    margin-top: 1rem !important;
  }
  .fora-slide-quote {
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: justify !important;
    margin-bottom: 1rem !important;
  }
  .fora-slide-author {
    margin-bottom: 1rem !important;
  }
  .fora-carousel-container {
    padding: 1.5rem 1rem;
  }
  .fora-carousel-btn {
    width: 42px;
    height: 42px;
  }
  .fora-carousel-btn.btn-prev {
    left: -10px;
  }
  .fora-carousel-btn.btn-next {
    right: -10px;
  }
}

.fora-carousel-progress {
  width: 180px;
  height: 4px;
  background-color: #E2E8F0;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.fora-carousel-progress-bar {
  height: 100%;
  background-color: var(--primary, #2A585E); /* Verde Teal de la marca */
  border-radius: 2px;
  width: 14.285%; /* 100% / 7 slides */
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: left center;
}

/* Premium Modal Styles */
.premium-modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0; 
  top: 0; 
  width: 100%; 
  height: 100%; 
  background-color: rgba(33, 30, 28, 0.6); 
  align-items: flex-start; 
  justify-content: center;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.premium-modal-content {
  background-color: #FAF8F2; 
  padding: 2.5rem 2rem; 
  border-radius: 1.5rem; 
  width: 90%; 
  max-width: 500px; 
  box-shadow: 0 20px 50px rgba(0,0,0,0.15); 
  position: relative; 
  border: 1px solid rgba(209, 197, 180, 0.3);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
