.reviews-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    padding: 0 60px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-container {
    overflow: hidden;
    margin-top: 3rem;
}

.reviews-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    gap: 2rem;
    padding: 5px 15px;
    touch-action: pan-y;
    align-items: stretch; /* Garante altura uniforme */
}

.review-card {
    background: var(--branco-secundario);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    text-align: left;
    box-shadow: none;
    width: calc(33.333% - 1.5rem);
    flex: 0 0 calc(33.333% - 1.5rem);
    transition: all 0.3s ease;
    opacity: 0.9;
    border-left: 3px solid var(--azul-primario);
    position: relative;
    min-height: 300px;
    box-sizing: border-box; /* Inclui padding e border no cálculo */
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: transparent;
    opacity: 1;
    background-color: var(--azul-primario);
}

.stars {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
}

.star {
    color: #3A3C76;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.review-card:hover .star {
    color: #FAFAFA;
    transform: scale(1.1);
}

.review-text {
    color: #666666;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.review-card:hover .review-text {
    color: var(--branco-primario);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    bottom: 40px;
    left: 1.5rem;
    right: 1.5rem;
}

.review-card:hover .reviewer-name {
    color: var(--branco-primario);
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.reviewer-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: loading 1.5s infinite;*/
}

/*@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}*/

.carousel-controls {
    display: flex;
    justify-content: space-between;
    width: calc(100% + 120px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10;
}

.nav-arrow {
    background: var(--branco-secundario);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    color: #666666;
    pointer-events: auto;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-arrow:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.nav-arrow:disabled,
.nav-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.carousel-nav {
    margin-top: 2rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--azul-primario);
    transform: scale(1.3);
}

.dot:hover:not(.active) {
    transform: scale(1.2);
    background-color: #ccc;
}

/* Tablet */
@media (max-width: 768px) {
    .reviews-section {
        padding: 0 40px;
    }
    
    .review-card {
        width: calc(50% - 0.5rem);
        flex: 0 0 calc(50% - 0.5rem);
        min-height: 280px;
        box-sizing: border-box;
    }
    
    .carousel-controls {
        width: calc(100% + 80px);
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .reviews-section {
        padding: 0 20px;
    }
    
    .review-card {
        width: 100%;
        flex: 0 0 100%;
        min-height: 260px;
        margin: 0;
        box-sizing: border-box;
    }
    
    .reviews-track {
        gap: 1rem;
        padding: 5px 0; /* Remove padding lateral para melhor alinhamento */
    }
    
    .carousel-controls {
        width: calc(100% + 60px);
    }
    
    .nav-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .carousel-dots {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
        /* Área de toque maior para mobile, mas visual igual */
        position: relative;
    }
    
    .dot::before {
        content: '';
        position: absolute;
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        /* Área de toque invisível */
    }
    
    .dot.active {
        transform: scale(1.3);
    }
    
    /* Espaçamento melhor para o texto em mobile */
    .review-card {
        padding: 1.25rem;
    }
    
    .review-text {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .reviewer {
        bottom: 1.25rem;
        left: 1.25rem;
        right: 1.25rem;
    }
    
    /* Previne seleção de texto durante swipe */
    .reviews-track {
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
    }
}

/* Para telas muito pequenas */
@media (max-width: 360px) {
    .reviews-section {
        padding: 0 15px;
    }
    
    .review-card {
        padding: 1rem;
        min-height: 240px;
    }
    
    .review-text {
        font-size: 0.85rem;
    }
    
    .reviewer {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    .carousel-controls {
        width: calc(100% + 50px);
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}