/* ==========================================================================
   WIDGET: TESTIMONIALS CAROUSEL
   ========================================================================== */

.fc-widget-testimonials {
    background: #ffffff;
    padding: clamp(72px, 9vw, 120px) 0;
    overflow: hidden;
}

.fc-testimonials-heading {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.fc-testimonials-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;

    color: var(--fc-secondary);

    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.fc-testimonials-title {
    margin: 0;

    color: var(--fc-secondary);

    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.055em;
    font-weight: 900;
}

.fc-testimonials-lead {
    max-width: 720px;
    margin: 18px auto 0;

    color: rgba(var(--fc-secondary-rgb), 0.72);

    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.55;
    font-weight: 500;
}

/* ==========================================================================
   CAROUSEL
   ========================================================================== */

.fc-testimonials-carousel {
    position: relative;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

.fc-testimonials-viewport {
    width: 100%;
    overflow: hidden;

    /*
      Aire interno para que las tarjetas puedan subir en hover
      sin cortarse arriba ni abajo.
    */
    padding: 28px 6px 42px;
    margin: -28px -6px 0;
}

.fc-testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 28px;

    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ==========================================================================
   CARD
   ========================================================================== */

.fc-testimonial-card {
    flex: 0 0 calc((100% - 56px) / 3);

    min-height: 330px;

    padding: 34px 30px 32px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border-radius: 18px;

    background: #ffffff;
    border: 1px solid rgba(var(--fc-secondary-rgb), 0.06);
    box-shadow: 0 22px 52px rgba(var(--fc-secondary-rgb), 0.08);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.fc-testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--fc-accent-rgb), 0.24);
    box-shadow: 0 28px 70px rgba(var(--fc-secondary-rgb), 0.12);
}

.fc-testimonial-card__avatar {
    width: 96px;
    height: 96px;

    margin-bottom: 20px;

    border-radius: 999px;

    overflow: hidden;

    background: rgba(var(--fc-primary-rgb), 0.08);
    box-shadow: 0 12px 28px rgba(var(--fc-secondary-rgb), 0.10);
}

.fc-testimonial-card__avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}

.fc-testimonial-card h3 {
    margin: 0 0 4px;

    color: var(--fc-secondary);

    font-size: 1.45rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.fc-testimonial-card span {
    display: block;

    margin-bottom: 18px;

    color: rgba(var(--fc-secondary-rgb), 0.68);

    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
}

.fc-testimonial-card p {
    margin: 0;

    color: rgba(var(--fc-secondary-rgb), 0.78);

    font-size: 1.03rem;
    line-height: 1.42;
    font-weight: 500;
}

/* ==========================================================================
   BOTONES DE NAVEGACIÓN
   ========================================================================== */

.fc-testimonials-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(var(--fc-secondary-rgb), 0.10);
    border-radius: 999px;

    color: var(--fc-primary);
    background: #ffffff;

    cursor: pointer;

    box-shadow: 0 16px 36px rgba(var(--fc-secondary-rgb), 0.12);

    transform: translateY(-50%);

    transition:
        transform 0.24s ease,
        background-color 0.24s ease,
        color 0.24s ease,
        border-color 0.24s ease,
        box-shadow 0.24s ease;
}

.fc-testimonials-arrow--prev {
    left: 0;
}

.fc-testimonials-arrow--next {
    right: 0;
}

.fc-testimonials-arrow:hover {
    color: #ffffff;
    background: var(--fc-accent);
    border-color: var(--fc-accent);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 20px 44px rgba(var(--fc-accent-rgb), 0.22);
}

.fc-testimonials-arrow:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

/* ==========================================================================
   DOTS / PAGINACIÓN
   ========================================================================== */

.fc-testimonials-dots {
    position: relative;
    z-index: 3;

    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 4px;
}

.fc-testimonials-dot {
    flex: 0 0 auto;

    width: 11px;
    height: 11px;

    border: 0;
    border-radius: 999px;

    background: rgba(var(--fc-secondary-rgb), 0.22);

    cursor: pointer;

    transition:
        width 0.24s ease,
        background-color 0.24s ease,
        transform 0.24s ease;
}

.fc-testimonials-dot.is-active {
    width: 28px;
    background: var(--fc-primary);
}

.fc-testimonials-dot:hover {
    background: var(--fc-accent);
    transform: translateY(-1px);
}

/* ==========================================================================
   RESPONSIVE TABLET
   ========================================================================== */

@media (max-width: 980px) {
    .fc-testimonials-carousel {
        padding: 0 54px;
    }

    .fc-testimonial-card {
        flex-basis: calc((100% - 28px) / 2);
    }
}

/* ==========================================================================
   RESPONSIVE MÓVIL
   ========================================================================== */

@media (max-width: 640px) {
    .fc-widget-testimonials {
        padding: 64px 0 76px;
    }

    .fc-testimonials-heading {
        margin-bottom: 36px;
        padding: 0 12px;
    }

    .fc-testimonials-title {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .fc-testimonials-lead {
        font-size: 1rem;
    }

    .fc-testimonials-carousel {
        padding: 0 0 72px;
    }

    .fc-testimonials-viewport {
        padding: 24px 0 34px;
        margin: -24px 0 0;
    }

    .fc-testimonials-track {
        gap: 18px;
    }

    .fc-testimonial-card {
        flex: 0 0 calc(100vw - 56px);

        min-height: 320px;
        padding: 32px 24px 30px;
    }

    .fc-testimonial-card__avatar {
        width: 88px;
        height: 88px;
    }

    .fc-testimonial-card h3 {
        font-size: 1.35rem;
    }

    .fc-testimonial-card p {
        font-size: 0.98rem;
    }

    .fc-testimonials-arrow {
        top: auto;
        bottom: 0;

        width: 42px;
        height: 42px;
    }

    .fc-testimonials-arrow--prev {
        left: calc(50% - 84px);
    }

    .fc-testimonials-arrow--next {
        right: calc(50% - 84px);
    }

    .fc-testimonials-dots {
        margin-top: 10px;
    }
}