:root { --primary: #4f46e5; --bg: #f8fafc; --text: #1e293b; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); margin: 0; }

.navbar { background: white; padding: 1.2rem; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

.main-content { max-width: 1100px; margin: 2rem auto; padding: 0 20px; }
.section { display: none; }
.section.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* MENÚ CENTRAL */
.welcome-container { text-align: center; margin-top: 2rem; }
.central-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 250px)); gap: 20px; justify-content: center; margin-top: 3rem; }
.menu-item-btn { background: white; padding: 40px 20px; border-radius: 20px; cursor: pointer; transition: 0.3s; border: 1px solid #e2e8f0; display: flex; flex-direction: column; align-items: center; }
.menu-item-btn:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.menu-item-btn .icon { font-size: 3rem; margin-bottom: 10px; }
.menu-item-btn .label { font-weight: 700; color: #475569; }

/* BOTÓN VOLVER */
.btn-back { background: white; border: 1px solid #e2e8f0; padding: 8px 15px; border-radius: 8px; cursor: pointer; margin-bottom: 20px; font-weight: 600; }
.btn-back:hover { color: var(--primary); border-color: var(--primary); }

/* TABLAS Y BOTONES */
.card-box { background: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.prov-tag { background: #e0e7ff; color: #4338ca; padding: 3px 8px; border-radius: 5px; font-size: 0.8rem; font-weight: 600; }
.btn-edit { background: #e0f2fe; color: #0369a1; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; margin-right: 5px; }
.btn-del { background: #fee2e2; color: #ef4444; border: none; padding: 5px 10px; border-radius: 5px; cursor: pointer; }

/* FORMULARIOS */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
input, select { padding: 10px; border: 1px solid #e2e8f0; border-radius: 6px; }
.btn-save { background: var(--primary); color: white; border: none; padding: 10px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-update-mode { background: #f59e0b !important; }

/* REPORTES */
.report-grid { display: flex; gap: 20px; justify-content: center; margin-bottom: 20px; }
.report-card { background: white; padding: 20px; width: 150px; text-align: center; border-radius: 10px; cursor: pointer; border: 2px solid transparent; }
.report-card.selected { border-color: var(--primary); background: #f5f7ff; }
.btn-pdf-large { display: block; width: 300px; margin: 0 auto; background: #10b981; color: white; border: none; padding: 15px; border-radius: 10px; font-weight: 700; cursor: pointer; }