/*
 * testimonials.css — Slider de testimonios.
 * Usa los tokens de diseño de landing.css.
 *
 * @package RW\DonaWidgets
 */

/* =====================================================================
   SECCIÓN
   ===================================================================== */

.rw-testimonials {
    padding: 56px 0 64px;
}

.rw-testimonials .wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =====================================================================
   ENCABEZADO
   ===================================================================== */

.testi-header {
    margin-bottom: 40px;
}

/* =====================================================================
   SLIDER WRAPPER
   ===================================================================== */

.testi-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-lg);
}

/* =====================================================================
   TRACK Y SLIDES
   ===================================================================== */

.testi-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

.testi-slide {
    min-width: 100%;
    background: #fff;
    padding: 0 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* =====================================================================
   CITA
   ===================================================================== */

.testi-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.55;
    color: var(--ink);
    margin: 0;
    position: relative;
    padding-left: 24px;
    text-align: center;
}

/* Textos largos: reducir fuente para no disparar la altura del slide */
.testi-quote--long {
    font-size: clamp(15px, 1.6vw, 19px);
    line-height: 1.5;
}

.testi-quote--xl {
    font-size: clamp(13px, 1.3vw, 16px);
    line-height: 1.48;
}

/* =====================================================================
   AUTOR
   ===================================================================== */

.testi-author {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
}

.testi-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--line);
}

.testi-photo-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--terra);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.testi-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.testi-meta strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}

.testi-meta span {
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-3);
}

/* =====================================================================
   FLECHAS
   ===================================================================== */

.testi-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, color 0.18s;
    z-index: 2;
}

.testi-arrow:hover {
    background: var(--terra);
    border-color: var(--terra);
    color: #fff;
    box-shadow: 0 4px 14px -4px rgba(226, 77, 51, 0.45);
}

.testi-arrow svg {
    width: 18px;
    height: 18px;
}

.testi-prev {
    left: 12px;
}

.testi-next {
    right: 12px;
}

/* =====================================================================
   DOTS
   ===================================================================== */

.testi-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.testi-dot.active {
    background: var(--terra);
    transform: scale(1.3);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 600px) {
    .testi-slide {
        padding: 28px 24px 24px;
    }

    .testi-quote {
        font-size: 17px;
        padding-left: 16px;
    }

    .testi-arrow {
        width: 34px;
        height: 34px;
    }

    .testi-prev { left: 6px; }
    .testi-next { right: 6px; }
}
