/* testimonios.css - ACTUALIZADO CON COMILLA GRANDE DE FONDO */

/* Sección de testimonios (Estilos base mantenidos) */
.testimonials-section {
    padding: 5rem 0;
    background-color: #ffffff;
  }
  
  /* Estilos para el nuevo encabezado */
  .testimonials-section .section-header {
    margin-bottom: 3rem;
  }
  
  .testimonials-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    /* Color heredado/por defecto */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
  }
  
  .testimonials-section .section-header .section-title {
      font-size: 2.5rem;
       /* Color heredado/por defecto */
      margin-bottom: 1rem;
  }
  
  /* Contenedor principal */
  .testimonials-container {
    position: relative;
    padding: 0 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Contenedor Swiper */
  .testimonials-swiper {
    width: 100%;
    overflow: hidden;
  }
  
  /* Estilo para cada slide */
  .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 300px;
    padding: 2rem 0;
  }
  
  /* Contenedor del contenido dentro del slide */
  .testimonial-content-wrapper {
      position: relative; /* Necesario para posicionar la comilla absoluta */
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      max-width: 600px;
      margin: 0 auto;
      padding-top: 2rem; /* Añadir padding superior para dar espacio a la comilla grande */
      overflow: hidden; /* Opcional: evita que la comilla se salga */
      z-index: 1; /* Asegura que el contenido esté por encima de la comilla si usamos z-index -1 */
  }
  
  /* === INICIO: Estilo para la comilla grande de fondo === */
  .testimonial-content-wrapper::before {
      content: '“'; /* Comilla de apertura */
      position: absolute;
      top: -1rem; /* Ajusta la posición vertical */
      left: -0.5rem; /* Ajusta la posición horizontal */
      font-size: 10rem; /* Tamaño MUY GRANDE de la comilla */
      color: rgba(0, 0, 0, 0.05); /* Color muy claro/transparente (gris muy claro) */
      /* Alternativa: usa tu color primario con transparencia */
      /* color: rgba(67, 97, 238, 0.1); */
      line-height: 1;
      z-index: 0; /* Ponerla en el fondo del stacking context local */
      font-family: Georgia, serif; /* Opcional: usar una fuente serif */
      /* Importante: Asegurarse que el texto real tenga z-index mayor si es necesario */
  }
  /* === FIN: Estilo para la comilla grande de fondo === */
  
  
  /* Texto del testimonio (Cita) */
  .testimonial-quote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
    position: relative; /* Para asegurar que esté sobre la comilla gigante si tiene z-index 0 */
    z-index: 2; /* Debe ser mayor que el z-index de ::before si es 0 */
    /* Ya no necesita padding para comillas pequeñas */
  }
  
  /* === ELIMINADAS LAS REGLAS .testimonial-quote::before y .testimonial-quote::after === */
  /* (Las que creaban las comillas pequeñas al lado del texto) */
  
  
  /* Detalles del autor (Contenedor de imagen, nombre, título) */
  .testimonial-author-details {
      margin-top: 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative; /* Para asegurar que esté sobre la comilla gigante si tiene z-index 0 */
      z-index: 2; /* Debe ser mayor que el z-index de ::before si es 0 */
  }
  
  /* Avatar del autor */
  .testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 3px solid #f0f0f0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }
  
  .testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Nombre del autor */
  .testimonial-author-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
  }
  
  /* Título/Afiliación del autor */
  .testimonial-author-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
  }
  
  /* Estilos para las flechas de navegación estándar de Swiper */
  .swiper-button-prev,
  .swiper-button-next {
    color: #333;
    width: 45px;
    height: 45px;
    background: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10; /* Asegura que las flechas estén por encima de todo */
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .swiper-button-prev:hover,
  .swiper-button-next:hover {
    color: #4361ee; /* Color primario al pasar el ratón */
  }
  
  .swiper-button-prev::after,
  .swiper-button-next::after {
    font-size: 1.8rem;
    font-weight: bold;
  }
  
  .swiper-button-prev {
    left: 0px;
  }
  
  .swiper-button-next {
    right: 0px;
  }
  
  /* Estilos responsive */
  @media (max-width: 768px) {
    .testimonials-container {
      padding: 0 15px;
      max-width: 100%;
    }
  
    .testimonial-quote {
      font-size: 1.2rem;
    }
  
    /* Ajustar comilla grande en móvil */
    .testimonial-content-wrapper::before {
        font-size: 8rem; /* Más pequeña en móvil */
        top: -0.5rem;
        left: -0.2rem;
    }
  
    .swiper-button-prev,
    .swiper-button-next {
         width: 35px;
         height: 35px;
    }
     .swiper-button-prev::after,
     .swiper-button-next::after {
         font-size: 1.5rem;
     }
     .swiper-button-prev {
       left: -5px;
     }
     .swiper-button-next {
        right: -5px;
     }
  
    .testimonials-section .section-header .section-title {
        font-size: 2rem;
    }
  }