.home-comments {
    background: #e7eff1;
    padding: 4rem 0;
    overflow: hidden;
}

.home-comments__title {
    color: #2e4d9b;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    text-align: center;
    text-transform: uppercase;
}

.home-comments__subtitle {
    color: #4a5568;
    margin-bottom: 0.5rem;
    text-align: center;
}

.home-comments__google-link {
    align-items: center;
    background: linear-gradient(90deg, #009ddd 0%, #2e4d9b 100%);
    /* border: 2px solid #2e4d9b; */
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(46, 77, 155, 0.2);
    color: #ffffff;
    display: flex;
    font-weight: 700;
    justify-content: center;
    margin: 0.85rem auto 1.5rem;
    min-height: 46px;
    padding: 0.7rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.home-comments__google-link[hidden] {
    display: flex;
    visibility: hidden;
}

.home-comments__google-link:hover,
.home-comments__google-link:focus-visible {
    background: linear-gradient(90deg, #2e4d9b 0%, #009ddd 100%);
    /* border-color: #009ddd; */
    box-shadow: 0 10px 22px rgba(0, 157, 221, 0.28);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.home-comments__google-link:focus-visible {
    outline: 3px solid rgba(0, 157, 221, 0.35);
    outline-offset: 3px;
}

.comments-carousel {
    align-items: center;
    display: flex;
    margin: 0 auto;
    max-width: none;
    padding: 1rem 0;
    width: 100%;
}

.comments-carousel__viewport {
    box-sizing: border-box;
    min-height: 260px;
    overflow: hidden;
    width: 100%;
    padding: 2rem 0;
}

.comments-carousel__viewport:focus {
    outline: none;
}

.comments-carousel__track {
    display: flex;
    gap: 1rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.comments-carousel__track--no-transition {
    transition: none;
}

.comments-carousel__card {
    background-color: #ffffff;
    border-radius: 28px;
    box-sizing: border-box;
    flex: 0 0 clamp(360px, 42vw, 510px);
    min-height: 196px;
    opacity: 0.82;
    padding: 1.7rem 2rem;
    transform: scale(0.9);
    transform-origin: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.comments-carousel__card.is-active {
    box-shadow: 0px 4px 20px 3px rgba(0, 0, 0, 0.08);
    opacity: 1;
    transform: scale(1);
}

.comments-carousel__control {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.comments-carousel__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.comments-carousel__user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.comments-carousel__avatar {
    width: 50px;
    height: 50px;
    /* Azul oscuro para el avatar */
    background-color: transparent;
    /* Changed to transparent as new image has a background */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    overflow: hidden;
    /* Ensure image fits and crops correctly */
}

.comments-carousel__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the container, keeping aspect ratio */
    border-radius: 50%;
    /* Double check circular crop */
}

.comments-carousel__name {
    /* Rubik y azul claro para el nombre */
    font-family: 'Rubik', sans-serif;
    color: #009ddd;
    font-size: 1.3rem;
    font-weight: 600;
    text-decoration: none;
}

.comments-carousel__stars {
    /* Azul claro para las estrellas */
    color: #009ddd;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.comments-carousel__destination {
    /* Rubik y azul claro para el título de la reseña */
    font-family: 'Rubik', sans-serif;
    color: #009ddd;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.comments-carousel__text {
    /* Texto hereda Poppins */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #38559f;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    overflow: hidden;
}

.comments-carousel__message {
    color: #4a5568;
    margin: 2rem auto;
    text-align: center;
    width: 100%;
}

@media (max-width: 991px) {
    .comments-carousel__card {
        flex-basis: clamp(340px, 62vw, 460px);
    }
}

@media (max-width: 640px) {
    .home-comments {
        padding: 3rem 0;
    }

    .comments-carousel {
        padding: 1rem 0;
    }

    .comments-carousel__card {
        flex-basis: calc(100vw - 2rem);
        min-height: 196px;
        padding: 1.5rem;
        transform: scale(0.96);
    }

    .home-comments__title {
        font-size: 1.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .comments-carousel__track,
    .comments-carousel__card {
        transition: none;
    }
}
