@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');


:root{--bg:#f5f7fb;
--paper:#fff;
--brand:#164b91;
--brand-soft:#eaf1fc;
--ink:#172e50;
--muted:#586b83;
--line:#dde5f0;
--radius:15px}

*{box-sizing:border-box}
body{margin:0;
background:var(--bg);
color:var(--ink);
font:14px 'DM Sans',system-ui,sans-serif}
button,input,textarea,select{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}
button{cursor:pointer}
a{color:inherit;
text-decoration:none}
button{color:inherit}
button:disabled{opacity:.5;
cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #517fc1;
outline-offset:3px}
h1,h2,h3,p{margin:0}
h1,h2,h3,.brand{font-family:Manrope,system-ui,sans-serif}
h1{font-size:30px;
font-weight:800;
letter-spacing:-1.1px}
h2{font-size:18px;
letter-spacing:-.4px}
h3{font-size:16px;
line-height:1.5}
small{font-size:11px;
color:var(--muted)}
.skip{position:fixed;
top:-100px;
left:15px;
background:white;
padding:15px;
z-index:10}
.skip:focus{top:10px}
.sidebar{position:fixed;
inset:0 auto 0 0;
width:248px;
background:#fff;
border-right:1px solid var(--line);
display:flex;
flex-direction:column;
padding:32px 22px 0}
.brand{display:block}
.brand img{display:block;
width:100%;
height:auto;
border-radius:4px}
.workspace{display:flex;
align-items:center;
gap:10px;
padding:16px 10px;
margin:32px 0 30px;
background:var(--bg);
border:1px solid var(--line);
border-radius:10px;
font-size:11px;
font-weight:600}
.workspace small,.profile small{display:block;
font-size:9px;
margin-top:4px;
font-weight:400}
.workspace-mark{background:#e1ebf9;
border-radius:7px;
padding:8px;
color:var(--brand);
font-size:14px}
.workspace-dot,.status-dot{height:6px;
width:6px;
background:#3065ac;
border-radius:50%;
margin-left:auto}
.nav-caption{font-size:9px;
letter-spacing:1.8px;
color:var(--muted);
padding:0 14px;
margin-bottom:12px}
nav{display:grid;
gap:7px}
nav a{display:flex;
gap:13px;
align-items:center;
border-radius:8px;
padding:13px 15px;
color:var(--muted);
font-weight:500;
font-size:12px}
nav a:hover{background:#f0f4fb}
nav a.active{background:var(--brand-soft);
color:var(--brand);
font-weight:700}
svg.icon{width:18px;
height:18px;
stroke:currentColor;
fill:none;
stroke-width:1.7;
stroke-linecap:round;
stroke-linejoin:round;
flex-shrink:0}
.nav-count{margin-left:auto;
background:#fff;
border:1px solid var(--line);
border-radius:5px;
padding:1px 5px;
font-size:10px}
.sidebar-bottom{margin-top:auto;
padding-top:35px}
.verse{background:#f2f6fc;
border:1px solid var(--line);
border-radius:12px;
padding:15px 20px 20px}
.verse-symbol{font:44px Georgia;
color:#3565a4;
display:block;
height:35px}
.verse p{font-size:12px;
line-height:1.9;
color:#435f84}
.verse small{display:block;
font-size:8px;
letter-spacing:1.3px;
margin-top:13px}
.help-button{border:0;
background:none;
font-size:10px;
color:var(--muted);
padding:21px 5px;
display:flex;
gap:9px}
.profile{display:flex;
align-items:center;
gap:10px;
border-top:1px solid var(--line);
padding:20px 0;
font-size:11px;
font-weight:600}
.avatar{display:grid;
place-items:center;
width:34px;
height:34px;
border-radius:50%;
background:#e7edf7;
color:#365b90;
font-size:10px}
.app{margin-left:248px}
.topbar{height:80px;
padding:0 42px;
border-bottom:1px solid var(--line);
display:flex;
align-items:center;
justify-content:space-between;
background:#ffffffa8}
.breadcrumb{font-size:11px;
color:var(--muted);
display:flex;
gap:17px}
.breadcrumb strong{color:var(--ink);
font-weight:500}
.top-actions{display:flex;
gap:20px;
align-items:center}
.demo-pill{font-size:10px;
color:var(--muted);
display:flex;
align-items:center;
gap:6px}
.demo-pill span{width:5px;
height:5px;
background:#3065ac;
border-radius:50%}
.button{border:1px solid transparent;
border-radius:7px;
padding:11px 16px;
display:inline-flex;
align-items:center;
justify-content:center;
gap:9px;
font-size:11px;
font-weight:600;
background:var(--brand);
color:white;
min-height:38px}
.button:hover{filter:brightness(.94)}
.button-outline{background:#fff;
border-color:var(--line);
color:var(--ink)}
.small{min-height:32px;
padding:7px 12px;
font-size:10px}
.button svg{width:15px;
height:15px}
.text-button{border:0;
background:none;
color:var(--brand);
padding:6px 0;
font-size:11px;
font-weight:600}
.text-button:hover{text-decoration:underline}
main{padding:34px 42px;
max-width:1600px;
margin:auto;
min-height:calc(100vh - 141px)}
.page-head{display:flex;
justify-content:space-between;
align-items:center;
gap:20px;
margin-bottom:28px}
.page-head p{margin-top:9px;
color:var(--muted);
font-size:12px}
.eyebrow{font-size:9px;
letter-spacing:2px;
font-weight:700;
color:var(--brand)}
.hero{background:#e8effb;
border:1px solid #d5e1f3;
border-radius:var(--radius);
padding:31px 35px;
display:flex;
justify-content:space-between;
position:relative;
overflow:hidden;
min-height:205px}
.hero-copy{position:relative;
z-index:1;
max-width:71%}
.hero .eyebrow{display:flex;
align-items:center;
gap:8px}
.hero h2{font-size:30px;
line-height:1.35;
letter-spacing:-1px;
margin:12px 0 9px;
font-weight:750}
.hero p{font-size:12px;
color:#425e83;
line-height:1.8;
max-width:470px}
.hero .button{margin-top:19px}
.hero-art{width:230px;
position:absolute;
right:30px;
bottom:-38px;
opacity:.8}
.stats{display:grid;
grid-template-columns:repeat(4,1fr);
gap:17px;
margin:23px 0 30px}
.stat{background:white;
border:1px solid var(--line);
border-radius:12px;
padding:19px 19px 17px}
.stat-label{display:flex;
justify-content:space-between;
color:var(--muted);
font-size:10px}
.stat-label svg{color:#5278a9;
width:17px}
.stat-value{font:750 28px Manrope,sans-serif;
letter-spacing:-1px;
margin:9px 0 6px}
.stat small{font-size:9px}
.stat small span{color:var(--brand)}
.dashboard-columns{display:grid;
grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);
gap:24px}
.section-title{display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:15px;
gap:12px}
.section-title h2{font-size:16px}
.panel{background:white;
border:1px solid var(--line);
border-radius:12px;
overflow:hidden}
.event-row{display:flex;
align-items:center;
gap:15px;
padding:18px 19px;
border-bottom:1px solid var(--line)}
.event-row:last-child{border:0}
.date-tile{background:#eaf1fc;
border-radius:8px;
width:47px;
min-width:47px;
padding:8px 0;
text-align:center;
line-height:1.2}
.date-tile strong{display:block;
font:750 20px Manrope,sans-serif}
.date-tile span{font-size:8px;
letter-spacing:1px;
color:#365c91}
.event-row h3{font-size:12px;
font-weight:700}
.event-row p{font-size:10px;
color:var(--muted);
margin-top:5px}
.event-row .tag{margin-left:auto}
.tag{border-radius:5px;
background:#eaf1fc;
color:#305d98;
font-size:8px;
white-space:nowrap;
display:inline-block;
padding:5px 7px}
.tag.warm{background:#eef0fb;
color:#4b5795}
.tag.blue{background:#e4eefb;
color:#335e96}
.notice{padding:20px;
border-bottom:1px solid var(--line)}
.notice:last-child{border:0}
.notice-meta{display:flex;
align-items:center;
gap:9px;
margin-bottom:10px;
font-size:9px;
color:var(--muted)}
.notice h3{font-size:13px}
.notice p{font-size:11px;
line-height:1.8;
color:var(--muted);
margin-top:6px;
white-space:pre-line;
overflow-wrap:anywhere}
.course-section{margin-top:29px}
.course-grid{display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:18px}
.course{background:#fff;
border:1px solid var(--line);
border-radius:12px;
overflow:hidden}
.course-cover{height:112px;
position:relative;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center}
.course-cover.sage{background:#dce8f9}
.course-cover.sand{background:#e9eef8}
.course-cover.blue{background:#cfdef4}
.course-cover svg{width:160px;
height:120px;
opacity:.8;
transform:rotate(-8deg)}
.cover-label{position:absolute;
top:13px;
left:14px;
background:#ffffffcf;
padding:5px 7px;
border-radius:4px;
font-size:8px;
font-weight:600}
.course-body{padding:17px}
.course-body h3{font-size:13px}
.course-body p{font-size:10px;
color:var(--muted);
line-height:1.7;
margin-top:6px}
.course-bottom{display:flex;
align-items:center;
justify-content:space-between;
border-top:1px solid var(--line);
margin-top:15px;
padding-top:12px;
font-size:9px;
color:var(--muted)}
footer{margin:0 42px;
padding:20px 0;
border-top:1px solid var(--line);
display:flex;
justify-content:space-between;
font-size:9px;
color:var(--muted)}
.toolbar{display:flex;
flex-wrap:wrap;
gap:12px;
margin:22px 0}
.search{flex:1;
min-width:180px}
.toolbar input,.toolbar select{background:#fff;
border:1px solid var(--line);
border-radius:8px;
padding:11px 13px}
.table-wrap{overflow:auto}
table{border-collapse:collapse;
width:100%;
text-align:left;
font-size:12px;
white-space:nowrap}
th{font-size:10px;
color:var(--muted);
background:#f0f4fb;
font-weight:500}
th,td{padding:17px;
border-bottom:1px solid var(--line)}
tr:last-child td{border-bottom:0}
.member-name{display:flex;
align-items:center;
gap:10px;
font-weight:600}
.empty{text-align:center;
padding:45px 20px;
color:var(--muted);
font-size:12px}
.hint{background:#edf3fc;
border:1px solid #d5e1f3;
border-radius:9px;
padding:13px 16px;
color:#365b90;
font-size:11px;
line-height:1.7;
margin:16px 0}
.announcement-grid{display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:18px}
.announcement-grid .notice{border:1px solid var(--line);
border-radius:12px;
background:white}
.calendar-controls{display:flex;
align-items:center;
gap:12px}
.calendar-controls select{border:1px solid var(--line);
border-radius:7px;
background:white;
padding:9px;
color:var(--brand);
font-weight:600}
.icon-button{border:1px solid var(--line);
background:#fff;
border-radius:7px;
min-width:33px;
height:33px;
font-size:20px;
display:grid;
place-items:center}
.calendar{background:#fff;
border:1px solid var(--line);
border-radius:12px;
overflow:hidden}
.weekdays,.days{display:grid;
grid-template-columns:repeat(7,minmax(0,1fr))}
.weekdays div{text-align:center;
background:#edf2fa;
padding:14px 0;
font-size:10px;
color:var(--muted)}
.day{min-height:115px;
padding:10px;
border-right:1px solid var(--line);
border-top:1px solid var(--line);
min-width:0}
.day:nth-child(7n){border-right:0}
.day.blank{background:#f8fafd}
.day-number{font-size:11px;
font-weight:600;
display:flex;
justify-content:space-between;
align-items:center}
.day-add{background:transparent;
border:0;
color:var(--brand);
border-radius:3px;
width:22px;
height:22px;
font-size:16px}
.day-add:hover{background:var(--brand-soft)}
.calendar-event{display:block;
width:100%;
border:0;
border-radius:4px;
background:#e7effb;
color:#204e8b;
text-align:left;
font-size:9px;
padding:5px;
margin-top:5px;
overflow-wrap:anywhere}
.calendar-event time{display:block;
font-size:8px;
margin-bottom:2px}
.calendar-legend{display:flex;
justify-content:space-between;
gap:15px;
color:var(--muted);
font-size:10px;
padding:16px 2px}
.month-list{margin-top:18px}
.view-note{background:#edf3fc;
border:1px solid #d5e1f3;
padding:12px 15px;
border-radius:8px;
font-size:11px;
color:#365b90;
margin-bottom:22px}
dialog{border:1px solid var(--line);
border-radius:18px;
box-shadow:0 25px 100px #172e5033;
width:min(520px,calc(100% - 32px));
padding:25px;
max-height:90vh;
color:var(--ink)}
dialog::backdrop{background:#142c4f6b;
backdrop-filter:blur(3px)}
.modal-top{display:flex;
align-items:center;
justify-content:space-between;
margin-bottom:16px}
dialog h2{font-size:23px;
margin-bottom:9px}
dialog p{font-size:12px;
color:var(--muted);
line-height:1.8;
margin:10px 0}
form{display:grid;
gap:15px;
margin-top:23px}
label{font-size:11px;
font-weight:600;
display:grid;
gap:7px}
input,textarea,select{min-width:0;
width:100%;
border:1px solid #b7c8df;
border-radius:7px;
padding:10px 12px;
background:#fff;
color:var(--ink)}
input[type=checkbox]{width:auto}
textarea{resize:vertical;
min-height:90px}
.form-row{display:grid;
grid-template-columns:1fr 1fr;
gap:13px}
.form-actions{display:flex;
justify-content:flex-end;
gap:10px;
margin-top:8px}
.error{color:#a73529;
font-size:12px;
line-height:1.6}
.check-label{display:flex;
align-items:flex-start;
font-weight:400;
line-height:1.6}
.danger{color:#a73529}
.form-help{font-size:10px;
color:var(--muted);
line-height:1.7}
#toast{position:fixed;
bottom:25px;
left:calc(50% + 124px);
transform:translateX(-50%);
background:var(--brand);
color:#fff;
padding:13px 22px;
border-radius:9px;
box-shadow:0 5px 30px #172e5022;
z-index:20;
font-size:12px;
max-width:90vw;
display:none}
#toast.visible{display:block}
.guide-links a{color:var(--brand);
text-decoration:underline}
.public-mode .admin-only{display:none!important}
.public-mode .workspace small{font-size:0}
.public-mode .workspace small:after{content:"Vista pública de demostración";
font-size:9px}
.public-mode .profile{display:none}

@media(min-width:1450px){main{padding-top:40px}
.hero{min-height:235px}
.hero h2{font-size:36px}
.hero-art{right:60px;
width:270px}
.course-cover{height:145px}
}

@media(max-width:1100px){.sidebar{width:210px;
padding-left:14px;
padding-right:14px}
.app{margin-left:210px}
.topbar{padding:0 25px}
main{padding:28px 25px}
.hero{padding:26px}
.hero h2{font-size:26px}
.hero-art{right:-10px;
width:205px}
.stats{gap:10px}
.stat{padding:16px 12px}
.dashboard-columns{gap:16px}
.event-row{padding:15px 12px;
gap:10px}
.event-row .tag{display:none}
footer{margin:0 25px}
#toast{left:calc(50% + 105px)}
}

@media(max-width:800px){.sidebar{position:relative;
width:auto;
padding:17px 20px 0;
border-right:0;
border-bottom:1px solid var(--line)}
.brand{max-width:245px}
.workspace,.nav-caption,.sidebar-bottom{display:none}
nav{display:flex;
overflow:auto;
gap:5px;
margin-top:15px}
nav a{padding:12px;
font-size:11px;
white-space:nowrap;
border-radius:7px 7px 0 0;
gap:7px}
.nav-count{display:none}
.app{margin:0}
.topbar{height:58px;
padding:0 20px}
.top-actions{gap:12px}
.demo-pill{font-size:9px}
.breadcrumb{font-size:10px;
gap:10px}
main{padding:25px 20px}
.hero-art{width:200px;
right:0}
.hero-copy{max-width:74%}
.stats{grid-template-columns:repeat(2,1fr);
margin:18px 0 25px}
.dashboard-columns{grid-template-columns:1fr}
.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.day{padding:6px;
min-height:105px}
footer{margin:0 20px}
#toast{left:50%}
}

@media(max-width:500px){h1{font-size:25px}
.page-head{align-items:flex-start;
gap:12px}
.page-head .button{font-size:10px;
padding:10px}
.hero{padding:24px 21px;
min-height:240px}
.hero h2{font-size:27px}
.hero-copy{max-width:100%}
.hero p{max-width:230px}
.hero-art{width:150px;
right:-20px;
opacity:.28}
.hero .button{position:relative}
.demo-pill{display:none}
.course-grid,.announcement-grid{grid-template-columns:1fr}
.course-cover{height:140px}
nav a{padding:12px 10px}
nav a .icon{display:none}
.calendar-head{flex-direction:column;
align-items:flex-start}
.day{min-height:86px;
padding:4px}
.day-number{font-size:10px}
.day-add{width:16px;
font-size:13px}
.calendar-event{font-size:8px;
padding:3px}
.calendar-event time{font-size:7px}
.weekdays div{font-size:9px}
.calendar-legend{flex-wrap:wrap}
.form-row{grid-template-columns:1fr}
.calendar-controls{width:100%;
justify-content:space-between}
footer{line-height:1.8;
flex-direction:column;
gap:4px}
.top-actions .button{font-size:9px}
.section-title h2{font-size:15px}
}

@media(prefers-reduced-motion:no-preference){main{animation:appear .28s ease}
@keyframes appear{from{opacity:.5;
transform:translateY(4px)}
to{opacity:1;
transform:none}
}
}

.portal-locked .sidebar,
.portal-locked .topbar,
.portal-locked .app > footer {
  display: none;
}
.portal-locked .app {
  margin: 0;
}
.portal-locked #main {
  display: grid;
  place-items: center;
  min-height: 100vh;
  max-width: none;
  padding: 40px 24px;
  animation: none;
}
.login-shell {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  width: min(1020px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 65px #172e500a;
}
.login-card {
  padding: 35px 44px;
}
.login-logo {
  display: block;
  width: min(270px, 100%);
  margin-bottom: 27px;
}
.login-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.login-card h1 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1.3;
}
.login-intro {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}
.login-card form {
  margin-top: 23px;
  gap: 14px;
}
.login-card label {
  font-size: 12px;
}
.login-card input {
  min-height: 43px;
  font-size: 13px;
}
.password-field {
  display: block;
  position: relative;
}
.login-password-group {
  display: grid;
  gap: 7px;
}
.password-field input {
  padding-right: 83px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 33px;
  padding: 5px 8px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--brand);
  font-size: 11px;
}
.login-submit {
  width: 100%;
  min-height: 43px;
  font-size: 12px;
}
.login-demo {
  margin-top: 23px;
  padding: 15px 17px;
  border: 1px solid #d5e1f3;
  border-radius: 8px;
  background: #f0f5fc;
  font-size: 11px;
}
.login-demo strong {
  display: block;
  font-size: 11px;
}
.login-demo dl {
  margin: 10px 0 4px;
}
.login-demo dl > div {
  display: grid;
  grid-template-columns: 83px 1fr;
  gap: 10px;
  margin-top: 6px;
}
.login-demo dt {
  color: var(--muted);
}
.login-demo dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.login-demo code {
  font-size: 11px;
}
.login-demo .text-button {
  margin-top: 5px;
  text-align: left;
  line-height: 1.7;
}
.login-warning {
  margin-top: 15px;
  color: #455f85;
  font-size: 10px;
  line-height: 1.9;
}
.login-back {
  display: inline-block;
  margin-top: 18px;
  padding-block: 4px;
  color: var(--brand);
  font-size: 11px;
}
.login-back:hover {
  text-decoration: underline;
}
.login-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 43px;
  background: #10366a;
  color: #fff;
}
.login-aside .eyebrow {
  color: #c8dbf5;
}
.login-aside h2 {
  font: 400 39px/1.18 Georgia, 'Times New Roman', serif;
  letter-spacing: -.5px;
}
.login-aside p {
  max-width: 290px;
  color: #dae6f8;
  font-size: 13px;
  line-height: 1.9;
}
.login-aside img {
  display: block;
  width: min(290px, 100%);
  height: auto;
  margin-top: 10px;
  border-radius: 150px 150px 7px 7px;
  align-self: center;
}
.login-aside-note {
  margin-top: 15px;
  color: #c8dbf5;
  font-size: 8px;
  letter-spacing: 1.2px;
  line-height: 1.8;
}
.portal-locked #toast {
  left: 50%;
}
@media(max-width:800px) {
  .login-card {
    padding: 30px;
  }
  .login-aside {
    padding: 30px;
  }
  .login-aside h2 {
    font-size: 32px;
  }
}
@media(max-width:650px) {
  .portal-locked #main {
    padding: 20px 16px;
  }
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  .login-card {
    padding: 28px;
  }
  .login-logo {
    width: 250px;
    margin-bottom: 25px;
  }
  .login-card h1 {
    font-size: 26px;
  }
  .login-aside {
    display: none;
  }
}
@media(max-width:360px) {
  .login-card {
    padding: 24px 20px;
  }
  .login-card h1 {
    font-size: 24px;
  }
  .top-actions {
    gap: 7px;
  }
}

