/* notas.css */
main { padding: 24px 16px; }
.container { max-width: 900px; margin: 0 auto; }

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-wrap: wrap; gap: 12px;
}
.section-header h2 { color: var(--primary); font-size: 1.5rem; }

.help-text { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

.notas-filtros {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.filtro-btn {
    padding: 8px 16px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text-secondary);
    border-radius: var(--radius-full); cursor: pointer;
    font-size: 0.9rem; transition: all 0.2s;
}
.filtro-btn:hover { color: var(--text-primary); border-color: var(--primary-border); }
.filtro-btn.active {
    background: var(--primary-subtle); color: var(--primary);
    border-color: var(--primary);
}

.notas-list {
    display: flex; flex-direction: column; gap: 10px;
}
.empty-text { color: var(--text-muted); font-style: italic; text-align: center; padding: 20px; }

.nota-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-left-width: 3px;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
    transition: all 0.2s;
}
.nota-card.estado-pendiente { border-left-color: var(--warning); }
.nota-card.estado-parcial { border-left-color: var(--info); }
.nota-card.estado-completada { border-left-color: var(--success); opacity: 0.6; }
.nota-card.vencida { border-color: var(--danger); border-left-color: var(--danger); }

.nota-texto { color: var(--text-primary); font-size: 0.95rem; line-height: 1.4; }
.nota-card.estado-completada .nota-texto { text-decoration: line-through; }
.nota-meta {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap;
}
.nota-fecha { color: var(--text-secondary); font-size: 0.8rem; }
.nota-fecha.vencida { color: var(--danger); font-weight: 600; }

.nota-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
    padding: 2px 8px; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
}
.badge.pendiente { background: var(--warning-subtle); color: var(--warning-text); }
.badge.parcial { background: var(--info-subtle); color: var(--info); }
.badge.completada { background: var(--success-subtle); color: var(--success-text); }
.badge.vencida { background: var(--danger-subtle); color: var(--danger-text); }

.nota-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
    border-top: 1px solid var(--border-subtle); padding-top: 8px;
}
.nota-actions button {
    padding: 6px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); cursor: pointer;
    font-size: 0.8rem; background: var(--bg-card); color: var(--text-secondary);
    transition: all 0.15s;
}
.nota-actions button:hover { color: var(--text-primary); border-color: var(--primary-border); }
.nota-actions .btn-estado { color: var(--info); }
.nota-actions .btn-completar { color: var(--success-text); border-color: var(--success); }
.nota-actions .btn-completar:hover { background: var(--success-subtle); }
.nota-actions .btn-eliminar { color: var(--danger-text); border-color: var(--danger); }
.nota-actions .btn-eliminar:hover { background: var(--danger-subtle); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 16px;
}
.modal-content {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); max-width: 480px; width: 100%;
    max-height: 90vh; overflow-y: auto;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { color: var(--primary); }
.btn-close {
    background: transparent; border: none; color: var(--text-secondary);
    font-size: 1.5rem; cursor: pointer; padding: 0 8px;
}
.btn-close:hover { color: var(--danger); }
.modal-form {
    padding: 20px; display: flex; flex-direction: column; gap: 8px;
}
.modal-form label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 6px; }
.input-nota {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 12px;
    color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
    width: 100%; transition: border-color 0.15s;
}
.input-nota:focus { outline: none; border-color: var(--primary); }
.modal-actions {
    display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px;
}
.modal-actions button { padding: 10px 20px; }

.btn-primary {
    background: var(--primary); color: #000; border: none;
    padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer;
    font-weight: 600; transition: all 0.15s;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary {
    background: var(--secondary); color: var(--text-primary); border: 1px solid var(--border);
    padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer;
    transition: all 0.15s;
}
.btn-secondary:hover { background: var(--secondary-hover); }

#notasMsg { position: fixed; top: 80px; right: 16px; z-index: 1100; }
.msg-flash {
    background: var(--bg-card); border: 1px solid var(--border);
    padding: 10px 16px; border-radius: var(--radius-sm);
    margin-bottom: 8px; box-shadow: var(--shadow);
    color: var(--text-primary);
}
.msg-flash.success { border-color: var(--success); color: var(--success-text); }
.msg-flash.error { border-color: var(--danger); color: var(--danger-text); }
