:root {
  --blue: #1e3a8a; --accent: #3b82f6; --success: #10b981; --danger: #ef4444;
  --bg: #f0f4f8; --card-bg: #ffffff; --text-main: #1f2937; --radius: 16px;
}

* { box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background: var(--bg); margin: 0; color: var(--text-main); }
header { width: 100%; }
.header-full-image { width: 100%; height: auto; display: block; }

.main-menu { display: flex; justify-content: center; gap: 10px; background: #fff; padding: 15px; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.menu-btn { padding: 10px 20px; border: none; background: transparent; font-weight: 700; cursor: pointer; border-radius: 50px; color: #666; }
.menu-btn.active { background: var(--blue); color: #fff; }

.wrap { max-width: 900px; margin: 20px auto; padding: 0 15px; }
.paper { background: var(--card-bg); padding: 25px; border-radius: var(--radius); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.section { margin-bottom: 25px; padding: 15px; border: 1px solid #edf2f7; border-radius: 12px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.hdr { font-weight: 800; color: var(--blue); border-left: 4px solid var(--blue); padding-left: 10px; margin-bottom: 15px; font-size: 14px; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.full { grid-column: 1 / -1; }

label.field { display: block; font-size: 11px; font-weight: 700; color: var(--blue); margin-bottom: 5px; }
input, select { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; font-size: 13px; }
input:disabled { background: #f1f5f9; border-style: dashed; }

/* Contadores */
.asistencia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.as-row { display: flex; justify-content: space-between; align-items: center; background: #f8fbff; padding: 10px; border-radius: 10px; border: 1px solid #eaf4ff; }
.counter { display: flex; align-items: center; gap: 15px; }
.btn-circle { width: 32px; height: 32px; border-radius: 50%; border: none; color: #fff; cursor: pointer; font-weight: 800; }
.btn-plus { background: var(--success); } .btn-minus { background: var(--danger); }
.count { font-weight: 800; font-size: 18px; min-width: 20px; text-align: center; }
.total-box { background: var(--blue); color: #fff; padding: 20px; text-align: center; border-radius: 12px; font-weight: 800; font-size: 24px; margin-top: 20px; }

/* Configuración */
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.config-card { background: #f8fafc; padding: 15px; border-radius: 12px; border: 1px solid #e2e8f0; }
.add-box { display: flex; gap: 5px; margin-bottom: 10px; }
.btn-add { background: var(--success); color: #fff; border: none; padding: 0 12px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.crud-list { list-style: none; padding: 0; margin: 0; }
.crud-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #edf2f7; font-size: 13px; }
.btn-del { color: var(--danger); background: none; border: none; cursor: pointer; font-weight: bold; }
.status-msg { color: var(--success); font-size: 11px; margin-top: 4px; font-weight: 600; height: 12px; }

/* Estadísticas */
.stat-card { background: #fff; padding: 15px; border-radius: 12px; text-align: center; border: 1px solid #e2e8f0; }
.stat-card h2 { color: var(--blue); margin: 5px 0 0 0; }
.charts-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin: 20px 0; }
.chart-box { background: #fff; padding: 15px; border-radius: 12px; border: 1px solid #eee; min-height: 250px; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.btn { padding: 15px; border: none; border-radius: 8px; color: #fff; font-weight: 700; cursor: pointer; font-size: 13px; }
.btn.save { background: var(--blue); }
.btn.clear { background: #cbd5e1; color: #333; }
.btn.excel { background: #16a34a; }
.btn.pdf { background: #dc2626; }