/* 24racks Cloud — home-testimonials: 3-column infinite vertical scroll testimonials. Main page only. */

/* ── Testimonials (3-column infinite vertical scroll) ──────── */
/* ─────────────────────────────────────────────────────────────
   Testimonials — columnas con scroll vertical infinito
   ───────────────────────────────────────────────────────────── */

.testimonials-section {
    position: relative;
    overflow: hidden;
}

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

.testimonials-header .section-eyebrow {
    justify-content: center;
}

.testimonials-header .section-eyebrow svg {
    color: currentColor;
}

.testimonials-header .section-title {
    text-align: center;
    font-size: clamp(28px, 3.6vw, 44px);
    letter-spacing: -.018em;
}

.testimonials-header .section-description {
    max-width: 620px;
    margin: 16px auto 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    height: 720px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.testimonials-column {
    position: relative;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    gap: 18px;
    will-change: transform;
    animation: testimonials-scroll-up 38s linear infinite;
}

.testimonials-column-1 .testimonials-track {
    animation: testimonials-scroll-down 44s linear infinite;
}

.testimonials-column-2 .testimonials-track {
    animation-duration: 52s;
}

.testimonials-grid:hover .testimonials-track {
    animation-play-state: paused;
}

@keyframes testimonials-scroll-up {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes testimonials-scroll-down {
    0%   { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    color: var(--text-2);
    transition: border-color var(--transition-base), background var(--transition-base);
}

.testimonial-card:hover {
    border-color: var(--blue-border);
    background: var(--bg-elevated);
}

.testimonial-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--brand);
}

.testimonial-stars svg {
    width: 14px;
    height: 14px;
}

.testimonial-quote {
    margin: 0;
    color: var(--text-1);
    font-size: 14.5px;
    line-height: 1.55;
    font-weight: 560;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

.testimonial-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.testimonial-name {
    color: var(--text-1);
    font-size: 13.5px;
    font-weight: 740;
    line-height: 1.2;
}

.testimonial-role {
    color: var(--text-3);
    font-size: 12px;
    line-height: 1.2;
}

.testimonials-footer {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.testimonials-footer .btn svg {
    transition: transform var(--transition-base);
}

.testimonials-footer .btn:hover svg {
    transform: translate(2px, -2px);
}

@media (max-width: 980px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        height: 640px;
    }

    .testimonials-column-2 {
        display: none;
    }
}

@media (max-width: 640px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        height: 560px;
    }

    .testimonials-column-1 {
        display: none;
    }

    .testimonial-card {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-track {
        animation: none !important;
    }

    .testimonials-grid {
        height: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

