/* Aula Vishoka Holística — réplica fiel de la versión 3 (ChatGPT Sites)
   + pantallas nuevas (ingreso, accesos, tienda, ajustes) con los mismos componentes. */
:root{color-scheme:light;--ink:#21372e;--text:#34463b;--muted:#59675d;--green:#355e49;--green-dark:#264737;--paper:#faf9f5;--line:#e4e7dc;--white:#fffefa;--serif:Georgia,"Times New Roman",serif;--sans:"Segoe UI",system-ui,sans-serif}
*{box-sizing:border-box}
body{background:var(--paper);color:var(--text);font:15px/1.55 var(--sans);margin:0}
h1,h2,h3,p{margin:0}
h1,h2,h3{color:var(--ink)}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.56;cursor:default}
svg{vertical-align:middle;flex:none}
:focus-visible{outline-offset:4px;outline:2px solid #547d64}
.skip-link{z-index:5;background:#fff;border-radius:8px;padding:9px 14px;position:fixed;top:10px;left:12px;transform:translateY(-150%)}
.skip-link:focus{transform:none}

.aula-shell{grid-template-columns:242px minmax(0,1fr);min-height:100vh;display:grid}
.sidebar{background:#f5f6ef;border-right:1px solid #e6e8de;flex-direction:column;height:100dvh;padding:30px 20px 21px;display:flex;position:sticky;top:0;overflow-y:auto}
.brand{align-items:center;gap:12px;width:fit-content;margin:1px 0 43px 7px;display:inline-flex}
.brand-symbol{color:#3d624b;background:#e4ebdc;border-radius:15px;place-items:center;width:46px;height:46px;display:grid}
.brand-text{flex-direction:column;line-height:1;display:flex}
.brand-text strong{font:29px/.92 var(--serif);letter-spacing:-1.5px;color:var(--ink)}
.brand-text small{letter-spacing:.24em;color:#5b6c5b;margin-top:6px;font-size:9px;font-weight:750}
.eyebrow{letter-spacing:.14em;color:#506656;text-transform:uppercase;font-size:10.5px;font-weight:750;line-height:1.4}
.nav-heading{color:#58675a;margin-bottom:10px;padding:0 12px}
.nav-item{color:#4e5e53;border-radius:9px;align-items:center;gap:12px;min-height:44px;margin-bottom:4px;padding:9px 12px;font-size:14px;font-weight:570;display:flex}
.nav-item:hover,.side-course:hover{background:#eaeee4}
.nav-item.active{color:#2d513e;background:#e3ebde;font-weight:700}
.side-courses{margin-top:33px}
.side-course{color:#536257;border-radius:9px;align-items:center;gap:10px;padding:9px 11px;font-size:13px;display:flex}
.side-course.current{color:#294b38;background:#eaeee4;font-weight:700}
.side-course i{background:#789379;border-radius:50%;flex:none;width:8px;height:8px}
.side-course i.rosa{background:#b98981}
.side-course i.lila{background:#9886af}
.sidebar-footer{color:#475a4c;border-top:1px solid #e1e6db;align-items:center;gap:10px;margin-top:auto;padding:13px 10px;display:flex}
.privacy-icon{color:#52725e;border:1px solid #dbe4d8;border-radius:11px;place-items:center;width:34px;height:34px;display:grid;flex:none}
.sidebar-footer strong,.sidebar-footer small{line-height:1.4;display:block}
.sidebar-footer strong{font-size:12.5px;overflow-wrap:anywhere}
.sidebar-footer small{color:#617064;margin-top:1px;font-size:11.5px}

.workspace{min-width:0}
.topbar{background:#fcfbf8;border-bottom:1px solid #ecece5;justify-content:space-between;align-items:center;gap:16px;min-height:71px;padding:12px clamp(24px,4vw,64px);display:flex}
.breadcrumb,.header-tools{align-items:center;gap:11px;display:flex}
.breadcrumb{color:#616f63;white-space:nowrap;font-size:13px}
.breadcrumb a:hover{text-decoration:underline}
.breadcrumb span{color:#344a3c;font-weight:650}
.header-tools{gap:13px}
.search{color:#67776a;background:#fffefa;border:1px solid #e4e8df;border-radius:9px;align-items:center;gap:9px;width:clamp(175px,22vw,260px);height:39px;padding:0 10px;display:flex;position:relative}
.search:focus-within{border-color:#829a86}
.search input{width:100%;min-width:0;color:var(--ink);background:0 0;border:0;outline:0;padding:0;font-size:13px}
.search input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.search input::placeholder{color:#67746a}
.clear-search{color:#526858;background:0 0;border:0;padding:0;display:grid;place-items:center}
.mode-button{color:#3a5d47;white-space:nowrap;background:#eef2e9;border:1px solid #e0e8dc;border-radius:9px;align-items:center;gap:7px;height:39px;padding:0 10px;font-size:12.5px;font-weight:650;display:flex}
.mode-button:hover{background:#e3ebdf}
.mode-dot{background:#72927a;border-radius:50%;width:6px;height:6px;margin-left:2px}

.main{outline:none;max-width:1410px;margin:0 auto;padding:34px clamp(24px,4vw,64px) 0}
.hero{isolation:isolate;background:radial-gradient(at 76% 38%,#e9eddf 0%,#0000 63%),linear-gradient(103deg,#e8eee2 8%,#e4ebdc 65%,#dfe8d9);border:1px solid #dce4d7;border-radius:23px;align-items:center;min-height:284px;padding:35px clamp(28px,4vw,54px);display:flex;position:relative;overflow:hidden}
.botanical{z-index:-1;width:auto;height:calc(100% + 26px);position:absolute;top:-7px;right:1.4%}
.hero-text{width:57%}
.hero-label{color:#3e624c;align-items:center;gap:8px;display:flex}
.hero-label svg{color:#8d743e}
.hero h1{font:400 clamp(49px,6.2vw,88px)/.98 var(--serif);letter-spacing:-.065em;margin:10px 0 16px}
.hero h1 em{color:#416650;font-weight:400}
.hero p{color:#485c4d;max-width:440px;font-size:15px;line-height:1.55}
.hero .button{margin-top:20px}
.button{text-align:center;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:8px 13px;font-size:13px;font-weight:650;line-height:1.25;display:inline-flex}
.button.primary{background:var(--green);color:#fff;border-color:var(--green)}
.button.primary:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}
.button.outline{background:var(--white);color:#355945;border-color:#d9e0d6}
.button.outline:hover:not(:disabled){background:#eff3ea}
.button.text-button{color:#355945;background:0 0}
.button.danger{color:#fff;background:#943e37}

.stats{grid-template-columns:repeat(3,1fr);gap:14px;margin:19px 0 32px;display:grid}
.stats>div{border:1px solid var(--line);background:var(--white);border-radius:13px;align-items:center;gap:12px;padding:12px 14px;display:flex}
.stats strong,.stats small{line-height:1.25;display:block}
.stats strong{color:var(--ink);font-size:21px;font-weight:680}
.stats small{color:var(--muted);margin-top:3px;font-size:12px}
.stat-icon{border-radius:10px;flex:none;place-items:center;width:41px;height:41px;display:grid}
.stat-course{color:#526b59;background:#edf1e8}
.stat-ready{color:#3c6a4d;background:#e8f0e4}
.stat-pending{color:#836025;background:#f6edda}

.section-head{justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:18px;display:flex}
.section-head h1,.section-head h2,.module-panel h2{font:400 clamp(33px,4vw,47px)/1.06 var(--serif);letter-spacing:-.045em;margin:4px 0 5px}
.section-head p:not(.eyebrow){color:var(--muted);font-size:14px}
.section-head .button{flex-shrink:0}
.head-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.standalone,.library-section{padding-top:10px}
.course-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;display:grid}
.salvia{--tint:#e9eee3;--accent:#4a6d54;--motif:#789277}
.rosa{--tint:#f3e8e1;--accent:#855952;--motif:#ad8176}
.lila{--tint:#eee9f3;--accent:#695982;--motif:#9a8aad}
.course-card{background:var(--white);border:1px solid var(--line);border-radius:15px;flex-direction:column;min-width:0;transition:border-color .16s,transform .16s,box-shadow .16s;display:flex;overflow:hidden}
.course-card:hover{border-color:#bbcbbb;transform:translateY(-3px);box-shadow:0 9px 24px #293c2910}
.card-cover{background:var(--tint);height:76px;padding:13px 16px;position:relative;overflow:hidden}
.card-motif{width:153px;color:var(--motif);opacity:.72;pointer-events:none;position:absolute;bottom:-9px;right:0}
.course-icon{width:47px;height:47px;color:var(--accent);background:#ffffff68;border:1px solid #fff9;border-radius:13px;place-items:center;display:grid;position:relative}
.card-content{flex-direction:column;flex:1;padding:16px;display:flex}
.card-label{color:var(--accent);font-size:10px}
.card-content h3{font:400 clamp(21px,2vw,27px)/1.1 var(--serif);letter-spacing:-.027em;overflow-wrap:anywhere;margin-top:5px}
.card-content p{color:var(--muted);overflow-wrap:anywhere;margin:8px 0 14px;font-size:13px;line-height:1.45}
.card-bottom{color:#546459;border-top:1px solid #eaebe3;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:auto;padding-top:11px;font-size:11.5px;display:flex}
.card-bottom>span{white-space:nowrap;align-items:center;gap:4px;display:inline-flex}
.card-bottom .card-arrow{color:#39624b;margin-left:auto}

.back{color:#3d654d;align-items:center;gap:8px;margin-bottom:13px;font-size:13px;font-weight:640;display:inline-flex}
.back:hover{text-decoration:underline}
.course-heading{background:var(--tint);border:1px solid var(--line);isolation:isolate;border-radius:17px;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:22px;padding:25px clamp(19px,3vw,36px);display:flex;position:relative;overflow:hidden}
.course-heading .card-motif{z-index:-1;width:250px;bottom:-28px}
.course-heading h1{font:400 clamp(31px,4.4vw,52px)/1.03 var(--serif);letter-spacing:-.05em;overflow-wrap:anywhere;margin:5px 0 8px}
.course-heading p{color:#4f6156;overflow-wrap:anywhere;max-width:660px}
.course-heading .eyebrow{color:var(--accent)}
.course-heading .button{flex:none}
.module-layout{grid-template-columns:minmax(212px,.36fr) minmax(0,1fr);align-items:start;gap:20px;display:grid}
.module-panel,.module-content{border:1px solid var(--line);background:var(--white);border-radius:14px;min-width:0;padding:14px}
.module-panel-head{justify-content:space-between;align-items:center;gap:8px;margin:0 1px 9px;display:flex}
.module-panel h2{font-size:25px}
.icon-button{color:#496653;background:0 0;border:1px solid #0000;border-radius:8px;flex:none;place-items:center;width:34px;height:34px;padding:0;display:inline-grid}
.icon-button:hover:not(:disabled){background:#edf2e9;border-color:#e1e8de}
.module-link{border-radius:9px;grid-template-columns:31px minmax(0,1fr) 16px;align-items:center;gap:8px;margin-top:3px;padding:9px 6px;display:grid}
.module-link:hover{background:#f2f4ee}
.module-link.chosen{color:#2c543f;background:#e9f0e5}
.module-index{background:#fffefa;border:1px solid #e3e7df;border-radius:8px;place-items:center;width:29px;height:29px;font-size:11px;font-weight:700;display:grid}
.module-link strong,.module-link small{overflow-wrap:anywhere;display:block}
.module-link strong{font-size:13px;line-height:1.25}
.module-link small,.module-empty{color:#657267;margin-top:3px;font-size:11px}
.module-content{padding:20px}
.module-head{align-items:flex-start}
.module-head h2{overflow-wrap:anywhere;font-size:clamp(28px,3.4vw,40px)}
.module-head p{overflow-wrap:anywhere}
.resource-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-bottom:13px;display:flex}
.filters{background:#f4f5ef;border:1px solid #e3e8df;border-radius:9px;flex-wrap:wrap;padding:3px;display:inline-flex}
.filters button{color:#5c6a60;background:0 0;border:0;border-radius:6px;padding:5px 9px;font-size:12px;font-weight:600}
.filters button[aria-pressed=true]{color:#335743;background:#fffefa;box-shadow:0 1px 3px #354b3420}
.resource-list{gap:8px;display:grid}
.resource-row{background:var(--white);border:1px solid #e4e8df;border-radius:10px;align-items:center;gap:3px;padding:3px 5px 3px 3px;display:flex}
.resource-row:hover{border-color:#c9d7ca}
.resource-open{min-width:0;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:7px;flex:1;align-items:center;gap:11px;padding:8px;display:flex}
.type-icon{color:#4f6c56;background:#edf0e5;border-radius:9px;flex:none;place-items:center;width:39px;height:39px;display:grid}
.type-1{color:#4e6f56;background:#e9f0e9}
.type-2{color:#685a85;background:#eee9f4}
.type-3{color:#806239;background:#f5ede1}
.resource-name{overflow-wrap:anywhere;flex:1;min-width:0}
.resource-name strong,.resource-name small{display:block}
.resource-name strong{font-size:14px;line-height:1.24}
.resource-name small{color:#617064;margin-top:3px;font-size:11.5px;line-height:1.25}
.status{white-space:nowrap;border-radius:20px;align-items:center;gap:5px;padding:4px 7px;font-size:11px;font-weight:680;line-height:1;display:inline-flex}
.status.listo{color:#325e40;background:#e8f1e6}
.status.pendiente{color:#795619;background:#f6eedc}
.status.neutro{color:#4f5e55;background:#eef0ea}
.status.fallido{color:#842e26;background:#fcf0eb}
.row-arrow{color:#67816e}
.empty{text-align:center;color:#526859;background:#f7f8f2;border:1px dashed #d8e2d6;border-radius:13px;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:112px;margin-top:12px;padding:30px 16px;display:flex}
.empty a{text-decoration:underline}
.search-term{color:var(--muted);overflow-wrap:anywhere;max-width:100%;font-size:13px}
.course-matches{flex-wrap:wrap;gap:8px;margin-bottom:14px;display:flex}
.student-banner{color:#405e4a;background:#f0f4ec;border:1px solid #e2e7db;border-radius:9px;align-items:center;gap:8px;margin:-12px 0 15px;padding:9px 12px;font-size:13px;display:flex}
.student-banner button{color:#385b44;background:0 0;border:0;margin-left:auto;padding:0;text-decoration:underline}
.access-help{color:#486352;margin:0;font-size:14px;line-height:1.55}

dialog{background:var(--white);width:min(530px,100% - 24px);max-height:calc(100dvh - 24px);color:var(--text);border:1px solid #d9e3d8;border-radius:17px;padding:0;box-shadow:0 20px 72px #182a1c3d}
dialog.wide{width:min(680px,100% - 24px)}
dialog::backdrop{background:#20342968}
.dialog-head{border-bottom:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:12px;padding:17px 20px 11px;display:flex}
.dialog-head h2{font:400 29px/1.1 var(--serif);letter-spacing:-.025em;overflow-wrap:anywhere}
.editor,.detail{padding:15px 20px 19px}
.editor fieldset{border:0;gap:10px;min-width:0;margin:0;padding:0;display:grid}
.editor label{font-size:13px;font-weight:650;display:block}
.editor label input:not([type=checkbox]):not([type=radio]),.editor textarea,.editor select{width:100%;color:var(--ink);background:#fbfcf8;border:1px solid #d9e2d8;border-radius:7px;min-width:0;margin-top:4px;padding:8px 9px;font-weight:450;display:block}
.editor textarea{resize:vertical}
.editor .access-courses{border:1px solid #e2e7db;border-radius:8px;gap:8px;padding:8px 11px 11px}
.access-courses legend{padding:0 4px;font-weight:650;font-size:13px}
.optional{color:#647367;margin-left:4px;font-size:11px;font-weight:500}
.form-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}
.file-field svg{color:#587760}
.file-current{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#4b6d58;margin-top:6px;overflow-wrap:anywhere}
.check-field{overflow-wrap:anywhere;align-items:center;gap:6px;display:flex!important;font-weight:500!important}
.form-error,.delete-confirm{color:#842e26;background:#fcf0eb;border-radius:8px;margin-top:9px;padding:9px 11px;font-size:13px}
.form-note{color:#405e4a;background:#f0f4ec;border-radius:8px;margin-top:9px;padding:9px 11px;font-size:13px;overflow-wrap:anywhere}
.delete-confirm p{margin-bottom:6px}
.delete-confirm .button{margin-right:5px}
.dialog-actions,.detail-actions{flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px;display:flex}
.action-spacer{flex:1}
.delete-button{color:#8d3b34!important}
.detail-meta{align-items:center;gap:10px;display:flex}
.detail-location{color:#4b6d58;overflow-wrap:anywhere;align-items:center;gap:4px;margin-top:10px;font-size:12px;display:flex}
.detail-location:hover{text-decoration:underline}
.detail-description{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:13px}
.toast{z-index:40;color:#fff;background:#315742;border-radius:10px;align-items:center;gap:8px;padding:10px 14px;font-size:13px;display:flex;position:fixed;bottom:20px;right:20px;box-shadow:0 4px 18px #263f2d3b}
.toast.error{background:#943e37}
.workspace-footer{color:#637365;justify-content:center;align-items:center;gap:7px;padding:24px 0 18px;font-size:11px;display:flex}

/* ---------- pantallas nuevas con los mismos componentes ---------- */
.admin-grid{display:grid;gap:16px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.admin-grid .module-content.span{grid-column:1/-1}
.panel-title{font:400 25px/1.06 var(--serif);letter-spacing:-.045em;color:var(--ink);margin:2px 0 4px}
.panel-copy{color:var(--muted);font-size:13px;margin-bottom:12px}
.row-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px;justify-content:flex-end}
.row-actions{display:flex;gap:2px;align-items:center}
.mini{font-size:11.5px;color:#617064}
.token-box{font-family:ui-monospace,Consolas,monospace;font-size:12.5px;background:#f4f5ef;border:1px dashed #cdd9cc;border-radius:8px;padding:10px;overflow-wrap:anywhere;margin-top:8px}
.kpi{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 18px}
.nav-sep{margin-top:22px}
.sidebar{scrollbar-width:none}
.sidebar::-webkit-scrollbar{display:none}
.logout-btn{margin-left:auto;color:#52725e;background:0 0;border:0;padding:4px;border-radius:7px;display:grid;place-items:center}
.logout-btn:hover{background:#eaeee4}
.price-tag{font-weight:700;color:var(--ink);font-size:13px;white-space:nowrap}

/* ingreso */
.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
.login-side{background:#f5f6ef;border-right:1px solid #e6e8de;padding:34px clamp(24px,4vw,56px);display:flex;flex-direction:column}
.login-side .brand{margin:0 0 auto}
.login-card{width:min(420px,100%);margin:auto 0;padding:24px 0}
.login-card h1{font:400 clamp(40px,5vw,58px)/1 var(--serif);letter-spacing:-.055em;margin:10px 0 10px}
.login-card h1 em{color:#416650}
.login-card .access-help{margin-bottom:18px}
.login-card .editor{padding:0}
.login-card .button{width:100%;min-height:44px}
.login-links{display:flex;justify-content:space-between;gap:10px;margin-top:12px;font-size:13px}
.login-links button{background:0 0;border:0;padding:0;color:#355945;text-decoration:underline}
.login-art{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(at 60% 40%,#eef0df 0%,#0000 60%),linear-gradient(160deg,#e8eee2,#dfe8d9);display:grid;place-items:center}
.login-art .botanical{position:static;height:min(78vh,560px);z-index:0}
.login-foot{color:#617064;font-size:11.5px;margin-top:auto}

@media (max-width:1120px){.aula-shell{grid-template-columns:206px minmax(0,1fr)}.sidebar{padding-inline:14px}.topbar,.main{padding-inline:27px}.botanical{right:-4%}.card-bottom{gap:6px}}
@media (max-width:860px){.aula-shell{grid-template-columns:167px minmax(0,1fr)}.sidebar{padding-inline:10px}.topbar,.main{padding-inline:19px}.hero-text{width:65%}.botanical{opacity:.78;right:-18%}.course-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.module-layout{grid-template-columns:1fr;gap:12px}.admin-grid{grid-template-columns:1fr}.login-wrap{grid-template-columns:1fr}.login-art{display:none}}
@media (max-width:660px){.aula-shell{display:block}.sidebar{border:0;border-bottom:1px solid #e5e9de;height:auto;padding:12px 14px 6px;position:static}.brand{gap:8px;margin:0 0 9px}.brand-symbol{border-radius:10px;width:36px;height:36px}.brand-symbol svg{width:24px;height:24px}.brand-text strong{font-size:23px}.brand-text small{margin-top:5px;font-size:7px}.sidebar nav{justify-content:space-between;gap:4px;display:flex;flex-wrap:wrap}.nav-heading,.side-courses,.sidebar-footer,.breadcrumb{display:none}.nav-item{gap:5px;min-height:39px;padding:6px 8px;font-size:12px}.nav-item svg{width:16px}.topbar{min-height:55px;padding:7px 14px}.header-tools{gap:7px;width:100%}.search{flex:1;min-width:0}.mode-button{gap:4px;padding:0 7px;font-size:11px}.mode-dot{display:none}.main{padding:16px 14px 0}.hero{border-radius:15px;min-height:249px;padding:23px 16px}.hero-text{width:100%}.hero h1{font-size:clamp(47px,12vw,67px)}.hero p{max-width:245px;font-size:13px}.botanical{opacity:.27;top:-7px;right:-135px}.stats{gap:5px;margin:10px 0 22px}.stats>div{border-radius:9px;gap:5px;padding:7px 5px}.stat-icon{border-radius:6px;width:25px;height:25px}.stat-icon svg{width:15px}.stats strong{font-size:16px}.stats small{font-size:9px}.section-head{flex-wrap:wrap;align-items:flex-start;gap:9px}.section-head .button{min-height:34px}.course-grid{gap:9px}.card-content{padding:11px}.card-content h3{font-size:20px}.card-content p{font-size:12px}.card-bottom{font-size:10px}.card-bottom .card-arrow{display:none}.course-heading{flex-wrap:wrap}.module-content{padding:11px}.resource-open{gap:6px;padding:5px}.resource-name strong{font-size:12px}.resource-name small{font-size:10px}.type-icon{width:29px;height:30px}.type-icon svg{width:15px}.row-arrow{display:none}.status{gap:2px;padding-inline:5px;font-size:10px}.resource-edit{width:26px;height:30px}.student-banner{margin:0 0 10px}.form-pair,.kpi{grid-template-columns:1fr}.login-side{padding:20px 16px}}
@media (max-width:375px){.course-grid{grid-template-columns:1fr}.mode-button span:not(.mode-dot){text-overflow:ellipsis;max-width:73px;overflow:hidden}}
@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important}}
