/**
 * Testimonios Section Styles - BEM Methodology
 * Estudio Defensor
 */

/* ============================================
   TESTIMONIOS SECTION
   ============================================ */

.testimonios {
  padding: 5rem 2rem;
  margin-bottom: 4rem;
  background-color: #f5f5f5;
  background-image: url('/images/testimonios-background.png');
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.testimonios__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================================
   HEADER
   ============================================ */

.testimonios__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
  padding-top: 3rem;
}

.testimonios__header-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonios__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.25rem 2rem;
  background-color: #FF6600;
  border-radius: 30px;
}

.testimonios__badge-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonios__title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: #333333;
}

.testimonios__description {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: #666666;
}

/* ============================================
   TESTIMONIALS GRID
   ============================================ */

.testimonios__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* ============================================
   TESTIMONIAL CARD
   ============================================ */

.testimonios__card {
  display: grid;
  grid-template-columns: 33.33% 66.67%;
  gap: 2rem;
  align-items: center;
  padding: 3rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonios__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TESTIMONIAL IMAGE
   ============================================ */

.testimonios__image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonios__image {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 5px solid #e0e0e0;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ============================================
   TESTIMONIAL CONTENT
   ============================================ */

.testimonios__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.testimonios__quote {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  color: #666666;
}

.testimonios__author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonios__author-name {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: #333333;
}

.testimonios__author-role {
  font-size: 0.875rem;
  font-weight: 400;
  margin: 0;
  color: #FF6600;
}

/* ============================================
   RESPONSIVIDAD
   ============================================ */

@media (max-width: 1024px) {
  .testimonios__header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .testimonios__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .testimonios__card {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .testimonios {
    padding: 3rem 1.5rem;
    margin-bottom: 3rem;
    background-size: cover;
  }

  .testimonios__header {
    margin-bottom: 2rem;
    padding-top: 2rem;
    gap: 1.25rem;
  }

  .testimonios__badge {
    padding: 0.25rem 1.5rem;
  }

  .testimonios__badge-text {
    font-size: 0.75rem;
  }

  .testimonios__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .testimonios__description {
    font-size: 0.9375rem;
  }

  .testimonios__card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }

  .testimonios__image {
    max-width: 150px;
    margin: 0 auto;
  }

  .testimonios__quote {
    font-size: 0.9375rem;
  }

  .testimonios__author-name {
    font-size: 1.125rem;
  }

  .testimonios__author-role {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .testimonios {
    padding: 2rem 1rem;
  }

  .testimonios__header {
    padding-top: 1rem;
    gap: 1rem;
  }

  .testimonios__badge {
    padding: 0.25rem 1.25rem;
  }

  .testimonios__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .testimonios__description {
    font-size: 0.875rem;
  }

  .testimonios__card {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .testimonios__image {
    max-width: 120px;
  }

  .testimonios__quote {
    font-size: 0.875rem;
  }

  .testimonios__author-name {
    font-size: 1rem;
  }

  .testimonios__author-role {
    font-size: 0.75rem;
  }
}

/* ============================================
   ANIMACIONES
   ============================================ */

/* Respetar preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .testimonios,
  .testimonios * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
