/* Public website additions: photos, the student-space mockup (demo.js) and the static course pages.
   Same tokens and rules as styles.css: sol and naranja only as fills, ink text on them, pill buttons, no shadows. */

/* photos */
.ph{display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--r);background:var(--surface)}
.photo-band{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr);gap:16px;height:clamp(220px,30vw,360px)}
.photo-band figure{margin:0;min-width:0;min-height:0;height:100%;position:relative;overflow:hidden;border-radius:var(--r)}
.photo-band .ph{min-height:0}
.photo-band figure:nth-child(2){display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:16px;overflow:visible}
.photo-band .tag{position:absolute;left:14px;bottom:14px;background:#fff;color:#000;font-weight:700;font-size:.86rem;padding:5px 12px;border-radius:999px}
@media(max-width:720px){.photo-band{grid-template-columns:1fr 1fr;height:auto}.photo-band figure{height:auto}.photo-band figure:first-child{grid-column:1/-1;aspect-ratio:16/9}.photo-band figure:nth-child(2){display:block;aspect-ratio:1}.photo-band figure:nth-child(2) img+img{display:none}.photo-band figure:nth-child(3){aspect-ratio:1}}

/* programme cards with photos (home "Para quién es") */
.pcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:22px}
@media(max-width:600px){.pcards{grid-template-columns:1fr 1fr;gap:18px 14px}.pcard span:not(.more){font-size:.92rem}}
.pcard{display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none}
.pcard .ph{aspect-ratio:4/3;height:auto}
.pcard b{font-weight:800;font-size:1.08rem}
.pcard span{color:var(--muted)}
.pcard .more{color:var(--naranja-ink);font-weight:700;font-size:.94rem;text-decoration:underline;text-underline-offset:3px}
.pcard:hover .ph{filter:brightness(1.05)}

/* student-space mockup */
.demo-sec{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr);gap:clamp(24px,4vw,56px);align-items:center}
.demo-sec .copy{display:flex;flex-direction:column;gap:14px}
.demo-sec ul.ticks{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.demo-sec ul.ticks li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px}
.demo-sec ul.ticks li::before{content:"";width:12px;height:12px;border-radius:50%;background:var(--naranja);margin-top:8px}
@media(max-width:960px){.demo-sec{grid-template-columns:1fr}}
.demo{border:2px solid var(--fg);border-radius:20px;overflow:hidden;background:var(--bg);font-size:.92rem;line-height:1.45}
.demo-bar{display:flex;align-items:center;gap:7px;padding:9px 14px;background:var(--surface);border-bottom:1px solid var(--line)}
.demo-bar i{width:10px;height:10px;border-radius:50%;background:var(--line)}
.demo-bar i:first-child{background:var(--naranja)} .demo-bar i:nth-child(2){background:var(--sol)}
.demo-bar span{margin:0 auto;font-size:.78rem;color:var(--muted);background:var(--bg);padding:2px 14px;border-radius:999px}
.demo-body{display:grid;grid-template-columns:150px minmax(0,1fr)}
.demo-side{background:var(--surface);border-right:1px solid var(--line);padding:16px 10px;display:flex;flex-direction:column;gap:3px}
.demo-side img{margin:0 0 12px 6px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .demo-side img{background:#fff;border-radius:14px;padding:4px 8px}}
:root[data-theme="dark"] .demo-side img{background:#fff;border-radius:14px;padding:4px 8px}
.demo-side span{padding:6px 10px;border-radius:8px;color:var(--muted);font-size:.86rem}
.demo-side span.on{background:var(--bg);color:var(--fg);font-weight:700;box-shadow:0 0 0 1px var(--line)}
.demo-main{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;padding:18px}
.demo-k{font-size:.8rem;font-weight:700;color:var(--muted);margin-bottom:4px}
.demo-lesson h3{font-size:1.2rem}
.demo-sub{color:var(--muted);font-size:.86rem;margin:2px 0 12px}
.demo-player{display:flex;align-items:center;gap:12px;background:var(--crema);border-radius:999px;padding:6px 16px 6px 6px}
.demo-play{flex:none;width:46px;height:46px;border-radius:50%;border:0;background:#000;color:#fff;display:grid;place-items:center;cursor:pointer}
.demo-play:disabled{opacity:.6;cursor:progress}
.demo-wave{flex:1;display:flex;align-items:center;gap:3px;height:34px;min-width:0;overflow:hidden}
.demo-wave i{flex:1;min-width:2px;max-width:6px;height:var(--h);border-radius:2px;background:#000;opacity:.35;transform-origin:center}
.demo.playing .demo-wave i{opacity:1;animation:wv .9s ease-in-out var(--d) infinite alternate}
@keyframes wv{from{transform:scaleY(.35)}to{transform:scaleY(1)}}
.demo-time{font-variant-numeric:tabular-nums;font-weight:700;font-size:.86rem;color:#000;min-width:2.6em;text-align:right}
.demo-lines{list-style:none;padding:0;margin:12px 0 0;max-height:236px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;scrollbar-width:thin}
.demo-lines li{display:grid;grid-template-columns:4.2em minmax(0,1fr);gap:8px;padding:5px 10px;border-radius:10px;transition:background .25s}
.demo-lines li.stage{display:block;color:var(--muted);font-style:italic;font-size:.84rem;padding-top:9px}
.demo-lines li b{font-weight:700}
.demo-lines li.now{background:var(--sol);color:#000}
.demo-lines li.now b{color:#000}
.demo-col{display:flex;flex-direction:column;gap:12px}
.demo-card{background:var(--surface);border-radius:12px;padding:12px 14px}
.demo-meter{height:8px;border-radius:999px;background:color-mix(in srgb,var(--fg) 10%,transparent);overflow:hidden;margin:6px 0}
.demo-meter span{display:block;height:100%;width:0;background:var(--naranja);border-radius:inherit;transition:width 1.6s cubic-bezier(.2,.7,.2,1) .2s}
.demo.in .demo-meter span{width:78%}
.demo-hw{list-style:none;padding:0;display:flex;flex-direction:column;gap:6px}
.demo-hw li{display:flex;gap:8px;align-items:center}
.demo-check{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--line);position:relative;transition:background .3s,border-color .3s}
.demo-check::after{content:"";position:absolute;left:4px;top:1px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg) scale(0);transition:transform .3s}
.demo.in .demo-hw li:nth-child(-n+2) .demo-check{background:var(--ok);border-color:var(--ok)}
.demo.in .demo-hw li:nth-child(-n+2) .demo-check::after{transform:rotate(45deg) scale(1)}
.demo-hw li:nth-child(1) .demo-check,.demo-hw li:nth-child(1) .demo-check::after{transition-delay:.6s}
.demo-hw li:nth-child(2) .demo-check,.demo-hw li:nth-child(2) .demo-check::after{transition-delay:1.2s}
.demo-words{display:grid;grid-template-columns:1fr;gap:0;margin:0;font-size:.84rem}
.demo-words dt{font-weight:700} .demo-words dd{margin:0 0 6px;color:var(--muted)}
.demo-next b{font-size:1rem}
.demo-note{margin-top:10px}
@media(max-width:760px){.demo-body{grid-template-columns:1fr}.demo-side{display:none}.demo-main{grid-template-columns:1fr;padding:14px}.demo-col{display:grid;grid-template-columns:1fr 1fr}.demo-words,.demo-card:has(.demo-words){display:none}}
@media(max-width:420px){.demo-col{grid-template-columns:1fr}}

/* links to the course pages */
.seo-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:0 40px}
.seo-links a{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);color:var(--fg);text-decoration:none;font-weight:700}
.seo-links a::after{content:"→";color:var(--naranja-ink)}
.seo-links a:hover{color:var(--naranja-ink)}

/* static course pages */
.sp-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,5vw,64px);align-items:center;padding-block:8px}
.sp-hero h1{font-size:clamp(2rem,4.6vw,3.2rem);line-height:1.06;letter-spacing:-.025em}
.sp-hero .lead{font-size:1.12rem;color:var(--muted);max-width:52ch}
.sp-hero .ph{aspect-ratio:4/3;height:auto}
@media(max-width:820px){.sp-hero{grid-template-columns:1fr}}
.prose{max-width:70ch;display:flex;flex-direction:column;gap:14px}
.prose h2{margin-top:10px}
.prose ul{display:flex;flex-direction:column;gap:6px}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:16px}
.facts div{background:var(--surface);border-radius:var(--r);padding:18px}
.facts b{display:block;font-size:1.5rem;font-weight:800;line-height:1.15}
.facts span{color:var(--muted);font-size:.94rem}
.lvtable td:first-child{font-weight:800;white-space:nowrap}
.faq{display:flex;flex-direction:column;max-width:78ch}
.faq details{border-bottom:1px solid var(--line);padding:4px 0}
.faq summary{cursor:pointer;font-weight:700;padding:12px 0;list-style:none;display:flex;justify-content:space-between;gap:16px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-weight:800;font-size:1.2rem;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq details p{padding:0 0 14px;color:var(--muted)}
.foot-nav{display:flex;flex-wrap:wrap;gap:8px 18px}
.foot-nav a{color:var(--muted)}
.credits{font-size:.8rem}
.credits a{color:var(--muted)}

/* enrol page: muted video of Asunción behind the form, dark scrim so the text stays readable */
.enrol-bg{position:relative;border-radius:var(--r);overflow:hidden;background:#1a1a1a;padding:clamp(20px,5vw,56px)}
.enrol-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.enrol-bg::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.45));z-index:1}
.enrol-in{position:relative;z-index:2;align-items:start}
.enrol-copy{color:#fff;padding-top:8px}
.enrol-copy h1{color:#fff}
.enrol-copy p{color:#f2f2f2;font-size:1.08rem;max-width:40ch}
.enrol-bg .panel{background:var(--bg)}
.enrol-bg+.credits{margin-top:10px}

/* static page language switch (links, same look as the app's buttons) */
.lang a{font-size:.8rem;font-weight:700;padding:5px 10px;color:var(--muted);text-decoration:none;display:inline-block}
.lang a[aria-current="true"]{background:var(--fg);color:var(--bg)}
.sp-hero.no-photo{grid-template-columns:1fr}

/* footer */
footer.site .wrap{display:block}
.foot-grid{display:grid;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr));gap:28px 40px;padding-block:12px 28px}
.foot-brand{display:flex;flex-direction:column;gap:12px;max-width:34ch}
.foot-logo{display:inline-block;width:max-content}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .foot-logo{background:#fff;border-radius:var(--r-plate);padding:8px 18px}}
:root[data-theme="dark"] .foot-logo{background:#fff;border-radius:var(--r-plate);padding:8px 18px}
.foot-col h2{font-size:.95rem;font-weight:800;color:var(--fg);margin-bottom:10px}
.foot-col ul{list-style:none;padding:0;display:flex;flex-direction:column;gap:8px}
.foot-col a,.foot-legal a{color:var(--muted);text-decoration:none}
.foot-col a:hover,.foot-legal a:hover{color:var(--fg);text-decoration:underline}
.foot-bottom{display:flex;flex-wrap:wrap;gap:10px 24px;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:18px}
.foot-legal{display:flex;flex-wrap:wrap;gap:8px 20px;margin-left:auto}
#installSlot:empty{display:none}
@media(max-width:860px){.foot-grid{grid-template-columns:1fr 1fr}.foot-brand{grid-column:1/-1}}
@media(max-width:420px){.foot-grid{gap:24px 20px}.foot-col:last-child{grid-column:1/-1}}
.prose+.prose{margin-top:36px}
