/**
 * ConectaTerapia - Testimonials Carousel Styles
 * Premium Design Overhaul
 */

.ctr-testimonials-carousel {
    position: relative;
    padding: 60px 0 80px;
    overflow: visible;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif; /* Asegurar fuente del tema */
}

.ctr-carousel-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 40px 0; /* Espacio para sombras y efectos de hover */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent); /* Desvanecimiento en bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.ctr-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); /* Movimiento muy suave */
    width: 100%;
    cursor: grab;
}

.ctr-carousel-track:active {
    cursor: grabbing;
}

.ctr-testimonial-slide {
    flex: 0 0 100%;
    padding: 0 20px;
    box-sizing: border-box;
    opacity: 0.4; /* Inactivos semitransparentes para enfoque */
    transform: scale(0.92);
    transition: all 0.6s ease;
    filter: blur(2px);
}

/* Lógica para resaltar el slide activo (requeriría JS para clase activa real, 
   pero por ahora usaremos un enfoque visual general mejorado) */
.ctr-testimonial-slide {
    opacity: 1;
    transform: scale(1);
    filter: none;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    .ctr-testimonials-carousel[data-columns="2"] .ctr-testimonial-slide,
    .ctr-testimonials-carousel[data-columns="3"] .ctr-testimonial-slide {
        flex: 0 0 50%;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    .ctr-testimonials-carousel[data-columns="3"] .ctr-testimonial-slide {
        flex: 0 0 33.333%;
    }
}

/* --- PREMIUM CARD DESIGN --- */

.ctr-testimonial-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 10px 15px -3px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0,0,0,0.02); /* Borde sutil */
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent; /* Preparar para hover */
}

.ctr-testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-bottom-color: #50A4A7; /* Acento de color al hover */
}

/* Elemento decorativo de fondo (círculo sutil) */
.ctr-testimonial-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(80, 164, 167, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Comillas Gigantes y Elegantes */
.ctr-testimonial-card::before {
    content: '“';
    position: absolute;
    top: 25px;
    left: 30px;
    font-size: 120px;
    line-height: 1;
    color: #E8F0F2;
    font-family: 'Georgia', serif;
    pointer-events: none;
    z-index: 0;
}

/* Rating Stars */
.ctr-testimonial-rating {
    color: #F59E0B;
    font-size: 16px;
    margin-bottom: 24px;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
    display: inline-block;
    background: rgba(245, 158, 11, 0.08);
    padding: 6px 12px;
    border-radius: 20px;
}

/* Content Text */
.ctr-testimonial-content {
    font-size: 17px;
    line-height: 1.8;
    color: #4A5568;
    font-weight: 400;
    font-style: normal; /* Quitar itálica para más legibilidad moderna */
    margin-bottom: 40px;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* Author Section */
.ctr-testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    padding-top: 24px;
    border-top: 1px solid #F7FAFC;
}

.ctr-author-avatar {
    position: relative;
}

.ctr-author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Indicador de verificado en el avatar */
.ctr-author-avatar::after {
    content: '✓';
    position: absolute;
    bottom: 0;
    right: 0;
    background: #50A4A7;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.ctr-author-info {
    display: flex;
    flex-direction: column;
}

.ctr-author-info h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #1A202C;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ctr-author-info span {
    font-size: 14px;
    color: #718096;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 12px;
}

/* --- NAVIGATION & DOTS --- */

.ctr-carousel-nav {
    display: none !important; /* Mantener oculto como se pidió */
}

.ctr-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.ctr-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E0;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    padding: 0;
    position: relative;
}

/* Efecto de expansión para el dot activo */
.ctr-dot.active {
    width: 32px;
    border-radius: 10px;
    background: #50A4A7;
    box-shadow: 0 4px 12px rgba(80, 164, 167, 0.3);
}

.ctr-dot:hover:not(.active) {
    background: #A0AEC0;
    transform: scale(1.2);
}

/* --- RESPONSIVE --- */

@media (max-width: 768px) {
    .ctr-testimonials-carousel {
        padding: 40px 0 60px;
    }
    
    .ctr-testimonial-card {
        padding: 32px 24px;
        min-height: auto;
    }
    
    .ctr-testimonial-card::before {
        font-size: 80px;
        top: 15px;
        left: 20px;
    }
    
    .ctr-testimonial-content {
        font-size: 16px;
    }
    
    .ctr-carousel-container {
        mask-image: none; /* Quitar máscara en móvil para aprovechar ancho */
        -webkit-mask-image: none;
    }
}
