/* ========== TESTIMONIALS SECTION STYLES ========== */

.testimonials-section {
  position: relative;
  width: 100%;
  padding: 100px 48px;
  overflow: hidden;
}

.testimonials-section:not(.dark-mode) {
  background: linear-gradient(160deg, oklch(96% 0.02 78) 0%, oklch(93% 0.028 76) 100%);
}

.testimonials-section.dark-mode {
  background: linear-gradient(160deg, oklch(16% 0.03 58) 0%, oklch(12% 0.025 55) 100%);
}

.testimonials-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 70px;
}

.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  font-family: 'Lato';
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1.5px solid var(--gold);
  animation: fadeUp 0.5s ease 0.1s both;
}

.testimonials-section:not(.dark-mode) .testimonials-badge {
  background: linear-gradient(135deg, oklch(98% 0.015 80) 0%, oklch(96% 0.02 78) 100%);
  color: var(--gold-dark);
}

.testimonials-section.dark-mode .testimonials-badge {
  background: linear-gradient(135deg, oklch(20% 0.04 60) 0%, oklch(18% 0.035 58) 100%);
  color: var(--gold);
}

.testimonials-title {
  font-family: 'Playfair Display';
  font-weight: 700;
  font-size: clamp(38px, 4.2vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.2s both;
}

.testimonials-section:not(.dark-mode) .testimonials-title {
  color: var(--espresso);
}

.testimonials-section.dark-mode .testimonials-title {
  color: oklch(96% 0.015 80);
}

.testimonials-subtitle {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 20px;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
  animation: fadeUp 0.6s ease 0.3s both;
}

.testimonials-section:not(.dark-mode) .testimonials-subtitle {
  color: oklch(20% 0.02 60);
}

.testimonials-section.dark-mode .testimonials-subtitle {
  color: oklch(82% 0.02 78);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 60px;
}

.testimonial-card:nth-child(3) {
  grid-column: 1 / -1;
  max-width: 650px;
  margin: 0 auto;
  width: 100%;
}

.testimonial-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px oklch(20% 0.04 60 / 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:nth-child(1) {
  animation: fadeUp 0.65s ease 0.4s both;
}

.testimonial-card:nth-child(2) {
  animation: fadeUp 0.65s ease 0.5s both;
}

.testimonial-card:nth-child(3) {
  animation: fadeUp 0.65s ease 0.6s both;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px oklch(20% 0.04 60 / 0.25);
}

.testimonial-image-wrapper {
  position: relative;
  width: 100%;
  height: 650px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid oklch(20% 0.04 60);
  background: #000;
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.testimonial-image-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.testimonials-section:not(.dark-mode) .testimonial-image-overlay {
  background: linear-gradient(180deg, transparent 0%, transparent 70%, oklch(20% 0.04 60 / 0.15) 100%);
}

.testimonials-section.dark-mode .testimonial-image-overlay {
  background: linear-gradient(180deg, transparent 0%, transparent 70%, oklch(8% 0.02 48 / 0.3) 100%);
}

.testimonial-badge-floating {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 50px;
  backdrop-filter: blur(20px);
  font-family: 'Lato';
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid oklch(72% 0.11 75 / 0.6);
  color: var(--gold);
  animation: floatBadge 4s ease-in-out infinite;
}

.testimonials-section:not(.dark-mode) .testimonial-badge-floating {
  background: oklch(98% 0.015 80 / 0.95);
}

.testimonials-section.dark-mode .testimonial-badge-floating {
  background: oklch(18% 0.035 58 / 0.92);
}

.testimonial-content {
  padding: 32px;
}

.testimonials-section:not(.dark-mode) .testimonial-content {
  background: oklch(98% 0.012 80);
}

.testimonials-section.dark-mode .testimonial-content {
  background: oklch(16% 0.03 58);
}

.testimonial-name {
  font-family: 'Playfair Display';
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.testimonials-section:not(.dark-mode) .testimonial-name {
  color: var(--espresso);
}

.testimonials-section.dark-mode .testimonial-name {
  color: oklch(95% 0.02 78);
}

.testimonial-location {
  font-family: 'Lato';
  font-weight: 400;
  font-size: 15px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.testimonials-section:not(.dark-mode) .testimonial-location {
  color: oklch(20% 0.02 60);
}

.testimonials-section.dark-mode .testimonial-location {
  color: oklch(75% 0.025 78);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 18px;
}

.testimonial-text {
  font-family: 'Lato';
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.testimonials-section:not(.dark-mode) .testimonial-text {
  color: oklch(20% 0.02 60);
}

.testimonials-section.dark-mode .testimonial-text {
  color: oklch(80% 0.025 78);
}

.testimonial-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Lato';
  font-weight: 700;
  font-size: 13px;
  border-left: 3px solid var(--gold);
}

.testimonials-section:not(.dark-mode) .testimonial-highlight {
  background: oklch(94% 0.025 78 / 0.6);
  color: var(--espresso);
}

.testimonials-section.dark-mode .testimonial-highlight {
  background: oklch(20% 0.04 60 / 0.6);
  color: oklch(92% 0.02 78);
}

/* Testimonio Grupal - Tercera tarjeta con imagen horizontal */
.testimonial-group-image {
  height: 500px;
}

/* Responsive Testimonials Section */
@media (max-width: 1024px) {
  .testimonials-section {
    padding: 80px 32px;
  }

  .testimonials-header {
    margin-bottom: 60px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .testimonial-card:nth-child(3) {
    max-width: 550px;
  }

  .testimonial-image-wrapper {
    height: 580px;
  }

  .testimonial-content {
    padding: 28px;
  }

  .testimonial-group-image {
    height: 450px;
  }
}

@media (max-width: 768px) {
  .testimonials-section {
    padding: 70px 24px;
  }

  .testimonials-header {
    margin-bottom: 50px;
  }

  .testimonials-title {
    font-size: clamp(32px, 8vw, 42px);
    margin-bottom: 16px;
  }

  .testimonials-subtitle {
    font-size: 16px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 50px;
  }

  .testimonial-image-wrapper {
    height: 550px;
  }

  .testimonial-content {
    padding: 24px;
  }

  .testimonial-name {
    font-size: 22px;
  }

  .testimonial-badge-floating {
    top: 16px;
    right: 16px;
    font-size: 10px;
    padding: 8px 14px;
  }

  .testimonial-group-image {
    height: 420px;
  }
}
