:root {
    --primary-color: #004b8d;
    --secondary-color: #006bb3;
    --accent-color: #d4af37;
    --light-bg: #f8f9fa;
    --dark-text: #222222;
    --light-text: #ffffff;
    --gray-text: #6c757d;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

.section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #fff;
    max-width: 600px;
    margin: 15px auto 40px;
}

.testimonials-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 20px 0;
}

.testimonials-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    gap: 5px; /* Gap de 5px entre testimonios */
    max-width: 400px;
}

.testimonial-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 30px;
    position: relative;
    min-width: calc(40% - 10px); /* 2 testimonios con gap de 5px */
    max-width: 400px;
    flex: 0 0 auto;
    transition: var(--transition);
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: rgba(0, 107, 179, 0.1);
    transform: rotate(15deg);
}

.testimonial-content {
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.7;
    margin: 20px 0 25px;
    color: var(--dark-text);
    padding-right: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: -10px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(0, 107, 179, 0.15);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.author-role {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.rating {
    display: flex;
    gap: 3px;
}

.rating i {
    color: var(--accent-color);
    font-size: 0.95rem;
}

.stats-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 50px;
    padding: 30px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    color: white;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0, 75, 141, 0.2);
}

.stat-item {
    text-align: center;
    min-width: 140px;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #c0c0c0;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* Responsive styles */
@media (max-width: 1200px) {
    .section-title {
        font-size: 2rem;
    }
    
    .stat-item {
        min-width: 130px;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .section {
        padding: 50px 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .stats-container {
        gap: 20px;
        padding: 25px 20px;
    }
    
    .stat-item {
        min-width: 120px;
    }
    
    .stat-value {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        min-width: calc(100% - 5px); /* 1 testimonio en móvil */
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .testimonial-content {
        font-size: 1rem;
    }
    
    .stats-container {
        gap: 15px;
        margin-top: 40px;
        padding: 20px 15px;
    }
    
    .stat-item {
        min-width: 110px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .controls {
        margin-top: 35px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 10px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        margin-bottom: 30px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        max-width: 300px;
        padding: 20px;
    }
    
    .stat-item {
        width: 100%;
    }
    
    .control-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    
    .pagination {
        margin-top: 20px;
    }
}

/* Modo oscuro */
body.dark {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark .section-title {
    color: #4d9de0;
}

body.dark .section-title::after {
    background: #d4af37;
}

body.dark .section-subtitle {
    color: #a0a0a0;
}

body.dark .testimonial-card {
    background: #2e2e2e !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

body.dark .testimonial-content {
    background: #2e2e2e !important;
    color: #e0e0e0;
}

body.dark .author-name {
    color: #4d9de0;
}

body.dark .author-role {
    color: #a0a0a0;
}

body.dark .stats-container {
    background: linear-gradient(to right, #1a3a5f, #2a628f);
}

body.dark .control-btn {
    background: #2a2a2a;
    border-color: #4d9de0;
    color: #4d9de0;
}

body.dark .control-btn:hover {
    background: #4d9de0;
    color: #fff;
}











/* Añadir al final del archivo */
body.dark .testimonial-card {
    background: #2e2e2e !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark .testimonial-content {
    color: #e0e0e0 !important;
}











body.dark-mode .testimonial-card {
    background: #2e2e2e !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

body.dark-mode .testimonial-content {
    color: #e0e0e0 !important;
}

body.dark-mode .author-name {
    color: #4d9de0;
}