/* Estilos base */
.google-reviews-container {
    position: relative;
    background: transparent;
    padding: 10px 0;
}

.google-reviews-slider {
    display: flex;
    gap: 20px;
    padding: 10px 0;
    overflow: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.google-reviews-slider::-webkit-scrollbar {
    display: none;
}

.google-reviews-slider:active {
    cursor: grabbing;
}

/* Tarjetas de reseñas */
.review-card {
    flex: 0 0 280px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.review-meta {
    display: flex;
    flex-direction: column;
}

.review-meta strong {
    font-size: 15px;
    color: #333;
}

.review-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.review-stars {
    font-size: 15px;
    color: #fbbc05;
    letter-spacing: 1px;
}

.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
    margin-top: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

/* Pie de página */
.google-reviews-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    margin-bottom: 45px;
}

.google-reviews-footer a {
    color: #1a73e8;
    text-decoration: none;
    margin: 0 6px;
}

.google-reviews-footer a:hover {
    text-decoration: underline;
}

/* Resumen de valoraciones */
.google-reviews-summary {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
}

.gcr-rating-number {
    font-weight: bold;
    font-size: 20px;
    margin-right: 5px;
}

.gcr-stars {
    color: #fbbc05;
    font-size: 18px;
    margin-right: 5px;
}

.gcr-total {
    font-size: 14px;
    color: #1a0dab;
    text-decoration: none;
}

.gcr-total:hover {
    text-decoration: underline;
}

/* Título */
.google-reviews-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

/* Controles del slider */
.gcr-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gcr-nav-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    border: 1px solid #ddd;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.2s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    outline: none;
    box-shadow: none;
}

.gcr-nav-btn:hover {
    background: #f0f0f0;
    transform: translateY(-50%) scale(1.05);
}

.gcr-prev {
    left: 0;
}

.gcr-next {
    right: 0;
}

/* Contenedores */
.gcr-wrapper.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gcr-footer-separator {
    margin: 0 5px;
}


/* Contenedor fluid (ancho completo) con padding */
.gcr-wrapper.container-fluid {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 15px; /* Padding lateral de 15px */
    box-sizing: border-box;
}

/* Ajuste para el contenedor interno en modo fluid */
.gcr-wrapper.container-fluid .google-reviews-container {
    max-width: 100%;
    padding: 0; /* Eliminamos el padding aquí porque ya lo maneja el wrapper */
}

/* Asegurar que el slider no toque los bordes */
.gcr-wrapper.container-fluid .gcr-slider-wrapper {
    padding: 0 15px; /* Padding adicional para el área del slider */
}

/* Estilos para el summary en modo fluid - CENTRADO */
.gcr-wrapper.container-fluid .google-reviews-summary {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    padding: 15px 0 15px 0; /* Padding lateral */
    text-align: center; /* Centrado de texto (opcional) */
}

.google-reviews-summary {
    display: flex;
    justify-content: center; /* Centrado horizontal */
    padding: 15px 0 15px 0; /* Padding lateral */
    text-align: center; /* Centrado de texto (opcional) */
}

/* Contenedor interno para el contenido del summary */
.gcr-wrapper.container-fluid .google-reviews-summary-content {
    max-width: 1200px; /* Mismo ancho máximo que container normal */
    width: 100%;
    margin: 0 auto; /* Centrado adicional para contenido */
}




/* Ajustes para móvil (responsive) - VERSIÓN CORREGIDA */
@media (max-width: 767px) {
    /* Título (correcto) */
    .google-reviews-title {
        font-size: 1.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 15px;
    }

    /* FOOTER - Versión corregida (enlaces en 2 líneas) */
    .google-reviews-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 0.875rem;
        padding: 0 15px;
        white-space: normal; /* Elimina nowrap */
    }

    .google-reviews-footer a {
        display: block; /* Cambiado de inline-block */
        margin: 0;
        text-align: center;
        font-size: 14px;
    }

    
     /* Oculta el separador "|" en móvil */
    .gcr-footer-separator {
        display: none;
    }

    #gcr-view-all-link{
        display: none;
    }


    /* Tarjetas (correcto) */
    .review-card {
        flex: 0 0 90%;
        padding: 15px;
    }

    /* Texto reseña (correcto) */
    .review-text {
        font-size: 0.8125rem;
        -webkit-line-clamp: 4;
    }

    /* Slider wrapper (corregido) */
    .gcr-wrapper.container-fluid .gcr-slider-wrapper {
        padding: 0 15px; /* Añade padding lateral */
    }

    .google-reviews-summary {
        display: flex;
        justify-content: center; /* Centrado horizontal */
        padding: 15px 0 15px 0; /* Padding lateral */
        text-align: center; /* Centrado de texto (opcional) */
    }

}


