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

.testimonios {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    padding: 4rem 0 5rem 0;
    min-height: 60vh;
    overflow: hidden;
    font-family: "Montserrat", sans-serif;
}

.testimonios-top {
    text-align: center;
    margin-bottom: 3.5rem;
    padding: 0 1rem;
}

.testimonios-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #f0d7ba 0%, #fce4d0 100%);
    backdrop-filter: blur(10px);
    color: #7b4924;
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 12px rgba(123, 73, 36, 0.1);
    animation: float 3s ease-in-out infinite;
}

.testimonios-tag img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.testimonios h2 {
    color: #192335;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: 0.8rem;
    letter-spacing: -1.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonios h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 600;
    color: #5a6c7d;
    margin-bottom: 1rem;
}

.testimonios-carrusel {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.testimonios-row {
    display: flex;
    gap: 2.5rem;
    flex-wrap: nowrap;
    will-change: transform;
}

.testimonio-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 280px;
    height: 280px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid rgba(163, 220, 53, 0.15);
    padding: 0;
    cursor: pointer;
}

.testimonio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonio-card:hover {
    box-shadow: 0 12px 40px rgba(0, 165, 81, 0.25),
    0 6px 20px rgba(163, 220, 53, 0.3);
    transform: translateY(-10px) scale(1.05);
    border-color: #a3dc35;
    border-width: 4px;
}

.testimonio-card:hover img {
    transform: scale(1.12);
    filter: brightness(1.05);
}

/* Carrusel Animación */
@keyframes testimoniosSlideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-280px * 9 - 2.5rem * 9));
    }
}

@keyframes testimoniosSlideRight {
    0% {
        transform: translateX(calc(-280px * 8 - 2.5rem * 8));
    }
    100% {
        transform: translateX(0);
    }
}

.testimonios-row1 {
    animation: testimoniosSlideLeft 40s linear infinite;
}

.testimonios-row2 {
    animation: testimoniosSlideRight 43s linear infinite;
}

.testimonios-row:hover {
    animation-play-state: paused;
}

/* Tablets grandes */
@media (max-width: 1200px) {
    .testimonio-card {
        min-width: 240px;
        max-width: 240px;
        flex: 0 0 240px;
        height: 240px;
    }

    .testimonios-row {
        gap: 2rem;
    }

    @keyframes testimoniosSlideLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-240px * 9 - 2rem * 9));
        }
    }

    @keyframes testimoniosSlideRight {
        0% {
            transform: translateX(calc(-240px * 8 - 2rem * 8));
        }
        100% {
            transform: translateX(0);
        }
    }
}

/* Tablets */
@media (max-width: 900px) {
    .testimonios {
        padding: 3rem 0 4rem 0;
    }

    .testimonios-carrusel {
        gap: 2rem;
    }

    .testimonio-card {
        min-width: 200px;
        max-width: 200px;
        flex: 0 0 200px;
        height: 200px;
        border-radius: 20px;
    }

    .testimonios-row {
        gap: 1.8rem;
    }

    @keyframes testimoniosSlideLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-200px * 9 - 1.8rem * 9));
        }
    }

    @keyframes testimoniosSlideRight {
        0% {
            transform: translateX(calc(-200px * 8 - 1.8rem * 8));
        }
        100% {
            transform: translateX(0);
        }
    }
}

/* Mobile */
@media (max-width: 600px) {
    .testimonios {
        padding: 2.5rem 0 3rem 0;
    }

    .testimonios-top {
        margin-bottom: 2.5rem;
    }

    .testimonios-top h2 {
        font-size: 1.75rem;
    }

    .testimonios-top h3 {
        font-size: 1.1rem;
    }

    .testimonios-carrusel {
        gap: 1.5rem;
    }

    .testimonio-card {
        min-width: 160px;
        max-width: 160px;
        flex: 0 0 160px;
        height: 160px;
        border-radius: 18px;
        border-width: 2.5px;
    }

    .testimonio-card:hover {
        border-width: 3px;
        transform: translateY(-8px) scale(1.04);
    }

    .testimonios-row {
        gap: 1.3rem;
    }

    @keyframes testimoniosSlideLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-160px * 9 - 1.3rem * 9));
        }
    }

    @keyframes testimoniosSlideRight {
        0% {
            transform: translateX(calc(-160px * 8 - 1.3rem * 8));
        }
        100% {
            transform: translateX(0);
        }
    }
}

/* Mobile pequeño */
@media (max-width: 400px) {
    .testimonios {
        padding: 2rem 0 2.5rem 0;
    }

    .testimonios-top h2 {
        font-size: 1.5rem;
    }

    .testimonios-top h3 {
        font-size: 1rem;
    }

    .testimonio-card {
        min-width: 130px;
        max-width: 130px;
        flex: 0 0 130px;
        height: 130px;
        border-radius: 16px;
        border-width: 2px;
    }

    .testimonio-card:hover {
        border-width: 2.5px;
        transform: translateY(-6px) scale(1.03);
    }

    .testimonios-row {
        gap: 1rem;
    }

    @keyframes testimoniosSlideLeft {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-130px * 9 - 1rem * 9));
        }
    }

    @keyframes testimoniosSlideRight {
        0% {
            transform: translateX(calc(-130px * 8 - 1rem * 8));
        }
        100% {
            transform: translateX(0);
        }
    }
}