/* ==========================================================================
   ESTILOS ACTUALIZADOS PARA EL ENCABEZADO (Diseño 2)
   ========================================================================== */

.google-reviews-carousel {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Roboto', Arial, sans-serif;
}

.google-reviews-header {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

/* --- Título con logo SVG y texto alineados --- */
.google-reviews-title {
    display: flex; /* Activa Flexbox */
    justify-content: center; /* Centra horizontalmente el grupo */
    align-items: center; /* Alinea verticalmente el logo y el texto */
    gap: 15px; /* Espacio entre el logo y el texto */
    margin-bottom: 25px;
}

.google-reviews-title .google-logo-svg {
    height: 36px;
    width: auto;
}

.google-reviews-title {
    width: 100%;
    margin-bottom: 15px;
}

.google-reviews-title svg {
    width: 35%;
}

.reviews-title-text {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}
span.reviews-title-text {
    font-size: 30px;
	font-weight: 600;
    position: relative;
    left: 5px;
}

/* --- Contenedor para la calificación y el botón --- */
.google-reviews-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* --- Contenedor de la calificación (número y estrellas) --- */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.overall-rating {
    display: flex;
    align-items: center;
}

.rating-number {
    font-size: 42px;
    font-weight: bold;
    color: #202124;
    margin-right: 8px;
    line-height: 1;
}

.rating-stars {
    display: flex;
    font-size: 28px;
    color: #fbbc05;
}

.star {
    margin-right: 2px;
}

.star.filled {
    color: #fbbc05;
}

.total-ratings {
    color: #5f6368;
    font-size: 18px;
}

/* --- Estilos para el nuevo botón --- */
.google-reviews-button-container a.google-reviews-button {
    display: inline-block;
    background-color: #4285f4;
    color: #ffffff !important;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.google-reviews-button-container a.google-reviews-button:hover {
    background-color: #357ae8;
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none;
}

/* ==========================================================================
   ESTILOS DEL CARRUSEL Y FOOTER (Sin cambios)
   ========================================================================== */

.carousel-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    font-weight: 500;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    background: #fff;
    padding: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-card {
    min-width: 300px;
    margin-right: 20px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.review-author {
    font-weight: 500;
    color: #202124;
    font-size: 16px;
    margin-bottom: 8px;
}

.review-text {
    color: #5f6368;
    line-height: 1.5;
    font-size: 14px;
    flex-grow: 1;
    margin-bottom: 15px;
}

.review-time {
    font-size: 12px;
    color: #70757a;
    margin-top: auto;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #5f6368;
    border: 1px solid #dadce0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.google-footer {
    text-align: center;
    margin-top: 15px;
}

.google-link {
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.google-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   DISEÑO RESPONSIVO ACTUALIZADO
   ========================================================================== */

@media (max-width: 768px) {
    .review-card {
        min-width: 280px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    /* En móvil, la calificación y el botón se apilan verticalmente */
    .google-reviews-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .rating-number {
        font-size: 36px;
    }
    
    .rating-stars {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .review-card {
        min-width: 260px;
        margin-right: 15px;
    }
    
    .carousel-container {
        padding: 15px;
    }
    
    .google-reviews-title h3 {
        font-size: 24px;
    }
    
    .rating-number {
        font-size: 32px;
    }
    
    .rating-stars {
        font-size: 22px;
    }
}