/* Google Reviews Auto - Estilos */

.gra-reviews-container {
    max-width: 1000px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Resumen general */
.gra-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gra-business-name {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
}

.gra-overall-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
}

.gra-rating-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.gra-total-ratings {
    opacity: 0.9;
    font-size: 16px;
}

/* Estrellas */
.gra-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 24px;
    line-height: 1;
}

.gra-star {
    display: inline-block;
}

.gra-star-full {
    color: #fbbf24;
}

.gra-star-half {
    color: #fbbf24;
    opacity: 0.5;
}

.gra-star-empty {
    color: rgba(255,255,255,0.3);
}

/* Lista de reseñas */
.gra-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Layout Grid */
.gra-reviews-container[data-layout="grid"] .gra-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Reseña individual */
.gra-review {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.gra-review:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.gra-review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.gra-author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gra-review-meta {
    flex: 1;
}

.gra-author-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.gra-review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.gra-review-rating .gra-stars {
    font-size: 16px;
}

.gra-review-rating .gra-star-full {
    color: #fbbf24;
}

.gra-review-rating .gra-star-half {
    color: #fbbf24;
    opacity: 0.5;
}

.gra-review-rating .gra-star-empty {
    color: #d1d5db;
}

.gra-review-time {
    color: #6b7280;
    font-size: 13px;
}

.gra-review-text {
    color: #374151;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

/* Footer */
.gra-footer {
    margin-top: 30px;
    text-align: center;
}

.gra-write-review {
    display: inline-block;
    background: #4285f4;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.gra-write-review:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
    color: white;
    text-decoration: none;
}

/* Sin reseñas */
.gra-no-reviews {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #92400e;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .gra-summary {
        padding: 20px;
    }
    
    .gra-business-name {
        font-size: 22px;
    }
    
    .gra-rating-number {
        font-size: 32px;
    }
    
    .gra-overall-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .gra-reviews-container[data-layout="grid"] .gra-reviews-list {
        grid-template-columns: 1fr;
    }
    
    .gra-review {
        padding: 16px;
    }
}

/* Animación de carga */
@keyframes gra-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gra-review {
    animation: gra-fade-in 0.5s ease-out;
}

.gra-review:nth-child(1) { animation-delay: 0.1s; }
.gra-review:nth-child(2) { animation-delay: 0.2s; }
.gra-review:nth-child(3) { animation-delay: 0.3s; }
.gra-review:nth-child(4) { animation-delay: 0.4s; }
.gra-review:nth-child(5) { animation-delay: 0.5s; }
