/* ==========================================================================
   LMS Lite · tema "Panel" (negro · blanco · gris)
   Solo afecta al menú, el escritorio, los cursos y las vistas del estudiante.
   El editor de clases conserva su apariencia original.
   Los tamaños de texto usan rem para respetar el control "Texto" (A− / A+).
   ========================================================================== */
:root{
  --lx-ink:var(--lx-brand,#000);--lx-on-ink:#fff;--lx-card:#fff;--lx-line-strong:#cfcfcf;--lx-track:#dcdcdc;--lx-rail-bg:var(--lx-ink);--lx-rail-fg:#fff;--lx-head-font:var(--lx-font);--lx-accent:var(--lx-ink);
  --lx-paper:#fff;
  --lx-surface:#f4f4f4;
  --lx-surface-2:#eaeaea;
  --lx-line:#e3e3e3;
  --lx-text:#101010;
  --lx-muted:#6a6a6a;
  --lx-font:"Poppins",Inter,ui-sans-serif,system-ui,sans-serif;
  --lx-r-xl:28px;--lx-r-lg:22px;--lx-r-md:16px;
  --lx-rail:76px;
}
body{background:var(--lx-paper)!important;background-image:none!important}
.lx-app,.lx,.lx-menu,.lx-user{font-family:var(--lx-font)}
.lx-ico{width:1.1rem;height:1.1rem;flex:none}
.lx a,.lx button,.lx-app a,.lx-app button,.lx-app input{-webkit-tap-highlight-color:transparent}
.lx :focus-visible,.lx-app :focus-visible{outline:2px solid var(--lx-ink);outline-offset:3px;border-radius:12px}
.lx-rail :focus-visible{outline-color:var(--lx-rail-fg)}

/* ---------- Estructura ---------- */
.lx-app{display:flex;min-height:100vh;background:var(--lx-paper);color:var(--lx-text)}
.lx-rail{position:sticky;top:12px;align-self:flex-start;height:calc(100vh - 24px);margin:12px 0 12px 12px;width:var(--lx-rail);flex:none;background:var(--lx-rail-bg);border-radius:30px;display:flex;flex-direction:column;align-items:center;padding:16px 0;z-index:30}
.lx-rail__logo{width:48px;height:48px;border-radius:50%;background:var(--lx-rail-fg);color:var(--lx-rail-bg);display:grid;place-items:center;overflow:hidden;flex:none}
.lx-rail__logo img{width:100%;height:100%;object-fit:contain}
.lx-rail__nav{list-style:none;margin:36px 0 0;padding:0;width:100%;display:flex;flex-direction:column;gap:14px}
.lx-rail__nav li{display:block}
.lx-rail__link{position:relative;display:grid;place-items:center;height:52px;width:100%;color:var(--lx-rail-fg);background:transparent;border:0;cursor:pointer;transition:color .15s ease;text-decoration:none}
.lx-rail__link::before{content:"";position:absolute;inset:0 0 0 12px;border-radius:20px 0 0 20px;background:transparent;transition:background .15s ease}
.lx-rail__link .lx-ico{position:relative;z-index:1;width:1.3rem;height:1.3rem}
.lx-rail__link:hover::before{background:color-mix(in srgb,var(--lx-rail-fg) 14%,transparent)}
.lx-rail__link.is-active{color:var(--lx-text)}
.lx-rail__link.is-active::before{background:var(--lx-paper);right:-12px;border-radius:20px 0 0 20px}
.lx-rail__out{margin-top:auto;height:48px}
.lx-rail__out::before{border-radius:16px;inset:0 12px}
.lx-rail__link[data-label]:hover::after,.lx-rail__link[data-label]:focus-visible::after{content:attr(data-label);position:absolute;left:calc(100% + 18px);top:50%;transform:translateY(-50%);background:var(--lx-ink);color:var(--lx-on-ink);font:500 .75rem/1 var(--lx-font);padding:9px 12px;border-radius:10px;white-space:nowrap;z-index:50;pointer-events:none}
.lx-body{flex:1;min-width:0;display:flex;flex-direction:column;padding:12px 16px 24px 20px}
.lx-top{display:flex;align-items:center;gap:16px;min-height:56px;margin-bottom:16px}
.lx-search{flex:1;max-width:520px;position:relative;display:flex;align-items:center;background:var(--lx-surface);border-radius:18px;height:50px;padding:0 18px;gap:12px;color:var(--lx-muted)}
.lx-search input{flex:1;min-width:0;height:100%;border:0;background:transparent;font:400 .875rem var(--lx-font);color:var(--lx-text);outline:0}
.lx-search input::placeholder{color:var(--lx-muted)}
.lx-search:focus-within{box-shadow:0 0 0 2px var(--lx-ink)}
.lx-top__right{margin-left:auto;display:flex;align-items:center;gap:14px}
.lx-roles{display:flex;gap:2px;padding:4px;background:var(--lx-surface);border-radius:999px}
.lx-roles__btn{display:flex;align-items:center;gap:6px;height:34px;padding:0 14px;border:0;border-radius:999px;background:transparent;color:var(--lx-muted);font:500 .75rem var(--lx-font);cursor:pointer;transition:background .15s,color .15s}
.lx-roles__btn .lx-ico{width:.95rem;height:.95rem}
.lx-roles__btn:hover{color:var(--lx-text)}
.lx-roles__btn.is-on{background:var(--lx-ink);color:var(--lx-on-ink)}
.lx-user{display:flex;align-items:center;gap:12px;border:0;background:transparent;cursor:pointer;padding:4px 6px;border-radius:999px;color:var(--lx-text)}
.lx-user__txt{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25;max-width:180px}
.lx-user__txt strong{font-weight:500;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lx-user__txt small{font-size:.6875rem;color:var(--lx-muted)}
.lx-user__av{width:44px;height:44px;border-radius:50%;background:var(--lx-ink);color:var(--lx-on-ink);display:grid;place-items:center;font:600 .8125rem var(--lx-font)}
.lx-user__chev{width:.9rem;height:.9rem;color:var(--lx-muted)}
.lx-menu{min-width:240px;border:1px solid var(--lx-line)!important;border-radius:18px!important;background:var(--lx-card)!important;box-shadow:0 18px 40px -18px rgba(0,0,0,.28)!important;padding:8px!important}
.lx-menu__mail{font:500 .75rem var(--lx-font)!important;color:var(--lx-muted)!important;text-transform:none!important;letter-spacing:0!important}
.lx-menu__item{display:flex;align-items:center;gap:10px;border-radius:12px!important;font:400 .8125rem var(--lx-font)!important;padding:10px 12px!important;cursor:pointer}
.lx-menu__item.is-on{background:var(--lx-surface)}
.lx-main{flex:1;min-width:0;width:100%;max-width:1480px}
.lx-main--editor{max-width:none;background-color:#f5f6f8;border-radius:28px;padding:20px 20px 40px}

/* ---------- Piezas comunes ---------- */
.lx-surface{background:var(--lx-surface);border-radius:var(--lx-r-xl)}
.lx h1{font:600 1.75rem/1.2 var(--lx-font);letter-spacing:-.01em;color:var(--lx-text)}
.lx h2{font:600 1.0625rem/1.3 var(--lx-font);letter-spacing:0;color:var(--lx-text)}
.lx h3{font:600 1rem/1.35 var(--lx-font);letter-spacing:0}
.lx p{font-family:var(--lx-font)}
.lx-sub{font-size:.75rem;color:var(--lx-muted);margin-top:2px}
.lx-link{font:500 .75rem var(--lx-font);color:var(--lx-muted);text-decoration:none;padding:6px 2px}
.lx-link:hover{color:var(--lx-text);text-decoration:underline}
.lx-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 24px;border-radius:14px;font:500 .8125rem var(--lx-font);text-decoration:none;border:1.5px solid transparent;cursor:pointer;transition:background .15s,color .15s,border-color .15s;white-space:nowrap}
.lx-btn .lx-ico{width:1rem;height:1rem}
.lx-btn--ink{background:var(--lx-ink);color:var(--lx-on-ink)}
.lx-btn--ink:hover{opacity:.86}
.lx-btn--line{background:transparent;color:var(--lx-text);border-color:var(--lx-line-strong)}
.lx-btn--line:hover{border-color:var(--lx-ink)}
.lx-btn:disabled{opacity:.55;cursor:default}
.lx-chip{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px;border-radius:999px;font:500 .6875rem var(--lx-font);background:var(--lx-card);color:var(--lx-text)}
.lx-chip i{width:6px;height:6px;border-radius:50%;background:currentColor;display:block}
.lx-chip.is-live i{background:#16a34a}
.lx-chip.is-draft i{background:#f59e0b}
.lx-chip.is-muted{color:var(--lx-muted)}
.lx-chip.is-muted i{display:none}
.lx-av{width:28px;height:28px;border-radius:50%;background:var(--lx-ink);color:var(--lx-on-ink);display:inline-grid;place-items:center;font:600 .625rem var(--lx-font);flex:none}
.lx-block__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.lx-note{margin-top:6px;text-align:center;font-size:.75rem;color:var(--lx-muted)}
.lx-note--left{text-align:left}
.lx-skel{height:200px;border-radius:var(--lx-r-lg);background:linear-gradient(90deg,#f0f0f0,#f8f8f8,#f0f0f0);background-size:200% 100%;animation:lx-sk 1.4s linear infinite}
.lx-skel--card{height:210px}
@keyframes lx-sk{to{background-position:-200% 0}}
.lx-empty{border:1.5px dashed var(--lx-line-strong);border-radius:var(--lx-r-xl);padding:44px 24px;text-align:center}
.lx-empty strong{display:block;font:600 1rem var(--lx-font)}
.lx-empty p{max-width:46ch;margin:8px auto 0;font-size:.8125rem;line-height:1.6;color:var(--lx-muted)}
.lx-empty__cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.lx-bar{height:8px;border-radius:999px;background:var(--lx-track);overflow:hidden}
.lx-bar span{display:block;height:100%;border-radius:inherit;background:var(--lx-ink);transition:width .3s ease}
.lx-stack>*+*{margin-top:20px}
.lx-back{display:inline-flex;align-items:center;gap:6px;font:500 .8125rem var(--lx-font);color:var(--lx-muted);text-decoration:none}
.lx-back:hover{color:var(--lx-text)}
.lx-back .lx-ico{width:.95rem;height:.95rem}

/* ---------- Escritorio ---------- */
.lx-dash{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}
.lx-dash__main{display:flex;flex-direction:column;gap:22px;min-width:0}
.lx-hero{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:30px 34px;min-height:236px;overflow:hidden}
.lx-hero__txt{max-width:430px;position:relative;z-index:1}
.lx-hero__txt p{margin-top:10px;font-size:.8125rem;line-height:1.7;color:var(--lx-muted);max-width:42ch}
.lx-hero__cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.lx-hero__next{display:block;margin-top:12px;font-size:.75rem;color:var(--lx-muted);max-width:40ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lx-hero__art{width:300px;max-width:42%;height:auto;flex:none;align-self:flex-end;margin:0 -8px -30px 0}
.lx-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.lx-trio .lx-skel{height:196px}
.lx-analytics{padding:24px 28px 18px}
.lx-chart{width:100%;height:auto;display:block;overflow:visible}
.lx-chart__grid{stroke:var(--lx-line);stroke-width:1;stroke-dasharray:3 5}
.lx-chart__line{fill:none;stroke:var(--lx-ink);stroke-width:2.2;stroke-linecap:round}
.lx-chart__guide{stroke:var(--lx-line-strong);stroke-width:1;stroke-dasharray:2 4}
.lx-chart__dot{fill:var(--lx-surface);stroke:var(--lx-ink);stroke-width:2;transition:r .12s}
.lx-chart__dot.is-on{fill:var(--lx-ink)}
.lx-chart__hit{fill:transparent;cursor:pointer;outline:none}
.lx-chart__tick{font-size:.6875rem;fill:var(--lx-muted);font-family:var(--lx-font)}
.lx-chart__tip rect,.lx-chart__tip path{fill:var(--lx-ink)}
.lx-chart__tip text{fill:var(--lx-on-ink);font-size:.6875rem;font-weight:500;font-family:var(--lx-font)}
.lx-seg{display:inline-flex;background:var(--lx-surface-2);border-radius:12px;padding:3px}
.lx-seg button{border:0;background:transparent;height:30px;padding:0 14px;border-radius:10px;font:500 .6875rem var(--lx-font);color:var(--lx-muted);cursor:pointer}
.lx-seg button.is-on{background:var(--lx-ink);color:var(--lx-on-ink)}

/* Tarjeta de curso */
.lx-ccard{position:relative;display:flex;flex-direction:column;gap:10px;min-height:196px;padding:20px 20px 18px;border-radius:var(--lx-r-lg);background:var(--lx-surface);color:var(--lx-text);text-decoration:none;transition:background .15s,color .15s,transform .15s}
.lx-ccard:hover{background:var(--lx-surface-2)}
.lx-ccard__top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.lx-ccard__cat{display:inline-flex;align-items:center;gap:7px;font:500 .75rem var(--lx-font);color:var(--lx-muted);min-width:0}
.lx-ccard__cat i{width:8px;height:8px;border-radius:50%;background:var(--hue,#999);flex:none}
.lx-ccard h3{font:600 1rem/1.35 var(--lx-font);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lx-ccard p{font-size:.75rem;line-height:1.65;color:var(--lx-muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.lx-ccard__foot{margin-top:auto;display:flex;align-items:center;gap:12px;padding-top:8px}
.lx-ccard__who{display:flex;align-items:center;gap:8px;min-width:0;font-size:.6875rem;color:var(--lx-muted)}
.lx-ccard__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:110px}
.lx-ccard__meta{display:flex;gap:12px;margin-left:auto;font:500 .6875rem var(--lx-font);color:var(--lx-muted)}
.lx-ccard__meta span{display:inline-flex;align-items:center;gap:5px}
.lx-ccard__meta .lx-ico{width:.9rem;height:.9rem}
.lx-ccard__go{width:32px;height:32px;border-radius:50%;background:var(--lx-ink);color:var(--lx-on-ink);display:grid;place-items:center;flex:none;transition:transform .15s}
.lx-ccard__go .lx-ico{width:.9rem;height:.9rem}
.lx-ccard:hover .lx-ccard__go{transform:translate(2px,-2px)}
.lx-ccard.is-featured{background:var(--lx-ink);color:var(--lx-on-ink)}
.lx-ccard.is-featured:hover{opacity:.94}
.lx-ccard.is-featured p,.lx-ccard.is-featured .lx-ccard__cat,.lx-ccard.is-featured .lx-ccard__who,.lx-ccard.is-featured .lx-ccard__meta{color:color-mix(in srgb,var(--lx-on-ink) 74%,var(--lx-ink))}
.lx-ccard.is-featured .lx-ccard__go{background:var(--lx-on-ink);color:var(--lx-ink)}
.lx-ccard.is-featured .lx-av{background:var(--lx-on-ink);color:var(--lx-ink)}
.lx-ccard.is-featured .lx-chip{background:color-mix(in srgb,var(--lx-on-ink) 16%,transparent);color:var(--lx-on-ink)}

/* Panel derecho */
.lx-dash__side{padding:16px;display:flex;flex-direction:column;gap:20px;position:sticky;top:12px}
.lx-stats{display:flex;flex-direction:column;gap:12px}
.lx-stat{display:flex;align-items:center;gap:14px;padding:16px 18px;background:var(--lx-card);border-radius:20px;color:var(--lx-text);text-decoration:none;box-shadow:0 8px 20px -16px rgba(0,0,0,.25);transition:box-shadow .15s}
.lx-stat:hover{box-shadow:0 10px 24px -14px rgba(0,0,0,.35)}
.lx-stat__ico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;flex:none}
.lx-stat__ico .lx-ico{width:1.25rem;height:1.25rem}
.t-amber{background:#fde5c7;color:#8a4b08}.t-violet{background:#dfdff7;color:#3b3aa0}.t-grey{background:#ececec;color:#2c2c2c}
.lx-stat__txt{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.lx-stat__txt small{font-size:.6875rem;color:var(--lx-muted)}
.lx-stat__txt strong{font:600 1.5rem/1.2 var(--lx-font);font-variant-numeric:tabular-nums}
.lx-stat__txt em{font-style:normal;font-size:.6875rem;color:var(--lx-muted)}
.lx-stat__go{margin-left:auto;color:var(--lx-muted)}
.lx-tiles{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lx-tile{position:relative;aspect-ratio:3/4;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:10px 8px;color:#fff;background:#222}
.lx-tile b{font:600 1.25rem var(--lx-font);text-align:center;margin-top:12px;opacity:.9}
.lx-tile span{font:500 .625rem/1.25 var(--lx-font);text-align:center;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.lx-tile.k0{background:#1c1c1c}.lx-tile.k1{background:#444}.lx-tile.k2{background:#5d5d5d}
.lx-tile--more{background:var(--lx-card);padding:0}
.lx-tile--more a{display:grid;place-items:center;width:100%;height:100%;color:var(--lx-text);font:600 .875rem var(--lx-font);text-decoration:none}
.lx-cta{background:var(--lx-card);border-radius:22px;padding:22px 20px;text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center}
.lx-cta strong{font:600 .9375rem var(--lx-font)}
.lx-cta p{font-size:.75rem;color:var(--lx-muted)}
.lx-cta .lx-bar{width:100%}
.lx-steps{list-style:none;margin:0;padding:0;width:100%;text-align:left;display:flex;flex-direction:column;gap:8px}
.lx-steps li{display:flex;align-items:center;gap:9px;font-size:.75rem}
.lx-steps li .lx-ico{width:1rem;height:1rem;color:var(--lx-line-strong)}
.lx-steps li.is-done{color:var(--lx-muted);text-decoration:line-through}
.lx-steps li.is-done .lx-ico{color:var(--lx-ink)}

/* ---------- Cursos ---------- */
.lx-pagehead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.lx-pagehead p{margin-top:6px;font-size:.8125rem;color:var(--lx-muted);max-width:60ch}
.lx-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:18px}
.lx-filters button{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 16px;border-radius:999px;border:0;background:var(--lx-surface);color:var(--lx-text);font:500 .75rem var(--lx-font);cursor:pointer;transition:background .15s,color .15s}
.lx-filters button span{font-size:.6875rem;color:var(--lx-muted);font-variant-numeric:tabular-nums}
.lx-filters button:hover{background:var(--lx-surface-2)}
.lx-filters button.is-on{background:var(--lx-ink);color:var(--lx-on-ink)}
.lx-filters button.is-on span{color:color-mix(in srgb,var(--lx-on-ink) 70%,var(--lx-ink))}
.lx-filters__q{font-size:.75rem;color:var(--lx-muted);margin-left:6px}
.lx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:16px}

/* ---------- Detalle de curso ---------- */
.lx-chero{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;padding:30px 34px}
.lx-chero__tags{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.lx-chero h1{margin-top:14px;max-width:34ch}
.lx-chero p{margin-top:8px;max-width:68ch;font-size:.8125rem;line-height:1.7;color:var(--lx-muted)}
.lx-chero__meta{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:.75rem;color:var(--lx-muted)}
.lx-chero__meta li{display:inline-flex;align-items:center;gap:7px}
.lx-chero__meta .lx-ico{width:.95rem;height:.95rem}
.lx-progress{display:flex;align-items:center;gap:12px;margin-top:18px;max-width:340px}
.lx-progress .lx-bar{flex:1}
.lx-progress small{font-size:.6875rem;color:var(--lx-muted);white-space:nowrap}
.lx-chero__cta{display:flex;flex-direction:column;gap:10px;flex:none}
.lx-tabs{display:inline-flex;flex-wrap:wrap;gap:6px;padding:5px;background:var(--lx-surface);border-radius:999px}
.lx-tabs button{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 18px;border:0;border-radius:999px;background:transparent;color:var(--lx-muted);font:500 .75rem var(--lx-font);cursor:pointer}
.lx-tabs button:hover{color:var(--lx-text)}
.lx-tabs button.is-on{background:var(--lx-ink);color:var(--lx-on-ink)}
.lx-tabs button .lx-ico{width:.95rem;height:.95rem}
.lx-tabs button span{font-size:.6875rem;opacity:.7}

/* Paneles heredados dentro de páginas rediseñadas (el editor no los usa) */
.lx-page .lms-window{background:var(--lx-surface)!important;border:0!important;box-shadow:none!important;border-radius:var(--lx-r-xl)!important;overflow:hidden}
.lx-page .lms-window::before{display:none}
.lx-page .lms-titlebar{background:transparent;border:0;height:auto;min-height:3.25rem;padding:18px 24px 0}
.lx-page .lms-titlebar>span.size-2,.lx-page .lms-titlebar>svg{display:none}
.lx-page .lms-titlebar p{display:none}
.lx-page .lms-titlebar h2{font:600 1.0625rem var(--lx-font)!important;text-transform:none!important;letter-spacing:0!important;color:var(--lx-text)!important}
.lx-page .lms-window .lms-field{background:var(--lx-card)!important;border:1.5px solid transparent!important;border-radius:14px!important;font-family:var(--lx-font)}
.lx-page .lms-window .lms-field:focus{border-color:var(--lx-ink)!important;box-shadow:none}
.lx-page .rounded-panel,.lx-page .rounded-tile{background:var(--lx-card)!important;border:0!important;border-radius:20px!important}
.lx-page .rounded-panel>header{border-color:var(--lx-line)!important}
.lx-page [class*="divide-white"]>*+*{border-color:var(--lx-line)!important}
.lx-page .lms-chip{font-family:var(--lx-font);text-transform:none;letter-spacing:0;font-size:.6875rem;background:var(--lx-card)!important;border:0!important;color:var(--lx-text)!important}
.lx-page button.bg-primary,.lx-page a.bg-primary{background:var(--lx-ink)!important;color:var(--lx-on-ink)!important;border-radius:14px}
.lx-page a.inline-flex.uppercase{font-family:var(--lx-font)}

/* ---------- Control de texto y aviso flotante ---------- */
#lms-font-tools{background:var(--lx-ink)!important;border:0!important;border-radius:999px!important;padding:6px 8px 6px 14px!important;font-family:var(--lx-font)!important}
#lms-font-tools button{border-radius:50%!important;background:#2b2b2b!important}
#lms-font-tools button:hover{background:#4a4a4a!important}

/* ---------- Responsive ---------- */
@media (max-width:1180px){
  .lx-dash{grid-template-columns:minmax(0,1fr)}
  .lx-dash__side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .lx-stats{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
  .lx-stats .lx-stat{flex:1 1 200px}
  .lx-people{grid-column:1}
  .lx-cta{grid-column:2}
}
@media (max-width:900px){
  .lx-trio{grid-template-columns:1fr}
  .lx-hero__art{display:none}
  .lx-chero{flex-direction:column}
  .lx-chero__cta{flex-direction:row;flex-wrap:wrap}
  .lx-roles{display:none}
}
@media (max-width:760px){
  .lx-app{flex-direction:column}
  .lx-rail{position:fixed;top:auto;bottom:12px;left:12px;right:12px;width:auto;height:64px;margin:0;flex-direction:row;padding:0 14px;border-radius:24px;justify-content:space-between;gap:6px}
  .lx-rail__logo{width:40px;height:40px}
  .lx-rail__nav{flex-direction:row;margin:0;width:auto;gap:6px;flex:1;justify-content:center}
  .lx-rail__link{width:56px;height:44px}
  .lx-rail__link::before,.lx-rail__link.is-active::before{inset:0;right:0;border-radius:16px}
  .lx-rail__out{margin:0;width:44px;flex:none}
  .lx-rail__out::before{inset:0}
  .lx-rail__link[data-label]:hover::after{display:none}
  .lx-body{padding:12px 12px 96px}
  .lx-user__txt,.lx-user__chev{display:none}
  .lx-dash__side{grid-template-columns:1fr}
  .lx-people,.lx-cta{grid-column:1}
  .lx-hero{padding:24px 22px}
  .lx-analytics{padding:20px 16px 12px}
  .lx h1{font-size:1.5rem}
  #lms-font-tools{bottom:92px!important}
}
@media (prefers-reduced-motion:reduce){.lx-skel{animation:none}.lx *{transition:none!important}}

.lx-page .uppercase{text-transform:none!important;letter-spacing:0!important}
.lx-page .font-display[class*="text-[hsl(var(--hue-turquoise))]"]{color:var(--lx-ink)!important}
.lx-page .h-full[class*="bg-[hsl(var(--hue-turquoise))]"]{background:var(--lx-ink)!important}
.lx-page .bg-white\/10{background:var(--lx-track)!important}


/* Editor compacto: no reservar columnas invisibles; abrir el panel solo a petición */
@media(min-width:1024px){
  .editor-workspace{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .editor-workspace.has-tools{grid-template-columns:180px minmax(0,1fr)!important}
}
@media(min-width:1536px){
  .editor-workspace.side-panel-open{grid-template-columns:minmax(0,1fr) 220px!important}
  .editor-workspace.has-tools.side-panel-open{grid-template-columns:180px minmax(0,1fr) 220px!important}
}
.editor-workspace .lms-window{min-width:0}
.editor-workspace .lms-titlebar{padding-left:16px!important;padding-right:16px!important}
.editor-workspace .lms-window>div:last-child{min-width:0}
.editor-workspace .rounded-panel{min-width:0}
/* El control de escala vive dentro de la barra negra lateral */
.lx-rail #lms-font-tools{position:static!important;inset:auto!important;z-index:2!important;display:flex!important;flex-direction:column;align-items:center;gap:4px;width:58px;margin:12px 0 8px;padding:7px 5px!important;border:0!important;border-radius:16px!important;box-shadow:none!important}
.lx-rail #lms-font-tools .lms-font-label{font-size:10px;padding:0}
.lx-rail #lms-font-tools button{min-width:30px;width:30px;height:28px;border-radius:9px!important}
.lx-rail #lms-font-tools output{min-width:38px;font-size:10px}
@media(max-width:760px){
  .lx-rail #lms-font-tools{flex-direction:row;width:auto;margin:0 4px;padding:4px!important;gap:3px}
  .lx-rail #lms-font-tools .lms-font-label{display:none}
  .lx-rail #lms-font-tools button{min-width:27px;width:27px;height:27px}
  .lx-rail #lms-font-tools output{min-width:32px}
}

/* Hero sin ilustración: aprovecha el ancho disponible. */
.lx-hero__txt{max-width:680px}


/* Legibilidad reforzada en el editor de clases: mantener tema oscuro, mejorar contraste */
.editor-workspace{color:#111827}
.editor-workspace .text-muted-foreground{color:#475569!important}
.editor-workspace .text-muted-foreground\/70,
.editor-workspace .text-muted-foreground\/80,
.editor-workspace .text-foreground\/70{color:#334155!important}
.editor-workspace .lms-label,
.editor-workspace label,
.editor-workspace small{color:#334155}
.editor-workspace input,
.editor-workspace textarea,
.editor-workspace select{color:#111827!important}
.editor-workspace input::placeholder,
.editor-workspace textarea::placeholder{color:#64748b!important;opacity:1}
.editor-workspace .lms-canvas [data-block-id] > div{padding:10px!important}
.editor-workspace .lms-canvas [data-block-id] .text-muted-foreground{color:#475569!important}
.editor-workspace .lms-canvas [data-block-id] .text-foreground\/70{color:#334155!important}
.editor-workspace .lms-window{min-width:0}
.editor-workspace .lms-canvas{max-width:100%}

/* A+ arriba y A− debajo, siempre dentro de la barra lateral */
.lx-rail #lms-font-tools{order:0}
.lx-rail #lms-font-tools button:first-of-type{order:1}
.lx-rail #lms-font-tools output{order:2}
.lx-rail #lms-font-tools button:nth-of-type(2){order:3}
.lx-rail #lms-font-tools button:nth-of-type(3){order:4}

.lx-rail #lms-font-tools{background:color-mix(in srgb,var(--lx-rail-fg) 12%,transparent)!important;color:var(--lx-rail-fg)!important}
.lx-rail #lms-font-tools button{background:color-mix(in srgb,var(--lx-rail-fg) 16%,transparent)!important;color:var(--lx-rail-fg)!important}

/* ==========================================================================
   PLANTILLAS DE INTERFAZ  (html[data-lx-template="..."])
   panel · papel · noche · compacto · contraste
   El editor de clases conserva siempre su apariencia clara original.
   ========================================================================== */
.lx-rail__label,.lx-rail__brand{display:none}
.lx-rail__head{display:contents}
.lx-menu__tick{display:inline-block;width:1rem;text-align:center;font-weight:600}
.lx-main--editor{--background:220 20% 97%;--foreground:222 22% 13%;--card:0 0% 100%;--card-foreground:222 22% 13%;--popover:0 0% 100%;--popover-foreground:222 22% 13%;--primary:222 22% 13%;--primary-foreground:0 0% 100%;--secondary:220 16% 93%;--secondary-foreground:222 22% 18%;--muted:220 16% 94%;--muted-foreground:220 9% 43%;--accent:220 16% 92%;--accent-foreground:222 22% 13%;--border:220 14% 88%;--input:220 14% 90%;--ring:222 22% 30%;--hue-turquoise:174 58% 38%;--hue-blue:212 75% 52%;--hue-coral:12 75% 55%;--hue-yellow:44 85% 48%;--hue-violet:262 62% 58%;--hue-pink:330 65% 56%;color:#111827}
html[data-lx-template] .lx-main--editor .lms-window,html[data-lx-template] .lx-main--editor .rounded-window{background:#fff!important;border-color:#e9ebef!important}
html[data-lx-template] .lx-main--editor .bg-card{background-color:#fff!important}
html[data-lx-template] .lx-main--editor .lms-field{background:#fff!important;color:#20242b!important}

/* ---------- Selector en Configuración ---------- */
.lx-tplpick{background:var(--lx-surface);border-radius:var(--lx-r-xl);padding:22px 24px 24px}
.lx-tplpick__head p{margin-top:4px;font-size:.8125rem;color:var(--lx-muted);max-width:70ch;line-height:1.6}
.lx-tplpick__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;margin-top:18px}
.lx-tplcard{position:relative;display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px 12px 14px;border:2px solid var(--lx-line);background:var(--lx-card);border-radius:18px;cursor:pointer;color:var(--lx-text);font-family:var(--lx-font);transition:border-color .15s,transform .15s}
.lx-tplcard:hover{border-color:var(--lx-line-strong)}
.lx-tplcard.is-on{border-color:var(--lx-ink)}
.lx-tplcard strong{font:600 .9375rem var(--lx-font);margin-top:6px}
.lx-tplcard span:not(.lx-prev){font-size:.75rem;line-height:1.55;color:var(--lx-muted)}
.lx-tplcard em{position:absolute;top:18px;right:18px;font:600 .625rem var(--lx-font);font-style:normal;background:var(--lx-ink);color:var(--lx-on-ink);padding:4px 9px;border-radius:999px}
.lx-prev{position:relative;display:block;aspect-ratio:16/10;border-radius:10px;overflow:hidden;background:var(--pb,#fff);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.lx-prev i{position:absolute;display:block;border-radius:4px;background:var(--pc,#eee)}
.lx-prev--panel{--pb:#fff;--pc:#efefef}
.lx-prev--panel .a{left:4%;top:7%;width:9%;bottom:7%;background:#000;border-radius:7px}
.lx-prev--panel .b{left:17%;top:8%;width:42%;height:9%;border-radius:6px}
.lx-prev--panel .c{left:17%;top:22%;width:52%;height:26%}
.lx-prev--panel .d{left:17%;top:54%;width:25%;height:38%}
.lx-prev--panel .e{left:44%;top:54%;width:25%;height:38%;background:#000}
.lx-prev--panel .f{left:72%;top:8%;width:24%;height:84%}
.lx-prev--papel{--pb:#fbf9f5}
.lx-prev--papel .a{left:6%;top:6%;width:88%;height:8%;background:transparent;border-bottom:2px solid #2b2118;border-radius:0}
.lx-prev--papel .b{left:22%;top:26%;width:34%;height:7%;background:#2b2118}
.lx-prev--papel .c{left:22%;top:38%;width:56%;height:4%;background:#cbbfa8}
.lx-prev--papel .d{left:22%;top:54%;width:26%;height:38%;background:#fff;box-shadow:inset 0 0 0 1px #e4ddcf}
.lx-prev--papel .e{left:52%;top:54%;width:26%;height:38%;background:#2b2118}
.lx-prev--papel .f{display:none}
.lx-prev--noche{--pb:#0e1013}
.lx-prev--noche .a{left:4%;top:7%;width:9%;bottom:7%;background:#1f232a;border-radius:7px}
.lx-prev--noche .b{left:17%;top:8%;width:42%;height:9%;background:#1f232a;border-radius:6px}
.lx-prev--noche .c{left:17%;top:22%;width:52%;height:26%;background:#171a20}
.lx-prev--noche .d{left:17%;top:54%;width:25%;height:38%;background:#171a20}
.lx-prev--noche .e{left:44%;top:54%;width:25%;height:38%;background:#d7ff5f}
.lx-prev--noche .f{left:72%;top:8%;width:24%;height:84%;background:#171a20}
.lx-prev--compacto{--pb:#fff}
.lx-prev--compacto .a{left:0;top:0;bottom:0;width:22%;background:#f1f3f6;border-radius:0}
.lx-prev--compacto .b{left:26%;top:7%;width:40%;height:8%;background:#eceef2}
.lx-prev--compacto .c{left:26%;top:24%;width:70%;height:15%;background:#f6f7f9;box-shadow:inset 3px 0 0 #2563eb}
.lx-prev--compacto .d{left:26%;top:44%;width:70%;height:15%;background:#f6f7f9}
.lx-prev--compacto .e{left:26%;top:64%;width:70%;height:15%;background:#f6f7f9}
.lx-prev--compacto .f{left:80%;top:7%;width:16%;height:8%;background:#2563eb}
.lx-prev--contraste{--pb:#fff}
.lx-prev--contraste .a{left:0;top:0;bottom:0;width:24%;background:#000;border-radius:0}
.lx-prev--contraste .b{left:3%;top:30%;width:18%;height:12%;background:#ffd400;border-radius:3px}
.lx-prev--contraste .c{left:28%;top:10%;width:66%;height:28%;background:#fff;box-shadow:inset 0 0 0 2px #000}
.lx-prev--contraste .d{left:28%;top:46%;width:31%;height:44%;background:#fff;box-shadow:inset 0 0 0 2px #000}
.lx-prev--contraste .e{left:63%;top:46%;width:31%;height:44%;background:#000}
.lx-prev--contraste .f{left:66%;top:54%;width:12%;height:8%;background:#ffd400}

/* =============================== NOCHE =============================== */
html[data-lx-template="noche"]{color-scheme:dark;
  --lx-paper:#0e1013;--lx-card:#1a1d23;--lx-surface:#15181d;--lx-surface-2:#1f232a;--lx-line:#262a32;--lx-line-strong:#3a404b;--lx-track:#2a2f38;
  --lx-text:#eceef2;--lx-muted:#a2abba;--lx-ink:#d7ff5f;--lx-on-ink:#10130a;--lx-rail-bg:#15181d;--lx-rail-fg:#c3c9d4;--lx-accent:#d7ff5f;
  --background:220 20% 6%;--foreground:214 20% 93%;--card:220 14% 11%;--card-foreground:214 20% 93%;--popover:220 14% 11%;--popover-foreground:214 20% 93%;--primary:71 100% 68%;--primary-foreground:70 60% 6%;--secondary:220 12% 16%;--secondary-foreground:214 20% 90%;--muted:220 12% 14%;--muted-foreground:215 14% 68%;--accent:220 12% 18%;--accent-foreground:214 20% 94%;--border:220 12% 22%;--input:220 12% 18%;--ring:71 100% 68%;--hue-turquoise:174 72% 52%;--hue-blue:212 92% 64%;--hue-coral:12 88% 64%;--hue-yellow:44 94% 60%;--hue-violet:262 86% 70%;--hue-pink:330 84% 68%}
html[data-lx-template="noche"] body{color:var(--lx-text)!important}
html[data-lx-template="noche"] .text-white{color:var(--lx-text)!important}
html[data-lx-template="noche"] .lx-main:not(.lx-main--editor) .bg-card{background-color:var(--lx-card)!important}
html[data-lx-template="noche"] .lx-main:not(.lx-main--editor) .lms-field,html[data-lx-template="noche"] .lms-field{color:var(--lx-text)!important;background:var(--lx-card)!important;border-color:var(--lx-line)!important}
html[data-lx-template="noche"] .rounded-window,html[data-lx-template="noche"] .lms-window{background:var(--lx-surface)!important;border-color:var(--lx-line)!important}
html[data-lx-template="noche"] .rounded-panel,html[data-lx-template="noche"] .rounded-tile{border-color:var(--lx-line)!important}
html[data-lx-template="noche"] .lx-rail{border:1px solid var(--lx-line)}
html[data-lx-template="noche"] .lx-chip.is-live i{background:#4ade80}
html[data-lx-template="noche"] .t-amber{background:#3a2a12;color:#ffc87a}
html[data-lx-template="noche"] .t-violet{background:#26264d;color:#b4b3ff}
html[data-lx-template="noche"] .t-grey{background:#2a2f38;color:#dfe3ea}
html[data-lx-template="noche"] .lx-stat{box-shadow:none;border:1px solid var(--lx-line)}
html[data-lx-template="noche"] .lx-tile.k0{background:#2b3038}html[data-lx-template="noche"] .lx-tile.k1{background:#3a404b}html[data-lx-template="noche"] .lx-tile.k2{background:#4a515e}
html[data-lx-template="noche"] .lx-skel{background:linear-gradient(90deg,#171a20,#1f232a,#171a20);background-size:200% 100%}
html[data-lx-template="noche"] .lx-btn--line{border-color:var(--lx-line-strong)}
html[data-lx-template="noche"] .lx-main--editor{background-color:#f5f6f8}

/* =============================== PAPEL =============================== */
html[data-lx-template="papel"]{
  --lx-paper:#fbf9f5;--lx-card:#fff;--lx-surface:#f4f0e8;--lx-surface-2:#ebe5d8;--lx-line:#e4ddcf;--lx-line-strong:#c9bda6;--lx-track:#e4ddcf;
  --lx-text:#1f1b16;--lx-muted:#655c50;--lx-ink:#2b2118;--lx-on-ink:#fbf9f5;--lx-rail-bg:transparent;--lx-rail-fg:#1f1b16;
  --lx-head-font:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;--lx-r-xl:16px;--lx-r-lg:14px;--muted-foreground:30 8% 38%}
html[data-lx-template="papel"] .lx h1,html[data-lx-template="papel"] .lx h2,html[data-lx-template="papel"] .lx h3{font-family:var(--lx-head-font);font-weight:600;letter-spacing:0}
html[data-lx-template="papel"] .lx h1{font-size:2rem}
html[data-lx-template="papel"] .lx-surface,html[data-lx-template="papel"] .lx-ccard,html[data-lx-template="papel"] .lx-tplpick{background:var(--lx-card);border:1px solid var(--lx-line)}
html[data-lx-template="papel"] .lx-ccard.is-featured{background:var(--lx-ink);border-color:var(--lx-ink)}
html[data-lx-template="papel"] .lx-hero{background:transparent;border:0;border-bottom:1px solid var(--lx-line);border-radius:0;min-height:0;padding:28px 0 30px}
html[data-lx-template="papel"] .lx-search,html[data-lx-template="papel"] .lx-roles{background:var(--lx-surface)}
html[data-lx-template="papel"] .lx-stat{box-shadow:none;border:1px solid var(--lx-line)}
html[data-lx-template="papel"] .lx-dash__side{background:transparent;padding:0}
html[data-lx-template="papel"] .lx-tile.k0{background:#2b2118}html[data-lx-template="papel"] .lx-tile.k1{background:#5a4a3a}html[data-lx-template="papel"] .lx-tile.k2{background:#7d6b57}
html[data-lx-template="papel"] .lx-page .lms-window{background:var(--lx-card)!important;border:1px solid var(--lx-line)!important}

/* ============================== COMPACTO ============================= */
html[data-lx-template="compacto"]{
  --lx-paper:#fff;--lx-card:#fff;--lx-surface:#f6f7f9;--lx-surface-2:#eceef2;--lx-line:#e5e7eb;--lx-line-strong:#cbd0d8;--lx-track:#e2e5ea;
  --lx-text:#111827;--lx-muted:#566070;--lx-ink:#2563eb;--lx-on-ink:#fff;--lx-rail-bg:#f6f7f9;--lx-rail-fg:#374151;--lx-r-xl:12px;--lx-r-lg:10px;--lx-r-md:8px;--lx-rail:208px}
html[data-lx-template="compacto"] .lx h1{font-size:1.375rem}
html[data-lx-template="compacto"] .lx-hero{min-height:0;padding:18px 22px}
html[data-lx-template="compacto"] .lx-hero__txt p{font-size:.78rem;margin-top:6px}
html[data-lx-template="compacto"] .lx-hero__cta{margin-top:14px}
html[data-lx-template="compacto"] .lx-btn{height:36px;border-radius:8px;padding:0 16px;font-size:.75rem}
html[data-lx-template="compacto"] .lx-search{height:38px;border-radius:8px}
html[data-lx-template="compacto"] .lx-roles{border-radius:8px}
html[data-lx-template="compacto"] .lx-roles__btn{border-radius:6px;height:30px}
html[data-lx-template="compacto"] .lx-stat{padding:10px 14px;border-radius:10px;box-shadow:none;border:1px solid var(--lx-line)}
html[data-lx-template="compacto"] .lx-stat__ico{width:36px;height:36px;border-radius:9px}
html[data-lx-template="compacto"] .lx-stat__txt strong{font-size:1.25rem}
html[data-lx-template="compacto"] .lx-tile{aspect-ratio:1/1.1;border-radius:10px}
html[data-lx-template="compacto"] .lx-chart{max-height:150px}
html[data-lx-template="compacto"] .lx-analytics{padding:16px 20px 10px}
html[data-lx-template="compacto"] .lx-dash__side{padding:10px;gap:14px}
html[data-lx-template="compacto"] .lx-dash__main{gap:16px}
html[data-lx-template="compacto"] .lx-cta{border:1px solid var(--lx-line);border-radius:10px;padding:16px}
html[data-lx-template="compacto"] .lx-filters button,html[data-lx-template="compacto"] .lx-tabs button,html[data-lx-template="compacto"] .lx-seg button{border-radius:8px;height:32px}
html[data-lx-template="compacto"] .lx-tabs,html[data-lx-template="compacto"] .lx-seg{border-radius:10px}
html[data-lx-template="compacto"] .lx-chero{padding:20px 24px}
html[data-lx-template="compacto"] .lx-grid,html[data-lx-template="compacto"] .lx-trio{grid-template-columns:1fr;gap:8px}
html[data-lx-template="compacto"] .lx-ccard{display:grid;grid-template-columns:minmax(120px,170px) minmax(0,1.1fr) minmax(0,2fr) auto;align-items:center;gap:6px 18px;min-height:0;padding:10px 14px;border:1px solid var(--lx-line);background:var(--lx-card);border-radius:10px}
html[data-lx-template="compacto"] .lx-ccard:hover{background:var(--lx-surface);border-color:var(--lx-line-strong)}
html[data-lx-template="compacto"] .lx-ccard__top{flex-direction:column;align-items:flex-start;gap:4px}
html[data-lx-template="compacto"] .lx-ccard h3{font-size:.875rem;-webkit-line-clamp:1}
html[data-lx-template="compacto"] .lx-ccard p{-webkit-line-clamp:1;font-size:.75rem}
html[data-lx-template="compacto"] .lx-ccard__foot{margin:0;padding:0}
html[data-lx-template="compacto"] .lx-ccard__go{width:26px;height:26px}
html[data-lx-template="compacto"] .lx-ccard.is-featured{background:color-mix(in srgb,var(--lx-ink) 9%,#fff);color:var(--lx-text);border-color:var(--lx-ink)}
html[data-lx-template="compacto"] .lx-ccard.is-featured p,html[data-lx-template="compacto"] .lx-ccard.is-featured .lx-ccard__cat,html[data-lx-template="compacto"] .lx-ccard.is-featured .lx-ccard__who,html[data-lx-template="compacto"] .lx-ccard.is-featured .lx-ccard__meta{color:var(--lx-muted)}
html[data-lx-template="compacto"] .lx-ccard.is-featured .lx-chip{background:#fff;color:var(--lx-text)}
html[data-lx-template="compacto"] .lx-ccard.is-featured .lx-av{background:var(--lx-ink);color:#fff}
html[data-lx-template="compacto"] .lx-ccard.is-featured .lx-ccard__go{background:var(--lx-ink);color:#fff}
html[data-lx-template="compacto"] .lx-skel--card{height:64px}
html[data-lx-template="compacto"] .lx-trio .lx-skel{height:64px}

/* ============================== CONTRASTE ============================ */
html[data-lx-template="contraste"]{
  --lx-paper:#fff;--lx-card:#fff;--lx-surface:#fff;--lx-surface-2:#fff3b0;--lx-line:#000;--lx-line-strong:#000;--lx-track:#d4d4d4;
  --lx-text:#000;--lx-muted:#262626;--lx-ink:#000;--lx-on-ink:#fff;--lx-rail-bg:#000;--lx-rail-fg:#fff;--lx-accent:#ffd400;--lx-r-xl:14px;--lx-r-lg:12px;--lx-rail:236px;
  --foreground:0 0% 0%;--muted-foreground:0 0% 16%;--border:0 0% 0%;--hue-turquoise:174 100% 18%}
html[data-lx-template="contraste"] .text-muted-foreground{color:#262626!important}
html[data-lx-template="contraste"] .lx h1{font-size:2rem;font-weight:700}
html[data-lx-template="contraste"] .lx h2{font-size:1.25rem;font-weight:700}
html[data-lx-template="contraste"] .lx-surface,html[data-lx-template="contraste"] .lx-tplpick,html[data-lx-template="contraste"] .lx-stat,html[data-lx-template="contraste"] .lx-cta,html[data-lx-template="contraste"] .lx-ccard,html[data-lx-template="contraste"] .lx-empty{background:#fff;border:2px solid #000;box-shadow:none}
html[data-lx-template="contraste"] .lx-dash__side{background:transparent;border:0;padding:0}
html[data-lx-template="contraste"] .lx-ccard.is-featured{background:#000;color:#fff}
html[data-lx-template="contraste"] .lx-ccard.is-featured p,html[data-lx-template="contraste"] .lx-ccard.is-featured .lx-ccard__cat,html[data-lx-template="contraste"] .lx-ccard.is-featured .lx-ccard__who,html[data-lx-template="contraste"] .lx-ccard.is-featured .lx-ccard__meta{color:#fff}
html[data-lx-template="contraste"] .lx-ccard.is-featured .lx-ccard__go{background:#ffd400;color:#000}
html[data-lx-template="contraste"] .lx-ccard:hover{background:#fff3b0}
html[data-lx-template="contraste"] .lx-ccard.is-featured:hover{background:#000}
html[data-lx-template="contraste"] .lx-ccard p,html[data-lx-template="contraste"] .lx-hero__txt p,html[data-lx-template="contraste"] .lx-pagehead p{font-size:.875rem;line-height:1.65}
html[data-lx-template="contraste"] .lx-ccard h3{font-size:1.0625rem}
html[data-lx-template="contraste"] .lx-chip{border:2px solid #000;background:#fff;color:#000;height:26px}
html[data-lx-template="contraste"] .lx-ccard.is-featured .lx-chip{background:#fff;color:#000;border-color:#fff}
html[data-lx-template="contraste"] .lx-btn{height:50px;font-size:.9375rem;font-weight:600;border-radius:10px;border-width:2px;border-color:#000}
html[data-lx-template="contraste"] .lx-btn--line:hover{background:#ffd400}
html[data-lx-template="contraste"] .lx-search{background:#fff;border:2px solid #000;height:52px;border-radius:10px}
html[data-lx-template="contraste"] .lx-search input{font-size:.9375rem}
html[data-lx-template="contraste"] .lx-search,html[data-lx-template="contraste"] .lx-search .lx-ico{color:#000}
html[data-lx-template="contraste"] .lx-roles{background:#fff;border:2px solid #000}
html[data-lx-template="contraste"] .lx-roles__btn{color:#000;font-weight:600;font-size:.8125rem}
html[data-lx-template="contraste"] .lx-roles__btn.is-on,html[data-lx-template="contraste"] .lx-seg button.is-on,html[data-lx-template="contraste"] .lx-filters button.is-on,html[data-lx-template="contraste"] .lx-tabs button.is-on{background:#ffd400;color:#000;box-shadow:inset 0 0 0 2px #000}
html[data-lx-template="contraste"] .lx-filters button,html[data-lx-template="contraste"] .lx-tabs button,html[data-lx-template="contraste"] .lx-seg button{color:#000;font-weight:600;font-size:.8125rem;background:#fff;border:2px solid #000;border-radius:10px}
html[data-lx-template="contraste"] .lx-filters button span,html[data-lx-template="contraste"] .lx-filters button.is-on span{color:#000}
html[data-lx-template="contraste"] .lx-tabs,html[data-lx-template="contraste"] .lx-seg{background:transparent;gap:8px;padding:0}
html[data-lx-template="contraste"] .lx-link{color:#000;text-decoration:underline;font-size:.8125rem;font-weight:600}
html[data-lx-template="contraste"] .lx-user__av{background:#000}
html[data-lx-template="contraste"] .lx-user__txt strong{font-size:.9375rem}
html[data-lx-template="contraste"] .lx-user__txt small{font-size:.75rem;color:#262626}
html[data-lx-template="contraste"] .lx-stat__txt small,html[data-lx-template="contraste"] .lx-sub,html[data-lx-template="contraste"] .lx-note{color:#262626;font-size:.8125rem}
html[data-lx-template="contraste"] .lx-chart__line{stroke-width:3.2}
html[data-lx-template="contraste"] .lx-chart__tick{fill:#000;font-size:.75rem;font-weight:600}
html[data-lx-template="contraste"] .lx-chart__tip rect,html[data-lx-template="contraste"] .lx-chart__tip path{fill:#000}
html[data-lx-template="contraste"] .lx-bar{background:#fff;border:2px solid #000;height:12px}
html[data-lx-template="contraste"] .lx-bar span{background:#000}
html[data-lx-template="contraste"] .lx-tile.k0,html[data-lx-template="contraste"] .lx-tile.k1,html[data-lx-template="contraste"] .lx-tile.k2{background:#000}
html[data-lx-template="contraste"] .lx-tile--more{border:2px solid #000}
html[data-lx-template="contraste"] .lx-stat__ico{border:2px solid #000;background:#ffd400!important;color:#000!important}
html[data-lx-template="contraste"] .lx-chip.is-live i{background:#006b2e}
html[data-lx-template="contraste"] .lx-page .lms-window,html[data-lx-template="contraste"] .lx-page .rounded-panel{border:2px solid #000!important;background:#fff!important}
html[data-lx-template="contraste"] a:focus-visible,html[data-lx-template="contraste"] button:focus-visible,html[data-lx-template="contraste"] input:focus-visible{outline:3px solid #000;outline-offset:3px;box-shadow:0 0 0 6px #ffd400}
html[data-lx-template="contraste"] .lx-rail :focus-visible{outline-color:#ffd400;box-shadow:none}

/* ===== Estructura de menú según plantilla (escritorio) ===== */
@media (min-width:761px){
  /* Menú con etiquetas: Compacto y Contraste */
  html[data-lx-template="compacto"] .lx-rail,html[data-lx-template="lectura"] .lx-rail,html[data-lx-template="medianoche"] .lx-rail,html[data-lx-template="contraste"] .lx-rail{top:0;margin:0;height:100vh;width:var(--lx-rail);border-radius:0;align-items:stretch;padding:16px 12px}
  html[data-lx-template="compacto"] .lx-rail,html[data-lx-template="lectura"] .lx-rail,html[data-lx-template="medianoche"] .lx-rail{border-right:1px solid var(--lx-line)}
  html[data-lx-template="compacto"] .lx-rail__head,html[data-lx-template="lectura"] .lx-rail__head,html[data-lx-template="medianoche"] .lx-rail__head,html[data-lx-template="contraste"] .lx-rail__head{display:flex;align-items:center;gap:10px;padding:0 4px}
  html[data-lx-template="compacto"] .lx-rail__logo,html[data-lx-template="lectura"] .lx-rail__logo,html[data-lx-template="medianoche"] .lx-rail__logo,html[data-lx-template="contraste"] .lx-rail__logo{width:36px;height:36px}
  html[data-lx-template="compacto"] .lx-rail__brand,html[data-lx-template="lectura"] .lx-rail__brand,html[data-lx-template="medianoche"] .lx-rail__brand,html[data-lx-template="contraste"] .lx-rail__brand{display:block;font:600 .9375rem var(--lx-font);color:var(--lx-rail-fg);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  html[data-lx-template="compacto"] .lx-rail__nav,html[data-lx-template="lectura"] .lx-rail__nav,html[data-lx-template="medianoche"] .lx-rail__nav,html[data-lx-template="contraste"] .lx-rail__nav{margin-top:22px;gap:4px}
  html[data-lx-template="compacto"] .lx-rail__link,html[data-lx-template="lectura"] .lx-rail__link,html[data-lx-template="medianoche"] .lx-rail__link,html[data-lx-template="contraste"] .lx-rail__link{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:0 14px;height:40px;font:500 .8125rem var(--lx-font)}
  html[data-lx-template="compacto"] .lx-rail__link::before,html[data-lx-template="lectura"] .lx-rail__link::before,html[data-lx-template="medianoche"] .lx-rail__link::before,html[data-lx-template="contraste"] .lx-rail__link::before,html[data-lx-template="compacto"] .lx-rail__link.is-active::before,html[data-lx-template="lectura"] .lx-rail__link.is-active::before,html[data-lx-template="medianoche"] .lx-rail__link.is-active::before,html[data-lx-template="contraste"] .lx-rail__link.is-active::before{inset:0;right:0;border-radius:8px}
  html[data-lx-template="compacto"] .lx-rail__link .lx-ico,html[data-lx-template="lectura"] .lx-rail__link .lx-ico,html[data-lx-template="medianoche"] .lx-rail__link .lx-ico,html[data-lx-template="contraste"] .lx-rail__link .lx-ico{width:1.1rem;height:1.1rem}
  html[data-lx-template="compacto"] .lx-rail__label,html[data-lx-template="lectura"] .lx-rail__label,html[data-lx-template="medianoche"] .lx-rail__label,html[data-lx-template="contraste"] .lx-rail__label{display:inline;position:relative;z-index:1}
  html[data-lx-template="compacto"] .lx-rail__link[data-label]:hover::after,html[data-lx-template="lectura"] .lx-rail__link[data-label]:hover::after,html[data-lx-template="medianoche"] .lx-rail__link[data-label]:hover::after,html[data-lx-template="contraste"] .lx-rail__link[data-label]:hover::after,html[data-lx-template="compacto"] .lx-rail__link[data-label]:focus-visible::after,html[data-lx-template="lectura"] .lx-rail__link[data-label]:focus-visible::after,html[data-lx-template="medianoche"] .lx-rail__link[data-label]:focus-visible::after,html[data-lx-template="contraste"] .lx-rail__link[data-label]:focus-visible::after{display:none}
  html[data-lx-template="compacto"] .lx-rail__link:hover::before,html[data-lx-template="lectura"] .lx-rail__link:hover::before,html[data-lx-template="medianoche"] .lx-rail__link:hover::before{background:var(--lx-surface-2)}
  html[data-lx-template="compacto"] .lx-rail__link.is-active,html[data-lx-template="lectura"] .lx-rail__link.is-active,html[data-lx-template="medianoche"] .lx-rail__link.is-active{color:var(--lx-ink);font-weight:600}
  html[data-lx-template="compacto"] .lx-rail__link.is-active::before,html[data-lx-template="lectura"] .lx-rail__link.is-active::before,html[data-lx-template="medianoche"] .lx-rail__link.is-active::before{background:color-mix(in srgb,var(--lx-ink) 12%,transparent)}
  html[data-lx-template="compacto"] .lx-rail__out,html[data-lx-template="lectura"] .lx-rail__out,html[data-lx-template="medianoche"] .lx-rail__out{height:40px;margin-top:auto}
  html[data-lx-template="compacto"] .lx-rail #lms-font-tools,html[data-lx-template="lectura"] .lx-rail #lms-font-tools,html[data-lx-template="medianoche"] .lx-rail #lms-font-tools,html[data-lx-template="contraste"] .lx-rail #lms-font-tools{width:100%;flex-direction:row;justify-content:center;gap:6px;margin:12px 0 6px}
  html[data-lx-template="compacto"] .lx-rail #lms-font-tools .lms-font-label,html[data-lx-template="lectura"] .lx-rail #lms-font-tools .lms-font-label,html[data-lx-template="medianoche"] .lx-rail #lms-font-tools .lms-font-label,html[data-lx-template="contraste"] .lx-rail #lms-font-tools .lms-font-label{display:none}
  html[data-lx-template="compacto"] .lx-body,html[data-lx-template="lectura"] .lx-body,html[data-lx-template="medianoche"] .lx-body{padding:10px 18px 24px 20px}
  html[data-lx-template="compacto"] .lx-top,html[data-lx-template="lectura"] .lx-top,html[data-lx-template="medianoche"] .lx-top{margin-bottom:12px;min-height:44px}
  html[data-lx-template="compacto"] .lx-user__av,html[data-lx-template="lectura"] .lx-user__av,html[data-lx-template="medianoche"] .lx-user__av{width:36px;height:36px;border-radius:9px}
  /* Contraste: menú negro ancho, activo amarillo */
  html[data-lx-template="contraste"] .lx-rail{padding:20px 14px}
  html[data-lx-template="contraste"] .lx-rail__brand{color:#fff;font-size:1.0625rem;font-weight:700}
  html[data-lx-template="contraste"] .lx-rail__link{height:54px;font-size:1rem;font-weight:600;border:2px solid transparent;border-radius:10px}
  html[data-lx-template="contraste"] .lx-rail__link:hover::before{background:#333}
  html[data-lx-template="contraste"] .lx-rail__link.is-active{color:#000}
  html[data-lx-template="contraste"] .lx-rail__link.is-active::before{background:#ffd400}
  html[data-lx-template="contraste"] .lx-rail__out{margin-top:auto;border-color:#fff}
  html[data-lx-template="contraste"] .lx-body{padding:16px 22px 32px}
  html[data-lx-template="contraste"] .lx-dash{grid-template-columns:minmax(0,1fr) 340px}

  /* Papel: menú superior, una sola columna centrada */
  html[data-lx-template="papel"] .lx-app{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;max-width:1160px;margin:0 auto;padding:0 28px}
  html[data-lx-template="papel"] .lx-body{display:contents}
  html[data-lx-template="papel"] .lx-rail{grid-column:1;grid-row:1;position:static;height:auto;width:auto;margin:0;flex-direction:row;align-items:center;gap:26px;padding:16px 0;border-radius:0;border-bottom:1px solid var(--lx-line)}
  html[data-lx-template="papel"] .lx-rail__head{display:flex;align-items:center;gap:10px}
  html[data-lx-template="papel"] .lx-rail__logo{width:38px;height:38px;background:var(--lx-ink);color:var(--lx-on-ink)}
  html[data-lx-template="papel"] .lx-rail__brand{display:block;font:600 1.125rem var(--lx-head-font);color:var(--lx-text);white-space:nowrap}
  html[data-lx-template="papel"] .lx-rail__nav{flex-direction:row;margin:0;width:auto;gap:2px}
  html[data-lx-template="papel"] .lx-rail__link{display:flex;width:auto;height:40px;padding:0 14px;color:var(--lx-muted);font:500 .875rem var(--lx-font)}
  html[data-lx-template="papel"] .lx-rail__link .lx-ico{display:none}
  html[data-lx-template="papel"] .lx-rail__label{display:inline;position:relative;z-index:1}
  html[data-lx-template="papel"] .lx-rail__link::before,html[data-lx-template="papel"] .lx-rail__link.is-active::before{inset:auto 14px 3px 14px;right:14px;height:2px;border-radius:2px;background:transparent}
  html[data-lx-template="papel"] .lx-rail__link:hover{color:var(--lx-text)}
  html[data-lx-template="papel"] .lx-rail__link.is-active{color:var(--lx-text)}
  html[data-lx-template="papel"] .lx-rail__link.is-active::before{background:var(--lx-ink)}
  html[data-lx-template="papel"] .lx-rail__link[data-label]:hover::after{display:none}
  html[data-lx-template="papel"] .lx-rail__out{display:none}
  html[data-lx-template="papel"] .lx-rail #lms-font-tools{flex-direction:row;width:auto;margin:0 0 0 6px;padding:3px 8px!important;gap:3px}
  html[data-lx-template="papel"] .lx-rail #lms-font-tools .lms-font-label{display:none}
  html[data-lx-template="papel"] .lx-top{grid-column:2;grid-row:1;margin:0;padding:16px 0 16px 16px;border-bottom:1px solid var(--lx-line)}
  html[data-lx-template="papel"] .lx-main{grid-column:1/-1;grid-row:2;max-width:1040px;margin:0 auto;padding-top:20px}
  html[data-lx-template="papel"] .lx-main--editor{max-width:none;padding:20px 20px 40px;margin-top:20px}
  html[data-lx-template="papel"] .lx-dash{grid-template-columns:minmax(0,1fr)}
  html[data-lx-template="papel"] .lx-dash__side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  html[data-lx-template="papel"] .lx-stats{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
  html[data-lx-template="papel"] .lx-stats .lx-stat{flex:1 1 200px}
  html[data-lx-template="papel"] .lx-people{grid-column:1}
  html[data-lx-template="papel"] .lx-cta{grid-column:2}
  html[data-lx-template="papel"] .lx-grid{grid-template-columns:repeat(auto-fill,minmax(310px,1fr))}
}

/* ---- Ajustes tras revisión ---- */
@media (min-width:761px){
  html[data-lx-template="papel"] .lx-rail,html[data-lx-template="papel"] .lx-top{align-self:stretch;min-height:84px;box-sizing:border-box;padding-top:0;padding-bottom:0}
  html[data-lx-template="papel"] .lx-top{min-width:0;gap:10px}
  html[data-lx-template="papel"] .lx-search{min-width:0;flex:1 1 140px;max-width:420px}
  html[data-lx-template="papel"] .lx-top__right{gap:8px;flex:none}
  html[data-lx-template="papel"] .lx-roles__btn span,html[data-lx-template="papel"] .lx-user__txt{display:none}
  html[data-lx-template="papel"] .lx-roles__btn{padding:0 11px}
  html[data-lx-template="compacto"] .lx-ccard{grid-template-columns:minmax(110px,135px) minmax(0,1.5fr) minmax(0,1.7fr) auto}
  html[data-lx-template="compacto"] .lx-ccard__name{display:none}
  html[data-lx-template="compacto"] .lx-chart{max-height:175px}
}
html[data-lx-template="contraste"] .lx-steps li{font-size:.875rem}
html[data-lx-template="contraste"] .lx-tile span{font-size:.75rem}
html[data-lx-template="contraste"] .lx-ccard__meta,html[data-lx-template="contraste"] .lx-ccard__who,html[data-lx-template="contraste"] .lx-ccard__cat{font-size:.8125rem}
html[data-lx-template="contraste"] .lx-stat__txt strong{font-size:1.75rem}
.lx-tplcard em{position:static;align-self:flex-start;margin-top:6px}
@media (max-width:760px){
  .lx-search{min-width:0;padding:0 14px}
  .lx-top{gap:8px}
  .lx-top__right{flex:none;margin-left:0}
  html[data-lx-template] .lx-ccard{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:16px}
  html[data-lx-template] .lx-ccard__top{flex-direction:row;align-items:center}
  html[data-lx-template] .lx-ccard__name{display:inline}
  html[data-lx-template] .lx-ccard h3{-webkit-line-clamp:2;font-size:1rem}
  html[data-lx-template] .lx-ccard p{-webkit-line-clamp:3}
}

/* ---- Mejoras: avance, barras por curso, copia, enlace de salto ---- */
.lx-skip{position:absolute;left:12px;top:-60px;z-index:100;background:var(--lx-ink);color:var(--lx-on-ink);padding:10px 16px;border-radius:12px;font:500 .8125rem var(--lx-font);text-decoration:none}
.lx-skip:focus{top:12px}
.lx-main:focus{outline:none}
.lx-segs{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.lx-ccard__prog{display:flex;align-items:center;gap:10px;margin-top:2px}
.lx-ccard__prog .lx-bar{flex:1;height:6px}
.lx-ccard__prog small{font-size:.6875rem;color:var(--lx-muted);white-space:nowrap}
.lx-ccard.is-featured .lx-bar{background:color-mix(in srgb,var(--lx-on-ink) 22%,transparent)}
.lx-ccard.is-featured .lx-bar span{background:var(--lx-on-ink)}
.lx-ccard.is-featured .lx-ccard__prog small{color:color-mix(in srgb,var(--lx-on-ink) 74%,var(--lx-ink))}
.lx-bars{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:14px}
.lx-bars li{display:grid;grid-template-columns:minmax(90px,200px) minmax(0,1fr) 84px;align-items:center;gap:14px;font-size:.8125rem}
.lx-bars__name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lx-bars__track{height:12px;border-radius:999px;background:var(--lx-track);overflow:hidden;display:block}
.lx-bars__track i{display:block;height:100%;border-radius:inherit;background:var(--lx-ink);transition:width .3s}
.lx-bars__val{text-align:right;color:var(--lx-muted);font-variant-numeric:tabular-nums;font-size:.75rem}
.lx-backup{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:var(--lx-surface);border-radius:var(--lx-r-xl);padding:20px 24px}
.lx-backup p{margin-top:4px;font-size:.8125rem;line-height:1.6;color:var(--lx-muted);max-width:68ch}
html[data-lx-template="compacto"] .lx-ccard__prog{grid-column:1/-1}
html[data-lx-template="contraste"] .lx-bars__track{background:#fff;border:2px solid #000}
html[data-lx-template="contraste"] .lx-bars li,html[data-lx-template="contraste"] .lx-bars__val{font-size:.875rem;color:#000}
html[data-lx-template="contraste"] .lx-backup{background:#fff;border:2px solid #000}
@media (max-width:760px){.lx-bars li{grid-template-columns:minmax(70px,1fr) minmax(0,1.4fr) 70px;gap:8px}}


/* v7.1 — panel Fibonacci retirado, versión y emulación de estudiante */
.lx-version{position:absolute;left:18px;right:18px;bottom:82px;text-align:center;font:500 10px/1.4 var(--lx-font, sans-serif);letter-spacing:.04em;color:color-mix(in srgb,var(--lx-rail-fg,#fff) 62%,transparent);pointer-events:none}
.lx-student-preview{white-space:nowrap;border:1px solid var(--lx-border, #d8dce2);background:var(--lx-surface, #f4f5f7);color:var(--lx-ink, #20242b)}
.lx-student-preview:hover{background:var(--lx-brand, #ffcf00);color:#111}
@media(max-width:760px){.lx-version{display:none}}

/* LMS Lite 7.3: clearer hierarchy for primary editing actions */
.lx-action-highlight {
  border: 1px solid hsl(var(--hue-blue) / .30) !important;
  background: hsl(var(--hue-blue) / .09) !important;
  color: hsl(var(--foreground)) !important;
  font-weight: 650 !important;
  box-shadow: 0 1px 0 hsl(var(--hue-blue) / .08);
}
.lx-action-highlight:hover {
  border-color: hsl(var(--hue-blue) / .58) !important;
  background: hsl(var(--hue-blue) / .15) !important;
}
.lx-publish-action {
  border-color: hsl(var(--hue-yellow) / .85) !important;
  background: hsl(var(--hue-yellow)) !important;
  color: hsl(222 28% 12%) !important;
  box-shadow: 0 2px 0 hsl(var(--hue-yellow) / .24), 0 0 0 2px hsl(var(--hue-yellow) / .12);
}
.lx-tab-action {
  border: 1px solid hsl(var(--hue-blue) / .22);
  background: hsl(var(--hue-blue) / .045);
  font-weight: 600;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.lx-tab-action:hover,
.lx-tab-action.is-on {
  border-color: hsl(var(--hue-blue) / .48);
  background: hsl(var(--hue-blue) / .12);
  box-shadow: inset 0 -2px 0 hsl(var(--hue-blue) / .35);
}

/* Reglas de modo oscuro compartidas con Medianoche */
html[data-lx-template="medianoche"] body{color:var(--lx-text)!important}
html[data-lx-template="medianoche"] .text-white{color:var(--lx-text)!important}
html[data-lx-template="medianoche"] .lx-main:not(.lx-main--editor) .bg-card{background-color:var(--lx-card)!important}
html[data-lx-template="medianoche"] .lx-main:not(.lx-main--editor) .lms-field,html[data-lx-template="medianoche"] .lms-field{color:var(--lx-text)!important;background:var(--lx-card)!important;border-color:var(--lx-line)!important}
html[data-lx-template="medianoche"] .rounded-window,html[data-lx-template="medianoche"] .lms-window{background:var(--lx-surface)!important;border-color:var(--lx-line)!important}
html[data-lx-template="medianoche"] .rounded-panel,html[data-lx-template="medianoche"] .rounded-tile{border-color:var(--lx-line)!important}
html[data-lx-template="medianoche"] .lx-rail{border:1px solid var(--lx-line)}
html[data-lx-template="medianoche"] .lx-chip.is-live i{background:#4ade80}
html[data-lx-template="medianoche"] .t-amber{background:#3a2a12;color:#ffc87a}
html[data-lx-template="medianoche"] .t-violet{background:#26264d;color:#b4b3ff}
html[data-lx-template="medianoche"] .t-grey{background:#2a2f38;color:#dfe3ea}
html[data-lx-template="medianoche"] .lx-stat{box-shadow:none;border:1px solid var(--lx-line)}
html[data-lx-template="medianoche"] .lx-tile.k0{background:#2b3038}html[data-lx-template="medianoche"] .lx-tile.k1{background:#3a404b}html[data-lx-template="medianoche"] .lx-tile.k2{background:#4a515e}
html[data-lx-template="medianoche"] .lx-skel{background:linear-gradient(90deg,#171a20,#1f232a,#171a20);background-size:200% 100%}
html[data-lx-template="medianoche"] .lx-btn--line{border-color:var(--lx-line-strong)}
html[data-lx-template="medianoche"] .lx-main--editor{background-color:#f5f6f8}

/* ==========================================================================
   v8 · Nuevas plantillas: lectura · enfoque · medianoche · aula · tactil
   ========================================================================== */
.lx-editbtn{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 13px;border-radius:999px;background:var(--lx-ink);color:var(--lx-on-ink)!important;font:600 .75rem var(--lx-font);text-decoration:none;white-space:nowrap;flex:none;transition:opacity .15s}
.lx-editbtn:hover{opacity:.85}
.lx-editbtn svg{width:.8rem;height:.8rem}
.lx-editcta{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:14px;background:var(--lx-ink);color:var(--lx-on-ink);font:600 .8125rem var(--lx-font);text-decoration:none;white-space:nowrap;flex:none;box-shadow:0 6px 16px -8px color-mix(in srgb,var(--lx-ink) 70%,transparent);transition:opacity .15s}
.lx-editcta:hover{opacity:.88}
.lx-editcta .lx-ico{width:1rem;height:1rem}
html[data-lx-template="contraste"] .lx-editbtn,html[data-lx-template="contraste"] .lx-editcta{background:#ffd400;color:#000!important;border:2px solid #000;box-shadow:none}
@media (max-width:900px){.lx-editcta span{display:none}.lx-editcta{padding:0 14px}}

/* Vistas previas de las plantillas nuevas */
.lx-prev--lectura{--pb:#faf6e8}
.lx-prev--lectura .a{left:0;top:0;bottom:0;width:22%;background:#f2ecd6;border-radius:0}
.lx-prev--lectura .b{left:27%;top:10%;width:36%;height:7%;background:#1d1a12}
.lx-prev--lectura .c{left:27%;top:24%;width:66%;height:5%;background:#bfae7d}
.lx-prev--lectura .d{left:27%;top:34%;width:56%;height:5%;background:#bfae7d}
.lx-prev--lectura .e{left:27%;top:52%;width:30%;height:38%;background:#fffdf6;box-shadow:inset 0 0 0 1px #e0d6b4}
.lx-prev--lectura .f{left:61%;top:52%;width:32%;height:38%;background:#1f3a5f}
.lx-prev--enfoque{--pb:#fafafa}
.lx-prev--enfoque .a{left:4%;top:28%;width:7%;height:44%;background:#fff;box-shadow:inset 0 0 0 1px #e4e4e7;border-radius:8px}
.lx-prev--enfoque .b{left:28%;top:10%;width:44%;height:7%;background:#0f766e}
.lx-prev--enfoque .c{left:28%;top:26%;width:44%;height:22%;background:#fff;box-shadow:inset 0 0 0 1px #e4e4e7}
.lx-prev--enfoque .d{left:28%;top:54%;width:44%;height:16%;background:#fff;box-shadow:inset 0 0 0 1px #e4e4e7}
.lx-prev--enfoque .e{left:28%;top:74%;width:44%;height:16%;background:#fff;box-shadow:inset 0 0 0 1px #e4e4e7}
.lx-prev--enfoque .f{display:none}
.lx-prev--medianoche{--pb:#0b1220}
.lx-prev--medianoche .a{left:0;top:0;bottom:0;width:22%;background:#0f1729;border-radius:0}
.lx-prev--medianoche .b{left:26%;top:7%;width:40%;height:8%;background:#1a2540}
.lx-prev--medianoche .c{left:26%;top:22%;width:68%;height:24%;background:#131c2e}
.lx-prev--medianoche .d{left:26%;top:52%;width:32%;height:38%;background:#131c2e}
.lx-prev--medianoche .e{left:62%;top:52%;width:32%;height:38%;background:#7aa2ff}
.lx-prev--medianoche .f{left:80%;top:7%;width:14%;height:8%;background:#7aa2ff}
.lx-prev--aula{--pb:#fff}
.lx-prev--aula .a{left:6%;top:6%;width:88%;height:10%;background:#eef0ff;border-radius:99px}
.lx-prev--aula .b{left:9%;top:8.5%;width:16%;height:5%;background:#4f46e5;border-radius:99px}
.lx-prev--aula .c{left:6%;top:22%;width:88%;height:22%;background:linear-gradient(135deg,#eef0ff,#fdf0f6)}
.lx-prev--aula .d{left:6%;top:50%;width:27%;height:40%;background:#dbeafe;border-radius:10px}
.lx-prev--aula .e{left:36.5%;top:50%;width:27%;height:40%;background:#fde7c8;border-radius:10px}
.lx-prev--aula .f{left:67%;top:50%;width:27%;height:40%;background:#dcf5e3;border-radius:10px}
.lx-prev--tactil{--pb:#fff}
.lx-prev--tactil .a{left:0;right:0;bottom:0;height:20%;background:#fff;border-radius:0;box-shadow:inset 0 1px 0 #e7e5e4}
.lx-prev--tactil .b{left:8%;top:8%;width:56%;height:11%;background:#f5f5f4;border-radius:8px}
.lx-prev--tactil .c{left:8%;top:26%;width:84%;height:26%;background:#f5f5f4;border-radius:8px}
.lx-prev--tactil .d{left:8%;top:57%;width:84%;height:14%;background:#c2410c;border-radius:8px}
.lx-prev--tactil .e{left:34%;top:83%;width:12%;height:7%;background:#c2410c;border-radius:99px}
.lx-prev--tactil .f{left:8%;top:83%;width:12%;height:7%;background:#d6d3d1;border-radius:99px}

/* ============================== LECTURA ============================== */
html[data-lx-template="lectura"]{
  --lx-font:Verdana,"DejaVu Sans",Tahoma,sans-serif;--lx-head-font:Verdana,"DejaVu Sans",Tahoma,sans-serif;
  --lx-paper:#faf6e8;--lx-card:#fffdf6;--lx-surface:#f2ecd6;--lx-surface-2:#e9e1c4;--lx-line:#e0d6b4;--lx-line-strong:#bfae7d;--lx-track:#e0d6b4;
  --lx-text:#1d1a12;--lx-muted:#4a4437;--lx-ink:#1f3a5f;--lx-on-ink:#fffdf6;--lx-rail-bg:#f2ecd6;--lx-rail-fg:#1d1a12;--lx-r-xl:18px;--lx-r-lg:14px;--lx-rail:232px;--muted-foreground:40 12% 26%}
html[data-lx-template="lectura"] body{color:var(--lx-text)!important}
html[data-lx-template="lectura"] .lx{letter-spacing:.012em;word-spacing:.06em}
html[data-lx-template="lectura"] .lx h1{font-size:1.9rem;font-weight:700;line-height:1.3}
html[data-lx-template="lectura"] .lx h2{font-size:1.2rem;font-weight:700}
html[data-lx-template="lectura"] .lx p,html[data-lx-template="lectura"] .lx-ccard p,html[data-lx-template="lectura"] .lx-hero__txt p{font-size:.9375rem;line-height:1.85;color:var(--lx-muted)}
html[data-lx-template="lectura"] .lx-ccard h3{font-size:1.0625rem;line-height:1.45}
html[data-lx-template="lectura"] .lx-surface,html[data-lx-template="lectura"] .lx-ccard,html[data-lx-template="lectura"] .lx-stat,html[data-lx-template="lectura"] .lx-cta{background:var(--lx-card);border:1px solid var(--lx-line);box-shadow:none}
html[data-lx-template="lectura"] .lx-dash__side{background:transparent;padding:0}
html[data-lx-template="lectura"] .lx-ccard:hover{background:var(--lx-surface)}
html[data-lx-template="lectura"] .lx-ccard.is-featured{background:var(--lx-ink);color:var(--lx-on-ink)}
html[data-lx-template="lectura"] .lx-btn,html[data-lx-template="lectura"] .lx-editcta{height:50px;font-size:.9375rem;border-radius:12px}
html[data-lx-template="lectura"] .lx-filters button,html[data-lx-template="lectura"] .lx-tabs button,html[data-lx-template="lectura"] .lx-seg button{height:42px;font-size:.875rem}
html[data-lx-template="lectura"] .lx-search{height:52px;border-radius:12px;background:var(--lx-card);border:1px solid var(--lx-line-strong)}
html[data-lx-template="lectura"] .lx-search input{font-size:.9375rem}
html[data-lx-template="lectura"] .lx-ccard__cat,html[data-lx-template="lectura"] .lx-ccard__who,html[data-lx-template="lectura"] .lx-ccard__meta,html[data-lx-template="lectura"] .lx-chip,html[data-lx-template="lectura"] .lx-stat__txt small,html[data-lx-template="lectura"] .lx-sub,html[data-lx-template="lectura"] .lx-steps li{font-size:.8125rem}
html[data-lx-template="lectura"] .lx-chart__tick{font-size:.75rem}
html[data-lx-template="lectura"] .lx-tile.k0{background:#1f3a5f}html[data-lx-template="lectura"] .lx-tile.k1{background:#4a5f7d}html[data-lx-template="lectura"] .lx-tile.k2{background:#6b7c95}
html[data-lx-template="lectura"] .lx-body{padding:16px 28px 36px}
html[data-lx-template="lectura"] .lx-page .lms-window{background:var(--lx-card)!important;border:1px solid var(--lx-line)!important}
@media (min-width:761px){
  html[data-lx-template="lectura"] .lx-rail__link{height:46px;font-size:.9375rem;font-weight:600}
  html[data-lx-template="lectura"] .lx-rail__link.is-active::before{background:color-mix(in srgb,var(--lx-ink) 14%,transparent)}
  html[data-lx-template="lectura"] .lx-rail__link.is-active{color:var(--lx-ink)}
}

/* ============================== MEDIANOCHE ============================= */
html[data-lx-template="medianoche"]{color-scheme:dark;
  --lx-paper:#0b1220;--lx-card:#131c2e;--lx-surface:#0f1729;--lx-surface-2:#1a2540;--lx-line:#22304d;--lx-line-strong:#3a4b70;--lx-track:#22304d;
  --lx-text:#e8eefc;--lx-muted:#a3b3d2;--lx-ink:#7aa2ff;--lx-on-ink:#07101f;--lx-rail-bg:#0f1729;--lx-rail-fg:#c8d4ee;--lx-rail:216px;
  --background:222 40% 8%;--foreground:222 60% 95%;--card:222 36% 13%;--card-foreground:222 60% 95%;--popover:222 36% 13%;--popover-foreground:222 60% 95%;--primary:221 100% 74%;--primary-foreground:222 70% 8%;--secondary:222 30% 18%;--secondary-foreground:222 40% 92%;--muted:222 30% 15%;--muted-foreground:219 24% 72%;--accent:222 30% 20%;--accent-foreground:222 60% 95%;--border:222 30% 22%;--input:222 30% 20%;--ring:221 100% 74%;--hue-turquoise:174 72% 52%;--hue-blue:212 92% 64%;--hue-coral:12 88% 64%;--hue-yellow:44 94% 60%;--hue-violet:262 86% 70%;--hue-pink:330 84% 68%}
html[data-lx-template="medianoche"] .lx-ccard.is-featured{background:var(--lx-ink)}
html[data-lx-template="medianoche"] .lx-rail{border-right:1px solid var(--lx-line)}
html[data-lx-template="medianoche"] .lx-tile.k0{background:#1a2540}html[data-lx-template="medianoche"] .lx-tile.k1{background:#2a3a5f}html[data-lx-template="medianoche"] .lx-tile.k2{background:#3b4e7c}
html[data-lx-template="medianoche"] .lx-body{padding:14px 22px 30px}

/* =============================== ENFOQUE =============================== */
html[data-lx-template="enfoque"]{
  --lx-paper:#fafafa;--lx-card:#fff;--lx-surface:#f1f1f2;--lx-surface-2:#e7e7e9;--lx-line:#e4e4e7;--lx-line-strong:#c4c4ca;--lx-track:#e4e4e7;
  --lx-text:#18181b;--lx-muted:#55555e;--lx-ink:#0f766e;--lx-on-ink:#fff;--lx-rail-bg:#fff;--lx-rail-fg:#3f3f46;--lx-r-xl:20px;--lx-r-lg:16px}
html[data-lx-template="enfoque"] .lx-surface,html[data-lx-template="enfoque"] .lx-ccard,html[data-lx-template="enfoque"] .lx-stat,html[data-lx-template="enfoque"] .lx-cta{background:var(--lx-card);border:1px solid var(--lx-line);box-shadow:none}
html[data-lx-template="enfoque"] .lx-hero{background:transparent;border:0;padding:8px 0 10px;min-height:0}
html[data-lx-template="enfoque"] .lx h1{font-size:2rem}
html[data-lx-template="enfoque"] .lx-dash__side{background:transparent;padding:0}
html[data-lx-template="enfoque"] .lx-ccard:hover{border-color:var(--lx-line-strong);background:var(--lx-card)}
html[data-lx-template="enfoque"] .lx-ccard.is-featured{background:var(--lx-ink);border-color:var(--lx-ink)}
html[data-lx-template="enfoque"] .lx-tile.k0{background:#134e4a}html[data-lx-template="enfoque"] .lx-tile.k1{background:#3f6f6b}html[data-lx-template="enfoque"] .lx-tile.k2{background:#6b7f7d}
@media (min-width:761px){
  html[data-lx-template="enfoque"] .lx-rail{position:fixed;left:16px;top:50%;transform:translateY(-50%);height:auto;width:58px;margin:0;padding:12px 0;border-radius:29px;border:1px solid var(--lx-line);box-shadow:0 14px 34px -18px rgba(0,0,0,.3);gap:4px}
  html[data-lx-template="enfoque"] .lx-rail__logo{width:38px;height:38px;background:var(--lx-ink);color:var(--lx-on-ink)}
  html[data-lx-template="enfoque"] .lx-rail__nav{margin:14px 0 8px;gap:6px}
  html[data-lx-template="enfoque"] .lx-rail__link{height:44px;width:44px;margin:0 auto;border-radius:50%}
  html[data-lx-template="enfoque"] .lx-rail__link::before,html[data-lx-template="enfoque"] .lx-rail__link.is-active::before{inset:0;right:0;border-radius:50%}
  html[data-lx-template="enfoque"] .lx-rail__link.is-active{color:var(--lx-on-ink)}
  html[data-lx-template="enfoque"] .lx-rail__link.is-active::before{background:var(--lx-ink)}
  html[data-lx-template="enfoque"] .lx-rail__link:hover::before{background:var(--lx-surface)}
  html[data-lx-template="enfoque"] .lx-rail__out{margin-top:4px;height:44px}
  html[data-lx-template="enfoque"] .lx-rail__out::before{inset:0}
  html[data-lx-template="enfoque"] .lx-rail #lms-font-tools{display:none!important}
  html[data-lx-template="enfoque"] .lx-version{display:none}
  html[data-lx-template="enfoque"] .lx-body{width:100%;max-width:920px;margin:0 auto;padding:22px 24px 48px}
  html[data-lx-template="enfoque"] .lx-body:has(.lx-main--editor){max-width:none;padding-left:92px}
  html[data-lx-template="enfoque"] .lx-dash{grid-template-columns:minmax(0,1fr)}
  html[data-lx-template="enfoque"] .lx-dash__side{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  html[data-lx-template="enfoque"] .lx-stats{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
  html[data-lx-template="enfoque"] .lx-stats .lx-stat{flex:1 1 190px}
  html[data-lx-template="enfoque"] .lx-people{grid-column:1}
  html[data-lx-template="enfoque"] .lx-cta{grid-column:2}
  html[data-lx-template="enfoque"] .lx-trio{grid-template-columns:1fr}
  html[data-lx-template="enfoque"] .lx-ccard{min-height:0}
  html[data-lx-template="enfoque"] .lx-grid{grid-template-columns:1fr}
  html[data-lx-template="enfoque"] .lx-roles{display:none}
}

/* ================================ AULA ================================= */
html[data-lx-template="aula"]{
  --lx-paper:#fff;--lx-card:#fff;--lx-surface:#f3f5ff;--lx-surface-2:#e6eaff;--lx-line:#dfe4f7;--lx-line-strong:#b8c1e6;--lx-track:#dfe4f7;
  --lx-text:#1b2140;--lx-muted:#545d85;--lx-ink:#4f46e5;--lx-on-ink:#fff;--lx-rail-bg:transparent;--lx-rail-fg:#1b2140;--lx-r-xl:28px;--lx-r-lg:24px}
html[data-lx-template="aula"] .lx h1{font-size:1.9rem;font-weight:700}
html[data-lx-template="aula"] .lx-hero{background:linear-gradient(135deg,#eceeff,#fdeef5 70%,#fff3e1)}
html[data-lx-template="aula"] .lx-ccard{background:color-mix(in srgb,var(--hue,#6366f1) 13%,#fff);min-height:210px;padding:24px}
html[data-lx-template="aula"] .lx-ccard:hover{background:color-mix(in srgb,var(--hue,#6366f1) 22%,#fff)}
html[data-lx-template="aula"] .lx-ccard.is-featured{background:var(--lx-ink)}
html[data-lx-template="aula"] .lx-ccard h3{font-size:1.125rem}
html[data-lx-template="aula"] .lx-ccard__cat{color:var(--lx-text);font-weight:600}
html[data-lx-template="aula"] .lx-ccard .lx-chip{background:rgba(255,255,255,.85)}
html[data-lx-template="aula"] .lx-ccard__go{background:var(--lx-text)}
html[data-lx-template="aula"] .lx-btn,html[data-lx-template="aula"] .lx-editcta{border-radius:999px}
html[data-lx-template="aula"] .lx-stat{border-radius:24px;box-shadow:none;border:1px solid var(--lx-line)}
html[data-lx-template="aula"] .lx-stat__ico{border-radius:50%}
html[data-lx-template="aula"] .lx-tile{border-radius:22px}
html[data-lx-template="aula"] .lx-tile.k0{background:#4f46e5}html[data-lx-template="aula"] .lx-tile.k1{background:#db2777}html[data-lx-template="aula"] .lx-tile.k2{background:#0f766e}
html[data-lx-template="aula"] .lx-search,html[data-lx-template="aula"] .lx-roles{border-radius:999px}
html[data-lx-template="aula"] .lx-filters button,html[data-lx-template="aula"] .lx-seg,html[data-lx-template="aula"] .lx-seg button,html[data-lx-template="aula"] .lx-tabs{border-radius:999px}
@media (min-width:761px){
  html[data-lx-template="aula"] .lx-app{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto 1fr;max-width:1380px;margin:0 auto;padding:0 24px}
  html[data-lx-template="aula"] .lx-body{display:contents}
  html[data-lx-template="aula"] .lx-rail{grid-column:1;grid-row:1;position:static;align-self:center;height:auto;width:auto;margin:14px 0;flex-direction:row;align-items:center;gap:18px;padding:6px 8px 6px 6px;border-radius:999px;background:var(--lx-surface)}
  html[data-lx-template="aula"] .lx-rail__head{display:flex;align-items:center;gap:10px}
  html[data-lx-template="aula"] .lx-rail__logo{width:40px;height:40px;background:var(--lx-ink);color:var(--lx-on-ink)}
  html[data-lx-template="aula"] .lx-rail__brand{display:block;font:700 1rem var(--lx-font);color:var(--lx-text);white-space:nowrap}
  html[data-lx-template="aula"] .lx-rail__nav{flex-direction:row;margin:0;width:auto;gap:4px}
  html[data-lx-template="aula"] .lx-rail__link{display:flex;align-items:center;gap:8px;width:auto;height:40px;padding:0 16px;font:600 .8125rem var(--lx-font)}
  html[data-lx-template="aula"] .lx-rail__label{display:inline;position:relative;z-index:1}
  html[data-lx-template="aula"] .lx-rail__link::before,html[data-lx-template="aula"] .lx-rail__link.is-active::before{inset:0;right:0;border-radius:999px}
  html[data-lx-template="aula"] .lx-rail__link.is-active{color:var(--lx-on-ink)}
  html[data-lx-template="aula"] .lx-rail__link.is-active::before{background:var(--lx-ink)}
  html[data-lx-template="aula"] .lx-rail__link:hover::before{background:var(--lx-surface-2)}
  html[data-lx-template="aula"] .lx-rail__link.is-active:hover::before{background:var(--lx-ink)}
  html[data-lx-template="aula"] .lx-rail__link[data-label]:hover::after{display:none}
  html[data-lx-template="aula"] .lx-rail__out,html[data-lx-template="aula"] .lx-version{display:none}
  html[data-lx-template="aula"] .lx-rail #lms-font-tools{flex-direction:row;width:auto;margin:0;padding:3px 8px!important;gap:3px}
  html[data-lx-template="aula"] .lx-rail #lms-font-tools .lms-font-label{display:none}
  html[data-lx-template="aula"] .lx-top{grid-column:2;grid-row:1;margin:0;padding:14px 0 14px 16px;min-width:0}
  html[data-lx-template="aula"] .lx-search{min-width:0;flex:1 1 140px}
  html[data-lx-template="aula"] .lx-main{grid-column:1/-1;grid-row:2;max-width:none}
  html[data-lx-template="aula"] .lx-main--editor{margin-top:8px}
}

/* =============================== TACTIL ================================ */
html[data-lx-template="tactil"]{
  --lx-paper:#fff;--lx-card:#fff;--lx-surface:#f5f5f4;--lx-surface-2:#e7e5e4;--lx-line:#e7e5e4;--lx-line-strong:#c8c4bf;--lx-track:#e0ddd9;
  --lx-text:#1c1917;--lx-muted:#57534e;--lx-ink:#c2410c;--lx-on-ink:#fff;--lx-rail-bg:#fff;--lx-rail-fg:#44403c;--lx-r-xl:24px;--lx-r-lg:20px}
html[data-lx-template="tactil"] .lx-btn,html[data-lx-template="tactil"] .lx-editcta{height:54px;font-size:.9375rem;border-radius:16px;padding:0 26px}
html[data-lx-template="tactil"] .lx-filters button,html[data-lx-template="tactil"] .lx-tabs button,html[data-lx-template="tactil"] .lx-seg button{height:46px;font-size:.875rem;padding:0 20px}
html[data-lx-template="tactil"] .lx-search{height:56px;border-radius:18px}
html[data-lx-template="tactil"] .lx-search input{font-size:1rem}
html[data-lx-template="tactil"] .lx-ccard{padding:24px;gap:12px;min-height:220px}
html[data-lx-template="tactil"] .lx-ccard h3{font-size:1.125rem}
html[data-lx-template="tactil"] .lx-ccard p{font-size:.8125rem}
html[data-lx-template="tactil"] .lx-ccard__go{width:44px;height:44px}
html[data-lx-template="tactil"] .lx-stat{padding:18px 20px}
html[data-lx-template="tactil"] .lx-editbtn{height:38px;padding:0 16px;font-size:.8125rem}
html[data-lx-template="tactil"] .lx-tile.k0{background:#431407}html[data-lx-template="tactil"] .lx-tile.k1{background:#7c2d12}html[data-lx-template="tactil"] .lx-tile.k2{background:#9a3412}
@media (min-width:761px){
  html[data-lx-template="tactil"] .lx-rail{position:fixed;left:0;right:0;top:auto;bottom:0;width:auto;height:82px;margin:0;flex-direction:row;justify-content:center;align-items:center;gap:8px;padding:0 20px;border-radius:0;border-top:1px solid var(--lx-line);z-index:40}
  html[data-lx-template="tactil"] .lx-rail__head{display:flex;align-items:center;gap:10px;position:absolute;left:24px}
  html[data-lx-template="tactil"] .lx-rail__logo{width:44px;height:44px;background:var(--lx-ink);color:var(--lx-on-ink)}
  html[data-lx-template="tactil"] .lx-rail__brand{display:block;font:700 1rem var(--lx-font);color:var(--lx-text)}
  html[data-lx-template="tactil"] .lx-rail__nav{flex-direction:row;margin:0;width:auto;gap:10px}
  html[data-lx-template="tactil"] .lx-rail__link{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:116px;height:62px;font:600 .75rem var(--lx-font)}
  html[data-lx-template="tactil"] .lx-rail__link .lx-ico{width:1.5rem;height:1.5rem}
  html[data-lx-template="tactil"] .lx-rail__label{display:inline;position:relative;z-index:1}
  html[data-lx-template="tactil"] .lx-rail__link::before,html[data-lx-template="tactil"] .lx-rail__link.is-active::before{inset:0;right:0;border-radius:18px}
  html[data-lx-template="tactil"] .lx-rail__link.is-active{color:var(--lx-ink)}
  html[data-lx-template="tactil"] .lx-rail__link.is-active::before{background:color-mix(in srgb,var(--lx-ink) 12%,transparent)}
  html[data-lx-template="tactil"] .lx-rail__link:hover::before{background:var(--lx-surface)}
  html[data-lx-template="tactil"] .lx-rail__link[data-label]:hover::after{display:none}
  html[data-lx-template="tactil"] .lx-rail__out{position:absolute;right:24px;margin:0;width:116px;height:62px;flex-direction:column}
  html[data-lx-template="tactil"] .lx-rail__out::before{inset:0}
  html[data-lx-template="tactil"] .lx-rail #lms-font-tools{display:none!important}
  html[data-lx-template="tactil"] .lx-version{display:none}
  html[data-lx-template="tactil"] .lx-body{padding:16px 26px 110px}
  html[data-lx-template="tactil"] .lx-main--editor{margin-bottom:10px}
}
@media (max-width:760px){html[data-lx-template="tactil"] .lx-rail{height:72px}html[data-lx-template="tactil"] .lx-rail__link{flex-direction:column;gap:2px;font-size:.625rem;height:56px}html[data-lx-template="tactil"] .lx-rail__label{display:inline}}

/* ---- Ajustes v8 tras revisión ---- */
html[data-lx-template="lectura"] .lx-ccard.is-featured p,html[data-lx-template="lectura"] .lx-ccard.is-featured .lx-ccard__cat,html[data-lx-template="lectura"] .lx-ccard.is-featured .lx-ccard__who,html[data-lx-template="lectura"] .lx-ccard.is-featured .lx-ccard__meta{color:color-mix(in srgb,var(--lx-on-ink) 88%,var(--lx-ink))}
@media (min-width:761px){
  html[data-lx-template="aula"] .lx-roles__btn span{display:none}
  html[data-lx-template="aula"] .lx-roles__btn{padding:0 12px}
  html[data-lx-template="aula"] .lx-search{flex:1 1 180px;max-width:300px}
  html[data-lx-template="aula"] .lx-top__right{gap:8px;flex:none}
  html[data-lx-template="aula"] .lx-user__txt{display:none}
}
.lx-editbtn+.lms-chip{min-width:92px;justify-content:flex-start}
.lx-version{left:4px;right:4px;font-size:9px;letter-spacing:0;white-space:nowrap}

/* Contador de palabras */
.lx-count{display:block;text-align:right;margin-top:4px;font:500 .6875rem var(--lx-font,sans-serif);color:#64748b;font-variant-numeric:tabular-nums}
.lx-count.is-full{color:#b45309}
.lx-count.is-over{color:#dc2626}

/* ==========================================================================
   v10 · MÓVIL  (≤760 px)
   ========================================================================== */
@media (max-width:760px){
  /* Barra superior: buscador amplio + acciones esenciales */
  .lx-top{gap:8px;margin-bottom:10px;min-height:48px}
  .lx-search{height:46px;border-radius:14px;flex:1 1 0;min-width:0;padding:0 12px;gap:8px}
  .lx-search input{font-size:16px!important}
  .lx-top__right{gap:6px}
  .lx-student-preview{display:none!important}
  .lx-editcta{width:46px;height:46px;padding:0;justify-content:center;border-radius:14px}
  .lx-user{padding:0}
  .lx-user__av{width:46px;height:46px}
  /* Barra inferior: sin logo, navegación + control de texto compacto + salir */
  .lx-rail{bottom:calc(10px + env(safe-area-inset-bottom,0px));left:10px;right:10px;height:64px;padding:0 10px;gap:4px}
  .lx-rail__head,.lx-version{display:none!important}
  .lx-rail__nav{justify-content:space-evenly;gap:2px}
  .lx-rail__link{width:56px;height:48px}
  .lx-rail .lx-rail__out{width:46px;height:48px}
  .lx-rail #lms-font-tools{position:static!important;display:flex;flex-direction:row;align-items:center;gap:4px;width:auto;margin:0;padding:3px!important;border-radius:14px!important}
  .lx-rail #lms-font-tools .lms-font-label,.lx-rail #lms-font-tools output,.lx-rail #lms-font-tools button:nth-of-type(3){display:none}
  .lx-rail #lms-font-tools button{min-width:38px!important;height:38px!important;border-radius:11px!important}
  .lx-body{padding:10px 12px calc(98px + env(safe-area-inset-bottom,0px))}
  /* Evitar el zoom automático de iOS al enfocar campos */
  input,textarea,select{font-size:16px!important}
  /* Filtros y pestañas: una fila desplazable, objetivos táctiles de 44 px */
  .lx-filters,.lx-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;max-width:100%}
  .lx-tabs{display:flex;width:100%;border-radius:18px}
  .lx-filters::-webkit-scrollbar,.lx-tabs::-webkit-scrollbar{display:none}
  .lx-filters button,.lx-tabs button,.lx-seg button{height:44px;flex:none}
  .lx-seg{max-width:100%}
  .lx-segs{justify-content:flex-start;width:100%}
  .lx-block__head{flex-wrap:wrap}
  /* Botones y tarjetas */
  .lx-btn{height:48px}
  .lx-hero__cta{gap:8px}
  .lx-hero__cta .lx-btn{flex:1 1 140px}
  .lx-pagehead{align-items:stretch}
  .lx-pagehead .lx-btn{width:100%}
  .lx-chero{padding:22px 18px}
  .lx-chero__cta{width:100%}
  .lx-chero__cta .lx-btn{flex:1 1 150px}
  .lx-editbtn{height:34px;padding:0 12px}
  .lx-editbtn+.lms-chip{min-width:0}
  .lx-ccard__meta{gap:8px}
  .lx-ccard__name{max-width:90px}
  .lx-stat{padding:14px 16px}
  .lx-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .lx-tile b{font-size:1.05rem}
  /* Editor: aprovechar todo el ancho */
  .lx-main--editor{padding:8px 8px 24px;border-radius:20px}
  /* Selector de plantillas en 2 columnas */
  .lx-tplpick{padding:16px 14px 18px}
  .lx-tplpick__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .lx-tplcard{padding:8px 8px 12px}
  .lx-tplcard strong{font-size:.8125rem}
  .lx-tplcard span:not(.lx-prev){font-size:.6875rem;line-height:1.45}
  .lx-backup{padding:16px}
  .lx-backup .lx-btn{width:100%}
  /* Gráfica y barras por curso */
  .lx-analytics{padding:18px 14px 10px}
  .lx-chart__tick{font-size:.8125rem}
  /* Contenido del curso: filas más cómodas */
  .lx-page .lms-titlebar{padding:16px 16px 0}
}
@media (max-width:380px){
  .lx-rail__link{width:50px}
  .lx-hero{padding:20px 16px}
}
@media (max-width:760px){.lx-tabs button{flex:1;justify-content:center;padding:0 8px}}
@media (max-width:760px){
  .lx-page .group.flex-wrap{row-gap:6px;padding-top:10px;padding-bottom:10px}
  .lx-page .group.flex-wrap>a.min-w-0{white-space:normal;overflow:visible;text-overflow:clip;flex:1 1 calc(100% - 2.25rem);font-size:.875rem;line-height:1.4}
  .lx-page .group.flex-wrap>.lx-editbtn{margin-left:2rem}
  .lx-page .group.flex-wrap>div.flex.items-center.gap-1{margin-left:auto}
  .lx-page .group.flex-wrap>div.flex.items-center.gap-1 button{width:36px;height:36px}
}
@media (max-width:760px){
  html[data-lx-template="papel"] .lx-rail,html[data-lx-template="aula"] .lx-rail{background:var(--lx-ink);--lx-rail-fg:var(--lx-on-ink);border-bottom:0}
  html[data-lx-template="papel"] .lx-rail__link,html[data-lx-template="aula"] .lx-rail__link{color:var(--lx-on-ink)}
  html[data-lx-template="papel"] .lx-rail__link.is-active,html[data-lx-template="aula"] .lx-rail__link.is-active{color:var(--lx-ink)}
  html[data-lx-template="papel"] .lx-rail__link::before,html[data-lx-template="aula"] .lx-rail__link::before{inset:0;right:0;border-radius:16px}
  html[data-lx-template="papel"] .lx-rail__link.is-active::before,html[data-lx-template="aula"] .lx-rail__link.is-active::before{inset:0;right:0;height:auto;border-radius:16px;background:var(--lx-on-ink)}
  html[data-lx-template="tactil"] .lx-rail__out .lx-rail__label{display:none}
  html[data-lx-template="tactil"] .lx-rail__link{width:64px}
}
@media (max-width:760px){.lx-rail{box-shadow:0 0 0 3px var(--lx-paper),0 10px 28px -10px rgba(0,0,0,.35)}}
