/* DATA NEXT — COMPONENTE MODAL DE CALIFICACIÓN */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card);
    padding: 2rem;
    border-radius: 1.5rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.5;
}

.modal-close:hover {
    opacity: 1;
}

.modal-estrellas-bloque {
    text-align: center;
    margin: 1rem 0;
}

.modal-estrellas {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 2.5rem;
}

.modal-estrellas span {
    cursor: pointer;
}

.modal-estrellas-texto {
    font-size: 0.9rem;
    opacity: 0.6;
}

.modal-content textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    box-sizing: border-box;
}

.modal-content .btn-submit {
    background: #8b5cf6;
    color: #fff;
    padding: 0.8rem;
    border: none;
    border-radius: 0.8rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: calc(100% - 1rem);
        max-width: none;
        max-height: 92vh;
        border-radius: 1rem;
    }
}
