*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f5f8fb;color:#142033}.login-body{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#eef7ff,#f6fff9)}.login-shell{width:min(980px,92vw);display:grid;grid-template-columns:1.1fr .9fr;gap:28px}.brand-panel,.login-card,.panel,.kpi{background:white;border:1px solid #e5edf5;border-radius:24px;box-shadow:0 16px 40px rgba(19,46,80,.08)}.brand-panel{padding:48px}.logo-badge{width:58px;height:58px;border-radius:18px;background:#0b63ff;color:white;display:grid;place-items:center;font-weight:800;font-size:30px}.brand-panel h1{font-size:44px;margin:20px 0 8px}.brand-panel p,.muted{color:#6b7b8f}.mini-flow{margin-top:40px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}.mini-flow span{background:#eef5ff;padding:10px 12px;border-radius:12px;color:#0b63ff}.login-card{padding:34px}label{display:block;margin:18px 0 7px;font-weight:700}input,select,textarea{width:100%;border:1px solid #dbe5ef;border-radius:14px;padding:13px 14px;font-size:15px;background:white}textarea{min-height:86px;resize:vertical}.primary-btn,.small-btn{border:0;border-radius:14px;background:#0b63ff;color:white;padding:13px 18px;font-weight:800;cursor:pointer}.primary-btn{width:100%;margin-top:18px}.small-btn{padding:8px 12px}.error-text{color:#e53935;min-height:20px}.demo-users{margin-top:16px;color:#6b7b8f;font-size:14px}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:#0d2238;color:white;padding:24px}.side-logo{font-size:24px;font-weight:900;margin-bottom:28px}.sidebar a,.logout{display:block;width:100%;padding:13px 14px;margin:7px 0;border-radius:12px;color:#dce8f5;background:transparent;border:0;text-align:left}.sidebar a.active{background:#0b63ff;color:white}.logout{margin-top:28px;background:#ff7043;color:white;cursor:pointer}.app{margin-left:240px;padding:28px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.topbar .primary-btn{width:auto;margin:0}.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.kpi{padding:20px}.kpi span{display:block;color:#6b7b8f}.kpi strong{font-size:34px}.kpi.danger strong{color:#e53935}.content-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:18px}.panel{padding:22px}.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.task-form>*{margin-bottom:12px}.task-card{border:1px solid #e3ebf2;border-radius:16px;padding:14px;margin:10px 0;background:#fff}.task-card h3{margin:0 0 6px}.badge{display:inline-block;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}.Alta{background:#ffe8e5;color:#e53935}.Media{background:#fff3cf;color:#d18b00}.Baja{background:#e7f8ee;color:#1fa564}.status{background:#eef5ff;color:#0b63ff}.actions{display:flex;gap:10px;flex-wrap:wrap}.actions button{border:0;border-radius:10px;padding:9px 12px;cursor:pointer;font-weight:700}.approve{background:#2fc86b;color:white}.reject{background:#ff5252;color:white}.evidence-list .empty{color:#6b7b8f}.employee-card{padding:15px;border-radius:16px;margin:10px 0;display:flex;justify-content:space-between}.green{background:#e7f8ee}.yellow{background:#fff4d8}.red{background:#ffe8e5}.employee-body{background:#eef3f7}.mobile-shell{max-width:430px;min-height:100vh;margin:auto;background:white;padding:18px}.mobile-header{display:flex;justify-content:space-between;align-items:center;background:#0d4677;color:white;margin:-18px -18px 18px;padding:18px;border-radius:0 0 22px 22px}.mobile-header p{margin:4px 0 0;color:#dce8f5}.sync-banner{padding:10px 12px;border-radius:12px;background:#e7f8ee;color:#16864a;margin-bottom:18px;text-align:center;font-weight:800}.tabs{display:flex;gap:8px;margin:18px 0}.tabs button{flex:1;border:0;border-radius:999px;padding:10px;background:#eef2f6}.tabs .active{background:#0b63ff;color:white}.task-list.mobile .task-card{box-shadow:0 8px 20px rgba(19,46,80,.07)}.progress-box{background:#e9eef5;border-radius:18px;overflow:hidden}.progress-fill{width:0%;background:linear-gradient(90deg,#0b63ff,#32c86b);color:white;text-align:center;padding:14px;font-weight:900;transition:.3s}@media(max-width:760px){.login-shell{grid-template-columns:1fr}.brand-panel{padding:28px}.sidebar{display:none}.app{margin-left:0;padding:18px}.kpi-grid,.content-grid{grid-template-columns:1fr}.topbar{display:block}.topbar .primary-btn{width:100%;margin-top:12px}}
.form-section-title{font-weight:900;color:#0d4677;margin:8px 0 4px}
.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 14px}
.task-card p strong{color:#0d4677}
@media(max-width:760px){.filter-row{grid-template-columns:1fr}}

.secondary-btn{border:1px solid #dbe5ef;border-radius:14px;background:white;color:#0d4677;padding:13px 18px;font-weight:800;cursor:pointer}
.fit{width:auto!important;margin:0!important}
.top-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.analysis-box{background:#eef7ff;border:1px solid #d6eaff;border-radius:20px;padding:18px 22px;margin-bottom:18px}
.analysis-box h2{margin:0 0 6px;color:#0d4677}
.analysis-box p{margin:0;color:#53677d}
.tasks-layout{grid-template-columns:380px 1fr}
.wide{min-width:0}
.panel-title-row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.pill{background:#eef5ff;color:#0b63ff;border-radius:999px;padding:7px 10px;font-weight:800;font-size:13px}
.filter-row.advanced{grid-template-columns:1.4fr repeat(4,1fr)}
.kanban{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.kanban>div{background:#f7fafc;border:1px solid #e5edf5;border-radius:18px;padding:12px;min-height:280px}
.kanban h3{margin:4px 4px 10px;color:#0d4677}
.task-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.task-head h3{margin:0 0 6px}
.badge.late{background:#ffe8e5;color:#e53935}
.stat-row{border:1px solid #e5edf5;border-radius:16px;padding:14px;margin:10px 0}
.stat-row span{display:block;color:#6b7b8f;font-size:13px;margin-top:3px}
.mini-progress{height:28px;background:#e9eef5;border-radius:999px;overflow:hidden;margin-top:10px}
.mini-progress>div{height:100%;background:linear-gradient(90deg,#0b63ff,#32c86b);color:white;text-align:center;font-size:12px;font-weight:900;line-height:28px}
.employee-filters{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;margin:14px 0}
.employee-mini-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.employee-mini-kpis div{background:#f5f8fb;border:1px solid #e5edf5;border-radius:16px;padding:12px;text-align:center}
.employee-mini-kpis strong{display:block;font-size:24px;color:#0b63ff}
.employee-mini-kpis span{font-size:12px;color:#6b7b8f}
.empty{color:#6b7b8f;text-align:center;padding:16px}
@media(max-width:1100px){.tasks-layout{grid-template-columns:1fr}.kanban{grid-template-columns:1fr}.filter-row.advanced{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.top-actions{display:block}.top-actions button{width:100%;margin:8px 0}.filter-row.advanced,.employee-filters{grid-template-columns:1fr}.kanban{grid-template-columns:1fr}}

/* Mejora visual pantalla Tareas */
.hero-tasks{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:22px;
  background:linear-gradient(135deg,#ffffff,#eef7ff);
  border:1px solid #dcecff;
  border-radius:28px;
  padding:26px;
  margin-bottom:18px;
  box-shadow:0 18px 45px rgba(19,46,80,.07);
}
.hero-tasks h2{font-size:30px;margin:6px 0 8px;color:#102033}
.hero-tasks p{margin:0;color:#64788f;max-width:720px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.section-label{
  display:inline-block;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#0b63ff;
  background:#eef5ff;
  border-radius:999px;
  padding:6px 10px;
}
.kpi-grid.compact{grid-template-columns:repeat(6,1fr)}
.kpi-grid.compact .kpi{padding:16px 18px;border-radius:20px}
.kpi-grid.compact .kpi strong{font-size:28px}
.tasks-workspace{display:grid;grid-template-columns:380px 1fr;gap:18px;margin-bottom:18px;align-items:start}
.collapsible-card{
  animation:slideDown .22s ease;
  overflow:hidden;
}
.hidden-section{display:none!important}
.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  padding-bottom:14px;
  border-bottom:1px solid #edf2f7;
}
.card-header h2{margin:5px 0 0}
.card-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.icon-btn{
  border:1px solid #dbe5ef;
  background:#fff;
  color:#0d4677;
  border-radius:999px;
  padding:9px 12px;
  font-weight:800;
  cursor:pointer;
}
.icon-btn:hover,.secondary-btn:hover{background:#eef5ff}
.clean-grid{grid-template-columns:1fr 1fr}
.panel{
  border-radius:24px;
}
.task-card{
  border-radius:18px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.task-card:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(19,46,80,.08);
}
input:focus,select:focus,textarea:focus{
  outline:none;
  border-color:#0b63ff;
  box-shadow:0 0 0 4px rgba(11,99,255,.09);
}
@keyframes slideDown{
  from{opacity:0;transform:translateY(-8px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:1200px){
  .kpi-grid.compact{grid-template-columns:repeat(3,1fr)}
  .tasks-workspace{grid-template-columns:1fr}
}
@media(max-width:760px){
  .hero-tasks{display:block;padding:20px}
  .hero-actions{justify-content:stretch;margin-top:16px}
  .hero-actions button{width:100%}
  .kpi-grid.compact{grid-template-columns:1fr 1fr}
  .clean-grid{grid-template-columns:1fr}
}

/* Navegación entre pantallas */
.sidebar .nav-link{
  display:block;
  width:100%;
  padding:13px 14px;
  margin:7px 0;
  border-radius:12px;
  color:#dce8f5;
  background:transparent;
  border:0;
  text-align:left;
  cursor:pointer;
  font:inherit;
}
.sidebar .nav-link.active{
  background:#0b63ff;
  color:white;
  font-weight:800;
}
.main-section{
  display:none;
  animation:sectionFade .22s ease;
}
.main-section.active-section{
  display:block;
}
.page-hero{
  background:linear-gradient(135deg,#ffffff,#f1f8ff);
  border:1px solid #dcecff;
  border-radius:28px;
  padding:26px;
  margin-bottom:18px;
  box-shadow:0 18px 45px rgba(19,46,80,.07);
}
.page-hero h2{font-size:30px;margin:8px 0;color:#102033}
.page-hero p{margin:0;color:#64788f}
.module-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.module-card{
  background:#fff;
  border:1px solid #e5edf5;
  border-radius:24px;
  padding:22px;
  box-shadow:0 14px 34px rgba(19,46,80,.06);
}
.module-card h3{margin:0 0 12px;color:#0d4677}
.module-card strong{display:block;font-size:32px;margin-bottom:6px;color:#102033}
.table-panel{overflow:auto}
.table-panel table{width:100%;border-collapse:collapse}
.table-panel th,.table-panel td{padding:14px;border-bottom:1px solid #edf2f7;text-align:left}
.table-panel th{color:#0d4677;background:#f7fafc}
@keyframes sectionFade{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
@media(max-width:1100px){.module-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.module-grid{grid-template-columns:1fr}}

.tasks-workspace.single{grid-template-columns:1fr 1fr}
.action-card{cursor:pointer;border-color:#bcd7ff!important}
.action-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(11,99,255,.12)}
.badge.status{background:#eef5ff;color:#0b63ff}
.actions .warn{background:#fff4d8;color:#a66f00}
.compact-task{padding:12px}
.compact-task h3{font-size:16px}
@media(max-width:1000px){.tasks-workspace.single{grid-template-columns:1fr}}

/* Funciones avanzadas */
.dashboard-lower{margin-top:18px}
.alert-item,.notification-item{
  border:1px solid #e5edf5;
  background:#fff;
  border-radius:16px;
  padding:13px;
  margin:10px 0;
}
.alert-item strong,.notification-item strong{display:block;color:#102033}
.alert-item span,.notification-item p{color:#6b7b8f;font-size:13px;margin:4px 0 0}
.alert-item.soft{background:#f8fbff}
.notification-item{display:flex;gap:12px;align-items:flex-start}
.notif-type{
  background:#eef5ff;
  color:#0b63ff;
  border-radius:999px;
  padding:6px 9px;
  font-weight:900;
  font-size:12px;
}
.checklist-box{
  background:#f7fafc;
  border:1px solid #e5edf5;
  border-radius:14px;
  padding:10px 12px;
  margin:10px 0;
}
.checklist-box summary{font-weight:900;color:#0d4677;cursor:pointer}
.checklist-box ul{margin:8px 0 0 18px;padding:0}
.raci-table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:16px;
}
.raci-table th,.raci-table td{
  border-bottom:1px solid #edf2f7;
  padding:14px;
  text-align:left;
}
.raci-table th{background:#f7fafc;color:#0d4677}

/* Login mejorado mobile */
.nexus-login-v2{
  min-height:100vh;
  background:
    radial-gradient(circle at top left, rgba(11,99,255,.22), transparent 32%),
    radial-gradient(circle at bottom right, rgba(47,200,107,.18), transparent 36%),
    linear-gradient(135deg,#eef7ff,#ffffff 55%,#f3fff8);
  padding:18px;
}
.login-mobile-frame{
  width:min(430px,100%);
  margin:0 auto;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:16px;
}
.login-hero-card{
  background:linear-gradient(135deg,#0d4677,#0b63ff);
  color:white;
  border-radius:30px;
  padding:22px;
  box-shadow:0 22px 55px rgba(11,99,255,.25);
}
.login-top{
  display:flex;
  align-items:center;
  gap:14px;
}
.login-top .logo-badge{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:none;
}
.login-top h1{
  margin:0;
  font-size:34px;
  letter-spacing:.03em;
}
.login-top p{
  margin:3px 0 0;
  color:#dcecff;
}
.login-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:20px;
}
.login-stats div{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  padding:12px;
  text-align:center;
}
.login-stats strong{
  display:block;
  font-size:22px;
}
.login-stats span{
  font-size:12px;
  color:#dcecff;
}
.modern-login{
  border-radius:30px;
  padding:24px;
}
.modern-login h2{
  font-size:30px;
  margin:0 0 4px;
}
.profile-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:18px 0;
}
.profile-option{
  border:1px solid #dbe5ef;
  background:#fff;
  border-radius:20px;
  padding:14px 10px;
  text-align:left;
  cursor:pointer;
  transition:.18s ease;
}
.profile-option span{
  display:block;
  font-size:24px;
  margin-bottom:6px;
}
.profile-option strong{
  display:block;
  color:#102033;
  font-size:14px;
}
.profile-option small{
  display:block;
  color:#6b7b8f;
  margin-top:4px;
  line-height:1.25;
}
.profile-option.active{
  border-color:#0b63ff;
  background:#eef5ff;
  box-shadow:0 0 0 4px rgba(11,99,255,.08);
}
.input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid #dbe5ef;
  border-radius:18px;
  padding:0 12px;
  background:white;
}
.input-wrap input{
  border:0!important;
  box-shadow:none!important;
  padding-left:0;
}
.eye-btn,.link-btn{
  border:0;
  background:transparent;
  color:#0b63ff;
  font-weight:800;
  cursor:pointer;
}
.login-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:14px 0 0;
}
.remember-line{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  color:#52677d;
  font-weight:700;
}
.remember-line input{
  width:auto;
}
.login-main-btn{
  height:52px;
  font-size:16px;
  border-radius:18px;
}
.mobile-note{
  background:#f7fafc;
  border:1px solid #e5edf5;
  color:#6b7b8f;
  border-radius:16px;
  padding:12px;
  font-size:13px;
  line-height:1.35;
  margin-top:10px;
}
@media(max-width:430px){
  .nexus-login-v2{padding:12px}
  .login-mobile-frame{justify-content:flex-start;padding-top:10px}
  .profile-switch{grid-template-columns:1fr}
}

/* Responsive global login + mis tareas */
.login-mobile-frame{
  width:min(1180px,100%);
  display:grid;
  grid-template-columns:minmax(320px,.9fr) minmax(360px,1fr);
  align-items:center;
}
.login-hero-card,.modern-login{
  width:100%;
}
@media(max-width:900px){
  .login-mobile-frame{
    width:min(520px,100%);
    display:flex;
  }
}
@media(min-width:901px){
  .nexus-login-v2{
    padding:28px;
  }
  .login-hero-card{
    min-height:520px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
  }
  .modern-login{
    max-width:520px;
  }
}
@media(min-width:1200px){
  .modern-login{padding:34px}
  .login-top h1{font-size:46px}
}

/* Mis tareas adaptable a PC, tablet y celular */
.employee-responsive{
  background:#eef3f7;
}
.employee-app-shell{
  width:min(1280px,100%);
  margin:0 auto;
  padding:22px;
}
.employee-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:#fff;
  border:1px solid #e5edf5;
  border-radius:26px;
  padding:16px 18px;
  box-shadow:0 16px 38px rgba(19,46,80,.07);
  margin-bottom:18px;
}
.employee-brand,.employee-top-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.employee-brand p{
  margin:2px 0 0;
  color:#6b7b8f;
}
.small-logo{
  width:44px!important;
  height:44px!important;
  border-radius:15px!important;
  font-size:22px!important;
}
.compact-sync{
  margin:0!important;
  white-space:nowrap;
}
.employee-hero{
  display:flex;
  justify-content:space-between;
  align-items:stretch;
  gap:18px;
  background:linear-gradient(135deg,#0d4677,#0b63ff);
  color:#fff;
  border-radius:30px;
  padding:28px;
  box-shadow:0 22px 55px rgba(11,99,255,.20);
  margin-bottom:18px;
}
.employee-hero h1{
  font-size:38px;
  margin:8px 0;
}
.employee-hero p{
  color:#dcecff;
  margin:0;
  max-width:760px;
}
.employee-hero .section-label{
  background:rgba(255,255,255,.16);
  color:#fff;
}
.hero-progress-card{
  min-width:190px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.20);
  border-radius:24px;
  padding:22px;
  text-align:center;
  display:grid;
  place-items:center;
}
.hero-progress-card span{
  color:#dcecff;
  font-weight:800;
}
.hero-progress-card strong{
  font-size:42px;
}
.employee-task-layout{
  display:grid;
  grid-template-columns:340px 1fr;
  gap:18px;
  align-items:start;
}
.employee-side-panel{
  display:grid;
  gap:18px;
}
.tasks-main-panel{
  min-width:0;
}
.employee-filters.stacked{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.responsive-kpis{
  grid-template-columns:repeat(3,1fr);
  margin-bottom:18px;
}
.employee-task-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.emp-tab{
  border:1px solid #dbe5ef;
  background:#fff;
  color:#0d4677;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  cursor:pointer;
}
.emp-tab.active{
  background:#0b63ff;
  color:#fff;
  border-color:#0b63ff;
}
.employee-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.employee-grid .task-card{
  margin:0;
}
@media(max-width:1050px){
  .employee-task-layout{
    grid-template-columns:1fr;
  }
  .employee-side-panel{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:760px){
  .employee-app-shell{
    padding:12px;
  }
  .employee-topbar{
    border-radius:22px;
    align-items:flex-start;
  }
  .employee-top-actions{
    flex-direction:column;
    align-items:flex-end;
  }
  .employee-hero{
    display:block;
    padding:22px;
    border-radius:26px;
  }
  .employee-hero h1{
    font-size:32px;
  }
  .hero-progress-card{
    margin-top:16px;
    width:100%;
  }
  .employee-side-panel{
    grid-template-columns:1fr;
  }
  .employee-grid{
    grid-template-columns:1fr;
  }
  .responsive-kpis{
    grid-template-columns:repeat(3,1fr);
  }
}
@media(max-width:480px){
  .employee-topbar{
    display:block;
  }
  .employee-top-actions{
    flex-direction:row;
    justify-content:space-between;
    margin-top:14px;
  }
  .compact-sync{
    font-size:12px;
    padding:8px 10px!important;
  }
  .responsive-kpis{
    gap:8px;
  }
  .employee-mini-kpis div{
    padding:10px 6px;
  }
  .employee-mini-kpis strong{
    font-size:21px;
  }
}
