/* ================================================
   ESTILOS PREMIUM PARA TESTIMONIOS
   ================================================ */

.testimonials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.testimonials .section-container {
    position: relative;
    z-index: 1;
}

.testimonials .section-title {
    color: white;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Grid de testimonios */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

/* Tarjeta de testimonio */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

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

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    color: rgba(102, 126, 234, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

/* Estrellas */
.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.testimonial-stars i {
    color: #ffd700;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
    animation: starPulse 2s ease-in-out infinite;
}

.testimonial-stars i:nth-child(1) {
    animation-delay: 0s;
}

.testimonial-stars i:nth-child(2) {
    animation-delay: 0.1s;
}

.testimonial-stars i:nth-child(3) {
    animation-delay: 0.2s;
}

.testimonial-stars i:nth-child(4) {
    animation-delay: 0.3s;
}

.testimonial-stars i:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes starPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Texto del testimonio */
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Autor del testimonio */
.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
}

.testimonial-author strong {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #888;
}

/* Sección de resumen de Google Reviews */
.google-reviews-cta {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.google-rating-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stars-large {
    display: flex;
    gap: 0.25rem;
}

.stars-large i {
    color: #ffd700;
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.rating-details p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.google-reviews-cta .primary-btn {
    background: linear-gradient(135deg, #4285f4, #34a853);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.google-reviews-cta .primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
}

.google-reviews-cta .primary-btn i {
    font-size: 1.5rem;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }

    .testimonials .section-title {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .google-rating-summary {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .rating-number {
        font-size: 3rem;
    }

    .google-reviews-cta {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .testimonials .section-title {
        font-size: 1.75rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-stars i {
        font-size: 1.25rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .stars-large i {
        font-size: 1.5rem;
    }

    .google-reviews-cta .primary-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}