/* ============================================================
   css/testimonials.css
   Sección de testimonios — carousel centrado.
   ============================================================ */

.testimonials {
    padding: var(--space-2xl) var(--space-xl);
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo con círculos difusos */
.testimonials::before,
.testimonials::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.testimonials::before {
    width: 500px; height: 500px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, rgba(46, 196, 212, 0.06), transparent 70%);
}
.testimonials::after {
    width: 400px; height: 400px;
    bottom: -150px; right: -100px;
    background: radial-gradient(circle, rgba(14, 77, 110, 0.06), transparent 70%);
}

/* ── Carousel container ── */
.testi__carousel {
    position: relative;
    max-width: 720px;
    margin-inline: auto;
    padding: 0 60px;
}

/* ── Track ── */
.testi__track {
    position: relative;
    min-height: 320px;
}

/* ── Slide ── */
.testi__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testi__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* ── Card ── */
.testi__card {
    background: var(--color-ivory);
    border: 1px solid rgba(14, 77, 110, 0.08);
    border-radius: var(--radius-md);
    padding: 52px 48px 40px;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-sm);
    width: 100%;
    animation: testi-in 0.6s ease forwards;
}
@keyframes testi-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Comilla decorativa */
.testi__quote-mark {
    position: absolute;
    top: -10px;
    left: 36px;
    font-family: var(--font-display);
    font-size: 120px;
    line-height: 1;
    color: var(--color-turquoise);
    opacity: 0.18;
    pointer-events: none;
    user-select: none;
}

/* Texto del testimonio */
.testi__text {
    font-family: var(--font-display);
    font-size: clamp(17px, 2vw, 21px);
    font-style: italic;
    font-weight: 300;
    line-height: 1.7;
    color: var(--color-text-mid);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* Autor */
.testi__author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.testi__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-turquoise);
    flex-shrink: 0;
}

/* Avatar placeholder (sin foto) */
.testi__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean-bright));
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
}

.testi__author-info {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testi__author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-ocean-deep);
}

.testi__stars {
    color: var(--color-gold);
    font-size: 13px;
    letter-spacing: 2px;
}

/* ── Flechas ── */
.testi__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(14, 77, 110, 0.18);
    background: var(--color-white);
    color: var(--color-ocean-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}
.testi__arrow:hover {
    background: var(--color-ocean-deep);
    border-color: var(--color-ocean-deep);
    color: var(--color-white);
    transform: translateY(-60%) scale(1.08);
}
.testi__arrow--prev { left: 0; }
.testi__arrow--next { right: 0; }

/* ── Dots ── */
.testi__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.testi__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(14, 77, 110, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
}
.testi__dot.is-active,
.testi__dot:hover {
    background: var(--color-turquoise);
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 24px;
    }
    .testi__carousel {
        padding: 0 40px;
    }
    .testi__card {
        padding: 40px 28px 32px;
    }
    .testi__arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .testi__carousel { padding: 0 32px; }
    .testi__author   { flex-direction: column; text-align: center; }
    .testi__author-info { align-items: center; }
}