/* ===== Google Reviews Plugin - Estilos ===== */

.gr-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Resumen / Summary --- */
.gr-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.gr-summary__score {
    font-size: 52px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
    min-width: 72px;
    text-align: center;
}

.gr-summary__right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gr-summary__total {
    margin: 0;
    color: #5f6368;
    font-size: 14px;
}

.gr-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 18px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background .2s;
    width: fit-content;
}

.gr-cta:hover {
    background: #1557b0;
}

/* --- Grid de tarjetas --- */
.gr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* --- Tarjeta individual --- */
.gr-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gr-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.gr-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.gr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a73e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.gr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gr-card__meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gr-card__author {
    font-size: 15px;
    color: #202124;
}

.gr-card__date {
    font-size: 12px;
    color: #9aa0a6;
}

/* Ícono Google alineado a la derecha */
.gr-google-icon {
    margin-left: auto;
    flex-shrink: 0;
    opacity: .7;
}

/* --- Estrellas --- */
.gr-stars {
    display: flex;
    gap: 2px;
    line-height: 1;
}

.gr-star {
    font-size: 18px;
}

.gr-stars--lg .gr-star {
    font-size: 26px;
}

.gr-star--full  { color: #fbbc04; }
.gr-star--half  { color: #fbbc04; opacity: .6; }
.gr-star--empty { color: #dadce0; }

/* --- Texto de la reseña --- */
.gr-card__text {
    margin: 0;
    font-size: 14px;
    color: #3c4043;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Respuesta del negocio --- */
.gr-card__reply {
    background: #f8f9fa;
    border-left: 3px solid #1a73e8;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #5f6368;
}

.gr-card__reply strong {
    color: #202124;
    display: block;
    margin-bottom: 4px;
}

.gr-card__reply p {
    margin: 0;
}

/* --- Vacío --- */
.gr-empty {
    text-align: center;
    color: #9aa0a6;
    padding: 40px;
}

/* --- Botón Load More --- */
.gr-load-more-wrap {
    text-align: center;
    margin-top: 32px;
}

.gr-load-more {
    background: none;
    border: 2px solid #1a73e8;
    color: #1a73e8;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.gr-load-more:hover {
    background: #1a73e8;
    color: #fff;
}

.gr-load-more:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Animación al aparecer */
@keyframes gr-fade-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.gr-card--new {
    animation: gr-fade-in .3s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .gr-summary {
        flex-direction: column;
        text-align: center;
    }
    .gr-summary__right {
        align-items: center;
    }
    .gr-grid {
        grid-template-columns: 1fr;
    }
}
