/* ========================================
   TESTIMONIOS SLIDER - FLEMING
   Versión ligera y moderna
   ======================================== */

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.testimonial-container {
    position: relative;
    min-height: 360px;
}

/* Item individual - solo uno visible a la vez */
.testimonial-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.testimonial-item.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

/* Foto y badge */
.testimonial-photo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    flex-shrink: 0;
}

.testimonial-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.testimonial-item.active .testimonial-photo {
    animation: photoFadeIn 0.6s ease-out;
}

@keyframes photoFadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.testimonial-badge {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

/* Contenido del testimonio */
.testimonial-content {
    flex: 1;
    max-width: 700px;
}

.testimonial-quote {
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: -20px;
    text-align: center;
}

.testimonial-text {
    color: white;
    font-size: 18px;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 20px 0;
    padding: 0 20px;
}

.testimonial-author {
    margin-top: 16px;
}

.testimonial-name {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.testimonial-career {
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Navegación */
.testimonial-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
}

.testimonial-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-nav-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.testimonial-nav-btn:active {
    transform: scale(0.95);
}

/* Dots */
.testimonial-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.testimonial-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.testimonial-dot.active {
    background: white;
    width: 32px;
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial-slider {
        padding: 25px 15px;
    }

    .testimonial-container {
        min-height: 416px;
    }

    .testimonial-photo-wrapper {
        width: 140px;
        height: 140px;
    }

    .testimonial-photo {
        width: 140px;
        height: 140px;
        border-width: 4px;
    }

    .testimonial-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .testimonial-text {
        font-size: 16px;
        padding: 0 10px;
    }

    .testimonial-name {
        font-size: 20px;
    }

    .testimonial-career {
        font-size: 14px;
    }

    .testimonial-navigation {
        gap: 16px;
        margin-top: 32px;
    }

    .testimonial-nav-btn {
        width: 44px;
        height: 44px;
    }

    .testimonial-dot {
        width: 8px;
        height: 8px;
    }

    .testimonial-dot.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .testimonial-container {
        min-height: 464px;
    }

    .testimonial-photo-wrapper {
        width: 120px;
        height: 120px;
    }

    .testimonial-photo {
        width: 120px;
        height: 120px;
        border-width: 3px;
    }

    .testimonial-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .testimonial-text {
        font-size: 15px;
    }

    .testimonial-name {
        font-size: 18px;
    }

    .testimonial-career {
        font-size: 13px;
    }

    .testimonial-nav-btn {
        width: 40px;
        height: 40px;
    }

    .testimonial-nav-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Optimización de rendimiento */
.testimonial-item {
    will-change: opacity, transform;
}

.testimonial-item:not(.active) {
    pointer-events: none;
}
