/* --- Modal de Calificación Inteligente --- */
.rating-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.rating-modal-content {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: translateY(20px);
    animation: slideUp 0.3s forwards;
    color: #f8fafc;
}

.rating-close-btn {
    position: absolute;
    top: 15px; right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    transition: 0.2s;
}
.rating-close-btn:hover { color: #ef4444; }

.rating-header h3 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 1.25rem;
}
.rating-header p {
    color: #cbd5e1;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Estrellas */
.stars-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 35px;
    color: #334155;
    cursor: pointer;
    margin-bottom: 10px;
}
.star-btn { transition: 0.2s; }
.star-btn:hover, .star-btn.active, .star-btn.selected {
    color: #eab308; /* Dorado Servijuridicos */
    transform: scale(1.1);
}

/* Botones Google y Feedback */
.btn-google-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #4285F4;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    width: 100%;
    transition: 0.3s;
}
.btn-google-review:hover { background: #3367D6; color: white; }

#rating-feedback-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 8px;
    margin-bottom: 15px;
    resize: none;
    font-family: inherit;
}
#rating-feedback-text:focus {
    outline: 2px solid #eab308;
}

.btn-submit-feedback {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}
.btn-submit-feedback:hover { background: #2563eb; }

.rating-success-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { transform: translateY(0); } }
