.reviews-stacked-section {
    background-color: var(--color-cream-100);
    padding-block: 128px;
    overflow-x: clip;
}

.reviews-stacked-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.reviews-stacked-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reviews-stacked-title {
    margin: 0;
    color: var(--color-grey-900);
}

.reviews-stacked-title .highlight-svg {
    position: relative;
    display: inline-block;
}

.reviews-stacked-title .green-line-svg {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 14px;
    z-index: 1;
    pointer-events: none;
    clip-path: inset(0 100% 0 0);
    animation: swipeRight 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    animation-delay: 0.5s;

    @media (max-width: 768px) {
        height: 10px;
        bottom: -6px;
    }
}

@keyframes swipeRight {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    100% {
        clip-path: inset(0 0 0 0);
    }
}

.reviews-stacked-description {
    margin: 0;
    color: var(--color-grey-800);
    max-width: 420px;
}

.reviews-stacked-actions {
    display: flex;
    gap: 8px;
}

.reviews-stacked-actions.is-mobile {
    display: none;
}

.reviews-stacked-nav {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, background-color 0.25s ease;
}

.reviews-stacked-nav:hover {
    top: 0 !important; /* Cancelamos el 'top' global para usar transform (más fluido) */
    transform: translateY(3px);
    box-shadow: var(--elevation-2) !important;
}

.reviews-stacked-nav:active {
    top: 0 !important;
    transform: translateY(5px);
    box-shadow: none !important;
}

.reviews-stacked-nav.is-accent {
    background: var(--color-secondary-500);
    color: var(--color-white);
}

.reviews-stacked-nav.is-disabled {
    pointer-events: none;
    top: 0;
    cursor: not-allowed;
    opacity: 1;
}

/* Disabled Next (Grey BG + White Arrow) */
.reviews-stacked-next.is-disabled {
    background-color: var(--color-grey-150);
    border-color: var(--color-grey-400);
    color: var(--color-white);
    box-shadow: 0px 5px 0px var(--color-grey-400);
}

/* Disabled Prev (White BG + Grey Arrow) */
.reviews-stacked-prev.is-disabled {
    background-color: var(--color-white);
    border-color: var(--color-grey-400);
    color: var(--color-grey-400);
    box-shadow: 0px 5px 0px var(--color-grey-400);
}

.reviews-stacked-nav.is-disabled:hover {
    transform: none;
    top: 0;
}

.reviews-stacked-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reviews-stacked-stack {
    position: relative;
    width: 100%;
    min-height: 320px;
}

.review-stacked-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border: 2px solid var(--color-grey-900);
    border-radius: 18px;
    box-shadow: var(--elevation-4);
    /* GSAP manages opacity, transform, and pointer-events directly */
}

.review-stacked-card-inner {
    padding: var(--space-40);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-24);
}

.review-stacked-copy p {
    margin: 0;
    color: var(--color-grey-700);
    font-size: 18px;
    line-height: 24px;
}

.review-stacked-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-stacked-name,
.review-stacked-age {
    margin: 0;
}

.review-stacked-name {
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--fw-bold);
    color: var(--color-grey-900);
}

.review-stacked-age {
    font-size: 12px;
    line-height: 16px;
    color: var(--color-grey-500);
}

.review-stacked-stars {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.review-stacked-star {
    color: var(--color-grey-200);
    font-size: 30px;
    line-height: 1;
}

.review-stacked-star.is-filled {
    color: #72da7b;
}

@media (max-width: 1024px) {
    .reviews-stacked-section {
        padding-block: 64px;
    }

    .reviews-stacked-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .reviews-stacked-content {
        max-width: none;
    }

    .reviews-stacked-visual {
        padding-block: 60px 0;
        gap: 32px;

        @media (max-width: 680px) {
            padding-block: 0;
        }
    }

    .reviews-stacked-actions.is-desktop {
        display: none;
    }

    .reviews-stacked-actions.is-mobile {
        display: flex;
    }

    .reviews-stacked-description {
        max-width: none;
    }

    .reviews-stacked-stack {
        min-height: 0;
    }
}

@media (max-width: 680px) {
    .review-stacked-card-inner {
        padding: 24px 20px;
        gap: 24px;
    }

    .review-stacked-copy p {
        font-size: 14px;
    }
}
