/* REVIEWS CAROUSEL */

.carousel-reviews {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 20px;
    width: max-content;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===== FLECHAS DE NAVEGACIÓN ===== */
.reviews-nav {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    position: relative;
}

.reviews-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--accent-mind);
    transform: scale(1.1);
}

.reviews-nav:disabled {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.reviews-nav svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-mind);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* REVIEW CARDS */
.reviews-header {
    width: fit-content;
    margin: 0 auto;
}

.reviews-kicker {
    text-align: start;
    letter-spacing: .18em;
    font-weight: 800;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
}

.reviews-title {
    margin: 0 0 20px;
    font-size: clamp(35px, 4vw, 56px);
    line-height: 1.1;
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
}

.reviewCard {
    position: relative;
    width: 400px;
    min-width: 300px;
    height: 450px;
    display: grid;
    grid-template-rows: auto 1fr;
    border-radius: 14px;

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewCard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(45, 123, 135, 0.9), transparent);
    opacity: 0.8;
}

.reviewCard:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.25);
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 240, 255, 0.15),
        0 0 28px rgba(0, 240, 255, 0.12);
}

/* ACHIEVEMENT BADGES */
.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 4px;
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-mind);
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.25);
}

.achievement-badge i {
    font-size: 0.65rem;
    opacity: 0.9;
}

/* HEADER fijo */
.review-header {
    min-height: 185px;
    width: 100%;
    padding: 16px 18px 12px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 6px;
    text-align: center;

    background: radial-gradient(circle at top, rgba(45, 123, 135, 0.16), transparent 60%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Avatar premium */
.img-frame {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    margin-top: 4px;
    overflow: hidden;

    padding: 3px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.65), rgba(45, 123, 135, 0.2));
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.review-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: rgba(255, 255, 255, 0.04);
}

.author-review {
    margin-top: 8px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.92rem;
    color: var(--text-white);

    max-width: 92%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-profession {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-gray);
    line-height: 1.35;

    max-width: 88%;
    margin: 0 auto;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.review-content {
    position: relative;
    padding: 18px 18px 26px;
    text-align: left;
    color: var(--text-light-gray);
    line-height: 1.55;
    font-size: 0.98rem;
    overflow: auto;
}

.review-content::-webkit-scrollbar {
    width: 3px;
}

.review-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
}

.review-content::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.12);
    border-radius: 10px;
}

.review-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.28);
}

/* Firefox */
.review-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 217, 255, 0.12) rgba(255, 255, 255, 0.04);
}

.reviewText,
.review-content p {
    display: block;
    margin: 0;
    padding-left: 18px;
}

/* Tablet (560px – 900px): máximo 2 cards */
@media (max-width: 900px) and (min-width: 561px) {
    .reviewCard {
        max-width: calc((100vw - 200px) / 2);
        min-width: unset;
    }
}

/* Móvil (≤560px): 1 card, nunca desborda */
@media (max-width: 560px) {
    .reviewCard {
        max-width: calc(100vw - 100px);
        min-width: unset;
    }

    .achievement-badges {
        display: none;
    }
}

/* Móvil pequeño (≤520px): botones más compactos */
@media (max-width: 520px) {
    .reviews-nav {
        width: 38px;
        height: 38px;
    }

    .reviews-nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Móvil muy pequeño (≤380px) */
@media (max-width: 380px) {
    .reviewCard {
        max-width: calc(100vw - 90px);
    }

    .reviews-nav {
        width: 32px;
        height: 32px;
    }
}