:root {
    --font-montserrat-regular: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --font-montserrat-semibold: 'Montserrat SemiBold', 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

h1, h2, h3 {
    font-family: var(--font-montserrat-semibold);
    font-weight: 600;
}

p {
    font-family: var(--font-montserrat-regular);
    font-weight: 400;
}

/* ===== Testimonios ===== */

.testimonials {
    padding: 90px 0;
    background-color: #f9fafcd2;
    position: relative;
    overflow: hidden;
    
}

/* Alternativamente, usa pseudo-elementos para más control */
.testimonials::before,
.testimonials::after {
    content: "";
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    animation: planta-balanceo 8s ease-in-out infinite alternate;
}

.testimonials::before {
    left: 0;
    bottom: -30px;
    width: 300px;   
    height: 300px;  
    background: url('../icons/fondo-planta1.svg') no-repeat left bottom/contain;
    animation-delay: 0s;
}

.testimonials::after {
    right: 0;
    bottom: -30px; 
    width: 320px;
    height: 320px;
    background: url('../icons/fondo-planta2.svg') no-repeat right bottom/contain;
    transform: scaleX(-1);
    animation-delay: 4s;
}

@keyframes planta-balanceo {
    0% {
        transform: scale(1) rotate(-2deg);
    }
    50% {
        transform: scale(1.03) rotate(2deg);
    }
    100% {
        transform: scale(1) rotate(-2deg);
    }
}

@media (max-width: 900px) {
    .testimonials::before,
    .testimonials::after {
        width: 160px;
        height: 160px;
        opacity: 0.3;
    }
}

@media (max-width: 600px) {
    .testimonials::before,
    .testimonials::after {
        width: 90px;
        height: 90px;
        opacity: 0.30;
    }
}


.testimonials > * {
    position: relative;
    z-index: 1;
}

.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4e5a6a;
    margin-bottom: 15px;
    position: relative;
}

.section-label::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3a7bd5, #00d2ff);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #314e91;
    margin-bottom: 35px; /* antes: 15px */
    line-height: 1.2;
}

.section-description {
    font-size: 1.13rem;
    margin-top: 10px;
    color: #444;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.testimonials-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none; 
}

.testimonials-carousel::-webkit-scrollbar {
    display: none; 
}

.testimonial-item {
    min-width: calc(50% - 15px);
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.797);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius:3px ;
}

.testimonial-media {
    position: relative;
    padding-top: 65.30%; /* 16:9 aspect ratio */
    background: linear-gradient(to bottom, #5e7ec9, #314e91);
}

.testimonial-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #314e91;
    z-index: 2;
    opacity: 0;
    transition: all 0.3s ease;
}

.testimonial-media:hover .play-indicator {
    opacity: 1;
}

.testimonial-content {
    padding: 30px;
}

.testimonial-text {
    margin-bottom: 25px;
}

.testimonial-text p {
    font-size: 16px;
    line-height: 1.7;
    color: #5e6d88;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.testimonial-text p::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 40px;
    line-height: 1;
    color: #e0e5ed;
    font-family: Georgia, serif;
}

.client-company img {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.client-company img:hover {
    filter: grayscale(0);
    opacity: 1;
}

.testimonials-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 20px;
}

.nav-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: 4px solid #e0e5ed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #314e91;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #314e91;
    color: white;
    border-color: #314e91;
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.testimonial-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e5ed;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dots .dot.active {
    background: #314e91;
    transform: scale(1.2);
}

.icon-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: -20px;
/*     margin-top: -60px; */
}

.icon-section svg {
    display: block;
    margin: 0 auto 24px auto;
    width: 90px;
    height: 90px;
    max-width: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(49, 78, 145, 0.15));
    background: linear-gradient(135deg, #e3eafc 0%, #f5f8ff 100%);
    border-radius: 50%;
    padding: 16px;
    transition: transform 0.3s, filter 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 12px rgba(49, 78, 145, 0.08);
}

.icon-section svg:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 8px 24px rgba(49, 78, 145, 0.22));
    box-shadow: 0 6px 24px rgba(49, 78, 145, 0.13);
}

