@font-face{font-family:"DM Sans";src:url(dm-sans.woff2) format("woff2");font-style:normal;font-weight:400 800;font-display:swap}
:root{--ink:#1a201f;--muted:#535d61;--line:#e2e7e5;--blue:#17479b;--dark-blue:#113879;--soft-blue:#e9f0fd;--mint:#d8eee1;--yellow:#ffe499;--max:1144px}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:#fff;font:500 15px/1.5 "DM Sans",system-ui,sans-serif}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,select{ -webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.07;letter-spacing:-.047em;font-weight:750}
p{color:var(--muted)}
svg{width:20px;height:20px;flex:none;vertical-align:middle}
:focus-visible{outline:3px solid #2f75df;outline-offset:3px}
.skip{position:absolute;z-index:10;top:8px;left:8px;background:white;padding:12px;transform:translateY(-150%)}
.skip:focus{transform:none}
.wrap{width:min(var(--max),calc(100% - 80px));margin-inline:auto}
.top{border-bottom:1px solid var(--line)}
.top-inner{height:80px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px}
.brand,.identity,.switch a,.button,.with-icon{display:inline-flex;align-items:center;gap:9px}
.brand{justify-self:start;gap:11px}
.brand-mark{display:grid;place-content:center;gap:4px;width:42px;height:42px;background:var(--blue);border-radius:14px;overflow:hidden}
.brand-mark i{display:block;width:22px;height:3px;background:white;border-radius:9px;transform:rotate(-46deg)}
.brand-mark i:nth-child(2){width:17px;margin-left:7px;background:var(--mint)}
.brand-mark i:nth-child(3){width:12px;margin-left:12px;background:var(--yellow)}
.brand small{display:block;font-size:8px;font-weight:800;letter-spacing:.14em;line-height:1}
.brand strong{display:block;font-size:29px;letter-spacing:-.09em;line-height:1}
.brand strong span{color:var(--blue)}
.switch{display:flex;align-items:center;padding:4px;gap:3px;border-radius:999px;background:#f0f3f2}
.switch a{padding:8px 15px;border-radius:999px;white-space:nowrap;font-size:13px;font-weight:700;color:#475351}
.switch svg{width:16px;height:16px}
.switch a[aria-current]{background:#fff;color:var(--blue);box-shadow:0 1px 4px #212e2214}
.switch a:hover,.subtle:hover,.icon:hover{background:#e8eef5}
.identity{justify-self:end;font-size:13px;font-weight:700}
.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--mint);color:#224b34;font-size:12px;font-weight:800}
.intro{text-align:center;padding:57px 0 35px}
.kicker{display:inline-flex;align-items:center;gap:8px;color:var(--blue);font-size:12px;letter-spacing:.11em;text-transform:uppercase;font-weight:800}
.kicker:before{content:"";width:7px;height:7px;border-radius:50%;background:#3c926b}
.intro h1{font-size:clamp(46px,6vw,76px);margin:10px 0 12px}
.intro p{font-size:clamp(15px,1.7vw,18px)}
.hero{min-height:284px;display:grid;grid-template-columns:45% 55%;overflow:hidden;background:var(--blue);border-radius:29px;color:white}
.hero-copy{padding:34px 36px 36px;position:relative;z-index:1;align-self:center}
.hero-copy h2{font-size:clamp(34px,4.2vw,52px);max-width:400px;margin:10px 0 10px}
.hero-copy p{color:#e4eeff;font-size:15px;margin-bottom:22px}
.hero-label{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#edf3ff}
.hero-label svg{width:17px;height:17px}
.hero-art{position:relative;min-height:100%;overflow:hidden}
.hero-art img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:70% 56%}
.hero-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--blue),transparent 28%)}
.button{justify-content:center;min-height:44px;border:0;border-radius:999px;padding:10px 18px;font-size:14px;font-weight:750;white-space:nowrap;transition:background .16s ease}
.button svg{width:18px;height:18px}
.primary{background:var(--blue);color:white}
.primary:hover{background:var(--dark-blue)}
.primary:disabled{background:#e6eae9;color:#68726f;cursor:default}
.light{background:white;color:var(--blue)}
.light:hover{background:#e9f2ff}
.subtle{background:#f0f3f2;color:var(--ink)}
.outline{background:white;border:1px solid var(--line)}
.outline:hover{background:#f6f8f7}
.duo{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:18px}
.tile{padding:23px 26px 24px;border-radius:25px;min-width:0}
.tile-yellow{background:var(--yellow)}
.tile-mint{background:var(--mint)}
.tile-head{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:780}
.tile-icon{display:grid;place-items:center;background:#ffffff85;border-radius:12px;width:33px;height:33px}
.tile-icon svg{width:17px;height:17px}
.tile h2{font-size:clamp(23px,2.7vw,32px);margin:12px 0 4px}
.tile p{color:#35443b;font-size:14px}
.tile-action{display:flex;justify-content:space-between;align-items:center;gap:10px}
.icon{display:grid;place-items:center;width:42px;height:42px;min-width:42px;border:1px solid var(--line);border-radius:50%;background:white}
.tile .icon{border:0}
.student-list{margin-top:39px}
.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:13px}
.section-head h2{font-size:29px}
.section-head span{font-size:13px;color:var(--muted)}
.lesson-list{border:1px solid var(--line);border-radius:21px;overflow:hidden}
.lesson-row{display:grid;grid-template-columns:auto 1fr auto auto;gap:14px;align-items:center;padding:13px 17px}
.lesson-row + .lesson-row{border-top:1px solid var(--line)}
.date-chip{display:grid;place-content:center;text-align:center;width:53px;height:55px;background:var(--soft-blue);color:var(--dark-blue);border-radius:13px;font-size:11px;font-weight:800;text-transform:uppercase;line-height:1.05}
.date-chip b{font-size:21px;letter-spacing:-.05em}
.lesson-row strong{display:block;font-size:15px}
.lesson-row p{font-size:13px}
.tag{display:inline-flex;align-items:center;gap:6px;width:max-content;background:#e4f3e9;color:#235539;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;line-height:1.3}
.tag:before{content:"";width:6px;height:6px;border-radius:50%;background:#337a53}
.footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding-block:17px;margin-top:38px;font-size:12px;color:var(--muted)}
.footer i{display:inline-block;margin-right:4px;width:7px;height:7px;border-radius:50%;background:#3c926b}
.empty{padding:27px;text-align:center;color:var(--muted);background:#fafbfa}
.admin-intro{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:46px 0 24px}
.admin-intro h1{margin:8px 0;font-size:clamp(43px,5.6vw,68px)}
.admin-intro .button{margin-bottom:4px}
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:26px}
.stat{border-radius:20px;padding:16px 18px;background:var(--soft-blue);display:flex;align-items:center;gap:13px}
.stat:nth-child(2){background:var(--yellow)}
.stat:nth-child(3){background:var(--mint)}
.stat b{display:block;font-size:26px;line-height:1;letter-spacing:-.04em}
.stat small{font-size:13px}
.calendar{border:1px solid var(--line);border-radius:24px;overflow:hidden}
.cal-bar{display:flex;justify-content:space-between;align-items:center;padding:15px;gap:12px;flex-wrap:wrap}
.cal-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cal-tools .icon{width:36px;height:36px;min-width:36px}
.cal-tools .button{min-height:36px;padding:5px 13px}
.cal-bar h2{font-size:23px;margin-left:3px}
.cal-bar select{width:auto;min-height:36px;padding:6px 29px 6px 12px;border-radius:999px;font-size:13px}
.cal-scroll{overflow-x:auto}
.cal-grid{display:grid;grid-template-columns:66px repeat(6,minmax(124px,1fr));min-width:810px}
.cal-day,.cal-corner{padding:9px 8px;background:#f6f8f7;text-align:center;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
.cal-day strong{margin-left:4px;font-size:19px;color:var(--ink);letter-spacing:-.04em}
.cal-day.today{background:var(--soft-blue);color:var(--dark-blue)}
.cal-day.today strong{color:var(--dark-blue)}
.cal-time{padding:9px 6px;text-align:center;font-size:12px;color:var(--muted);border-top:1px solid var(--line);font-variant-numeric:tabular-nums}
.cell{min-height:65px;display:grid;align-content:start;gap:4px;border-top:1px solid var(--line);border-left:1px solid var(--line);padding:4px;position:relative}
.event{position:relative;z-index:1;text-align:left;border:0;background:var(--soft-blue);border-radius:8px;border-left:3px solid #447dd6;padding:5px 6px;color:#143668;line-height:1.22;overflow-wrap:anywhere}
.event[data-origin="Telefono"]{background:#fff0bc;border-color:#b77c16;color:#493510}
.event[data-origin="In sede"]{background:#e0f3e8;border-color:#44916a;color:#1d4c35}
.event:hover{filter:brightness(.96)}
.event strong{display:block;font-size:12px}
.event small{font-size:10px}
.cell-add{position:absolute;inset:4px;border:0;background:none;color:var(--blue);border-radius:8px;opacity:0}
.cell:hover .cell-add,.cell-add:focus-visible{opacity:1;background:#f3f6fb}
.cal-mobile{display:none}
.legend{display:flex;gap:15px;flex-wrap:wrap;padding:12px 16px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.legend span:before{content:"";display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:5px;background:#447dd6}
.legend span:nth-child(2):before{background:#b77c16}
.legend span:nth-child(3):before{background:#44916a}
dialog{border:1px solid var(--line);border-radius:25px;padding:0;width:min(600px,calc(100% - 24px));max-height:calc(100dvh - 28px);color:var(--ink);box-shadow:0 16px 75px #0d254030}
dialog::backdrop{background:#17274475}
.modal-head{display:flex;justify-content:space-between;gap:12px;padding:24px 25px 16px;align-items:start}
.modal-head h2{font-size:34px;margin-bottom:4px}
.modal-head p{font-size:14px}
.modal-head .icon{width:36px;height:36px;min-width:36px}
.modal-body{padding:0 25px 23px}
.modal-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.modal-bottom.push{justify-content:end}
label,.label{display:grid;gap:6px;font-size:13px;font-weight:750}
input,select{width:100%;min-height:42px;padding:8px 11px;border:1px solid #cbd4d1;border-radius:11px;background:white}
select{padding-right:13px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.form-grid .wide{grid-column:1/-1}
.week-picker{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:13px 0 9px}
.week-picker .icon{width:35px;height:35px;min-width:35px}
.week-picker .icon:disabled{opacity:.38;cursor:default}
.day-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:15px}
.day-button,.slot{border-radius:11px;border:1px solid var(--line);background:white}
.day-button{min-height:54px;font-size:11px;text-transform:uppercase;color:var(--muted)}
.day-button b{display:block;color:var(--ink);font-size:19px;line-height:1.13}
.day-button:disabled{opacity:.42;cursor:default}
.day-button[aria-pressed="true"],.slot[aria-pressed="true"]{background:var(--soft-blue);border-color:var(--blue);color:var(--dark-blue)}
.day-button[aria-pressed="true"] b{color:var(--blue)}
.slots{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:7px}
.slot{min-height:39px;font-weight:700;font-size:13px}
.slot:disabled{background:#f3f5f4;color:#68716d;text-decoration:line-through;cursor:default}
.slot:hover:enabled,.day-button:hover:enabled{background:var(--soft-blue)}
.selection{font-size:13px;color:var(--muted)}
.detail{background:#f2f6fc;border-radius:15px;padding:15px}
.detail dl{display:grid;grid-template-columns:auto 1fr;gap:7px 13px;margin:0;font-size:14px}
.detail dt{color:var(--muted)}
.detail dd{margin:0;font-weight:750}
.error{color:#9a2525;font-size:13px;margin-top:8px}
.danger{background:#fbe5e4;color:#921e1c}
.danger:hover{background:#f8d6d4}
.text-danger{padding-left:0;background:transparent;color:#921e1c}
.text-danger:hover{text-decoration:underline}
.toast{position:fixed;bottom:22px;left:50%;z-index:10;transform:translateX(-50%);background:#192e26;color:white;border-radius:999px;padding:10px 17px;font-weight:700;width:max-content;max-width:calc(100% - 24px);box-shadow:0 6px 25px #18282025}
.toast:empty{display:none}
@media(max-width:780px){
.wrap{width:calc(100% - 36px)}.identity span:last-child{display:none}.top-inner{height:68px}.intro{padding:37px 0 27px}
.hero{min-height:252px;grid-template-columns:56% 44%}.hero-copy{padding:25px 22px}.duo{gap:12px}.tile{padding:17px}
.cal-scroll{display:none}.cal-mobile{display:block}.mobile-day{border-top:1px solid var(--line);padding:11px 13px}.mobile-day h3{font-size:17px}.mobile-day-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.mobile-day .icon{width:30px;height:30px;min-width:30px}.mobile-day .event{width:100%;margin-top:6px;padding:8px}.mobile-day .event strong{font-size:14px}.mobile-day .event small{font-size:12px}
}
@media(max-width:480px){
.wrap{width:calc(100% - 28px)}.top-inner{gap:6px}.brand-mark{width:34px;height:34px;border-radius:11px}.brand{gap:6px}.brand strong{font-size:24px}.brand small{font-size:7px}.switch a{padding:7px 9px;font-size:11px;gap:4px}.switch svg{width:13px;height:13px}.avatar{width:29px;height:29px;font-size:10px}
.intro h1{font-size:clamp(36px,10vw,46px);margin:8px 0 10px}.hero{grid-template-columns:1fr;border-radius:22px}.hero-copy{padding:22px}.hero-copy h2{font-size:36px}.hero-copy p{margin-bottom:15px}.hero-art{min-height:133px}.hero-art img{object-position:65% 58%}.hero-art:after{background:linear-gradient(180deg,var(--blue),transparent 21%)}
.duo{grid-template-columns:1fr}.tile h2{margin-top:8px}.tile{border-radius:20px}.student-list{margin-top:26px}.section-head h2{font-size:24px}.lesson-row{grid-template-columns:auto 1fr auto;gap:8px;padding:9px}.lesson-row .tag{display:none}.footer{margin-top:24px;font-size:11px}
.admin-intro{display:block;padding:30px 0 16px}.admin-intro .button{margin:12px 0 0}.stats{gap:6px;margin-bottom:14px}.stat{padding:9px 8px;gap:4px;display:block;border-radius:12px}.stat .tile-icon{display:none}.stat b{font-size:22px}.stat small{font-size:11px}
.cal-bar{gap:8px;padding:10px}.cal-bar h2{font-size:20px}.cal-tools{gap:4px}.cal-tools .icon{width:31px;height:31px;min-width:31px}.modal-head{padding:18px 15px 12px}.modal-body{padding:0 15px 15px}.modal-head h2{font-size:27px}.modal-bottom .button{padding-inline:12px}.selection{font-size:11px}
}
.hero-copy .button{flex-direction:row-reverse}
@media(max-width:480px){
  .confirm-actions{display:flex;flex-direction:column-reverse;align-items:stretch}
}
@media(max-width:350px){
  .switch a svg{display:none}
  .modal-bottom{flex-wrap:wrap}
}
