/* testimonios.css - Versión con animación en bucle infinito y táctil */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(3, 4, 94, 0.95) 0%, rgba(5, 7, 122, 0.9) 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Efecto de fondo animado */
.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(184, 251, 60, 0.1) 0%, transparent 50%);
    animation: pulseBg 8s ease-in-out infinite;
}

@keyframes pulseBg {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.testimonials-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* Badge - mantiene estilo del hero pero con color accent */
.testimonials-badge {
    display: inline-block;
    background: rgba(184, 251, 60, 0.15);
    color: #b8fb3c;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(184, 251, 60, 0.3);
}

/* Título con gradiente como el about (blanco a accent) */
.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    background: linear-gradient(135deg, #FFFFFF 0%, #b8fb3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Descripción - mismo color que el about-text p */
.testimonials-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Estilos del carrusel - Animación en bucle + táctil */
.testimonials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.testimonials-carousel:active {
    cursor: grabbing;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: fit-content;
    animation: scrollInfinite 25s linear infinite;
    transition: none;
    will-change: transform;
}

/* Pausar animación al hacer hover o arrastrar */
.testimonials-carousel:hover .carousel-track,
.testimonials-carousel.dragging .carousel-track {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(184, 251, 60, 0.2);
    pointer-events: auto;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(184, 251, 60, 0.4);
}

.testimonial-card-inner {
    padding: 30px;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.star {
    width: 18px;
    height: 18px;
}

.star-filled {
    color: #fbbf24;
    fill: #fbbf24;
}

.star-empty {
    color: rgba(255, 255, 255, 0.3);
    stroke: rgba(255, 255, 255, 0.3);
}

/* Texto del testimonio - mismo color que about-text p */
.testimonial-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #b8fb3c;
    padding: 2px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Nombre del autor - mismo color que el texto del about */
.author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 4px;
    margin: 0 0 4px 0;
}

/* Cargo del autor - mismo color que la descripción del about */
.author-info p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Animación en bucle infinito */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

/* Indicadores del carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #b8fb3c;
    width: 30px;
    border-radius: 10px;
}

.indicator:hover {
    background: rgba(184, 251, 60, 0.6);
}
    

.testimonials-carousel::before {
    left: 0;
    background: linear-gradient(to right, rgba(3, 4, 94, 0.95), transparent);
}

.testimonials-carousel::after {
    right: 0;
    background: linear-gradient(to left, rgba(3, 4, 94, 0.95), transparent);
}

/* Ocultar scrollbar */
.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .testimonial-card {
        flex: 0 0 320px;
    }
    
    .carousel-track {
        gap: 25px;
    }
    
    .testimonials-carousel::before,
    .testimonials-carousel::after {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-description {
        font-size: 1rem;
    }
    
    .testimonial-card {
        flex: 0 0 300px;
    }
    
    .carousel-track {
        gap: 20px;
    }
    
    .testimonial-card-inner {
        padding: 24px;
    }
    
    .testimonial-text p {
        font-size: 0.95rem;
    }
    
    .testimonials-carousel::before,
    .testimonials-carousel::after {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 0;
    }
    
    .testimonials-title {
        font-size: 1.75rem;
    }
    
    .testimonials-badge {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .testimonial-card {
        flex: 0 0 280px;
    }
    
    .testimonial-card-inner {
        padding: 20px;
    }
    
    .testimonials-carousel::before,
    .testimonials-carousel::after {
        width: 30px;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease forwards;
}