:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#0f172a;background:#f8fafc}*{box-sizing:border-box}body{margin:0}button{font:inherit}.topbar{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:16px 28px;border-bottom:1px solid #e2e8f0;background:#ffffffeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:12px}.brandIcon{display:grid;place-items:center;width:46px;height:46px;border-radius:18px;color:#fff;background:#0f172a}.brand strong,.brand span{display:block}.brand span{color:#64748b;font-size:12px}.nav{justify-self:center;display:flex;gap:6px;padding:6px;border-radius:18px;background:#f1f5f9}.nav button{display:flex;align-items:center;gap:7px;border:0;border-radius:14px;padding:10px 14px;color:#475569;background:transparent;cursor:pointer}.nav button.active{color:#0f172a;background:#fff;box-shadow:0 8px 22px #0f172a14}.loginState{display:flex;align-items:center;gap:8px;color:#64748b;font-size:13px}.container{width:100%;max-width:calc(100vw - 80px);margin:0 auto;padding:32px 40px;box-sizing:border-box}.intro{display:flex;justify-content:space-between;margin-bottom:24px;padding:28px;border-radius:28px;color:#fff;background:radial-gradient(circle at top left,#2563eb,#0f172a 55%)}.intro h1{max-width:760px;margin:8px 0;font-size:clamp(30px,4vw,52px);line-height:1.02}.intro p{max-width:820px;color:#dbeafe;font-size:16px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#38bdf8;font-size:12px;font-weight:700}.stack{display:grid;gap:22px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.gridMain{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.card{padding:22px;border:1px solid #e2e8f0;border-radius:26px;background:#fff;box-shadow:0 14px 30px #0f172a0d}.card h2{margin-top:0;margin-bottom:6px}.card p{color:#64748b;line-height:1.6}.metric{display:flex;justify-content:space-between;gap:16px}.metricIcon{display:grid;place-items:center;width:44px;height:44px;flex:0 0 auto;border-radius:16px;color:#0f172a;background:#f1f5f9}.sectionHeader,.heroDetail{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.heroDetail h1{margin:6px 0}.chart{height:310px}.list{display:grid;gap:12px;margin-top:18px}.listItem,.listButton,.alertItem{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff}.listButton{cursor:pointer;text-align:left}.listItem span,.listButton span,.alertItem span{display:block;margin-top:4px;color:#64748b;font-size:13px}.risk{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:7px 11px;font-size:13px;font-weight:700}.risk-bajo{color:#047857;background:#d1fae5}.risk-medio{color:#a16207;background:#fef3c7}.risk-alto{color:#c2410c;background:#ffedd5}.risk-critico{color:#b91c1c;background:#fee2e2}.alertItem{align-items:flex-start}.alertIcon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 auto;border-radius:14px;color:#c2410c;background:#ffedd5}.note,.error,.formula{margin-top:18px;padding:18px;border-radius:18px;background:#f8fafc;color:#334155}.error{background:#fee2e2;color:#991b1b}.formula{overflow:auto;color:#fff;background:#0f172a}.riskScale,.protocolGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:18px}.riskScale span,.protocol{padding:14px;border:1px solid #e2e8f0;border-radius:18px;text-align:center;background:#f8fafc}.protocol{display:grid;place-items:center;gap:6px}.protocol span{color:#64748b;font-size:12px}.steps{line-height:2;color:#334155}@media(max-width:980px){.topbar{grid-template-columns:1fr}.nav{overflow-x:auto;justify-self:stretch}.grid4,.grid3,.grid2x2,.gridMain,.riskScale,.protocolGrid{grid-template-columns:1fr}}.pageHeader{padding:16px 28px;border-radius:24px;color:#fff;background:radial-gradient(circle at top left,#2563eb,#0f172a 55%);margin-bottom:24px}.pageHeader h2{margin:0;font-size:20px;font-weight:700}.logoutBtn{margin-left:8px;padding:4px 12px;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#94a3b8;background:transparent;font:inherit;font-size:12px;cursor:pointer}.logoutBtn:hover{color:#fff;border-color:#ffffff80}.tabBar{display:flex;gap:4px;padding:4px;border-radius:16px;background:#f1f5f9;margin-bottom:4px;flex-wrap:wrap;width:fit-content}.tabBar button{display:flex;align-items:center;gap:6px;border:0;border-radius:12px;padding:9px 16px;color:#475569;background:transparent;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.tabBar button.tabActive{color:#0f172a;background:#fff;box-shadow:0 4px 12px #0f172a14}.roleBadge{margin-left:4px;padding:2px 8px;border-radius:6px;background:#ede9fe;color:#7c3aed;font-size:11px;font-weight:700}.btnPrimary{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border:0;border-radius:14px;color:#fff;background:#0f172a;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.btnPrimary:hover{background:#1e293b}.btnPrimary:disabled{opacity:.5;cursor:not-allowed}.btnSecondary{display:inline-flex;align-items:center;gap:6px;padding:10px 18px;border:1px solid #e2e8f0;border-radius:14px;color:#475569;background:#fff;font:inherit;font-size:14px;font-weight:600;cursor:pointer}.btnSecondary:hover{background:#f8fafc}.iconBtn{display:grid;place-items:center;width:34px;height:34px;border:1px solid #e2e8f0;border-radius:10px;color:#475569;background:#fff;cursor:pointer}.iconBtn:hover{background:#f1f5f9;border-color:#cbd5e1}.iconBtn:disabled{opacity:.4;cursor:not-allowed}.iconBtnDanger:hover{color:#b91c1c;background:#fee2e2;border-color:#fca5a5}.protoBadge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:8px;color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;flex-shrink:0}.statusChip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600}.chipSim{color:#7c3aed;background:#ede9fe}.chipProd{color:#047857;background:#d1fae5}.chipOk{color:#0369a1;background:#e0f2fe}.integrationForm{display:grid;gap:14px}.integrationForm label{font-size:13px;font-weight:600;color:#334155}.integrationForm input,.integrationForm select,.integrationForm textarea{padding:10px 14px;border:1px solid #e2e8f0;border-radius:12px;font:inherit;font-size:14px;outline:none;resize:vertical}.integrationForm input:focus,.integrationForm select:focus,.integrationForm textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.integrationForm textarea{font-family:ui-monospace,monospace;font-size:12px}.checkLabel{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#334155;cursor:pointer}.checkLabel input[type=checkbox]{width:16px;height:16px;accent-color:#0f172a;cursor:pointer}@keyframes pulse-border{0%,to{box-shadow:0 0 #ef444480}50%{box-shadow:0 0 0 7px #ef444400}}@keyframes nav-sensor-alarm{0%,to{color:#d97706;background:#d9770626}50%{color:#92400e;background:#d9770647}}@keyframes nav-risk-alarm{0%,to{color:#ef4444;background:#ef444426}50%{color:#b91c1c;background:#ef444447}}.navSensorAlarm{animation:nav-sensor-alarm 1s ease-in-out infinite!important;border-radius:14px}.navRiskAlarm{animation:nav-risk-alarm 1s ease-in-out infinite!important;border-radius:14px}.listButtonSelected{border-color:#2563eb!important;background:#eff6ff!important}.listButtonSelected strong{color:#1d4ed8}.appFooter{display:flex;align-items:center;gap:14px;padding:18px 32px;border-top:1px solid #e2e8f0;color:#94a3b8;font-size:13px;background:#fff}.footerLogo{height:26px;opacity:.75}.appFooter a{color:#64748b;text-decoration:none}.appFooter a:hover{color:#0f172a}.grid2x2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.promoCard{border-radius:26px;overflow:hidden;box-shadow:0 14px 30px #0f172a14}.promoImg{display:block;width:100%;height:auto}.brandLogo{height:40px;width:auto}@keyframes pulse-dot{0%,to{opacity:1;transform:scale(1)}50%{opacity:.3;transform:scale(.75)}}.metricVal{display:block;margin:6px 0 2px;font-size:24px;line-height:1;font-weight:700}.metricUnit{display:block;color:#475569;font-size:14px;font-weight:600;margin-bottom:4px}.metricHint{display:block;color:#64748b;font-size:13px}.metric small{display:block;color:#334155;font-size:14px;font-weight:600}.metricMissing,.metricWarning{border-color:#ef4444!important;animation:pulse-border 1.5s ease-in-out infinite}.metricIconOffline{background:#fee2e2!important;color:#b91c1c!important}.sensorAlertBtn{border-color:#ef4444!important;animation:pulse-border 1.5s ease-in-out infinite}.sensorAlertDot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#ef4444;animation:pulse-dot 1s ease-in-out infinite;flex-shrink:0}.sensorAlertBanner{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 20px;border-radius:18px;background:#fee2e2;border:1px solid #fca5a5;color:#991b1b}.sensorAlertAcked{background:#ecfdf5!important;border-color:#6ee7b7!important;color:#065f46!important}.ackBtn{flex-shrink:0;white-space:nowrap;padding:8px 16px;border:0;border-radius:10px;background:#b91c1c;color:#fff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.ackBtn:hover{background:#991b1b}.modalOverlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a99;z-index:100;display:grid;place-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modalBox{width:100%;max-width:480px;padding:28px;border-radius:24px;background:#fff;box-shadow:0 32px 80px #0f172a4d}.loginScreen{display:grid;grid-template-columns:1.4fr 1fr;min-height:100vh;background:radial-gradient(circle at top left,#2563eb,#0f172a 55%)}.loginPresentation{display:flex;flex-direction:column;justify-content:center;padding:60px 56px;color:#fff}.loginPresentBrand{display:flex;align-items:center;gap:16px;margin-bottom:32px}.loginPresentTitle{font-size:clamp(34px,3.8vw,54px);font-weight:800;line-height:1.06;margin:0 0 24px;max-width:540px}.loginPresentDesc{color:#bfdbfe;font-size:18px;line-height:1.7;max-width:500px;margin:0 0 32px}.loginFeatures{display:grid;gap:12px;max-width:540px;grid-template-columns:repeat(2,1fr)}.loginFeature{display:grid;gap:6px;padding:14px 16px;border-radius:14px;background:#ffffff17;border:1px solid rgba(255,255,255,.13)}.loginFeature strong{font-size:15px;color:#fff}.loginFeature span{font-size:13px;color:#93c5fd;line-height:1.5}.loginCardWrapper{display:grid;place-items:center;padding:40px 32px}.loginCard{width:100%;max-width:380px;padding:36px;border-radius:28px;background:#fff;box-shadow:0 24px 60px #0f172a40}.loginBrand{display:flex;align-items:center;gap:14px;margin-bottom:28px}.loginBrand strong{display:block;font-size:18px}.loginBrand span{display:block;color:#64748b;font-size:12px}.loginForm{display:grid;gap:12px}.loginForm label{font-size:14px;font-weight:600;color:#334155}.loginForm input{padding:12px 16px;border:1px solid #e2e8f0;border-radius:14px;font:inherit;font-size:16px;outline:none}.loginForm input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.loginForm button{margin-top:4px;padding:14px;border:0;border-radius:14px;color:#fff;background:#0f172a;font:inherit;font-size:16px;font-weight:600;cursor:pointer}.loginForm button:hover{background:#1e293b}.loginError{margin:0;font-size:13px;color:#991b1b}@media(max-width:860px){.loginScreen{grid-template-columns:1fr}.loginPresentation{display:none}.loginCardWrapper{padding:40px 24px}}
