/* me.css - Estilos para el sistema de calificación */

body {
            background-image: url('file/img/fondo.jpg');
            background-size: cover;
            background-attachment: fixed;
            background-position: center;
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 2rem 0;
        }

.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin: 30px 0;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    width: 50px;
    height: 50px;
    margin: 0 8px; /* Aumentado de 2px a 8px para mejor separación */
    font-size: 45px;
    color: #ddd;
    transition: color 0.3s;
    line-height: 1;
}

.rating input:checked ~ label {
    color: #ffc107;
}

.rating label:hover,
.rating label:hover ~ label {
    color: #ffdb70;
}

#ratingSection, #feedbackSection {
    transition: all 0.3s ease;
}

#feedbackSection {
    display: none;
}

.star-display {
    font-size: 24px;
    margin-bottom: 20px;
}

.gold-star {
    color: #ffc107;
}

.gray-star {
    color: #ddd;
}

/* Mejoras responsivas */
@media (max-width: 576px) {
    .rating label {
        width: 40px;
        height: 40px;
        font-size: 35px;
        margin: 0 10px; /* Más separación en móviles */
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 350px) {
    .rating label {
        width: 30px;
        height: 30px;
        font-size: 30px;
        margin: 0 6px; /* Ajuste para pantallas muy pequeñas pero manteniendo separación */
    }
    
    /* Hacer que quepa mejor en pantallas pequeñas */
    .rating {
        padding: 0 5px;
    }
}

/* Animación de fade */
.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Botones responsivos */
.btn-responsive {
    white-space: normal;
}