/* Academia Loopling Screens — mismo estilo del panel (opción D) */
:root {
  --bg: #fbfaf7; --card: #fff; --ink: #14213d; --muted: #56607a; --line: #e4e0d7; --soft: #f2efe8;
  --coral: #ff6b4a; --coral-ink: #b8361a; --ok: #0e6b47; --ok-bg: #e3f6ee; --bad: #b8361a; --bad-bg: #ffe3db; --warn-bg: #fff4dc; --warn-ink: #7a5300;
  --press: rgba(20, 33, 61, .9); --spring: cubic-bezier(.3, 1.45, .5, 1);
  --display: "Fraunces", Georgia, serif; --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1224; --card: #111a33; --ink: #e7eaf3; --muted: #a9b3cc; --line: #25304f; --soft: #172243; --ok: #6ee0b4; --ok-bg: #0f3a2b; --bad: #ff9b85; --bad-bg: #44190f; --warn-bg: #3a2c0b; --warn-ink: #f2c14e; --press: rgba(0, 0, 0, .6); color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--coral-ink); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; }

.ac-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ac-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); }
.ac-brand svg { width: 40px; color: var(--ink); }
.ac-brand em { color: var(--coral); font-style: italic; font-weight: 500; }
.ac-top nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.ac-top nav a:not(.ac-btn) { text-decoration: none; color: var(--muted); }
.ac-top nav a:not(.ac-btn):hover { color: var(--ink); }

.ac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--coral); color: #14213d; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; box-shadow: 0 2px 0 var(--press); transition: transform .2s var(--spring), box-shadow .2s ease, background .2s ease; }
.ac-btn:hover { color: #14213d; transform: translateY(-2px); box-shadow: 0 4px 0 var(--press), 0 14px 24px -14px rgba(20, 33, 61, .5); }
.ac-btn:active { transform: translateY(2px) scale(.98); box-shadow: 0 0 0 var(--press); }
.ac-btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.ac-btn.ghost:hover { color: var(--ink); box-shadow: 0 3px 0 var(--press); }
.ac-btn.small { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.ac-btn[disabled] { opacity: .6; cursor: progress; }

main { max-width: 1160px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 80px; }
@keyframes pop-in { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 65% { opacity: 1; transform: translateY(-2px) scale(1.005); } 100% { opacity: 1; transform: none; } }
.enter > * { animation: pop-in .6s var(--spring) both; }
.enter > *:nth-child(2) { animation-delay: .06s; } .enter > *:nth-child(3) { animation-delay: .12s; } .enter > *:nth-child(4) { animation-delay: .18s; }

.hero { padding: clamp(48px, 9vw, 110px) 0 40px; max-width: 860px; }
.eyebrow { margin: 0 0 10px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--coral); } }
.hero h1 { margin: 0; font-size: clamp(40px, 6.4vw, 76px); }
.hero h1 em { color: var(--coral); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 62ch; margin: 18px 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.block { padding: 56px 0 8px; scroll-margin-top: 80px; }
.block h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.sub { color: var(--muted); max-width: 64ch; margin: 10px 0 26px; }

.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.feat-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); transition: transform .35s var(--spring), box-shadow .35s ease; animation: pop-in .6s var(--spring) both; animation-delay: calc(var(--i) * 35ms); }
.feat-card strong { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.15; }
.feat-card span { color: var(--muted); font-size: 15px; }
.feat-card em { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; font-size: 14px; color: var(--coral-ink); }
.feat-card:hover { color: var(--ink); transform: translateY(-5px); box-shadow: 0 4px 0 var(--press), 0 24px 40px -26px rgba(20, 33, 61, .6); }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.level-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.level-card .lv { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.level-card h3 { margin: 0; font-size: 28px; }
.level-card p { margin: 0; color: var(--muted); }
.bar { height: 8px; background: var(--soft); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--coral); border-radius: 99px; transition: width .6s var(--spring); }
.level-card small { color: var(--muted); }
.mini { margin: 6px 0 4px; padding-left: 20px; font-size: 15px; }
.mini li { margin: 4px 0; }
.mini li.ok::marker { color: var(--ok); content: "✓  "; }
.mini a { text-decoration: none; }
.mini a:hover { text-decoration: underline; }
.lv-cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }

.demo-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .demo-block { grid-template-columns: 1fr; } }
.ac-form { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.ac-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.ac-form input, .ac-form textarea { font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-height: 46px; }
.ac-form input:focus, .ac-form textarea:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px color-mix(in srgb, var(--coral) 22%, transparent); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin: 0; min-height: 1.4em; font-weight: 600; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
.done h3 { margin: 0 0 6px; font-size: 26px; }

.lesson-wrap { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 36px; }
.lesson-nav { flex: 1 1 240px; max-width: 300px; display: flex; flex-direction: column; gap: 10px; align-self: flex-start; }
.lesson-nav .back { font-weight: 700; text-decoration: none; }
.lesson-nav .lv { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lesson-nav ol { margin: 0; padding-left: 20px; font-size: 15px; }
.lesson-nav li { margin: 6px 0; }
.lesson-nav li.on a { font-weight: 800; color: var(--coral-ink); }
.lesson-nav li.ok::marker { content: "✓  "; color: var(--ok); }
.lesson-nav a { text-decoration: none; }
.lesson { flex: 999 1 520px; min-width: 0; max-width: 760px; }
.lesson h1 { font-size: clamp(32px, 4.4vw, 50px); margin: 0 0 18px; }
.lesson h3 { font-size: 24px; margin: 28px 0 6px; }
.lesson p, .lesson li { font-size: 17px; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 46px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.tip { background: var(--ok-bg); border-radius: 14px; padding: 12px 16px; }
.tip.warn { background: var(--warn-bg); color: var(--warn-ink); }
.ac-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; display: block; overflow-x: auto; }
.ac-table th, .ac-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.ac-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.lesson-pn { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 700; }
.lesson-pn a:not(.ac-btn) { text-decoration: none; }

.narrow { max-width: 760px; margin: 0 auto; padding-top: 36px; }
.narrow h1 { font-size: clamp(34px, 5vw, 54px); margin: 0; }
.loading { color: var(--muted); padding: 30px 0; }
.q { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px; margin: 0; transition: border-color .3s ease, background .3s ease; }
.q legend { font-weight: 700; padding: 0 6px; font-size: 17px; }
.q legend span { color: var(--coral-ink); }
.q.good { border-color: var(--ok); background: var(--ok-bg); }
.q.bad { border-color: var(--bad); background: var(--bad-bg); }
.opt { flex-direction: row !important; align-items: center; gap: 12px !important; font-weight: 500 !important; font-size: 16px !important; padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.opt:hover { background: var(--soft); }
.opt input { width: 20px; height: 20px; min-height: 0; accent-color: var(--coral); flex: none; }

.cert { position: relative; background: #fffdf8; color: #14213d; border: 1px solid #e4e0d7; border-radius: 6px; padding: clamp(28px, 6vw, 64px); text-align: center; box-shadow: 0 30px 60px -40px rgba(20, 33, 61, .6); outline: 10px solid #f4efe6; outline-offset: -26px; }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.cert-brand svg { width: 48px; }
.cert-kicker { margin: 34px 0 0; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: #56607a; }
.cert-name { font-size: clamp(36px, 6vw, 60px); margin: 10px 0; }
.cert-text { color: #56607a; margin: 0; }
.cert-badge { font-family: var(--display); font-style: italic; font-size: clamp(26px, 4vw, 38px); color: #b8361a; margin: 6px 0 0; }
.cert-grad { display: inline-block; margin: 18px 0 0; padding: 6px 14px; border-radius: 99px; background: #14213d; color: #f4efe6; font-weight: 700; font-size: 14px; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 40px; padding-top: 18px; border-top: 1px solid #e4e0d7; font-size: 14px; text-align: left; flex-wrap: wrap; }
.cert-foot strong { font-family: var(--mono); font-size: 16px; }
.cert-verify { margin: 14px 0 0; font-size: 12px; color: #56607a; word-break: break-all; }
.cert-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
@media print {
  .ac-top, .ac-foot, .cert-actions { display: none !important; }
  body { background: #fff; }
  main, .narrow { padding: 0; max-width: none; }
  .cert { box-shadow: none; }
}

.ac-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 24px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Página principal de Loopling Screens ---------- */
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(40px, 8vw, 96px) 0 24px; }
@media (max-width: 880px) { .lp-hero { grid-template-columns: 1fr; } }
.lp-copy h1 { margin: 0; font-size: clamp(40px, 6vw, 72px); }
.lp-copy h1 em { color: var(--coral); }
.lp-tv { animation: pop-in .8s var(--spring) .15s both; }
.lp-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1224; border: 12px solid #1b2440; border-radius: 16px; overflow: hidden; box-shadow: 0 40px 60px -40px rgba(11, 18, 36, .8); }
.lp-stand { width: 28%; height: 12px; margin: 0 auto; background: #1b2440; border-radius: 0 0 8px 8px; }
.lp-slide { position: absolute; inset: 0 0 34px; padding: 7% 8%; display: flex; flex-direction: column; justify-content: center; gap: 8px; color: #fff; opacity: 0; animation: lp-cycle 12s infinite; }
.lp-slide .k { font-family: var(--mono); font-size: clamp(10px, 1.2vw, 13px); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.lp-slide strong { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 3.4vw, 42px); line-height: 1.05; }
.lp-slide ul { list-style: none; margin: 0; padding: 0; font-size: clamp(13px, 1.7vw, 20px); }
.lp-slide li { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .2); padding: 4px 0; }
.lp-slide .live { font-style: normal; font-weight: 800; font-size: clamp(10px, 1.2vw, 13px); color: #ff8a6e; }
.s1 { background: #ff6b4a; color: #14213d; animation-delay: 0s; }
.s2 { background: #14213d; animation-delay: 4s; }
.s3 { background: #1d5a3e; animation-delay: 8s; }
@keyframes lp-cycle { 0% { opacity: 0; transform: scale(1.02); } 4%, 30% { opacity: 1; transform: none; } 34%, 100% { opacity: 0; } }
.lp-ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: #f4efe6; color: #14213d; overflow: hidden; white-space: nowrap; display: flex; align-items: center; font-weight: 700; font-size: 13px; }
.lp-ticker span { display: inline-block; padding-left: 100%; animation: lp-tick 18s linear infinite; }
@keyframes lp-tick { to { transform: translateX(-100%); } }
.lp-steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.lp-steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.lp-steps li::before { content: counter(s); width: 38px; height: 38px; border-radius: 50%; background: var(--coral); color: #14213d; display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }
.lp-steps strong { font-family: var(--display); font-weight: 500; font-size: 22px; }
.lp-steps span { color: var(--muted); }
.lp-devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.lp-devices div { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.lp-devices strong { font-size: 17px; }
.lp-devices span { color: var(--muted); font-size: 15px; }
.lp-academy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 820px) { .lp-academy { grid-template-columns: 1fr; } }
.lp-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-levels li { display: flex; align-items: baseline; gap: 14px; padding: 16px 20px; border-radius: 16px; background: #14213d; color: #f4efe6; font-family: var(--display); font-size: 24px; }
.lp-levels span { font-family: var(--mono); font-size: 12px; color: #ff8a6e; }
@media (prefers-reduced-motion: reduce) { .lp-slide { animation: none; } .s1 { opacity: 1; } .lp-ticker span { animation: none; padding-left: 16px; } }

/* ---------- Funciones en la página principal ---------- */
.lp-show { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 20px; align-items: start; }
.lp-tabs { display: flex; flex-direction: column; gap: 4px; }
.lp-tabs button { text-align: left; font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; padding: 11px 16px; border-radius: 14px; cursor: pointer; transition: background .2s ease, color .2s ease, transform .25s var(--spring); }
.lp-tabs button:hover { color: var(--ink); background: var(--soft); transform: translateX(3px); }
.lp-tabs button[aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: inset 3px 0 0 var(--coral), 0 1px 0 var(--line); }
.lp-pane { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 32px); min-height: 360px; }
.lp-pane-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; animation: pop-in .5s var(--spring) both; }
.lp-txt h3 { margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); }
.lp-txt p { margin: 0 0 14px; color: var(--muted); }
.lp-txt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.lp-txt li { position: relative; padding-left: 26px; font-weight: 600; }
.lp-txt li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--coral); border-bottom: 3px solid var(--coral); transform: rotate(-45deg); }
@media (max-width: 960px) { .lp-show { grid-template-columns: 1fr; } .lp-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; } .lp-tabs button { white-space: nowrap; } .lp-tabs button[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--coral); } }
@media (max-width: 720px) { .lp-pane-in { grid-template-columns: 1fr; } }
.lp-more-t { margin: 36px 0 14px; font-size: 24px; }
.lp-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.lp-more .feat-card:hover { transform: translateY(-3px); }

/* Ilustraciones */
.lp-mock { display: flex; flex-direction: column; gap: 10px; }
.mk-tv { background: #1b2440; padding: 8px; border-radius: 12px; box-shadow: 0 24px 40px -28px rgba(11, 18, 36, .8); }
.mk-scr { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #0b1224; color: #fff; }
.mk-promo { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; text-align: center; background: #ff6b4a; color: #14213d; font-family: var(--display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.1; }
.mk-promo.alt { background: #1d5a3e; color: #fff; }
.mk-badge { position: absolute; left: 8px; bottom: 8px; font: 700 11px var(--font); padding: 4px 8px; border-radius: 999px; background: rgba(11, 18, 36, .85); color: #fff; }
.mk-badge.off::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #f2c14e; }
.mk-badge.live { color: #ff8a6e; left: auto; right: 8px; top: 8px; bottom: auto; animation: mk-blink 1.6s infinite; }
@keyframes mk-blink { 50% { opacity: .45; } }
.mk-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.mk-bar i { display: block; height: 100%; background: #ff6b4a; animation: mk-prog 6s linear infinite; }
@keyframes mk-prog { from { width: 0; } to { width: 100%; } }
.mk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mk-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-weight: 600; animation: pop-in .5s var(--spring) both; animation-delay: calc(var(--i) * 90ms); }
.mk-list i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.mk-list b { margin-left: auto; font-size: 12px; color: var(--ok); }
.mk-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mk-week div { display: grid; grid-template-rows: auto 60px 90px; gap: 4px; text-align: center; font: 600 12px var(--mono); color: var(--muted); }
.mk-week i { border-radius: 8px; }
.mk-week .a, .mk-legend .a::before { background: #f2c14e; }
.mk-week .b, .mk-legend .b::before { background: #4c7bd9; }
.mk-week .c, .mk-legend .c::before { background: #ff6b4a; }
.mk-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }
.mk-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.mk-menu { position: absolute; inset: 0; padding: 7% 9%; background: #14213d; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.mk-menu strong { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px); margin-bottom: 4px; }
.mk-menu p { margin: 0; display: flex; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .15); padding: 3px 0; font-size: clamp(12px, 1.4vw, 15px); }
.mk-menu b { color: #ff8a6e; }
.mk-menu small { margin-top: 6px; font-size: 10px; opacity: .6; }
.mk-zones { position: absolute; inset: 0; display: grid; grid-template-columns: 2.2fr 1fr; grid-template-rows: 1fr 1fr 22%; gap: 3px; background: #0b1224; font-weight: 700; font-size: clamp(11px, 1.3vw, 14px); }
.mk-zones > div { display: grid; place-items: center; text-align: center; }
.mk-zones .z1 { grid-row: 1 / 3; background: #1d5a3e; }
.mk-zones .z2 { background: #4c7bd9; font-size: clamp(16px, 2vw, 22px); line-height: 1; }
.mk-zones .z2 small { display: block; font-size: 10px; opacity: .8; }
.mk-zones .z3 { background: #2a3d6b; font-family: var(--mono); }
.mk-zones .z4 { grid-column: 1 / 3; background: #f4efe6; color: #14213d; overflow: hidden; white-space: nowrap; }
.mk-live { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8%; background: linear-gradient(135deg, #2a3d6b, #0b1224 70%); }
.mk-live strong { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 2.2vw, 26px); }
.mk-chips { display: flex; gap: 8px; }
.mk-chips span { font: 600 12px var(--mono); padding: 5px 10px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.mk-wall { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; background: #1b2440; border-radius: 12px; }
.mk-wall div { aspect-ratio: 16 / 9; border-radius: 4px; background: radial-gradient(circle at 60% 45%, #ff8a6e 0 18%, #ff6b4a 19% 34%, #14213d 35%) calc(var(--x) * 100%) calc(var(--y) * 100%) / 200% 200%; }
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mk-grid div { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; animation: pop-in .5s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
.mk-grid .a { background: #ff6b4a; } .mk-grid .b { background: #1d5a3e; } .mk-grid .c { background: #4c7bd9; } .mk-grid .d { background: #2a3d6b; }
.mk-grid i { position: absolute; right: 6px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #6ee0b4; box-shadow: 0 0 0 3px rgba(110, 224, 180, .3); }
.mk-grid .d i { background: #f2c14e; box-shadow: 0 0 0 3px rgba(242, 193, 78, .3); }
.mk-chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding: 16px; border-radius: 16px; background: var(--soft); }
.mk-chart i { flex: 1; height: var(--h); border-radius: 6px 6px 2px 2px; background: var(--coral); transform-origin: bottom; animation: mk-grow .7s var(--spring) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes mk-grow { from { transform: scaleY(0); } }
@media (prefers-reduced-motion: reduce) { .lp-pane-in, .mk-list li, .mk-grid div, .mk-chart i { animation: none; } .mk-bar i { animation: none; width: 55%; } }
.block > h2 + .levels { margin-top: 18px; }

/* ==========================================================================
   Look & Feel «Sala de control» (oct 2026): letras de señalización, blanco y negro, un solo acento.
   ========================================================================== */
:root {
  --display: "Big Shoulders Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg: #ffffff; --card: #ffffff; --ink: #111317; --muted: #555a62; --line: #e1e1dc; --soft: #f2f2ef;
  --coral: #e8462a; --coral-ink: #b8321a; --press: rgba(17, 19, 23, .85); --spring: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0e0f11; --card: #17191c; --ink: #ececea; --muted: #a3a6ad; --line: #2a2d33; --soft: #1e2125; }
}
body { font-size: 17px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: 0.005em; line-height: 0.95; }
h1 { text-transform: uppercase; }
h1 em, .lp-copy h1 em { font-style: normal; color: var(--coral); }
.lp-copy h1 { font-size: clamp(46px, 6.2vw, 86px); line-height: 0.9; min-height: 3.6em; }
.lp-frame { border-color: #111317; }
.lp-stand { background: #111317; }
.ac-brand { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: 0.02em; text-transform: uppercase; }
.ac-brand em { font-style: normal; }
.ac-btn { border-radius: 6px; background: var(--ink); color: var(--bg); box-shadow: none; font-weight: 700; }
.ac-btn:hover { color: var(--bg); transform: none; box-shadow: none; background: #2a2d33; }
.ac-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.ac-btn.ghost:hover { background: var(--ink); color: var(--bg); }
.feat-card, .lp-steps li, .lp-devices div, .lp-pane, .level-card { border-radius: 8px; }
.feat-card strong, .lp-steps strong { font-family: var(--display); font-weight: 800; font-size: 26px; }
.lp-steps li::before { border-radius: 6px; background: var(--ink); color: var(--bg); }
.lp-tabs button { border-radius: 6px; }
.lp-tabs button[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--coral), 0 1px 0 var(--line); }
.lp-levels li { background: #111317; border-radius: 8px; font-family: var(--display); font-weight: 800; font-size: 30px; }
.lp-txt h3 { font-size: clamp(30px, 3.4vw, 42px); }
.eyebrow { letter-spacing: .14em; }
.rot { display: inline-block; transition: opacity .38s ease, transform .38s ease; }
.rot-out { opacity: 0; transform: translateY(-12px); }
@media (prefers-reduced-motion: reduce) { .rot { transition: none; } }

/* Selector de idioma */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lang-select { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px 0 10px; border: 1px solid currentColor; border-radius: 4px; opacity: .9; }
.lang-select svg { width: 16px; height: 16px; flex: none; }
.lang-select select { border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; min-height: 36px; cursor: pointer; }
.lang-select select option { color: #111; }

/* ==========================================================================
   Look & Feel «Centro de monitoreo · Medianoche» (igual que el panel): Saira Semi Condensed + JetBrains Mono,
   gris azulado de día, azul medianoche de noche, acento petróleo/cian. El coral queda solo en la marca.
   ========================================================================== */
:root {
  --display: "Saira Semi Condensed", "Arial Narrow", sans-serif;
  --font: "Saira Semi Condensed", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --bg: #E9EDF3; --card: #FFFFFF; --head: #F4F6F9; --ink: #0F1A2A; --muted: #50607A; --line: #D3DAE4; --soft: #E3E8EF;
  --accent: #0B6E8A; --on-accent: #FFFFFF;
  --ok: #0E7A4F; --ok-bg: #DDF3E8; --bad: #BE2B2B; --bad-bg: #FBE3E1; --warn-bg: #FBEFD6; --warn-ink: #6E4300;
  --coral: #FF6B4A; --coral-ink: #C2401F; --press: rgba(15, 26, 42, .85);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #070B14; --card: #0E1526; --head: #0C1220; --ink: #DCE3EE; --muted: #8996AC; --line: #1E2940; --soft: #1A2338;
  --accent: #3EC6E0; --on-accent: #06121A; --ok: #4CD39B; --ok-bg: #0E2F25; --bad: #F06A6A; --bad-bg: #3A1414; --warn-bg: #33270A; --warn-ink: #F2C14E;
  --coral-ink: #FF8A70; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B14; --card: #0E1526; --head: #0C1220; --ink: #DCE3EE; --muted: #8996AC; --line: #1E2940; --soft: #1A2338;
    --accent: #3EC6E0; --on-accent: #06121A; --ok: #4CD39B; --ok-bg: #0E2F25; --bad: #F06A6A; --bad-bg: #3A1414; --warn-bg: #33270A; --warn-ink: #F2C14E;
    --coral-ink: #FF8A70; color-scheme: dark;
  }
}
body { font-size: 17px; background: var(--bg); transition: background .3s ease, color .3s ease; }
a:hover { color: var(--accent); }
:focus-visible { outline-color: var(--accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.005em; line-height: 1.02; }
h1 { text-transform: none; }
h1 em, .lp-copy h1 em { font-style: normal; color: var(--accent); }
.lp-copy h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1; min-height: 3em; }
.eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--accent); }
.ac-top { background: var(--head); backdrop-filter: none; border-bottom: 1px solid var(--line); }
.ac-brand { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.08em; text-transform: uppercase; }
.ac-brand em { color: var(--muted); font-weight: 500; }
.ac-btn { border-radius: 4px; background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: none; }
.ac-btn:hover { background: var(--accent); color: var(--on-accent); filter: brightness(1.08); transform: none; box-shadow: none; }
.ac-btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.ac-btn.ghost:hover { background: var(--soft); color: var(--ink); filter: none; border-color: var(--accent); }
.feat-card, .lp-steps li, .lp-devices div, .lp-pane, .level-card, .cert { border-radius: 6px; box-shadow: none; }
.feat-card strong, .lp-steps strong { font-family: var(--display); font-weight: 700; font-size: 22px; }
.lp-steps li::before { border-radius: 4px; background: var(--accent); color: var(--on-accent); }
.lp-tabs button { border-radius: 4px; }
.lp-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--accent); }
.lp-levels li { background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 6px; font-family: var(--display); font-weight: 700; font-size: 26px; }
.lp-frame { border-color: var(--line); }
.lp-stand { background: var(--line); }
.mk-chart i { background: var(--accent); }
.bar i { background: var(--accent); }
.level-card .lv, .lesson-nav .lv { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.lesson .tip { border-left: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }
.lang-select { border-color: var(--line); color: var(--muted); }
.lang-select select { color: var(--ink); }
.lang-select select option { color: #111; }
.theme-toggle { display: inline-grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; }
.ac-foot { border-top: 1px solid var(--line); }
