:root{color:#111827;background:#f3f4f6;font-family:Inter,system-ui,Arial,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:10px;padding:10px 14px}button:hover{background:#f9fafb}.primary{color:#fff;background:#111827;border-color:#111827}.danger{color:#fff;background:#b91c1c;border-color:#b91c1c}.success{color:#fff;background:#166534;border-color:#166534}.app-shell{grid-template-columns:240px 1fr;min-height:100vh;display:grid}.sidebar{color:#fff;background:#111827;flex-direction:column;gap:28px;padding:24px 18px;display:flex}.brand{flex-direction:column;gap:4px;display:flex}.brand strong{font-size:24px}.brand span{color:#9ca3af;font-size:13px}.sidebar nav{flex-direction:column;gap:8px;display:flex}.sidebar nav button{color:#d1d5db;text-align:left;background:0 0;border-color:#0000}.sidebar nav button.active{color:#fff;background:#1f2937}.sidebar-note{color:#9ca3af;margin-top:auto;font-size:12px}.main{min-width:0;padding:28px}.page-header h1{margin:0;font-size:30px}.page-header p{color:#6b7280;margin:8px 0 24px}.toolbar,.filters,.chips,.actions,.modal-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.toolbar{margin-bottom:18px}.filters{margin-bottom:12px}.filters input{flex:1;min-width:240px}.chips{margin-bottom:18px}.chips button.active{color:#fff;background:#111827}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px;display:grid}.stats-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.stat,.panel,.card{background:#fff;border:1px solid #e5e7eb;border-radius:16px}.stat{flex-direction:column;gap:8px;padding:18px;display:flex}.stat span{color:#6b7280;font-size:13px}.stat strong{font-size:24px}.panel{margin:18px 0;padding:20px}.panel h2{margin:0 0 14px;font-size:18px}.cards{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;display:grid}.card{padding:18px}.card-title{font-size:17px;font-weight:700}.card p{color:#4b5563;margin:8px 0}.row-between{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.muted{color:#6b7280;font-size:13px}.badge,.pill{background:#e5e7eb;border-radius:999px;padding:5px 8px;font-size:12px;font-weight:700;display:inline-flex}.badge.activo{color:#92400e;background:#fef3c7}.badge.por-vencer{color:#9a3412;background:#ffedd5}.badge.vencido{color:#991b1b;background:#fee2e2}.badge.activa{color:#166534;background:#dcfce7}.badge.caída-temporal,.badge.reemplazo-pendiente{color:#991b1b;background:#fee2e2}.badge.reemplazada{color:#374151;background:#e5e7eb}input,select,textarea{background:#fff;border:1px solid #d1d5db;border-radius:10px;width:100%;padding:10px 12px}textarea{resize:vertical;min-height:90px}label{color:#374151;flex-direction:column;gap:7px;font-size:13px;display:flex}.form-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.wide{grid-column:1/-1}.info{background:#f9fafb;border-radius:10px;flex-direction:column;gap:5px;padding:12px;display:flex}.info span{color:#6b7280;font-size:12px}.table-wrap{background:#fff;border:1px solid #e5e7eb;border-radius:14px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:700px}th,td{text-align:left;border-bottom:1px solid #e5e7eb;padding:12px 14px}th{color:#6b7280;background:#f9fafb;font-size:12px}.empty{color:#6b7280;text-align:center;border:1px dashed #d1d5db;border-radius:12px;padding:24px}.alert{background:#eff6ff;border-radius:12px;margin-bottom:14px;padding:12px 14px}.danger-box{color:#991b1b;background:#fee2e2}.success-box{color:#166534;background:#dcfce7}.modal-backdrop{z-index:50;background:#00000080;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:18px;width:min(760px,100%);max-height:92vh;padding:20px;overflow:auto;box-shadow:0 20px 60px #00000040}.modal-head{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.modal-head h2{margin:0}.modal-head button{background:0 0;border:none;font-size:18px}.modal-actions{justify-content:flex-end;margin-top:18px}@media (width<=900px){.app-shell{grid-template-columns:1fr}.sidebar{z-index:20;padding:14px;position:sticky;top:0}.sidebar nav{flex-direction:row;overflow:auto}.sidebar nav button{white-space:nowrap}.sidebar-note{display:none}.main{padding:18px}.stats-grid,.stats-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.stats-grid,.stats-grid.compact,.form-grid,.detail-grid{grid-template-columns:1fr}.wide{grid-column:auto}.cards{grid-template-columns:1fr}.main{padding:14px}.page-header h1{font-size:24px}}:root{color:#19312e;background:#f1f5f4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #38a993}button:disabled{opacity:.6;cursor:wait}.primary{background:#137565;border-color:#137565}.primary:hover{background:#0c5b4e}.sidebar{background:#122f2b;height:100vh;position:sticky;top:0}.sidebar nav button.active{background:#235049}.nav-number{opacity:.5;margin-right:12px;font-size:11px}.brand strong{letter-spacing:1px}.sidebar-note{color:#b0c6c0;line-height:1.8}.main{width:100%;max-width:1600px;padding:32px}.page-header h1{letter-spacing:-.6px}.card h3{margin:4px 0 12px}.card{overflow-wrap:anywhere;box-shadow:0 2px 8px #123b2e06}.card .actions{margin-top:12px}.actions button{padding:8px 10px;font-size:12px}.client-actions{border-top:1px solid #edf0ee;padding-top:12px}.icons{gap:4px;margin-bottom:10px;display:flex}.service-icon{color:#fff;border-radius:9px;justify-content:center;align-items:center;width:34px;height:34px;font-weight:800;display:inline-flex}.button{color:#17372f;border:1px solid #d1d5db;border-radius:10px;padding:10px 14px;font-size:13px;text-decoration:none;display:inline-flex}.whatsapp{color:#fff;background:#18734b;border-color:#18734b}.check{flex-direction:row;align-items:center;gap:8px;margin:12px 0;display:flex}.check input{width:18px;height:18px}.checks{flex-wrap:wrap;gap:14px;display:flex}.message{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;background:#f2f6f4;border-radius:12px;padding:16px;line-height:1.7}.toast{color:#fff;z-index:100;background:#134d3f;border-radius:12px;max-width:90vw;padding:16px 22px;position:fixed;bottom:24px;right:24px;box-shadow:0 4px 22px #0002}.history-cards{gap:8px;margin-bottom:18px;display:grid}.history-cards .card{padding:12px}.danger-text{color:#b32b2b}.toolbar input{flex:1;width:auto}.badge.libre{color:#166534;background:#dcfce7}.badge.ocupado{color:#8b5f09;background:#fff2ca}.panel>.card{margin-bottom:10px}.modal .actions{margin-top:14px}.modal{width:min(840px,100%)}.modal-head h2{overflow-wrap:anywhere}.filters select{width:auto;max-width:260px}.stats-grid .stat{border-top:3px solid #c7ded7}.page-header p{line-height:1.6}@media (width<=900px){.sidebar{height:auto;position:static}.sidebar nav{gap:2px}.sidebar nav button{padding:10px}.nav-number{display:none}.brand{margin-bottom:4px}.sidebar{gap:12px}.main{padding:20px}.filters select{flex:1;max-width:none}.toolbar input{min-width:200px}}@media (width<=600px){.main{padding:14px}.sidebar nav button{padding:9px 7px;font-size:12px}.brand strong{font-size:20px}.modal-backdrop{padding:10px}.modal{padding:16px}.stats-grid,.stats-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:12px}.stat strong{font-size:21px}.toast{bottom:12px;right:12px}}.login-shell{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-card{background:#fff;border:1px solid #dce4df;border-radius:20px;width:min(430px,100%);padding:32px;box-shadow:0 8px 40px #163c2810}.login-card .brand span{color:#627b74}.login-card label{margin:16px 0}.login-card h1{margin:24px 0;font-size:24px}.saving-overlay{z-index:110;color:#164d3a;background:#edf5f0c9;justify-content:center;align-items:center;font-size:18px;font-weight:700;display:flex;position:fixed;inset:0}.sidebar-note button{color:#fff;background:#235049;border-color:#456b60;width:100%;margin-top:12px}
