/* === Sección Testimonios - Mismo patrón que Resultados / About === */
.testimonials {
  --testimonials-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --testimonials-duration: 0.6s;
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 5rem;
  min-height: auto;
}
@media (max-width: 767px) {
  .testimonials {
    padding: 4rem 1.5rem 3rem;
  }
}

/* Fondo: imagen difuminada + overlay (mismo estilo que target) */
.testimonials__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.testimonials__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../assets/images/gemma-ojeda (18).jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(8px) brightness(0.4);
  transform: scale(1.05);
  z-index: 0;
}

.testimonials__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(155deg, rgba(44, 44, 44, 0.85) 0%, rgba(58, 58, 56, 0.88) 40%, rgba(74, 74, 69, 0.86) 70%, rgba(90, 90, 82, 0.84) 100%);
  z-index: 1;
}

.testimonials__bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  z-index: 2;
  pointer-events: none;
}
.testimonials__bg-circle:nth-of-type(1) {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(196, 184, 150, 0.3) 0%, transparent 70%);
  top: -200px;
  left: -100px;
  animation: testimonialsFloat1 20s ease-in-out infinite;
}
.testimonials__bg-circle:nth-of-type(2) {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(140, 133, 87, 0.25) 0%, transparent 70%);
  bottom: -150px;
  right: -50px;
  animation: testimonialsFloat2 18s ease-in-out infinite;
}

@keyframes testimonialsFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
}
@keyframes testimonialsFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, -30px) scale(1.15); }
}

.testimonials__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials__header {
  text-align: center;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: testimonialsFadeIn 1s var(--testimonials-ease) 0.2s forwards;
}
@media (max-width: 767px) {
  .testimonials__header {
    margin-bottom: 2.5rem;
  }
}

.testimonials__title {
  display: block;
}

.testimonials__title-main {
  display: block;
  font-family: "Editor's Note", serif;
  font-style: italic;
  font-weight: 200;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #E8E2D5;
  line-height: 1.15;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
@media (max-width: 767px) {
  .testimonials__title-main {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
}

.testimonials__title-sub {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(232, 226, 213, 0.95);
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}
@media (max-width: 767px) {
  .testimonials__title-sub {
    font-size: clamp(1rem, 4vw, 1.25rem);
  }
}

.testimonials__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  opacity: 0;
  animation: testimonialsFadeIn 1s var(--testimonials-ease) 0.4s forwards;
}
@media (max-width: 767px) {
  .testimonials__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@keyframes testimonialsFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.testimonials__video-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 226, 213, 0.1);
  background: rgba(0, 0, 0, 0.3);
  transition: box-shadow var(--testimonials-duration) var(--testimonials-ease);
}
.testimonials__video-wrap:hover {
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 184, 150, 0.25);
}

.testimonials__video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  vertical-align: middle;
}

.testimonials__caption {
  font-family: "Montserrat", sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(232, 226, 213, 0.9);
  text-align: center;
  padding: 1rem 1.5rem;
  margin: 0;
  border-top: 1px solid rgba(232, 226, 213, 0.15);
}
@media (max-width: 767px) {
  .testimonials__caption {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }
}
