/* ========================================
   TESTIMONIALS SECTION
   Testimonios con videos y carrusel
   ======================================== */

.testimonials {
    background:
        linear-gradient(to bottom,
            rgba(10, 10, 10, 0.8) 0%,
            rgba(74, 26, 74, 0.7) 50%,
            rgba(10, 10, 10, 0.9) 100%),
        url(../assets/imgs/fondo2.webp);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 80px 20px;
    color: #f5f5f0;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.testimonials .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    margin: 0 auto;
    max-width: 1200px;
}

.testimonials h2 {
    text-align: center;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-family: var(--font-titulos);
    margin-bottom: 50px;
    padding: 20px 40px;
    border-top: 2px dashed rgba(212, 175, 55, 0.4);
    border-bottom: 2px dashed rgba(212, 175, 55, 0.4);
    width: fit-content;
    margin: 0 auto 50px auto;
    color: var(--color-dorado-antiguo);
    letter-spacing: 3px;
    text-shadow:
        2px 2px 10px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(212, 175, 55, 0.4);
}

/* ========================================
   CARRUSEL DE WHATSAPP Y VIDEOS
   ======================================== */

.whatsapp-slider {
    margin-bottom: 50px;
    width: 100%;
    max-width: 900px;
    height: var(--height);
    overflow: hidden;
    mask-image: linear-gradient(to right,
            transparent,
            #000 10% 90%,
            transparent);
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.2);
}

@media (max-width: 700px) {
    .whatsapp-slider {
        position: relative;
        left: 0;
        right: 0;
        width: 100vw;
    }
}

.slider {
    display: flex;
    width: 100%;
    min-width: calc(var(--width) * var(--quantity));
    position: relative;
    gap: 25px;
}

.slider .slide {
    width: var(--width);
    height: var(--height);
    position: absolute;
    flex-shrink: 0;
    left: 60%;
    animation: autoRun 18s linear infinite;
    animation-delay: calc((18s / var(--quantity)) * (var(--position) - 1));
    border-radius: 15px;
    overflow: hidden;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(212, 175, 55, 0.2);
}

.slide img,
.slide video {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.slide video {
    object-fit: contain;
    background: #000;
}

@keyframes autoRun {
    from {
        left: 100%;
    }

    to {
        left: calc(var(--width) * -1);
    }
}

/* ========================================
   CARDS DE TESTIMONIOS
   ======================================== */

.testimonial-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
    width: 100%;
}

.testimonial-item {
    background: linear-gradient(145deg,
            rgba(245, 245, 240, 0.95),
            rgba(255, 235, 220, 0.92));
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 25px rgba(212, 175, 55, 0.2);
    padding: 35px 30px;
    margin: 0 auto;
    text-align: center;
    width: 90%;
    max-width: 700px;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-item::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg,
            var(--color-dorado-antiguo),
            var(--color-dorado-suave),
            var(--color-dorado-antiguo));
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.testimonial-item:hover::before {
    opacity: 0.6;
}

.testimonial-item .icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #fff, #f5f5f0);
    border-radius: 50%;
    padding: 12px 14px;
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--color-dorado-antiguo);
}

.testimonial-item .icon img {
    width: 35px;
    height: 35px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.testimonial-item p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin: 25px 0 15px;
    color: #2a2a2a;
    font-style: italic;
    line-height: 1.8;
    font-family: var(--font-cuerpo);
    font-weight: 600;
}

.testimonial-item .testimonial-text {
    position: relative;
}

.testimonial-item .testimonial-text::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-dorado-antiguo);
    opacity: 0.3;
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-item span.author {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: var(--color-rojo-sangre);
    font-family: var(--font-subtitulos);
    display: block;
    margin-top: 15px;
}

.testimonial-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 175, 55, 0.4);
}

/* ========================================
   CONTADORES DE ÉXITO
   ======================================== */

.informacion {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 60px;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.informacion section {
    text-align: center;
    flex: 1;
    min-width: 200px;
    padding: 25px;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.7),
            rgba(74, 26, 74, 0.5));
    border-radius: 15px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.informacion section:hover {
    transform: translateY(-5px);
    border-color: var(--color-dorado-antiguo);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(212, 175, 55, 0.3);
}

.informacion section img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    animation: flotar 3s ease-in-out infinite;
}

.informacion section h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    white-space: nowrap;
    color: #f5f5f0;
    font-family: var(--font-subtitulos);
    margin-bottom: 15px;
    border: none;
    padding: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.informacion section .contador {
    color: var(--color-verde-brillante);
    margin-top: 20px;
    padding: 15px 35px;
    background: linear-gradient(135deg,
            rgba(28, 115, 17, 0.2),
            rgba(30, 188, 90, 0.15));
    text-align: center;
    border-radius: 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    font-family: var(--font-titulos);
    border: 2px solid rgba(30, 188, 90, 0.4);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(30, 188, 90, 0.2);
    text-shadow: 0 0 15px rgba(30, 188, 90, 0.6);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 15px;
    }

    .slider {
        gap: 20px;
    }

    .testimonial-item {
        width: 95%;
        padding: 30px 25px;
    }

    .testimonial-item p {
        font-size: 1.15rem;
    }

    .informacion {
        flex-direction: column;
        gap: 30px;
    }

    .informacion section {
        width: 100%;
        max-width: 400px;
    }
}