:root{
  color-scheme: light;
  --brand:#6e3de8;
  --brand-2:#b84bfb;
  --accent:#e16ec4;
  --ink:#211a2a;
  --muted:#6c6275;
  --paper:#ffffff;
  --bg:#f8f6fc;
  --soft:#f1eaff;
  --line:#ded7e8;
  --shadow:0 18px 50px rgba(55,23,95,.12);
  --gradient:linear-gradient(130deg,#301064 0%,#6e3de8 55%,#b84bfb 100%);
}
html[data-theme="dark"]{
  color-scheme: dark;
  --brand:#9b79f5;
  --brand-2:#cf78ff;
  --accent:#ff8cdd;
  --ink:#f6f0fa;
  --muted:#c1b5ca;
  --paper:#1b1424;
  --bg:#120d19;
  --soft:#302141;
  --line:#3b2e48;
  --shadow:0 18px 52px rgba(0,0,0,.34);
  --gradient:linear-gradient(130deg,#160923 0%,#3f176f 55%,#772887 100%);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;}
body{font-family:Lato,"Segoe UI",Arial,Helvetica,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
a{color:inherit}
button{font:inherit}
.shell{min-height:100vh;display:grid;grid-template-rows:64px 1fr 72px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 28px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(14px);position:sticky;top:0;z-index:5}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:0}
.mark{width:36px;height:36px;border-radius:11px;background:var(--gradient);display:grid;place-items:center;color:white;font-weight:900;letter-spacing:-.06em;box-shadow:var(--shadow)}
.brand-copy{min-width:0}
.brand-copy strong{display:block;font-size:.94rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-copy span{display:block;font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{display:flex;align-items:center;gap:12px}
.progress-label{font-size:.78rem;font-weight:800;color:var(--muted)}
.theme-btn{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;background:var(--paper);color:var(--ink);cursor:pointer}
.progress-track{position:fixed;top:63px;left:0;width:100%;height:3px;background:var(--line);z-index:6}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--brand),var(--brand-2),var(--accent));width:var(--progress)}
.main{display:grid;align-items:stretch;min-height:0}
.screen{width:min(1180px,100%);margin:0 auto;padding:clamp(30px,5vw,68px);display:grid;align-items:center;min-height:calc(100vh - 136px)}
.screen.hero{width:100%;max-width:none;background:var(--gradient);color:white;position:relative;overflow:hidden}
.screen.hero::after{content:"";position:absolute;right:-150px;top:-210px;width:520px;height:520px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 75px rgba(255,255,255,.035),0 0 0 150px rgba(255,255,255,.025)}
.hero-inner{width:min(1100px,100%);margin:auto;position:relative;z-index:1}
.eyebrow{text-transform:uppercase;letter-spacing:.17em;font-size:.76rem;font-weight:900;color:var(--brand)}
.hero .eyebrow{color:rgba(255,255,255,.74)}
h1,h2,p{margin-top:0}
h1{font-size:clamp(3rem,7vw,6.8rem);line-height:.93;letter-spacing:-.055em;max-width:920px;margin-bottom:20px}
h2{font-size:clamp(2.25rem,5vw,4.8rem);line-height:1;letter-spacing:-.045em;margin-bottom:18px;max-width:920px}
.lede{font-size:clamp(1.08rem,2vw,1.45rem);max-width:760px;color:var(--muted);margin-bottom:0}
.hero .lede{color:rgba(255,255,255,.86)}
.content-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:clamp(34px,6vw,84px);align-items:center}
.statement{font-size:clamp(1.5rem,3vw,2.5rem);line-height:1.23;font-weight:800;max-width:760px;margin:0}
.statement strong{color:var(--brand)}
.card{background:var(--paper);border:1px solid var(--line);border-radius:24px;padding:clamp(22px,3vw,34px);box-shadow:var(--shadow)}
.card h3{font-size:1.25rem;margin:0 0 12px;color:var(--brand)}
.card p:last-child{margin-bottom:0}
.list{display:grid;gap:12px;margin:22px 0 0;padding:0;list-style:none}
.list li{display:grid;grid-template-columns:34px 1fr;gap:12px;align-items:start}
.list .num{width:30px;height:30px;border-radius:50%;background:var(--soft);color:var(--brand);display:grid;place-items:center;font-weight:900;font-size:.82rem}
.compare{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.compare .card{height:100%}
.compare .card:first-child{border-top:5px solid var(--muted)}
.compare .card:last-child{border-top:5px solid var(--brand)}
.quote{font-size:clamp(1.8rem,4vw,3.7rem);line-height:1.08;font-weight:900;letter-spacing:-.04em;max-width:980px;margin:0}
.quote span{color:var(--brand)}
.placeholder{min-height:330px;border-radius:26px;border:1px dashed color-mix(in srgb,var(--brand) 55%,var(--line));background:linear-gradient(135deg,var(--soft),var(--paper));display:grid;place-items:center;text-align:center;padding:30px;color:var(--muted)}
.placeholder strong{display:block;color:var(--brand);font-size:1.1rem;margin-bottom:8px}
.activity{display:grid;grid-template-columns:90px 1fr;gap:26px;align-items:start}
.activity-number{width:74px;height:74px;border-radius:24px;background:var(--gradient);color:white;display:grid;place-items:center;font-size:2rem;font-weight:900}
.activity h2{font-size:clamp(2rem,4vw,4rem)}
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.step{padding:20px;border-radius:18px;background:var(--paper);border:1px solid var(--line)}
.step strong{display:block;color:var(--brand);margin-bottom:6px}
.question-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:24px}
.question{padding:22px;border-radius:18px;background:var(--paper);border:1px solid var(--line);font-weight:800}
.summary{display:grid;grid-template-columns:1.2fr .8fr;gap:40px;align-items:center}
.summary-list{display:grid;gap:13px;margin:24px 0 0;padding:0;list-style:none}
.summary-list li{padding-left:28px;position:relative}
.summary-list li::before{content:"";position:absolute;left:0;top:.55em;width:11px;height:11px;border-radius:50%;background:var(--brand)}
.footer-nav{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 28px;border-top:1px solid var(--line);background:var(--paper)}
.nav-link{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:900;color:var(--brand);min-height:44px}
.nav-link.next{justify-self:end}
.nav-link.disabled{visibility:hidden}
.page-dots{display:flex;gap:7px;align-items:center}
.dot{width:7px;height:7px;border-radius:50%;background:var(--line)}
.dot.active{width:22px;border-radius:999px;background:var(--brand)}
.note{font-size:.88rem;color:var(--muted);margin-top:18px}
@media (max-width:800px){
  .shell{grid-template-rows:58px 1fr 66px}
  .topbar{padding:0 16px}
  .brand-copy span,.progress-label{display:none}
  .progress-track{top:57px}
  .screen{padding:34px 20px;min-height:calc(100vh - 124px);align-items:start}
  .content-grid,.compare,.summary{grid-template-columns:1fr}
  .placeholder{min-height:240px}
  .activity{grid-template-columns:1fr}
  .activity-number{width:58px;height:58px;border-radius:18px;font-size:1.5rem}
  .steps,.question-grid{grid-template-columns:1fr}
  .footer-nav{padding:0 16px}
  .page-dots{display:none}
}
@media (max-height:690px) and (min-width:801px){
  .screen{padding-top:28px;padding-bottom:28px}
  h1{font-size:clamp(2.8rem,6vw,5.2rem)}
  h2{font-size:clamp(2rem,4.4vw,3.7rem)}
  .placeholder{min-height:260px}
}
@media print{
  .topbar,.footer-nav,.progress-track{display:none}
  .shell{display:block}
  .screen{min-height:auto;page-break-after:always}
}

.tone-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.tone-card{border-radius:22px;padding:24px;border:1px solid var(--line);min-height:220px;display:flex;flex-direction:column;justify-content:space-between}
.tone-card.white{background:#fff;color:#211a2a}
.tone-card.gray{background:#777;color:#fff}
.tone-card.black{background:#17131c;color:#fff}
.tone-card strong{font-size:1.25rem}
.tone-card small{opacity:.78}
.meter{display:grid;gap:14px;margin-top:26px;max-width:760px}
.meter-line{height:8px;border-radius:999px;background:linear-gradient(90deg,#17131c 0%,#777 50%,#fff 100%);position:relative;border:1px solid var(--line)}
.meter-zero{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:26px;height:26px;border-radius:50%;background:var(--brand);border:4px solid var(--paper);box-shadow:var(--shadow)}
.meter-labels{display:grid;grid-template-columns:1fr 1fr 1fr;font-size:.82rem;color:var(--muted);font-weight:800}
.meter-labels span:nth-child(2){text-align:center}.meter-labels span:last-child{text-align:right}
.histogram-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}
.histogram-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:18px}
.histogram-card img{display:block;width:100%;height:auto;border-radius:12px}
.histogram-card strong{display:block;color:var(--brand);margin-top:12px}
.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.choice{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px}
.choice b{display:block;color:var(--brand);font-size:1.1rem;margin-bottom:8px}
.callout{padding:20px 24px;border-left:5px solid var(--brand);background:var(--soft);border-radius:0 18px 18px 0;margin-top:24px;max-width:880px}
.callout p:last-child{margin-bottom:0}
@media (max-width:800px){.tone-cards,.histogram-row,.choice-grid{grid-template-columns:1fr}.tone-card{min-height:160px}}


.aperture-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.aperture-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:22px;text-align:center}
.aperture-card img{display:block;width:100%;max-height:180px;object-fit:contain;margin:0 auto 14px}
.aperture-card strong{display:block;color:var(--brand);font-size:1.2rem;margin-bottom:5px}
.rule-note{font-size:.9rem;color:var(--muted);margin-top:14px}
.effect-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px}
.effect{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:24px}
.effect .tag{display:inline-block;border-radius:999px;padding:6px 10px;background:var(--soft);color:var(--brand);font-size:.78rem;font-weight:900;margin-bottom:12px}
.effect h3{margin:0 0 8px;font-size:1.35rem}
.diagram{background:var(--paper);border:1px solid var(--line);border-radius:26px;padding:18px;box-shadow:var(--shadow)}
.diagram img{display:block;width:100%;height:auto;border-radius:16px}
.factor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.factor{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px}
.factor b{display:block;color:var(--brand);font-size:1.08rem;margin-bottom:8px}
.intent-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.intent{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:24px;min-height:220px;display:flex;flex-direction:column}
.intent .mini{display:flex;gap:7px;margin-bottom:22px}
.intent .mini span{width:30px;height:30px;border-radius:50%;background:var(--brand)}
.intent.describe .mini span{filter:none}.intent.suggest .mini span:nth-child(1),.intent.suggest .mini span:nth-child(3){filter:blur(2px);opacity:.55}.intent.isolate .mini span:not(:nth-child(2)){filter:blur(7px);opacity:.28}
.intent strong{font-size:1.22rem;color:var(--brand);margin-bottom:8px}
.intent p{margin-bottom:0}
.warning-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:24px}
.warning{padding:18px 20px;background:var(--paper);border:1px solid var(--line);border-radius:18px}
.warning b{color:var(--brand)}
@media (max-width:800px){.aperture-grid,.effect-grid,.factor-grid,.intent-grid,.warning-list{grid-template-columns:1fr}.intent{min-height:auto}}


/* Unidad 04 · velocidad y representación del tiempo */
.time-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.time-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:22px;min-height:220px;display:flex;flex-direction:column}
.time-card .time{font-size:1.5rem;font-weight:900;color:var(--brand);margin-bottom:10px}
.time-card .motion-demo{height:74px;position:relative;margin:10px 0 18px;border-radius:16px;background:var(--soft);overflow:hidden}
.motion-demo .ball{position:absolute;top:23px;width:28px;height:28px;border-radius:50%;background:var(--brand)}
.motion-demo.freeze .ball{left:55%;box-shadow:-38px 0 0 rgba(110,61,232,.12),-76px 0 0 rgba(110,61,232,.06)}
.motion-demo.suggest .ball{left:55%;box-shadow:-15px 0 0 rgba(110,61,232,.55),-30px 0 0 rgba(110,61,232,.34),-45px 0 0 rgba(110,61,232,.18)}
.motion-demo.accumulate .ball{left:68%;box-shadow:-16px 0 0 rgba(110,61,232,.75),-32px 0 0 rgba(110,61,232,.62),-48px 0 0 rgba(110,61,232,.5),-64px 0 0 rgba(110,61,232,.38),-80px 0 0 rgba(110,61,232,.28),-96px 0 0 rgba(110,61,232,.18),-112px 0 0 rgba(110,61,232,.1)}
.time-card strong{font-size:1.2rem;margin-bottom:8px}.time-card p{margin-bottom:0}
.motion-compare{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:26px}
.motion-box{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:24px}
.motion-box h3{margin:0 0 8px;color:var(--brand)}
.motion-box .icon{height:95px;border-radius:16px;background:var(--soft);position:relative;margin-bottom:18px;overflow:hidden}
.icon.subject::before{content:"";position:absolute;width:34px;height:34px;border-radius:50%;background:var(--brand);top:30px;left:62%;box-shadow:-18px 0 0 rgba(110,61,232,.5),-36px 0 0 rgba(110,61,232,.28),-54px 0 0 rgba(110,61,232,.12)}
.icon.camera::before{content:"";position:absolute;inset:21px auto auto 38%;width:88px;height:52px;border:5px solid var(--brand);border-radius:12px;transform:rotate(-4deg);box-shadow:10px 4px 0 rgba(110,61,232,.16),-9px -3px 0 rgba(110,61,232,.12)}
.icon.camera::after{content:"";position:absolute;top:35px;left:calc(38% + 33px);width:22px;height:22px;border:5px solid var(--brand);border-radius:50%}
.factor-grid.four{grid-template-columns:repeat(4,1fr)}
.support-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:24px}
.support{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px}
.support b{display:block;color:var(--brand);margin-bottom:7px}
.diagnose{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}
.diagnose .card{box-shadow:none}
.diagnose .card:first-child{border-top:5px solid var(--brand)}
.diagnose .card:last-child{border-top:5px solid var(--accent)}
@media (max-width:900px){.factor-grid.four{grid-template-columns:repeat(2,1fr)}}
@media (max-width:800px){.time-grid,.motion-compare,.support-grid,.diagnose,.factor-grid.four{grid-template-columns:1fr}.time-card{min-height:auto}}


/* Componentes comunes para las unidades 05–10 */
.signal-grid,.mode-grid,.focus-grid,.position-grid,.scan-grid,.series-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.signal-card,.mode-card,.focus-card,.position-card,.scan-card,.series-card{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:22px;min-height:205px;display:flex;flex-direction:column}
.signal-card strong,.mode-card strong,.focus-card strong,.position-card strong,.scan-card strong,.series-card strong{display:block;color:var(--brand);font-size:1.16rem;margin-bottom:8px}
.signal-card p,.mode-card p,.focus-card p,.position-card p,.scan-card p,.series-card p{margin-bottom:0}
.big-number{font-size:clamp(2.3rem,5vw,4.6rem);line-height:1;font-weight:900;letter-spacing:-.05em;color:var(--brand);margin-bottom:14px}
.iso-strip{height:112px;border-radius:18px;background:linear-gradient(90deg,#17131c,#554b5e,#aaa0b2,#fff);position:relative;overflow:hidden;border:1px solid var(--line);margin-top:22px}
.iso-strip::after{content:"";position:absolute;inset:0;background-image:radial-gradient(circle at 20% 30%,rgba(255,255,255,.52) 0 1px,transparent 1.5px),radial-gradient(circle at 70% 55%,rgba(225,110,196,.5) 0 1px,transparent 1.6px),radial-gradient(circle at 45% 78%,rgba(110,61,232,.48) 0 1px,transparent 1.5px);background-size:17px 17px,23px 23px,29px 29px;opacity:.55}
.balance{display:grid;grid-template-columns:1fr auto 1fr;gap:18px;align-items:center;margin-top:24px}
.balance-side{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px;text-align:center}
.balance-side strong{display:block;color:var(--brand);font-size:1.2rem;margin-bottom:7px}
.balance-arrow{font-size:2rem;color:var(--brand);font-weight:900}
.mode-card .mode-code{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--gradient);color:#fff;font-size:1.35rem;font-weight:900;margin-bottom:17px}
.mode-card.recommended{border:2px solid var(--brand);box-shadow:var(--shadow)}
.decision-path{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:24px}
.decision-node{padding:17px;border:1px solid var(--line);background:var(--paper);border-radius:18px;text-align:center;font-weight:800;position:relative}
.decision-node:not(:last-child)::after{content:"→";position:absolute;right:-13px;top:50%;transform:translateY(-50%);color:var(--brand);z-index:2}
.focus-demo{height:100px;border-radius:16px;background:var(--soft);position:relative;margin:2px 0 17px;overflow:hidden}
.focus-demo::before{content:"";position:absolute;width:32px;height:56px;border-radius:16px 16px 11px 11px;background:var(--brand);top:23px;left:calc(50% - 16px)}
.focus-demo.single::after{content:"";position:absolute;width:58px;height:78px;border:3px solid var(--accent);top:11px;left:calc(50% - 29px);border-radius:9px}
.focus-demo.track::after{content:"";position:absolute;width:58px;height:78px;border:3px dashed var(--accent);top:11px;left:calc(66% - 29px);border-radius:9px;box-shadow:-80px 0 0 -3px rgba(225,110,196,.25)}
.focus-demo.zone::after{content:"";position:absolute;inset:15px 25%;border:3px dotted var(--accent);border-radius:12px}
.diagnosis-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:25px}
.diagnosis{padding:21px;border:1px solid var(--line);background:var(--paper);border-radius:20px}
.diagnosis b{display:block;color:var(--brand);margin-bottom:8px}
.position-card .scene{height:95px;border-radius:16px;background:var(--soft);position:relative;margin-bottom:17px;overflow:hidden}
.scene .subject{position:absolute;width:30px;height:58px;border-radius:16px 16px 10px 10px;background:var(--brand);bottom:17px;left:47%}
.scene .background{position:absolute;width:54px;height:76px;border-radius:10px;background:color-mix(in srgb,var(--accent) 42%,var(--paper));bottom:9px;right:12%}
.position-card.close .background{width:84px;height:88px;right:3%;opacity:.9}
.position-card.far .background{width:34px;height:52px;right:20%;opacity:.58}
.frame-demo{height:270px;border:12px solid var(--ink);background:var(--soft);position:relative;border-radius:10px;overflow:hidden;margin-top:22px}
.frame-demo .main-subject{position:absolute;width:86px;height:150px;border-radius:45px 45px 18px 18px;background:var(--brand);left:43%;bottom:22px}
.frame-demo .distraction{position:absolute;background:var(--accent);opacity:.72}
.frame-demo .d1{width:88px;height:18px;left:-22px;top:32px;transform:rotate(24deg)}
.frame-demo .d2{width:60px;height:110px;right:-22px;bottom:0}
.frame-demo .d3{width:38px;height:38px;border-radius:50%;right:8px;top:8px}
.light-directions{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px}
.light-direction{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px;text-align:center}
.light-icon{height:90px;position:relative;margin-bottom:12px}
.light-icon::before{content:"";position:absolute;width:38px;height:62px;border-radius:20px 20px 12px 12px;background:var(--brand);left:calc(50% - 19px);top:18px}
.light-icon::after{content:"";position:absolute;width:36px;height:36px;border-radius:50%;background:#ffd86e;box-shadow:0 0 30px rgba(255,216,110,.72)}
.light-direction.front .light-icon::after{left:calc(50% - 18px);top:-8px}.light-direction.side .light-icon::after{left:10px;top:26px}.light-direction.back .light-icon::after{right:18px;top:26px}
.sequence{display:grid;grid-template-columns:repeat(5,1fr);gap:11px;margin-top:24px}
.sequence-item{aspect-ratio:4/3;border-radius:16px;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;color:var(--brand);font-size:1.4rem;font-weight:900;position:relative}
.sequence-item::after{content:attr(data-label);position:absolute;bottom:8px;left:8px;font-size:.7rem;color:var(--muted);font-weight:800}
.project-sheet{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:24px}
.project-field{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:20px}
.project-field b{display:block;color:var(--brand);margin-bottom:7px}
.checklist{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin-top:22px}
.check{padding:17px 18px 17px 48px;border-radius:17px;background:var(--paper);border:1px solid var(--line);position:relative;font-weight:800}
.check::before{content:"✓";position:absolute;left:17px;top:14px;width:23px;height:23px;border-radius:50%;background:var(--soft);color:var(--brand);display:grid;place-items:center}
@media (max-width:900px){.decision-path{grid-template-columns:repeat(2,1fr)}.decision-node::after{display:none}.sequence{grid-template-columns:repeat(3,1fr)}}
@media (max-width:800px){.signal-grid,.mode-grid,.focus-grid,.position-grid,.scan-grid,.series-grid,.diagnosis-grid,.light-directions,.project-sheet,.checklist{grid-template-columns:1fr}.balance{grid-template-columns:1fr}.balance-arrow{transform:rotate(90deg)}.sequence{grid-template-columns:repeat(2,1fr)}.frame-demo{height:230px}}

/* ============================================================
   Ajuste de densidad para pantallas de ordenador de poca altura
   Objetivo: mantener cada pantalla de lección completa sin scroll
   en portátiles habituales, sin ocultar contenido.
   ============================================================ */
@media (min-width:801px) and (max-height:1100px){
  body{line-height:1.42}
  .shell{grid-template-rows:58px 1fr 62px}
  .topbar{padding:0 24px}
  .progress-track{top:57px}
  .screen{min-height:calc(100vh - 120px);padding:32px clamp(34px,4vw,58px)}
  h1{font-size:clamp(2.7rem,5.4vw,5.1rem);margin-bottom:14px}
  h2{font-size:clamp(2rem,3.7vw,3.55rem);margin-bottom:14px}
  .lede{font-size:clamp(1rem,1.55vw,1.24rem)}
  .statement{font-size:clamp(1.25rem,2.15vw,2rem)}
  .content-grid{gap:clamp(26px,4vw,54px)}
  .card{padding:22px}
  .card h3{margin-bottom:8px}
  .list{gap:9px;margin-top:16px}
  .list li{grid-template-columns:30px 1fr;gap:10px}
  .list .num{width:27px;height:27px}
  .compare{gap:14px}
  .placeholder{min-height:240px;padding:24px}
  .quote{font-size:clamp(1.65rem,3.2vw,3rem)}
  .activity{grid-template-columns:74px 1fr;gap:20px}
  .activity-number{width:62px;height:62px;border-radius:19px;font-size:1.65rem}
  .steps,.question-grid{gap:11px;margin-top:20px}
  .step,.question{padding:16px}
  .summary{gap:28px}
  .summary-list{gap:9px;margin-top:16px}
  .footer-nav{padding:0 24px}
  .tone-cards,.histogram-row,.choice-grid,.aperture-grid,.time-grid,
  .signal-grid,.mode-grid,.focus-grid,.position-grid,.scan-grid,.series-grid,
  .diagnosis-grid,.light-directions{gap:12px;margin-top:18px}
  .tone-card,.time-card,.signal-card,.mode-card,.focus-card,.position-card,.scan-card,.series-card{min-height:170px;padding:17px}
  .choice,.aperture-card,.histogram-card,.diagnosis,.light-direction{padding:16px}
  .tone-card{min-height:175px}
  .aperture-card img{max-height:132px;margin-bottom:10px}
  .effect-grid,.motion-compare,.diagnose,.project-sheet{gap:14px;margin-top:18px}
  .factor-grid,.support-grid{gap:11px;margin-top:18px}
  .support,.motion-box{padding:17px}
  .motion-box .icon{height:78px;margin-bottom:12px}
  .time-card .motion-demo{height:60px;margin:6px 0 12px}
  .time-card .time{font-size:1.25rem;margin-bottom:6px}
  .callout{padding:15px 18px;margin-top:16px}
  .note{margin-top:10px}
  .meter{margin-top:18px;gap:10px}
  .iso-strip{height:86px;margin-top:16px}
  .balance{gap:13px;margin-top:17px}
  .balance-side{padding:17px}
  .mode-card .mode-code{width:48px;height:48px;border-radius:15px;margin-bottom:12px}
  .decision-path{gap:9px;margin-top:17px}
  .decision-node{padding:13px}
  .focus-demo{height:78px;margin-bottom:12px}
  .frame-demo{height:220px;border-width:9px;margin-top:16px}
  .light-icon{height:70px;margin-bottom:8px}
  .sequence{gap:8px;margin-top:17px}
  .project-field{padding:16px}
  .checklist{gap:9px;margin-top:16px}
  .check{padding:13px 14px 13px 42px}
  .check::before{left:13px;top:11px}
}

@media (min-width:801px) and (max-height:800px){
  body{font-size:15px;line-height:1.36}
  .shell{grid-template-rows:52px 1fr 54px}
  .topbar{padding:0 20px}
  .mark{width:32px;height:32px;border-radius:9px}
  .theme-btn{width:34px;height:34px}
  .progress-track{top:51px}
  .screen{min-height:calc(100vh - 106px);padding:20px clamp(28px,3.5vw,48px)}
  h1{font-size:clamp(2.4rem,4.9vw,4.45rem);margin-bottom:10px}
  h2{font-size:clamp(1.75rem,3.15vw,2.85rem);line-height:1.02;margin-bottom:10px}
  .eyebrow{font-size:.7rem;margin-bottom:7px}
  .lede{font-size:1rem;line-height:1.4}
  .statement{font-size:clamp(1.14rem,1.8vw,1.62rem);line-height:1.18}
  .content-grid{gap:clamp(20px,3vw,38px)}
  .card{padding:16px;border-radius:19px}
  .card h3{font-size:1.08rem;margin-bottom:6px}
  .list{gap:7px;margin-top:12px}
  .list li{grid-template-columns:27px 1fr;gap:8px}
  .list .num{width:24px;height:24px;font-size:.73rem}
  .compare{gap:11px}
  .placeholder{min-height:190px;padding:18px;border-radius:20px}
  .quote{font-size:clamp(1.5rem,2.8vw,2.55rem)}
  .activity{grid-template-columns:58px 1fr;gap:16px}
  .activity-number{width:50px;height:50px;border-radius:15px;font-size:1.35rem}
  .activity h2{font-size:clamp(1.7rem,3vw,2.7rem)}
  .steps,.question-grid{gap:8px;margin-top:14px}
  .step,.question{padding:12px;border-radius:15px}
  .summary{gap:20px}
  .summary-list{gap:7px;margin-top:12px}
  .footer-nav{padding:0 20px}
  .nav-link{min-height:38px;font-size:.92rem}
  .page-dots{gap:5px}
  .dot{width:6px;height:6px}.dot.active{width:18px}
  .tone-cards,.histogram-row,.choice-grid,.aperture-grid,.time-grid,
  .signal-grid,.mode-grid,.focus-grid,.position-grid,.scan-grid,.series-grid,
  .diagnosis-grid,.light-directions{gap:9px;margin-top:13px}
  .tone-card,.time-card,.signal-card,.mode-card,.focus-card,.position-card,.scan-card,.series-card{min-height:138px;padding:13px;border-radius:17px}
  .tone-card strong,.signal-card strong,.mode-card strong,.focus-card strong,.position-card strong,.scan-card strong,.series-card strong{font-size:1.02rem}
  .choice,.aperture-card,.histogram-card,.diagnosis,.light-direction{padding:12px;border-radius:16px}
  .choice b{font-size:1rem;margin-bottom:5px}
  .tone-card{min-height:142px}
  .aperture-card img{max-height:96px;margin-bottom:7px}
  .effect-grid,.motion-compare,.diagnose,.project-sheet{gap:10px;margin-top:13px}
  .factor-grid,.support-grid{gap:8px;margin-top:13px}
  .support,.motion-box{padding:13px;border-radius:16px}
  .motion-box .icon{height:62px;margin-bottom:8px}
  .time-card .motion-demo{height:48px;margin:4px 0 8px}
  .motion-demo .ball{top:13px;width:23px;height:23px}
  .time-card .time{font-size:1.1rem;margin-bottom:4px}
  .callout{padding:12px 15px;margin-top:12px;border-left-width:4px;border-radius:0 14px 14px 0}
  .note{font-size:.82rem;margin-top:7px}
  .meter{margin-top:12px;gap:7px}
  .histogram-card img{max-height:105px;object-fit:contain}
  .iso-strip{height:62px;margin-top:11px}
  .balance{gap:9px;margin-top:12px}
  .balance-side{padding:13px;border-radius:16px}
  .balance-arrow{font-size:1.45rem}
  .mode-card .mode-code{width:40px;height:40px;border-radius:12px;margin-bottom:8px;font-size:1.1rem}
  .decision-path{gap:7px;margin-top:12px}
  .decision-node{padding:10px;border-radius:14px}
  .focus-demo{height:60px;margin-bottom:8px}
  .focus-demo::before{height:42px;top:12px}
  .focus-demo.single::after,.focus-demo.track::after{height:52px;top:4px}
  .focus-demo.zone::after{inset:8px 25%}
  .frame-demo{height:170px;border-width:7px;margin-top:11px}
  .frame-demo .main-subject{height:115px;width:66px;left:44%;bottom:14px}
  .light-icon{height:54px;margin-bottom:5px}
  .light-icon::before{height:45px;top:8px}
  .light-icon::after{width:28px;height:28px}
  .sequence{gap:6px;margin-top:12px}
  .project-field{padding:12px;border-radius:15px}
  .checklist{gap:7px;margin-top:11px}
  .check{padding:10px 11px 10px 37px;border-radius:14px}
  .check::before{left:10px;top:8px;width:20px;height:20px}
}

/* Accesibilidad de teclado */
a:focus-visible,button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}


/* ============================================================
   Curso 02 · Domina la luz
   Componentes específicos. La base visual procede de la RC3.
   ============================================================ */
.property-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:24px}
.property{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:18px;min-height:145px}
.property b{display:block;color:var(--brand);font-size:1.05rem;margin-bottom:7px}
.property small{color:var(--muted)}
.light-set{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.light-case{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:18px}
.light-case .visual{height:100px;border-radius:14px;background:var(--soft);position:relative;overflow:hidden;margin-bottom:12px}
.light-case .object{position:absolute;width:42px;height:58px;border-radius:22px 22px 12px 12px;background:var(--brand);left:calc(50% - 21px);bottom:13px}
.light-case .source{position:absolute;width:31px;height:31px;border-radius:50%;background:#ffd86e;box-shadow:0 0 28px rgba(255,216,110,.72)}
.light-case.window .source{width:68px;height:72px;border-radius:10px;left:12px;top:14px}
.light-case.small .source{right:20px;top:14px}
.light-case.back .source{left:calc(50% - 15px);top:5px}
.observe-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}
.observe{padding:17px;border-radius:17px;background:var(--paper);border:1px solid var(--line);font-weight:800}
.subject-view{display:grid;grid-template-columns:1fr 90px 1fr;gap:18px;align-items:center;margin-top:24px}
.source-panel{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px;text-align:center}
.source-shape{height:96px;border-radius:18px;background:linear-gradient(135deg,var(--brand),var(--accent));margin-bottom:12px;opacity:.9}
.source-panel.small .source-shape{width:45px;height:45px;border-radius:50%;margin:25px auto 38px}
.subject-node{width:70px;height:70px;border-radius:50%;background:var(--soft);border:2px solid var(--brand);display:grid;place-items:center;font-weight:900;color:var(--brand);margin:auto}
.arrow-line{text-align:center;color:var(--brand);font-size:1.8rem;font-weight:900}
.direction-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}
.direction-card{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:16px;text-align:center}
.direction-card .mini{height:70px;position:relative;margin-bottom:8px}
.direction-card .mini::before{content:"";position:absolute;width:30px;height:48px;border-radius:16px 16px 9px 9px;background:var(--brand);left:calc(50% - 15px);bottom:6px}
.direction-card .mini::after{content:"";position:absolute;width:24px;height:24px;border-radius:50%;background:#ffd86e;box-shadow:0 0 20px rgba(255,216,110,.7)}
.direction-card.front .mini::after{left:calc(50% - 12px);top:0}.direction-card.side .mini::after{left:4px;top:26px}.direction-card.top .mini::after{left:calc(50% - 12px);top:0}.direction-card.back .mini::after{right:6px;top:27px}
.intention-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}
.intention{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:17px;min-height:125px}
.intention b{display:block;color:var(--brand);margin-bottom:6px}
.tick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px}
.tick{background:var(--paper);border:1px solid var(--line);border-radius:17px;padding:16px 16px 16px 45px;position:relative;font-weight:800}
.tick::before{content:"✓";position:absolute;left:14px;top:13px;width:23px;height:23px;border-radius:50%;background:var(--soft);color:var(--brand);display:grid;place-items:center}
.distance-set{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.distance-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:18px;text-align:center}
.distance-card .scene{height:100px;border-radius:14px;background:var(--soft);position:relative;margin-bottom:12px;overflow:hidden}
.distance-card .subject{position:absolute;width:34px;height:54px;border-radius:17px 17px 10px 10px;background:var(--brand);right:18%;bottom:17px}
.distance-card .lamp{position:absolute;border-radius:50%;background:#ffd86e;box-shadow:0 0 26px rgba(255,216,110,.75);top:27px}
.distance-card.near .lamp{width:58px;height:58px;left:11%}.distance-card.mid .lamp{width:38px;height:38px;left:16%}.distance-card.far .lamp{width:22px;height:22px;left:20%}
.penumbra-demo{display:grid;gap:20px;margin-top:24px}
.shadow-row{display:grid;grid-template-columns:210px 1fr;gap:22px;align-items:center}
.shadow-label{font-weight:900;color:var(--brand)}
.shadow-bar{height:54px;border-radius:15px;border:1px solid var(--line);background:linear-gradient(90deg,#17131c 0%,#17131c 28%,#6d6475 50%,#f6f0fa 72%,#f6f0fa 100%)}
.shadow-row.hard .shadow-bar{background:linear-gradient(90deg,#17131c 0%,#17131c 48%,#f6f0fa 52%,#f6f0fa 100%)}
.variable-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}
.variable{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:17px;min-height:125px}
.variable b{display:block;color:var(--brand);margin-bottom:6px}
.shadow-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}
.shadow-type{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px}
.shadow-type .demo{height:105px;border-radius:15px;background:var(--soft);position:relative;margin-bottom:13px;overflow:hidden}
.shadow-type .demo .subject{position:absolute;width:48px;height:68px;border-radius:24px 24px 13px 13px;background:var(--brand);left:26%;bottom:15px}
.shadow-type.own .demo .subject{background:linear-gradient(90deg,var(--brand) 0%,var(--brand) 46%,#302141 72%,#17131c 100%)}
.shadow-type.projected .demo::after{content:"";position:absolute;width:78px;height:48px;border-radius:50%;background:rgba(23,19,28,.65);left:48%;bottom:18px;transform:skewX(-18deg)}
.texture-grid,.reflection-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:22px}
.texture-card,.reflection-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px}
.texture-visual{height:90px;border-radius:14px;margin-bottom:12px;background:repeating-linear-gradient(90deg,var(--brand) 0 5px,var(--soft) 5px 14px)}
.texture-card.soft .texture-visual{filter:blur(2px);opacity:.72}
.reflection-visual{height:95px;border-radius:50%;background:radial-gradient(circle at 35% 32%,#fff 0 10%,var(--accent) 12% 27%,var(--brand) 42%,#211a2a 75%);margin-bottom:12px}
.reflection-card.wide .reflection-visual{background:radial-gradient(ellipse at 42% 34%,#fff 0 22%,var(--accent) 25% 45%,var(--brand) 58%,#211a2a 82%)}
.diffusion-check{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}
.diffusion-case{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px}
.diffusion-surface{height:95px;border-radius:14px;background:var(--soft);position:relative;margin-bottom:12px;overflow:hidden}
.diffusion-surface::before{content:"";position:absolute;inset:14px;border:2px dashed var(--brand);border-radius:10px}
.diffusion-case.partial .diffusion-surface::after{content:"";position:absolute;width:38%;height:60%;left:31%;top:20%;border-radius:50%;background:radial-gradient(circle,#fff 0%,#ffd86e 35%,transparent 72%)}
.diffusion-case.full .diffusion-surface::after{content:"";position:absolute;inset:14px;border-radius:10px;background:linear-gradient(135deg,#fff3bd,#ffd86e);opacity:.85}
@media(max-width:1000px){.property-grid{grid-template-columns:repeat(3,1fr)}.direction-row,.intention-grid,.variable-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){.property-grid,.light-set,.observe-grid,.subject-view,.direction-row,.intention-grid,.tick-grid,.distance-set,.shadow-compare,.texture-grid,.reflection-grid,.diffusion-check,.variable-grid{grid-template-columns:1fr}.subject-view{gap:10px}.arrow-line{transform:rotate(90deg)}.shadow-row{grid-template-columns:1fr}}
@media (min-width:801px) and (max-height:800px){
  .property-grid,.light-set,.observe-grid,.direction-row,.intention-grid,.tick-grid,.distance-set,.variable-grid,.shadow-compare,.texture-grid,.reflection-grid,.diffusion-check{gap:9px;margin-top:13px}
  .property,.light-case,.observe,.direction-card,.intention,.tick,.distance-card,.variable,.shadow-type,.texture-card,.reflection-card,.diffusion-case{padding:12px;border-radius:16px}
  .property{min-height:105px}.light-case .visual,.distance-card .scene{height:72px}.direction-card .mini{height:54px}.intention,.variable{min-height:90px}.subject-view{margin-top:14px;gap:12px}.source-panel{padding:12px}.source-shape{height:68px;margin-bottom:7px}.source-panel.small .source-shape{width:35px;height:35px;margin:16px auto 24px}.subject-node{width:54px;height:54px}.penumbra-demo{gap:12px;margin-top:14px}.shadow-row{grid-template-columns:170px 1fr;gap:14px}.shadow-bar{height:38px}.shadow-type .demo,.texture-visual,.reflection-visual,.diffusion-surface{height:70px;margin-bottom:8px}
}

/* ============================================================
   Portada del curso
   Estilos específicos del index general. Se mantienen separados
   de las pantallas de unidad para no alterar la plantilla RC3.
   ============================================================ */
.top{background:var(--paper);border-bottom:1px solid var(--line)}
.top .bar{height:64px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 clamp(20px,4vw,56px);max-width:1440px;margin:0 auto}
.top .brand{font-weight:900;letter-spacing:-.02em;color:var(--ink)}
.top .hero{background:var(--gradient);color:#fff;padding:clamp(48px,7vw,92px) clamp(20px,6vw,80px);position:relative;overflow:hidden}
.top .hero::after{content:"";position:absolute;right:-130px;top:-210px;width:520px;height:520px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 76px rgba(255,255,255,.035),0 0 0 152px rgba(255,255,255,.025)}
.top .hero>*{position:relative;z-index:1;max-width:1180px;margin-left:auto;margin-right:auto}
.top .hero .eyebrow{color:rgba(255,255,255,.78);margin-bottom:14px}
.top .hero h1{font-size:clamp(3.3rem,8vw,7rem);margin-bottom:18px;max-width:1000px}
.top .hero>p:last-child{font-size:clamp(1.08rem,2vw,1.42rem);line-height:1.45;max-width:760px;color:rgba(255,255,255,.88);margin-bottom:0}
.main{width:min(1240px,100%);margin:0 auto;padding:clamp(42px,6vw,82px) clamp(20px,5vw,64px)}
.section-title{font-size:clamp(2.2rem,5vw,4.5rem);margin-bottom:14px}
.main>.lede{max-width:820px;margin-bottom:34px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.unit{display:flex;flex-direction:column;min-height:250px;padding:clamp(24px,3vw,34px);background:var(--paper);border:1px solid var(--line);border-radius:24px;text-decoration:none;box-shadow:var(--shadow);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
a.unit:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--brand) 58%,var(--line));box-shadow:0 24px 58px rgba(55,23,95,.18)}
.unit .num{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:.74rem;font-weight:900;color:var(--brand);margin-bottom:14px}
.unit h2{font-size:clamp(1.75rem,3vw,2.75rem);line-height:1.03;margin-bottom:14px}
.unit p{color:var(--muted);font-size:1.02rem;max-width:52ch;margin-bottom:22px}
.unit .open{margin-top:auto;font-weight:900;color:var(--brand)}
.unit.pending{box-shadow:none;background:color-mix(in srgb,var(--paper) 80%,var(--soft));border-style:dashed}
.unit.pending .open{color:var(--muted);font-weight:800}
.footer{padding:28px clamp(20px,5vw,64px);text-align:center;border-top:1px solid var(--line);background:var(--paper);color:var(--muted);font-size:.94rem}
@media(max-width:760px){
  .grid{grid-template-columns:1fr}
  .unit{min-height:220px}
  .top .hero{padding-top:44px;padding-bottom:52px}
}

.brand-link{text-decoration:none;color:#fff}


/* Tipografía armonizada con maiteae.com */
body{font-family:"DM Sans",sans-serif}
h1,h2,h3,.section-title{font-family:"Cormorant Garamond",serif;font-weight:400}
.hero h1{font-size:clamp(2.9rem,5vw,4.85rem);line-height:.96;letter-spacing:-.035em}
.section-title{font-size:clamp(2.05rem,3.2vw,3.15rem)}
.unit h2{font-size:clamp(1.65rem,2.15vw,2.3rem);line-height:1.08}
.hero p{font-size:clamp(1.02rem,1.35vw,1.22rem)}

/* Ajuste final de escala editorial para monitores grandes */
.hero h1{font-size:clamp(2.8rem,4.5vw,4.5rem)}
