*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--teal: #0f766e;--teal-light: #14b8a6;--teal-dark: #0d9488;--bg: #f0fdf4;--surface: #ffffff;--text: #1e293b;--muted: #64748b;--border: #e2e8f0;--danger: #dc2626;--nav-h: 56px;--header-h: 56px;--max-w: 768px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--text);min-height:100dvh;overscroll-behavior:none;background:#cbd5e1}#root{display:flex;flex-direction:column;min-height:100dvh;max-width:var(--max-w);margin:0 auto;background:var(--bg);box-shadow:0 0 48px #00000040;position:relative}@media (max-width: 768px){body{background:var(--bg)}#root{box-shadow:none}}.header{position:sticky;top:0;z-index:100;height:var(--header-h);background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 1rem;box-shadow:0 2px 8px #0003}.header-brand{display:flex;align-items:center;gap:.55rem}.header-icon{width:30px;height:30px;border-radius:8px;object-fit:cover;flex-shrink:0}.header h1{font-size:1.15rem;font-weight:700}.header-right{display:flex;align-items:center;gap:.5rem}.header .version{font-size:.7rem;opacity:.7}.btn-install{background:#fff3;border:1px solid rgba(255,255,255,.4);color:#fff;border-radius:6px;padding:.3rem .7rem;font-size:.8rem;cursor:pointer}.btn-install:hover{background:#ffffff4d}.bottom-nav{position:sticky;bottom:0;z-index:100;height:var(--nav-h);background:var(--surface);border-top:1px solid var(--border);display:flex;margin-top:auto}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:none;border:none;cursor:pointer;color:var(--muted);font-size:.65rem;padding:.4rem 0;transition:color .2s}.nav-item.active{color:var(--teal)}.nav-item svg{width:22px;height:22px}.main-content{flex:1;padding:1rem 1rem 1.5rem;width:100%}.card{background:var(--surface);border-radius:12px;padding:1rem;box-shadow:0 1px 4px #0000000f;margin-bottom:1rem}.card-title{font-size:.85rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem}.form-group{margin-bottom:.85rem}.form-group label{display:block;font-size:.85rem;font-weight:500;margin-bottom:.3rem;color:var(--text)}.form-group input,.form-group select,.form-group textarea{width:100%;padding:.55rem .75rem;border:1px solid var(--border);border-radius:8px;font-size:1rem;background:var(--surface);color:var(--text)}.form-group input:focus,.form-group select:focus{outline:2px solid var(--teal);border-color:transparent}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.form-row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:.75rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.6rem 1.2rem;border-radius:8px;font-size:.95rem;font-weight:600;cursor:pointer;border:none;transition:opacity .15s}.btn:hover{opacity:.88}.btn-primary{background:var(--teal);color:#fff;width:100%}.btn-secondary{background:var(--border);color:var(--text)}.btn-danger{background:var(--danger);color:#fff}.btn-sm{padding:.3rem .7rem;font-size:.8rem}.badge{display:inline-block;padding:.15rem .55rem;border-radius:999px;font-size:.75rem;font-weight:600;color:#fff}.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1rem}.stat-box{background:var(--surface);border-radius:12px;padding:.85rem;box-shadow:0 1px 4px #0000000f;text-align:center}.stat-box .stat-val{font-size:1.6rem;font-weight:700}.stat-box .stat-label{font-size:.75rem;color:var(--muted);margin-top:.2rem}.stat-box .stat-clasi{font-size:.72rem;font-weight:600;margin-top:.3rem}.period-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1rem}.period-tab{padding:.3rem .7rem;border-radius:6px;border:1px solid var(--border);background:var(--surface);font-size:.8rem;cursor:pointer}.period-tab.active{background:var(--teal);color:#fff;border-color:var(--teal)}.history-item{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0;border-bottom:1px solid var(--border)}.history-item:last-child{border-bottom:none}.history-date{font-size:.75rem;color:var(--muted)}.history-val{font-size:1rem;font-weight:600}.user-list{display:flex;flex-direction:column;gap:.75rem}.user-card{background:var(--surface);border-radius:12px;padding:1rem 1.2rem;box-shadow:0 1px 4px #0000000f;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border:2px solid transparent;transition:border-color .2s}.user-card:hover,.user-card.selected{border-color:var(--teal)}.user-name{font-weight:600;font-size:1rem}.user-meta{font-size:.8rem;color:var(--muted);margin-top:.1rem}.avatar{width:40px;height:40px;border-radius:50%;background:var(--teal);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.1rem}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:200;display:flex;align-items:flex-end;justify-content:center}.modal{background:var(--surface);border-radius:16px 16px 0 0;padding:1.5rem;width:100%;max-width:var(--max-w);max-height:90dvh;overflow-y:auto}.modal h2{font-size:1.1rem;font-weight:700;margin-bottom:1rem}.modal-actions{display:flex;gap:.75rem;margin-top:1rem}.modal-actions .btn{flex:1}.chart-wrap{width:100%;height:220px}.empty{text-align:center;color:var(--muted);padding:2rem 0;font-size:.9rem}.section-title{font-size:1rem;font-weight:700;margin-bottom:.75rem;margin-top:1.25rem}.section-title:first-child{margin-top:0}.modal-instrucciones{padding:1rem 0}.modal-instrucciones ol{padding-left:1.2rem}.modal-instrucciones li{margin-bottom:.5rem;font-size:.9rem}
