@font-face { font-family: Gotham; src: url(/fonts/Gotham-Book.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: Gotham; src: url(/fonts/Gotham-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: Gotham; src: url(/fonts/Gotham-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --navy: #041E42; --navy-2: #0B2D5C; --navy-3: #163E73;
  --ink: #1B2A44; --gray: #5B6478; --faint: #8A93A6;
  --bg: #EEF2F7; --card: #fff; --line: #DCE3EC; --line-2: #E8EDF3;
  --signal: #1FA59A; --signal-bg: #E3F5F2;
  --amber: #B7791F; --amber-bg: #FDF2DF;
  --err: #B42318; --err-bg: #FCE9E7;
  --info: #24569B; --info-bg: #E6EEF9;
  --r-lg: 18px; --r: 12px; --r-sm: 8px;
  --focus: 0 0 0 3px rgba(31, 165, 154, .35);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Gotham, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 15px; }
a { color: var(--navy-3); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 700; margin: .1em 0 .4em; letter-spacing: -.025em; }
h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 .6em; }
h3 { font-size: 1.02rem; font-weight: 700; margin: 1.6em 0 .6em; }
h4 { font-size: .95rem; font-weight: 500; margin: .2em 0 .5em; }
p { margin: 0 0 .8em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.eyebrow { font-size: .82rem; color: var(--gray); font-weight: 500; margin: 0 0 4px; letter-spacing: 0; text-transform: none; }
.muted { color: var(--gray); } .small { font-size: .85rem; }
.lead { font-size: 1.06rem; color: var(--ink); }
.pre { white-space: pre-wrap; margin: .3em 0; }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 999px; padding: 11px 22px; font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: #fff; border-color: var(--navy); }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--signal-bg); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn.outline-light:hover { background: rgba(255,255,255,.1); }
.btn.small { padding: 7px 14px; font-size: .86rem; }
.btn.block { width: 100%; padding: 13px 22px; }
.btn:disabled { opacity: .45; cursor: default; }
button.link { background: none; border: 0; color: var(--gray); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
form.inline { display: inline; }
label { display: block; font-weight: 500; font-size: .86rem; color: var(--navy); }
input, textarea, select { width: 100%; margin-top: 6px; font: inherit; font-weight: 400; color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; background: #fff; transition: border-color .15s; }
input:hover, textarea:hover, select:hover { border-color: #C4CEDB; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--signal); box-shadow: var(--focus); }
textarea { resize: vertical; line-height: 1.5; }
fieldset:disabled { opacity: .7; }
.stack { display: grid; gap: 14px; }
.grid2, .grid3, .grid4, .grid5 { display: grid; gap: 14px; align-items: end; }
.grid2 { grid-template-columns: repeat(2, 1fr); }
.grid3 { grid-template-columns: 2fr 1fr 1fr; margin-bottom: 12px; }
.grid4 { grid-template-columns: repeat(4, 1fr) auto; }
.grid5 { grid-template-columns: 1.2fr 1.4fr 1.2fr 1fr 1fr auto; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--ink); }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--signal); }
.notice { padding: 12px 16px; border-radius: var(--r-sm); margin: 0 0 16px; font-size: .92rem; }
.notice.ok { background: var(--signal-bg); color: #0E6B63; } .notice.err { background: var(--err-bg); color: var(--err); }
.notice.warn { background: var(--amber-bg); color: #8A5A12; } .notice.info { background: var(--info-bg); color: var(--info); }
.notice ul { margin: .4em 0 0; }
input.copy { margin-top: 8px; font-size: .85rem; background: var(--bg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.badge { display: inline-block; font-size: .74rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--gray); white-space: nowrap; }
.badge.ok { background: var(--signal-bg); color: #0E6B63; } .badge.warn { background: var(--amber-bg); color: #8A5A12; }
.badge.info { background: var(--info-bg); color: var(--info); } .badge.err { background: var(--err-bg); color: var(--err); }
.up { color: #0E8A7F; font-size: .8rem; font-weight: 500; } .down { color: var(--err); font-size: .8rem; font-weight: 500; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 10px 0 16px; }
.bar span { display: block; height: 100%; background: var(--signal); border-radius: 99px; transition: width .4s; }
.bar.slim { height: 6px; margin: 4px 0; min-width: 90px; }

/* Ondas */
.arcs { position: absolute; pointer-events: none; }
.arcs path { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 9; stroke-linecap: round; }
.arcs path:nth-of-type(2) { stroke: rgba(255,255,255,.34); }
.arcs path:nth-of-type(1) { stroke: var(--signal); stroke-width: 12; }
.arcs .dot { fill: #fff; }
.arcs.draw path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: wave 1.6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * .16s + .1s); }
@keyframes wave { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .arcs.draw path { animation: none; stroke-dashoffset: 0; } * { transition: none !important; } }

/* Acceso y registro */
.auth-body { background: #fff; }
.split { display: grid; grid-template-columns: minmax(380px, 1.05fr) 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 48px 56px; display: flex; flex-direction: column; }
.auth-logo { width: 150px; position: relative; z-index: 1; }
.auth-copy { position: relative; z-index: 1; max-width: 440px; margin-top: 13vh; }
.auth-copy h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: .45em; }
.auth-copy p { color: rgba(255,255,255,.78); font-size: 1.06rem; max-width: 36ch; }
.auth-art .arcs { width: 400px; height: 400px; right: 0; bottom: -20px; }
.auth-panel { display: grid; place-items: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 420px; }
.auth-form h2 { font-size: 1.7rem; letter-spacing: -.02em; }
.auth-form .switch { margin-top: 22px; }

/* Admin: barra lateral */
.admin-body { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 8px; text-decoration: none; color: rgba(255,255,255,.7); font-weight: 500; }
.side-brand img { height: 26px; }
.side-brand span { border-left: 1px solid rgba(255,255,255,.25); padding-left: 10px; font-size: .9rem; }
.side-nav { display: grid; gap: 2px; }
.navlink { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.72); text-decoration: none; font-weight: 500; font-size: .93rem; }
.navlink:hover { background: rgba(255,255,255,.07); color: #fff; }
.navlink.on { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--signal); }
.as-btn { background: none; border: 0; font: inherit; cursor: pointer; width: 100%; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.side-foot .who { font-size: .76rem; color: rgba(255,255,255,.5); padding: 0 12px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 32px 36px 64px; min-width: 0; max-width: 1040px; }
.content.wide { max-width: 1240px; }

/* Profesional: barra superior */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gray); font-weight: 500; }
.brand img { height: 26px; }
.brand span { border-left: 1px solid var(--line); padding-left: 10px; font-size: .9rem; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav .navlink { color: var(--gray); padding: 8px 12px; }
.top-nav .navlink:hover { background: var(--bg); color: var(--navy); }
.top-nav .navlink.on { background: var(--bg); color: var(--navy); box-shadow: none; }
.content.staff { max-width: 880px; margin: 0 auto; padding: 28px 20px 64px; }

/* Banda azul (panel y saludo) */
.band, .greet { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: 30px 32px; margin-bottom: 22px; }
.band h1, .greet h1 { color: #fff; }
.band-copy, .greet-copy { position: relative; z-index: 1; }
.band-sub, .hello { color: rgba(255,255,255,.7); font-weight: 500; margin: 0 0 2px; }
.band .arcs { width: 300px; height: 300px; right: -40px; top: -40px; opacity: .45; }
.band .kpis { display: grid; grid-template-columns: repeat(6, 1fr); margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; gap: 0; }
.band .kpi { background: none; border: 0; border-radius: 0; padding: 0 16px; border-left: 1px solid rgba(255,255,255,.14); }
.band .kpi:first-child { border-left: 0; padding-left: 0; }
.band .kpi b { color: #fff; }
.band .kpi span { color: rgba(255,255,255,.66); }
.greet { padding: 34px 36px; min-height: 220px; }
.greet h1 { font-size: 1.85rem; max-width: 22ch; }
.greet-msg { color: rgba(255,255,255,.86); max-width: 56ch; font-size: 1.04rem; }
.greet-tip { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 14px 18px; max-width: 60ch; margin-top: 16px; }
.greet-tip strong { color: #8FE3D9; font-size: .86rem; }
.greet-tip p { margin: 4px 0 0; color: #fff; }
.greet .arcs { width: 300px; height: 300px; right: -30px; top: 50%; transform: translateY(-50%); }
.greet-copy { max-width: calc(100% - 220px); }

/* Tarjetas y contenedores */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 18px; }
.card > h2:first-child, .card > .row-head:first-child h2 { margin-top: 0; }
.card.plain { border: 0; padding: 0; margin: 0; background: none; }
.narrow { max-width: 560px; margin: 0 auto 18px; }
.row-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.facts { display: flex; gap: 26px; list-style: none; padding: 0; margin: 18px 0; color: var(--gray); }
.facts strong { color: var(--navy); font-size: 1.3rem; display: block; line-height: 1.1; }
.modlist { color: var(--gray); margin-bottom: 24px; padding-left: 20px; }
.modlist li { padding: 2px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two > .card { margin-bottom: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 20px; }
.tabs a { text-decoration: none; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .86rem; color: var(--ink); font-weight: 500; }
.tabs a:hover { border-color: var(--navy); }
.tabs a.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.scroll { overflow-x: auto; }

/* Tablas */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .78rem; color: var(--gray); font-weight: 500; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 14px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #F7F9FC; }
.tbl td a strong { color: var(--navy); }
.tbl td a { text-decoration: none; }
.tbl.dash .badge { margin: 1px 0; }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
.kpis.small { grid-template-columns: repeat(4, 1fr); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi b { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--navy); font-weight: 700; letter-spacing: -.02em; }
.kpi b small { font-size: .9rem; color: var(--gray); font-weight: 500; }
.kpi span { font-size: .8rem; color: var(--gray); }
.card .kpis.small .kpi { background: var(--bg); border: 0; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.areacard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--navy); }
.areacard:hover { border-color: #B9C6D6; }
.areacard.on { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.areacard .eyebrow { color: var(--navy); font-weight: 500; }
.ac-row { display: flex; gap: 14px; margin: 6px 0; }
.ac-row b { display: block; font-size: 1.15rem; } .ac-row span { font-size: .72rem; color: var(--gray); }
.areacard .bar { margin: 8px 0 0; height: 5px; }
.attn { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.attn-item { display: grid; gap: 4px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--r-sm); padding: 12px 14px; text-decoration: none; color: var(--navy); }
.attn-item:hover { background: #FBFCFE; }
.chart { width: 100%; height: auto; margin-top: 10px; }
.chart text { font-size: 11px; fill: var(--faint); font-family: inherit; }
.chart .grid { stroke: var(--line-2); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .82rem; margin: 6px 0 16px; align-items: center; color: var(--gray); }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.quotes { list-style: none; padding: 0; display: grid; gap: 10px; }
.quotes li { background: var(--bg); border-radius: var(--r); padding: 14px 16px; }

/* Informe */
.score { text-align: center; background: var(--navy); color: #fff; border-radius: var(--r); padding: 12px 20px; }
.score b { display: block; font-size: 2.2rem; line-height: 1; }
.score span { font-size: .75rem; opacity: .8; }
.mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mod { background: var(--bg); border-radius: var(--r); padding: 14px; }
.mod .mh { display: flex; justify-content: space-between; font-weight: 500; font-size: .9rem; gap: 8px; color: var(--navy); }
.mod .bar { margin: 8px 0; background: #fff; }
ul.ev { list-style: none; padding: 0; }
ul.ev li { border-left: 3px solid var(--signal); padding: 4px 0 4px 14px; margin-bottom: 14px; display: grid; gap: 2px; }
.two > div:last-child ul.ev li { border-left-color: var(--amber); }
ul.ev span { color: var(--gray); font-size: .9rem; } ul.ev em { font-size: .85rem; color: var(--ink); }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.week { background: var(--bg); border-radius: var(--r); padding: 16px; }
.week ul { padding-left: 18px; margin: .4em 0; }
.topics li { margin-bottom: 6px; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details > summary h2 { display: inline; }
details > summary h2::after { content: ' +'; color: var(--faint); font-weight: 400; }
details[open] > summary h2::after { content: ' –'; }
.ans { border-top: 1px solid var(--line-2); padding: 14px 0; }
.ans p { margin: 0 0 4px; }
.session { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 16px; }

/* Evaluación */
.evalform { padding-top: 14px; }
.progress { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; font-size: .82rem; position: sticky; top: 55px; background: var(--card); padding: 10px 0; z-index: 2; }
.progress .bar { margin: 0; }
.step h2 { font-size: 1.4rem; }
.q { border: 0; border-top: 1px solid var(--line-2); padding: 22px 0 8px; margin: 0; }
.q legend { padding: 0; font-weight: 500; margin-bottom: 14px; display: flex; gap: 12px; float: left; width: 100%; color: var(--navy); }
.q legend + * { clear: both; }
.q.missing legend { color: var(--err); }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 500; }
.opts { display: grid; gap: 8px; }
.opts label, .scale label { font-weight: 400; cursor: pointer; color: var(--ink); }
.opts label { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 15px; transition: border-color .12s, background .12s; }
.opts label:hover { border-color: #B9C6D6; }
.opts input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--navy); }
.opts label:has(input:checked) { border-color: var(--navy); background: #F2F6FB; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale input { position: absolute; opacity: 0; }
.scale span { display: grid; text-align: center; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 4px; font-size: .78rem; color: var(--gray); transition: background .12s; }
.scale label:hover span { border-color: #B9C6D6; }
.scale b { font-size: 1.2rem; color: var(--navy); }
.scale input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale input:checked + span b { color: #fff; }
.scale input:focus-visible + span { box-shadow: var(--focus); }
.nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }

/* Planes */
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-top: 14px; }
.plan summary h3 { margin: 2px 0 6px; }
.plan-meta { display: flex; gap: 10px; align-items: center; }
.items { display: grid; gap: 8px; margin: 14px 0; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r); padding: 13px 15px; background: #fff; }
.item.en_curso { border-left-color: #E2A03F; } .item.hecho { border-left-color: var(--signal); background: #F6FCFB; }
.item .accion { margin: 0 0 2px; font-weight: 500; color: var(--navy); }
.item input { margin-top: 8px; font-size: .88rem; padding: 8px 11px; }
.item-actions { display: flex; gap: 8px; align-items: center; }
.item-actions select { margin: 0; width: auto; padding: 7px 10px; }
.inline-form { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.inline-form input { margin: 0; }
.grid-add { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; }
.grid-add input { margin: 0; }
.grid-req { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 12px; align-items: end; }
.grid-gen { display: grid; grid-template-columns: 170px 1fr auto auto; gap: 12px; align-items: end; }
.progress-row { display: flex; gap: 12px; align-items: center; } .progress-row .bar { flex: 1; margin: 10px 0; }
.qedit.off { opacity: .55; }
.qedit label { margin-bottom: 10px; }

/* Mensajes */
.msgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.msg p { margin: 6px 0 0; }

/* Estudio */
.study-card { border-left: 4px solid var(--signal); }
.pulse { border-left: 4px solid var(--navy-3); }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 16px 0; }
.module { display: grid; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; text-decoration: none; color: var(--navy); }
.module h3 { margin: 0; }
.module:hover { border-color: var(--navy); }
.module.aprobado { border-top: 4px solid var(--signal); }
.module-head { background: var(--navy); border-color: var(--navy); color: #fff; position: relative; overflow: hidden; }
.module-head h1, .module-head .lead { color: #fff; }
.module-head .eyebrow { color: rgba(255,255,255,.7); }
.module-head .toc { color: rgba(255,255,255,.75); }
.module-head .toc a { color: #fff; }
.lessons { padding: 36px 40px; }
.lesson { max-width: 68ch; }
.lesson + .lesson { border-top: 1px solid var(--line-2); margin-top: 30px; padding-top: 26px; }
.lesson h2 { margin-top: 2px; font-size: 1.45rem; }
.lesson p, .lesson li { font-size: 1.02rem; line-height: 1.75; }
.lesson h4 { margin: 1.4em 0 .4em; font-size: 1.04rem; font-weight: 700; }
.lesson blockquote { margin: 18px 0; padding: 16px 20px; background: var(--signal-bg); border-left: 4px solid var(--signal); border-radius: var(--r-sm); font-weight: 500; color: var(--navy); }
.lesson figure { margin: 20px 0; }
.lesson figure img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }
.lesson figcaption { font-size: .82rem; color: var(--gray); margin-top: 6px; }
.toc { columns: 2; padding-left: 20px; } .toc a { text-decoration: none; }
.result.pass { border-left: 5px solid var(--signal); } .result.fail { border-left: 5px solid var(--err); }
.result h2 { margin-top: 4px; font-size: 1.5rem; }
.review li { margin-bottom: 12px; } .review li.bad strong { color: var(--err); }
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.imgitem img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.secedit, .qedit2 { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 12px 0; }
.secedit label, .qedit2 label { margin-bottom: 8px; }

/* Móvil y tabletas */
@media (max-width: 1100px) { .band .kpis { grid-template-columns: repeat(3, 1fr); row-gap: 16px; } .band .kpi:nth-child(4) { border-left: 0; padding-left: 0; } .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px 36px; min-height: 300px; }
  .auth-copy { margin: 40px 0 0; }
  .auth-art .arcs { width: 260px; height: 260px; left: auto; right: -60px; bottom: auto; top: -20px; }
  .admin-body { grid-template-columns: 1fr; }
  .side { position: sticky; top: 0; height: auto; flex-direction: row; align-items: center; padding: 10px 12px; gap: 8px; z-index: 10; overflow-x: auto; }
  .side-brand span, .side-foot .who, .side-nav .navlink span { display: none; }
  .side-brand { padding: 0 6px; } .side-brand img { height: 22px; }
  .side-nav { display: flex; gap: 2px; }
  .side-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .side-foot .navlink span { display: none; }
  .navlink.on { box-shadow: inset 0 -3px 0 var(--signal); }
  .content { padding: 20px 16px 48px; }
}
@media (max-width: 760px) {
  h1 { font-size: 1.6rem; }
  .grid2, .grid3, .grid4, .grid5, .two, .item, .grid-add, .grid-req, .grid-gen { grid-template-columns: 1fr; }
  .kpis, .kpis.small { grid-template-columns: repeat(2, 1fr); }
  .band .kpis { grid-template-columns: repeat(2, 1fr); }
  .band .kpi { border-left: 0; padding: 0; }
  .band, .greet { padding: 24px 20px; border-radius: var(--r); }
  .greet h1 { font-size: 1.5rem; }
  .greet .arcs, .band .arcs { opacity: .3; }
  .greet-copy { max-width: none; }
  .scale { gap: 4px; } .scale span { font-size: .64rem; }
  .card { padding: 20px; }
  .lessons { padding: 22px 20px; }
  .toc { columns: 1; }
  .tbl thead { display: none; }
  .tbl tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-2); padding: 8px 0; }
  .tbl td { border: 0; padding: 4px 8px; }
  .tbl td:first-child { grid-column: 1 / -1; }
  .top { padding: 10px 14px; } .brand span { display: none; }
  .top-nav .navlink span { display: none; }
  .progress { top: 50px; }
}
@media print {
  .side, .top, form, .actions, .btn, details:not([open]) { display: none !important; }
  .admin-body { display: block; } body { background: #fff; } .card { border: 0; padding: 0; }
}

.ac-foot { display: block; font-size: .72rem; color: var(--gray); margin-top: 6px; }
.monthly { margin-top: 6px; } .monthly summary h3 { display: inline; } .monthly summary h3::after { content: ' +'; color: var(--faint); font-weight: 400; } .monthly[open] summary h3::after { content: ' –'; }
.quotes { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.plan-title { font-size: 1.5rem; letter-spacing: -.02em; }
.lesson figure img { max-height: 520px; object-fit: contain; background: var(--bg); }
@media (max-width: 760px) {
  .areas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .areacard { flex: 0 0 160px; scroll-snap-align: start; }
}

/* Fotos */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; flex: none; background: var(--navy-3); color: #fff; font-weight: 700; font-size: .9rem; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.2rem; }
.person-id { display: flex; gap: 16px; align-items: center; }
.person-id h1 { margin-bottom: 0; }
.photo-widget { display: grid; gap: 10px; }
.photo-pick { display: flex; gap: 14px; align-items: center; border: 1.5px dashed #B9C6D6; border-radius: var(--r); padding: 12px 14px; cursor: pointer; font-weight: 400; }
.photo-pick:hover { border-color: var(--signal); background: #F7FBFB; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.photo-pick:focus-within { box-shadow: var(--focus); }
.photo-preview { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--navy-3); overflow: hidden; flex: none; }
.photo-preview .ico { width: 26px; height: 26px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-text { display: grid; gap: 2px; } .photo-text strong { color: var(--navy); }
.consent { font-size: .82rem; align-items: flex-start; }
.consent.need { color: var(--err); }
.photo-card { border-left: 4px solid var(--signal); }

/* Ranking */
.rank-hero .greet-tip strong { font-size: 1rem; color: #fff; }
.mybreak { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; font-size: .85rem; color: rgba(255,255,255,.75); }
.mybreak b { color: #8FE3D9; }
.rank-tools { margin-bottom: 16px; align-items: center; }
.rank-tools select { width: auto; margin: 0; }
.how { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; max-width: 520px; }
.how summary { font-weight: 500; color: var(--navy); }
.how ul { margin: 10px 0 6px; padding-left: 18px; font-size: .9rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.rank-grid .card { margin: 0; }
.rank-area.mine { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-top: 8px; }
.podium-slot { text-align: center; display: grid; justify-items: center; }
.pod-avatar { position: relative; margin-bottom: 8px; }
.pod-avatar .avatar { width: 66px; height: 66px; font-size: 1.1rem; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ring, #C9D3DF); }
.p1 .pod-avatar .avatar { width: 88px; height: 88px; font-size: 1.4rem; }
.p1 { --ring: #E0AE3A; } .p2 { --ring: #A9B4C2; } .p3 { --ring: #C58B5C; }
.medal { position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--ring); color: #fff; font-weight: 700; font-size: .8rem; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.pod-name { margin: 0; font-weight: 500; color: var(--navy); font-size: .9rem; line-height: 1.25; }
.pod-sede { margin: 0; font-size: .75rem; color: var(--gray); min-height: 1.1em; }
.pod-pts { margin: 2px 0 6px; font-size: .82rem; color: var(--gray); } .pod-pts b { color: var(--navy); font-size: 1rem; }
.prize { font-size: .72rem; font-weight: 500; background: var(--signal-bg); color: #0E6B63; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.step { width: 100%; border-radius: 10px 10px 4px 4px; background: var(--bg); color: var(--faint); font-weight: 700; display: grid; place-items: center; font-size: 1.3rem; }
.p1 .step { height: 70px; background: var(--navy); color: #fff; }
.p2 .step { height: 50px; background: #DDE5EF; color: var(--navy); }
.p3 .step { height: 36px; }
.podium-slot.empty .avatar { background: var(--line-2); color: var(--faint); box-shadow: none; }
.my-pos { margin: 14px 0 0; font-size: .9rem; background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; }
@media (max-width: 760px) { .rank-grid { grid-template-columns: 1fr; } .p1 .pod-avatar .avatar { width: 74px; height: 74px; } }

/* Plan: foco */
.focus { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.focus-col { border-radius: var(--r); padding: 16px 18px; }
.focus-col h3 { margin: 0 0 8px; }
.focus-col ul { margin: 0; padding-left: 18px; }
.focus-col li { margin-bottom: 6px; }
.focus-col li span { display: block; font-size: .85rem; color: var(--gray); }
.focus-col.good { background: var(--signal-bg); } .focus-col.grow { background: var(--amber-bg); }
.measure { list-style: none; padding: 0; display: grid; gap: 8px; }
.measure li { background: var(--bg); border-radius: var(--r-sm); padding: 10px 14px; }
.measure li span { display: block; font-size: .78rem; color: var(--gray); font-weight: 500; }

/* Academia */
.method { margin: 0; padding-left: 20px; } .method li { margin-bottom: 6px; }
.how-academy summary h2 { margin: 0; }
.route { display: grid; gap: 10px; counter-reset: none; }
.route-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: var(--ink); }
a.route-step:hover { border-color: var(--navy); }
.route-step h3 { margin: 0 0 2px; font-size: 1rem; }
.route-step p { margin: 0 0 4px; }
.ac-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; }
.route-step.locked { background: #FAFBFD; } .route-step.locked .ac-num { background: var(--line-2); color: var(--faint); } .route-step.locked h3 { color: var(--gray); }
.route-step.aprobado .ac-num { background: var(--signal); }
.route-step.no_aprobado .ac-num, .route-step.cerrado .ac-num { background: var(--err); }
.academy-new { border-left: 4px solid var(--signal); }
.academy-new .inline-form { align-items: end; } .academy-new .inline-form label { margin: 0; }
@media (max-width: 760px) { .focus { grid-template-columns: 1fr; } }

/* Personas desplegables */
.peek-toggle { cursor: pointer; }
.peek-toggle.open td { background: #F4F7FB; }
.who-cell { display: flex; gap: 12px; align-items: center; }
.who-cell .avatar { width: 38px; height: 38px; font-size: .8rem; }
.peek-row td { background: #F4F7FB; padding: 4px 16px 20px; }
.peek-row:hover td { background: #F4F7FB !important; }
.peek { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.peek .focus { margin: 10px 0 0; }
.peek-side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.peek-side h3 { margin-top: 0; }
.peek-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; font-size: .88rem; }
.peek-items li { padding-left: 22px; position: relative; }
.peek-items li::before { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.peek-items li.en_curso::before { border-color: #E2A03F; } .peek-items li.hecho::before { background: var(--signal); border-color: var(--signal); }
.improve { border-left: 4px solid var(--navy-3); }
@media (max-width: 760px) { .peek { grid-template-columns: 1fr; } .tbl .peek-row { display: block; } .tbl .peek-row td { display: block; } }
.tbl tr[hidden] { display: none !important; }
.photo-err { color: var(--err); margin: 0; min-height: 0; }
.photo-err:empty { display: none; }
.photo-row { display: flex; gap: 16px; align-items: center; border: 1.5px dashed #B9C6D6; border-radius: var(--r); padding: 14px; }
.photo-row .photo-preview { width: 76px; height: 76px; }
.photo-actions { display: grid; gap: 8px; }
.photo-actions .photo-text { margin: 0; display: grid; gap: 2px; }
.photo-up { position: relative; overflow: hidden; }
.photo-up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; margin: 0; }
.photo-up:focus-within { box-shadow: var(--focus); }
.photo-live { display: grid; gap: 10px; justify-items: start; }
.photo-live video { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--navy); transform: scaleX(-1); }
.photo-live[hidden] { display: none; }
@media (max-width: 480px) { .photo-row { flex-direction: column; align-items: flex-start; } }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .86rem; }
