/* ====================================
   SECCIÓN DE TESTIMONIOS / CLIENTES
   ==================================== */

.testimonials-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--black) 0%, var(--cyan900) 100%);
    overflow: hidden;
    padding: 4rem 0;
}

/* Fondo con efecto */
.testimonials-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(12, 250, 159, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 162, 162, 0.05) 0%, transparent 40%);
    z-index: 1;
}

.testimonials-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.02) 0px,
        rgba(0, 0, 0, 0.02) 2px,
        transparent 2px,
        transparent 4px
    );
    z-index: 2;
}

.testimonials-container {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-title {
    font-size: 3rem;
    font-family: 'Labrada', sans-serif;
    color: var(--white);
    text-shadow: 0 0 20px var(--green500);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.testimonials-subtitle {
    font-size: 1.3rem;
    color: var(--gray200);
    font-family: 'Manrope', sans-serif;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* Marquee de logos (carrusel automático) */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    margin: 3rem 0;
    padding: 1rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(12, 250, 159, 0.2);
    border-bottom: 1px solid rgba(12, 250, 159, 0.2);
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.client-logo {
    flex: 0 0 auto;
    width: 150px;
    height: 80px;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo img {
    max-width: 100%;
    max-height: 60px;
    filter: grayscale(100%) brightness(1.5);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* Grid de testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.testimonial-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(12, 250, 159, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(12, 250, 159, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--green500);
    box-shadow: 0 20px 40px rgba(12, 250, 159, 0.2);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.testimonial-meta h3 {
    font-size: 1.2rem;
    margin: 0 0 0.3rem 0;
    color: var(--white);
    text-align: left;
}

.testimonial-meta h3:hover {
    color: var(--white);
    text-shadow: none;
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--green400);
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.testimonial-body {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.testimonial-quote-icon {
    color: var(--green500);
    font-size: 1.5rem;
    opacity: 0.3;
    margin-bottom: 0.5rem;
}

.testimonial-comment {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray100);
    font-style: italic;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.testimonial-footer {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(12, 250, 159, 0.2);
    padding-top: 1rem;
}

.testimonial-link {
    color: var(--cyan300);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.testimonial-link:hover {
    color: var(--green500);
    transform: translateX(5px);
}

.testimonial-link i {
    font-size: 0.8rem;
}

/* CTA de testimonios */
.testimonials-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid var(--green500);
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.testimonials-cta-text {
    font-size: 2rem;
    font-family: 'Labrada', sans-serif;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 0 15px var(--green500);
}

/* ====================================
   ANIMACIONES ADICIONALES
   ==================================== */

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ====================================
   RESPONSIVE PARA TESTIMONIOS
   ==================================== */

@media screen and (max-width: 1024px) {
    .testimonials-title {
        font-size: 2.5rem;
    }
    
    .testimonials-subtitle {
        font-size: 1.1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    .testimonials-section {
        padding: 3rem 0;
    }
    
    .testimonials-container {
        padding: 0 1rem;
    }
    
    .testimonials-title {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .client-logo {
        width: 120px;
        margin: 0 1rem;
    }
    
    .client-logo img {
        max-height: 40px;
    }
    
    .testimonials-cta-text {
        font-size: 1.5rem;
    }
    
    .testimonials-cta {
        padding: 2rem 1rem;
    }
}

@media screen and (max-width: 480px) {
    .testimonial-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-meta h3 {
        text-align: center;
    }
    
    .testimonial-logo {
        width: 80px;
        height: 80px;
    }
    
    .testimonials-cta .button-primary {
        width: 100%;
    }
}

/* ==========================================================================
   GRID DE TESTIMONIOS (Reemplazo de Bootstrap)
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

@media (min-width: 992px) {
    .testimonials-grid {
        padding: 0 2rem;
    }
}

.testimonial-item {
    background-color: var(--white);
    border: 1px solid rgba(0, 162, 162, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 162, 162, 0.15);
    border-color: rgba(0, 162, 162, 0.3);
}

.testimonial-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.testimonial-name {
    color: var(--cyan500);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.testimonial-desc {
    color: var(--gray800);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 0;
}

.testimonial-comment {
    color: #555;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1; 
}

.testimonial-link {
    font-size: 0.8rem;
    margin-bottom: 0;
    margin-top: auto; 
}