/* KronosMedicine — estilos de la landing y de las páginas de curso.
   Diseño puede ajustar las variables de :root con la guía de estilo. */
:root {
  --bg: #0b1020;
  --surface: #141b33;
  --surface-2: #1c2547;
  --line: #26305a;
  --text: #e8ecf8;
  --muted: #9aa4c7;
  --accent: #4fd1c5;
  --accent-2: #7c8cff;
  --ok: #48bb78;
  --bad: #f56565;
  --radius: 16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; }
body.no-scroll { overflow: hidden; }
a { color: var(--accent); }
img, video { max-width: 100%; }
.muted { color: var(--muted); }
.center { text-align: center; }
[hidden] { display: none !important; }

/* ---------- Botones y piezas ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #0b1020; border: 0; border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.badge { display: inline-block; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge.ok { background: rgba(72,187,120,.15); color: var(--ok); }
.eyebrow { color: var(--accent); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.grad { background: linear-gradient(90deg, var(--accent-2), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.keywords, .chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.keywords li, .chips li { background: var(--surface-2); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: .82rem; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.placeholder { display: grid; place-items: center; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: 12px; padding: 24px; }
.placeholder.wide { aspect-ratio: 16/6; }

/* ---------- Barra superior ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: rgba(11,16,32,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand span { color: var(--accent); }
.toplinks { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.toplinks a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.toplinks a:not(.btn):hover { color: var(--text); }
.burger { width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-content: center; gap: 5px; flex: none; }
.burger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-open .burger span:nth-child(1), .nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2), .nav-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3), .nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.only-mobile { display: none; }
@media (max-width: 760px) {
  .only-mobile { display: grid; margin-left: auto; }
  .toplinks { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .toplinks a:not(.btn) { padding: 12px 4px; }
  .nav-open .toplinks { display: flex; }
}

/* ---------- Landing ---------- */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.landing section { padding: 72px 24px; }
.landing h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.15; margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 1.1rem; }
.lead.narrow { max-width: 620px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding-top: 56px !important; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 18px; }
.hero-video { justify-self: center; width: 100%; max-width: 340px; }
.hero-video video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 22px; background: #000; box-shadow: 0 30px 80px rgba(79,209,197,.18); border: 1px solid var(--line); }
.caption { color: var(--muted); font-size: .85rem; text-align: center; margin: 10px 0 0; }
.stats { display: flex; gap: 32px; list-style: none; padding: 0; margin: 28px 0 0; }
.stats strong { display: block; font-size: 1.9rem; color: var(--text); line-height: 1; }
.stats span { color: var(--muted); font-size: .85rem; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-video { max-width: 280px; } }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.feature { all: unset; cursor: pointer; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s; }
.feature:hover, .feature:focus-visible { transform: translateY(-4px); border-color: var(--accent); }
.thumb { position: relative; display: block; aspect-ratio: 4/3; background-size: cover; background-position: center 18%; }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,16,32,.85)); }
.play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(79,209,197,.92); color: #0b1020; display: grid; place-items: center; font-size: 1.1rem; padding-left: 3px; }
.feature-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 20px; }
.feature-ico { font-size: 1.3rem; }
.feature-body .muted { font-size: .9rem; }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.course-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
a.course-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.course-card h3 { margin: 4px 0 0; font-size: 1.2rem; }
.course-card p { margin: 0; }
.course-card .btn { margin-top: auto; }
.course-card.disabled { opacity: .55; }
.final-cta { text-align: center; }
.final-cta .lead { max-width: 640px; margin: 0 auto 24px; }
.footer { display: flex; justify-content: space-between; padding: 28px 24px 40px; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.7); display: grid; place-items: center; padding: 20px; }
.modal-box { position: relative; display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 360px); gap: 26px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; max-height: 92vh; overflow: auto; }
.modal-video video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 14px; background: #000; max-height: 80vh; }
.modal-text h3 { font-size: 1.5rem; margin: 0 0 10px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 1rem; }
@media (max-width: 680px) { .modal-box { grid-template-columns: 1fr; } .modal-video { max-width: 260px; margin: 0 auto; } }

/* ---------- Curso: menú lateral ---------- */
.top-progress { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; font-weight: 700; }
.top-progress .bar { width: 120px; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.top-progress .bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface); z-index: 50; padding: 18px 14px; overflow-y: auto; transform: translateX(-100%); transition: transform .28s ease; box-shadow: 4px 0 24px rgba(0,0,0,.4); }
.menu-open .drawer { transform: none; }
.drawer .back { display: block; color: var(--muted); text-decoration: none; font-size: .9rem; padding: 6px 10px; }
.drawer-title { color: var(--text); font-weight: 700; margin: 10px 10px 14px; }
.drawer ol { list-style: none; margin: 0; padding: 0; }
.drawer ol a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.drawer ol a:hover { background: var(--surface-2); }
.drawer ol a.active { background: var(--surface-2); color: var(--accent); font-weight: 700; }
.drawer .num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: .78rem; display: grid; place-items: center; flex: none; }
.drawer a.active .num { background: var(--accent); color: #0b1020; }

/* ---------- Curso: contenido ---------- */
.lesson { max-width: 960px; margin: 0 auto; padding: 24px 20px 64px; }
.crumb { color: var(--muted); font-size: .85rem; margin: 0; }
.crumb a { color: var(--muted); }
.section-head h1 { margin: 6px 0 18px; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; }
.explainer { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 14px; margin-bottom: 28px; }
.explainer.no-video { grid-template-columns: 1fr; padding: 18px 22px; }
.explainer-video video { width: 100%; aspect-ratio: 9/16; max-height: 62vh; object-fit: cover; border-radius: 12px; display: block; background: #000; }
.explainer-text { margin: 0; font-size: 1.05rem; }
.explainer-text strong { color: var(--accent); }
@media (max-width: 680px) { .explainer { grid-template-columns: 1fr; } .explainer-video { max-width: 260px; margin: 0 auto; width: 100%; } }
.panel { display: none; }
.panel.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.h2 { font-size: 1.3rem; margin: 30px 0 14px; }
.h3 { font-size: 1.15rem; margin: 30px 0 12px; }
.block { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; scroll-margin-top: 90px; }
.block h3 { margin: 0 0 8px; color: var(--accent); }
.flash { animation: glow 1.6s ease; }
@keyframes glow { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: none; } }

.course-hero .lead { margin-top: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 16px; }
.meta li { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.mix { background: var(--surface); border-radius: var(--radius); padding: 20px; }
.mix-bar { display: flex; height: 18px; border-radius: 99px; overflow: hidden; gap: 2px; }
.mix-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; list-style: none; padding: 0; margin: 18px 0 0; }
.mix-legend li { display: flex; align-items: center; gap: 8px; }
.mix-legend strong { margin-left: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Ruta */
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; scroll-margin-top: 90px; }
.module summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; }
.module summary::-webkit-details-marker { display: none; }
.mod-num { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--accent); font-weight: 800; display: grid; place-items: center; flex: none; }
.mod-title { display: flex; flex-direction: column; flex: 1; }
.mod-title .muted { font-size: .85rem; }
.ring { --p: 0; width: 30px; height: 30px; border-radius: 50%; display: block; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }
.mod-body { padding: 0 18px 18px; }
.mod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; font-size: .93rem; }
.mod-cols h4 { margin: 0 0 4px; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.mod-cols ul { margin: 0; padding-left: 18px; }
@media (max-width: 640px) { .mod-cols { grid-template-columns: 1fr; } }
.acts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.act { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.act-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 1rem; }
.act-title { flex: 1; display: flex; flex-direction: column; font-weight: 600; }
.act-title .muted { font-weight: 400; font-size: .82rem; }
.act.is-done .act-title { color: var(--muted); text-decoration: line-through; }
.check { position: relative; flex: none; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check span { display: block; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); }
.check input:checked + span { background: var(--ok); border-color: var(--ok); }
.check input:checked + span::after { content: "✓"; display: grid; place-items: center; color: #0b1020; font-weight: 900; font-size: .85rem; height: 100%; }
.check input:focus-visible + span { outline: 2px solid var(--accent); }
.mod-video { margin-top: 12px; }
.mod-video video { width: 100%; border-radius: 12px; background: #000; }

/* Podcast */
.episodes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.episode { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 14px 18px; scroll-margin-top: 90px; }
.ep-num { width: 40px; height: 40px; border-radius: 50%; background: #b794f4; color: #0b1020; font-weight: 800; display: grid; place-items: center; flex: none; }
.ep-title { flex: 1; display: flex; flex-direction: column; }
.ep-title .muted { font-size: .85rem; }
.episode audio { max-width: 260px; }

/* Resúmenes */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.toc a { background: var(--surface-2); color: var(--text); text-decoration: none; padding: 6px 12px; border-radius: 999px; font-size: .85rem; }
.toc a:hover { color: var(--accent); }
.points { margin: 0; padding-left: 20px; }
.points li { margin-bottom: 6px; }
.perla { margin: 14px 0 0; background: rgba(79,209,197,.08); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 10px 10px 0; }
.perla strong { color: var(--accent); }

/* Infografías */
.infografia { margin: 0 0 28px; background: var(--surface); border-radius: var(--radius); padding: 14px; scroll-margin-top: 90px; }
.infografia figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 4px 6px 12px; }
.infografia figcaption a { font-size: .88rem; }
.infografia img { display: block; width: 100%; border-radius: 10px; }

/* Flash cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.chip-btn { background: var(--surface-2); color: var(--text); border: 1px solid transparent; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: .85rem; }
.chip-btn.active { border-color: var(--accent); color: var(--accent); }
.card-wrap { perspective: 1200px; max-width: 560px; margin: 0 auto; }
.flashcard { position: relative; height: 280px; transform-style: preserve-3d; transition: transform .5s; cursor: pointer; }
.flashcard.flipped { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; text-align: center; padding: 28px; font-size: 1.2rem; }
.front { background: var(--surface); border: 1px solid var(--line); }
.front .tema { font-size: .75rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.back { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #0b1020; transform: rotateY(180deg); font-weight: 600; }
.hint { text-align: center; color: var(--muted); font-size: .85rem; }
.card-actions { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* Exámenes */
.exam-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.gate { background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; align-content: start; justify-items: start; }
.gate h3 { margin: 0; font-size: 1.25rem; }
.gate p { margin: 0; color: var(--muted); }
.gate input { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }
.gate .btn { width: 100%; }
.error { color: var(--bad) !important; min-height: 1em; }
.exam-bar { position: sticky; top: 66px; z-index: 5; display: flex; justify-content: space-between; align-items: center; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line); margin-bottom: 16px; color: var(--muted); font-weight: 600; }
.timer { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.timer.low { color: var(--bad); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .5; } }
.q { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.q-meta { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 0 0 8px; }
.caso { color: var(--muted); margin: 0 0 8px; }
.q-preg { font-weight: 700; margin: 0 0 12px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 8px; cursor: pointer; }
.opt:hover { border-color: var(--accent-2); }
.opt input { position: absolute; opacity: 0; }
.letra { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.opt:has(input:checked) { border-color: var(--accent); background: rgba(79,209,197,.08); }
.opt:has(input:checked) .letra { background: var(--accent); color: #0b1020; }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); }

/* Resultados */
.result-head { display: flex; align-items: center; gap: 24px; background: var(--surface); border-radius: var(--radius); padding: 24px; border-left: 6px solid var(--ok); }
.result-head.fail { border-left-color: var(--bad); }
.result-head h2 { margin: 0; font-size: 1.8rem; }
.result-head p { margin: 0; }
.score-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; font-size: 1.6rem; font-weight: 800; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; padding: 0; margin: 14px 0 0; }
.result-stats li { background: var(--surface); border-radius: 14px; padding: 14px; text-align: center; color: var(--muted); font-size: .85rem; }
.result-stats strong { display: block; font-size: 1.6rem; color: var(--text); }
.c-ok { color: var(--ok) !important; } .c-bad { color: var(--bad) !important; }
@media (max-width: 560px) { .result-stats { grid-template-columns: repeat(2, 1fr); } .result-head { flex-direction: column; text-align: center; } }
.by-topic { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.by-topic th, .by-topic td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.by-topic th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.tbar { display: inline-block; width: 110px; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.tbar span { display: block; height: 100%; }
.recos { background: rgba(246,173,85,.08); border: 1px solid rgba(246,173,85,.35); border-radius: var(--radius); padding: 4px 22px 14px; margin-top: 20px; }
.recos.ok { background: rgba(72,187,120,.08); border-color: rgba(72,187,120,.35); }
.recos ul { padding-left: 18px; }
.review { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.review li { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; border-left: 5px solid var(--muted); }
.review .r-ok { border-left-color: var(--ok); }
.review .r-bad { border-left-color: var(--bad); }
.review .r-ok .q-meta { color: var(--ok); }
.review .r-bad .q-meta { color: var(--bad); }
.tu { color: var(--bad); margin: 0 0 4px; }
.correcta { color: var(--ok); font-weight: 700; margin: 0 0 6px; }
.exp { margin: 0; }

.pager { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .top-progress .bar { width: 70px; } .topbar { padding: 10px 14px; } }

.capsula{margin-bottom:18px}
.capsula video{width:100%;aspect-ratio:16/9;border-radius:12px;background:#000;display:block}
.capsula p{font-size:.85rem;margin:6px 0 0}
.downloads{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line)}

.hidden{display:none!important}
.top-user{display:flex;align-items:center;gap:10px;margin-left:16px;font-size:.88rem}
.top-user a{text-decoration:none;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:620px){.top-user a{display:none}.top-progress .bar{width:60px}}
.brand{display:inline-flex;align-items:center;gap:8px}.brand-logo{height:34px;width:auto}

/* Videos 3D */
.v3d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 28px; }
.v3d { all: unset; cursor: pointer; display: block; position: relative; aspect-ratio: 9/16; border-radius: 18px; overflow: hidden; background: #000 center/cover no-repeat; border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.v3d:hover, .v3d:focus-visible { transform: translateY(-3px); border-color: var(--accent, #4fd1c5); }
.v3d::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.v3d .play { position: absolute; top: 12px; right: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.55); font-size: .85rem; }
.v3d .v3d-txt { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.v3d .v3d-txt small { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb3d9; }
.v3d .v3d-txt strong { font-size: .98rem; line-height: 1.2; }
.course-v3d { margin-top: 34px; }
.v3d-item { margin: 0; }
.v3d-item video { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 16px; background: #000; border: 1px solid var(--line); }
.v3d-item figcaption { margin-top: 8px; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.v3d-item figcaption small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb3d9; font-weight: 600; }
