/* =========================================================
   ALMA NEXUS · TESTIMONIOS CARRUSEL PREMIUM
   Sobrescribe únicamente la sección pública de testimonios.
   ========================================================= */

.testimonials-carousel-section {
    overflow: hidden;
}

.testimonial-carousel {
    --testimonial-gap: 18px;
    position: relative;
    z-index: 1;
}

.testimonial-carousel__top {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.testimonial-carousel__count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #5E7077;
}

.testimonial-carousel__count i {
    width: 38px;
    height: 1px;
    display: inline-block;
    background: rgba(38,59,67,.24);
}

.testimonial-carousel__controls {
    display: flex;
    gap: 7px;
}

.testimonial-carousel__arrow {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36,74,90,.18);
    background: rgba(252,251,248,.78);
    color: #244A5A;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    transition:
        background .22s ease,
        color .22s ease,
        border-color .22s ease,
        opacity .22s ease;
}

.testimonial-carousel__arrow:hover:not(:disabled) {
    background: #244A5A;
    color: #FCFBF8;
    border-color: #244A5A;
}

.testimonial-carousel__arrow:disabled {
    opacity: .30;
    cursor: default;
}

.testimonial-carousel__viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
}

.testimonial-carousel__viewport::-webkit-scrollbar {
    display: none;
}

.testimonial-carousel__track {
    display: flex;
    gap: var(--testimonial-gap);
    align-items: stretch;
}

.testimonial-card--carousel {
    min-width: 0;
    flex:
        0 0
        calc(
            (100% - (var(--testimonial-gap) * 2))
            / 3
        );
    height: 470px;
    min-height: 470px;
    padding: 22px 22px 21px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    overflow: hidden;
}

.testimonial-card--carousel:hover {
    transform: none;
}

.testimonial-card__content {
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.testimonial-card__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 25% 20%,
            rgba(184,205,208,.20),
            transparent 45%
        ),
        #263B43;
}

.testimonial-card__media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #111;
}

.testimonial-card__play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 0;
    background:
        linear-gradient(
            135deg,
            rgba(36,74,90,.92),
            rgba(38,59,67,.82)
        );
    color: #FCFBF8;
    cursor: pointer;
    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.testimonial-card__media.is-playing .testimonial-card__play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.testimonial-card__play-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 50%;
    font-size: 13px;
    padding-left: 2px;
}

.testimonial-card__play-copy {
    display: grid;
    gap: 2px;
    text-align: left;
}

.testimonial-card__play-copy strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 21px;
    line-height: 1;
    font-weight: 600;
}

.testimonial-card__play-copy small {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.66);
}

.testimonial-card__video-caption {
    margin-top: 13px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: #9E895F;
}

.testimonial-card--carousel .testimonial-card__quote {
    margin-bottom: 8px;
    font-size: 62px;
}

.testimonial-card--carousel .testimonial-card__text {
    margin: 0;
    font-size: 20px;
    line-height: 1.43;
}

.testimonial-card--carousel .testimonial-card__text.is-clamped {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
}

.testimonial-card__read-more {
    width: fit-content;
    margin-top: 14px;
    padding: 0 0 5px;
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid rgba(36,74,90,.28);
    background: transparent;
    color: #244A5A;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.testimonial-card--carousel .testimonial-card__person {
    margin-top: 18px;
    padding-top: 17px;
    flex: 0 0 auto;
    border-top: 1px solid rgba(38,59,67,.09);
    gap: 12px;
}

.testimonial-card--carousel .testimonial-card__photo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-width: 2px;
}

.testimonial-card--carousel .testimonial-card__person h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.05;
}

.testimonial-card--carousel .testimonial-card__role {
    margin-top: 5px;
    font-size: 10px;
    line-height: 1.35;
}

.testimonial-card--carousel .testimonial-card__person small {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.35;
}

.testimonial-card__identity {
    min-width: 0;
}

.testimonial-carousel__dots {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.testimonial-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(36,74,90,.22);
    cursor: pointer;
    transition:
        width .22s ease,
        border-radius .22s ease,
        background .22s ease;
}

.testimonial-carousel__dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: #244A5A;
}

/* Modal de texto completo */
.testimonial-modal[hidden] {
    display: none !important;
}

.testimonial-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.testimonial-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(23,38,44,.72);
    cursor: pointer;
}

.testimonial-modal__dialog {
    width: min(660px, 100%);
    max-height: min(720px, calc(100vh - 44px));
    padding: clamp(26px, 5vw, 44px);
    position: relative;
    z-index: 1;
    overflow-y: auto;
    background: #FCFBF8;
    box-shadow: 0 30px 90px rgba(0,0,0,.20);
}

.testimonial-modal__close {
    width: 38px;
    height: 38px;
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(36,74,90,.14);
    background: #fff;
    color: #244A5A;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.testimonial-modal__eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9E895F;
}

.testimonial-modal__dialog h3 {
    margin: 0 42px 18px 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1;
    font-weight: 600;
    color: #263B43;
}

.testimonial-modal__text {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(21px, 3vw, 26px);
    line-height: 1.52;
    font-style: italic;
    color: #263B43;
}

.testimonial-modal__meta {
    margin-top: 26px;
    padding-top: 16px;
    display: grid;
    gap: 4px;
    border-top: 1px solid rgba(38,59,67,.10);
}

.testimonial-modal__meta span {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: #9E895F;
}

.testimonial-modal__meta small {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    color: #5E7077;
}

body.testimonial-modal-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .testimonial-card--carousel {
        flex-basis:
            calc(
                (100% - var(--testimonial-gap))
                / 2
            );
        height: 455px;
        min-height: 455px;
    }
}

@media (max-width: 650px) {
    .testimonial-carousel {
        --testimonial-gap: 12px;
    }

    .testimonial-carousel__top {
        margin-bottom: 13px;
    }

    .testimonial-card--carousel {
        flex-basis: 100%;
        height: 445px;
        min-height: 445px;
        padding: 20px;
    }

    .testimonial-card--carousel .testimonial-card__text {
        font-size: 19px;
    }

    .testimonial-card--carousel .testimonial-card__text.is-clamped {
        -webkit-line-clamp: 7;
    }

    .testimonial-carousel__arrow {
        width: 38px;
        height: 38px;
    }
}
