/* =====================================
   TESTIMONIOS - DISEÑO PREMIUM
===================================== */

.testimonials-section {
    --test-green: #009ef3;
    --test-bg: #080a09;
    --test-card: #111512;

    position: relative;
    width: 100%;
    padding: 110px 20px;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(166,255,0,.10),
            transparent 48%
        ),
        var(--test-bg);

    color: #fff;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.testimonials-section * {
    box-sizing: border-box;
}

.testimonials-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

/* ENCABEZADO */

.testimonials-header {
    max-width: 750px;
    margin: 0 auto 45px;
    text-align: center;
}

.testimonials-tag,
.video-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--test-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--test-green);
    box-shadow: 0 0 12px var(--test-green);
}

.testimonials-header h2 {
    font-size: clamp(36px, 5vw, 65px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 0 0 22px;
}

.testimonials-header h2 span,
.video-content h3 span {
    color: var(--test-green);
}

.testimonials-header p {
    max-width: 620px;
    margin: auto;
    color: #a6ada8;
    font-size: 16px;
    line-height: 1.8;
}

/* VALORACIÓN */

.testimonials-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 45px;
}

.rating-number {
    color: #ffc928;
    font-size: 27px;
    letter-spacing: 3px;
}

.rating-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rating-info strong {
    font-size: 11px;
    letter-spacing: 1px;
}

.rating-info span {
    color: #858d87;
    font-size: 12px;
}

/* CARRUSEL */

.testimonial-slider {
    display: flex;
    align-items: center;
    gap: 18px;
}

.testimonial-track-wrapper {
    width: 100%;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 22px;
    transition: transform .65s cubic-bezier(.22,.61,.36,1);
    will-change: transform;
}

.testimonial-card {
    position: relative;
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;
    min-height: 330px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 20px;

    background: linear-gradient(
        145deg,
        #171d19,
        #0e110f
    );

    transition:
        border-color .35s,
        transform .35s,
        box-shadow .35s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-color: rgba(166,255,0,.5);
    box-shadow: 0 15px 45px rgba(0,0,0,.35);
}

.testimonial-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.testimonial-category {
    color: var(--test-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.testimonial-stars {
    color: #ffc928;
    font-size: 13px;
    letter-spacing: 2px;
}

.testimonial-quote {
    height: 70px;
    margin-top: 15px;
    color: var(--test-green);
    font-size: 85px;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    color: #c7cec9;
    font-size: 14px;
    line-height: 1.9;
    min-height: 105px;
    margin: 8px 0 25px;
}

.testimonial-client {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.09);
}

.client-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 46px;
    height: 46px;
    border-radius: 50%;

    background: rgba(166,255,0,.13);
    border: 1px solid rgba(166,255,0,.35);

    color: var(--test-green);
    font-size: 12px;
    font-weight: 800;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.client-info strong {
    font-size: 13px;
}

.client-info span {
    color: #89918b;
    font-size: 11px;
}

/* FLECHAS */

.testimonial-arrow {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(166,255,0,.4);
    background: rgba(166,255,0,.08);
    color: var(--test-green);
    font-size: 17px;
    cursor: pointer;
    transition: .3s;
}

.testimonial-arrow:hover {
    background: var(--test-green);
    color: #080a09;
    box-shadow: 0 0 20px rgba(166,255,0,.3);
}

.testimonial-arrow:focus-visible,
.video-play-button:focus-visible,
.testimonial-cta-button:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

/* CONTROLES */

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 35px 0 85px;
}

.testimonial-dots {
    display: flex;
    gap: 9px;
}

.testimonial-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 10px;
    background: #515a53;
    cursor: pointer;
    transition: .3s;
}

.testimonial-dot.active {
    width: 30px;
    background: var(--test-green);
}

.testimonial-counter {
    color: #89918b;
    font-size: 12px;
    letter-spacing: 2px;
}

/* BLOQUE DE VIDEO */

.testimonial-video {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 350px;
    padding: 55px 8%;
    border: 1px solid rgba(166,255,0,.2);
    border-radius: 25px;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(8,12,9,.98),
            rgba(8,12,9,.83)
        ),
        radial-gradient(
            circle at 80% 50%,
            rgba(166,255,0,.25),
            transparent 45%
        );
}

.video-content {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.video-content h3 {
    font-size: clamp(30px,4vw,48px);
    line-height: 1.15;
    font-weight: 900;
    margin: 0 0 20px;
}

.video-content p {
    max-width: 450px;
    color: #aab2ac;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 28px;
}

.video-play-button {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 14px 23px;
    border: none;
    border-radius: 5px;
    background: var(--test-green);
    color: #080a09;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: .3s;
}

.video-play-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(166,255,0,.2);
}

.play-icon {
    font-size: 16px;
}

.video-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 270px;
    height: 270px;
    flex-shrink: 0;
}

.video-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(166,255,0,.5);
    border-radius: 50%;
    box-shadow:
        0 0 0 25px rgba(166,255,0,.025),
        0 0 0 50px rgba(166,255,0,.02),
        0 0 65px rgba(166,255,0,.15);
    color: var(--test-green);
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 3px;
}

/* LLAMADO A LA ACCIÓN */

.testimonials-cta {
    text-align: center;
    padding-top: 85px;
}

.testimonials-cta h3 {
    font-size: clamp(23px,3vw,34px);
    font-weight: 900;
    margin: 0 0 15px;
}

.testimonials-cta p {
    color: #a0a8a2;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.testimonial-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 17px 27px;
    background: var(--test-green);
    color: #080a09;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    transition: .3s;
}

.testimonial-cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(166,255,0,.2);
}

/* MODAL DE VIDEO */

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.93);
    backdrop-filter: blur(12px);
}

.testimonial-modal.active {
    display: flex;
}

.testimonial-modal-content {
    position: relative;
    width: 100%;
    max-width: 950px;
}

.modal-close {
    position: absolute;
    right: 0;
    top: -48px;
    width: 40px;
    height: 40px;
    border: 1px solid #777;
    border-radius: 50%;
    background: #171717;
    color: white;
    font-size: 27px;
    cursor: pointer;
}

.modal-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.modal-video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* TABLETS */

@media (max-width: 950px) {

    .testimonial-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .testimonial-video {
        padding: 45px;
    }

    .video-decoration {
        width: 200px;
        height: 200px;
    }

    .video-circle {
        width: 160px;
        height: 160px;
        font-size: 13px;
    }

}

/* MÓVILES */

@media (max-width: 600px) {

    .testimonials-section {
        padding: 75px 15px;
    }

    .testimonials-header h2 {
        font-size: 37px;
        letter-spacing: -1px;
    }

    .testimonials-header p {
        font-size: 14px;
    }

    .testimonials-rating {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .testimonial-slider {
        gap: 8px;
    }

    .testimonial-card {
        flex-basis: 100%;
        min-height: 315px;
        padding: 25px;
    }

    .testimonial-arrow {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .testimonial-controls {
        margin: 25px 0 65px;
    }

    .testimonial-video {
        min-height: auto;
        padding: 40px 25px;
    }

    .video-decoration {
        display: none;
    }

    .video-content h3 {
        font-size: 34px;
    }

    .testimonials-cta {
        padding-top: 65px;
    }

    .testimonial-cta-button {
        padding: 16px;
        font-size: 10px;
    }

}

/* ACCESIBILIDAD: MOVIMIENTO REDUCIDO */

@media (prefers-reduced-motion: reduce) {

    .testimonial-track,
    .testimonial-card,
    .testimonial-arrow,
    .video-play-button {
        transition: none !important;
    }

}

