/* ===== TESTIMONIOS - FONDO DORADO (MODO OSCURO) ===== */
.testimonials {
    background-color: var(--dorado);
    background: linear-gradient(135deg, var(--dorado) 0%, var(--dorado-calido) 100%);
    color: var(--negro);
    transition: all 0.5s ease;
}

/* Modo claro - Fondo negro con texto dorado (invertido) */
body.modo-claro .testimonials {
    background: linear-gradient(135deg, var(--negro) 0%, var(--negro-profundo) 100%);
    color: var(--dorado);
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    opacity: 0.05;
    z-index: 0;
}

.testimonials > .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Títulos en modo oscuro (fondo dorado) */
.testimonials h2 {
    color: var(--negro);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Títulos en modo claro (fondo negro) */
body.modo-claro .testimonials h2 {
    color: var(--dorado);
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Lead en modo oscuro */
.testimonials .lead {
    color: var(--negro-profundo);
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.3rem;
}

/* Lead en modo claro */
body.modo-claro .testimonials .lead {
    color: var(--dorado-calido);
    font-weight: 600;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Modo claro - Tarjetas con fondo oscuro */
body.modo-claro .testimonial-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255,215,0,0.2);
    box-shadow: 0 10px 30px rgba(255,215,0,0.1);
    color: var(--dorado);
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card:hover {
    border-color: var(--negro);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Modo claro - Hover */
body.modo-claro .testimonial-card:hover {
    border-color: var(--dorado);
    box-shadow: 0 15px 30px rgba(255,215,0,0.2);
    transform: translateY(-10px) scale(1.02);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 6rem;
    color: rgba(0,0,0,0.1);
    opacity: 0.3;
    font-family: 'Oswald', sans-serif;
    line-height: 1;
    transition: all 0.4s ease;
}

/* Modo claro - Comillas doradas */
body.modo-claro .testimonial-card::before {
    color: rgba(255,215,0,0.2);
}

.testimonial-card:hover::before {
    opacity: 0.4;
    transform: scale(1.1);
}

.testimonial-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 30px;
    color: var(--negro-profundo);
    font-size: 1.1rem;
    line-height: 1.8;
    transition: all 0.3s ease;
    font-weight: 500;
    flex-grow: 1;
}

/* Modo claro - Texto de testimonio dorado */
body.modo-claro .testimonial-text {
    color: var(--dorado-calido);
}

.testimonial-card:hover .testimonial-text {
    color: var(--negro);
}

/* Modo claro - Hover en texto */
body.modo-claro .testimonial-card:hover .testimonial-text {
    color: var(--dorado);
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
    border: 3px solid var(--negro);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Modo claro - Borde dorado en avatar */
body.modo-claro .author-avatar {
    border: 3px solid var(--dorado);
}

.testimonial-card:hover .author-avatar {
    border-color: var(--gris-oscuro);
    transform: scale(1.1);
}

/* Modo claro - Hover en avatar */
body.modo-claro .testimonial-card:hover .author-avatar {
    border-color: var(--dorado-calido);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.testimonial-card:hover .author-avatar img {
    transform: scale(1.1);
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--negro);
    transition: all 0.3s ease;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
}

/* Modo claro - Nombre del autor dorado */
body.modo-claro .author-info h4 {
    color: var(--dorado);
}

.testimonial-card:hover .author-info h4 {
    color: var(--gris-oscuro);
}

/* Modo claro - Hover en nombre */
body.modo-claro .testimonial-card:hover .author-info h4 {
    color: var(--dorado-calido);
}

.author-info p {
    margin: 0;
    color: var(--gris-oscuro);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Modo claro - Detalles del autor */
body.modo-claro .author-info p {
    color: var(--dorado-calido);
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .testimonials-slider {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .testimonials .lead {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 80px 0;
    }
    
    .testimonials h2 {
        font-size: 2.3rem;
        margin-bottom: 20px;
    }
    
    .testimonials .lead {
        font-size: 1.2rem;
        margin-bottom: 40px;
    }
    
    .testimonial-card {
        padding: 30px 25px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }
    
    .author-info h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonials h2 {
        font-size: 2rem;
    }
    
    .testimonials .lead {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    
    .author-info h4 {
        font-size: 1rem;
    }
    
    .author-info p {
        font-size: 0.85rem;
    }
    
    .testimonial-card::before {
        font-size: 4rem;
        top: 15px;
        left: 20px;
    }
}