:root {
  --bg: #080c14;
  --bg2: #0d1421;
  --bg3: #111927;
  --card: #131d2e;
  --border: #1e2d42;
  --border2: #243347;
  --accent: #00d4ff;
  --accent2: #ff3c5f;
  --accent3: #39ff14;
  --accent4: #ff9500;
  --text: #e8f0fe;
  --text2: #8899b4;
  --text3: #4a5d7a;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Syne', sans-serif;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --glow-blue: 0 0 20px rgba(0,212,255,0.15);
  --glow-red: 0 0 20px rgba(255,60,95,0.15);
  --glow-green: 0 0 20px rgba(57,255,20,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(0,212,255,0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255,60,95,0.03) 0%, transparent 50%);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── NAVBAR ── */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(8,12,20,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem; font-weight: 700;
  text-decoration: none; color: var(--text);
  letter-spacing: 2px;
}
.logo-bracket { color: var(--text3); }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-link {
  color: var(--text2); text-decoration: none;
  font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 1px; transition: color .2s;
}
.nav-link:hover { color: var(--accent); }
.nav-admin {
  background: rgba(255,60,95,0.1); color: var(--accent2) !important;
  padding: 6px 14px; border-radius: 4px;
  border: 1px solid rgba(255,60,95,0.3);
}
.nav-admin:hover { background: rgba(255,60,95,0.2) !important; }

/* ── HERO / HOME ── */
.hero {
  min-height: calc(100vh - 65px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: 
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0%{background-position:0 0} 100%{background-position:60px 60px} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  color: var(--accent); padding: 6px 16px; border-radius: 20px;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 2px; margin-bottom: 32px;
  animation: fadeUp .6s ease both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(1.5)} }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 24px; position: relative;
  animation: fadeUp .7s .1s ease both;
}
.hero h1 .line1 { display: block; color: var(--text); }
.hero h1 .line2 { display: block; color: var(--accent); }
.hero h1 .line3 { display: block; color: var(--accent2); }

.hero-desc {
  max-width: 560px; color: var(--text2);
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 48px;
  animation: fadeUp .7s .2s ease both;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1200px; width: 100%;
  animation: fadeUp .7s .3s ease both;
}

.block-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
}
.block-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow-blue);
}
.block-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.block-num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text3); letter-spacing: 1px;
}
.block-icon { font-size: 1.6rem; }
.block-title {
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.m-header-simple-global__title {
    margin-left: 2rem !important;
}
.m-footer-login__content {
    padding: 1rem;
}
.m-header-simple-global__content {
    padding: 2rem !important;
}
.block-modules {
  padding: 16px 24px;
  display: flex; flex-direction: column; gap: 6px;
}
.module-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  text-decoration: none; color: var(--text2);
  font-size: 0.88rem; transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.module-link:hover {
  background: rgba(0,212,255,0.07);
  color: var(--accent); border-color: rgba(0,212,255,0.15);
}
.module-link .mod-num {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text3); min-width: 24px;
}

/* ── MODULE PAGE ── */
.module-page {
  max-width: 900px; margin: 0 auto;
  padding: 40px 24px 80px;
}
.module-header {
  display: flex; align-items: flex-start; gap: 20px;
  margin-bottom: 40px;
}
.module-icon-big {
  font-size: 3rem; flex-shrink: 0;
  background: var(--card); border: 1px solid var(--border);
  width: 72px; height: 72px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.module-meta { flex: 1; }
.module-tag {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent2); letter-spacing: 2px;
  display: block; margin-bottom: 8px;
}
.module-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
.module-desc { color: var(--text2); margin-top: 8px; line-height: 1.6; font-size: 0.95rem; }

.nav-modules {
  display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.btn-prev, .btn-next {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 6px;
  text-decoration: none; font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 1px; transition: all .2s;
  border: 1px solid var(--border2); color: var(--text2);
  background: var(--card);
}
.btn-prev:hover, .btn-next:hover {
  border-color: var(--accent); color: var(--accent);
}
.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 6px;
  text-decoration: none; font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--text3); margin-left: auto;
}

/* ── DEMO CARD ── */
.demo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  margin-bottom: 24px;
}
.demo-card-header {
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text3);
}
.demo-card-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.demo-card-body { padding: 28px; }

/* ── FORMS ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--text2);
  letter-spacing: 1px; margin-bottom: 8px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 6px; color: var(--text);
  font-family: var(--font-sans); font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px;
  border: none; border-radius: 6px; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600;
  transition: all .2s; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #000;
}
.btn-primary:hover { background: #00b8d9; transform: translateY(-1px); box-shadow: var(--glow-blue); }
.btn-danger {
  background: var(--accent2); color: #fff;
}
.btn-danger:hover { background: #e02045; transform: translateY(-1px); }
.btn-success { background: var(--accent3); color: #000; }
.btn-warning { background: var(--accent4); color: #000; }
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-full { width: 100%; }

/* ── ALERTS ── */
.alert {
  padding: 14px 18px; border-radius: 8px; margin-bottom: 16px;
  font-size: 0.9rem; line-height: 1.5; display: flex; gap: 10px;
}
.alert-danger { background: rgba(255,60,95,0.1); border: 1px solid rgba(255,60,95,0.3); color: #ff8099; }
.alert-success { background: rgba(57,255,20,0.08); border: 1px solid rgba(57,255,20,0.25); color: #8aff6a; }
.alert-warning { background: rgba(255,149,0,0.08); border: 1px solid rgba(255,149,0,0.25); color: #ffbd5e; }
.alert-info { background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2); color: var(--accent); }

/* ── TERMINAL ── */
.terminal {
  background: #000;
  border: 1px solid #1a2a1a;
  border-radius: 8px; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.82rem;
  box-shadow: 0 0 40px rgba(57,255,20,0.08);
}
.terminal-header {
  background: #0a140a; padding: 10px 16px;
  border-bottom: 1px solid #1a2a1a;
  display: flex; align-items: center; gap: 8px;
}
.terminal-title { color: #2a4a2a; font-size: 0.75rem; }
.terminal-body { padding: 20px; min-height: 120px; }
.terminal-line { color: var(--accent3); line-height: 1.8; }
.terminal-line .prompt { color: #4a8a4a; }
.terminal-line .cmd { color: #a8e6a8; }
.terminal-line .output { color: #6abf6a; }
.terminal-cursor {
  display: inline-block; width: 8px; height: 14px;
  background: var(--accent3); animation: blink .8s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── PROGRESS ── */
.progress-wrap { margin: 12px 0; }
.progress-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text2); margin-bottom: 6px;
}
.progress-bar { height: 8px; background: var(--bg2); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 4px;
  transition: width .5s ease, background-color .3s;
}

/* ── BADGE ── */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 20px; font-size: 0.75rem;
  font-family: var(--font-mono); font-weight: 700;
}
.badge-red { background: rgba(255,60,95,0.15); color: var(--accent2); border: 1px solid rgba(255,60,95,0.3); }
.badge-green { background: rgba(57,255,20,0.1); color: var(--accent3); border: 1px solid rgba(57,255,20,0.25); }
.badge-blue { background: rgba(0,212,255,0.1); color: var(--accent); border: 1px solid rgba(0,212,255,0.2); }
.badge-orange { background: rgba(255,149,0,0.1); color: var(--accent4); border: 1px solid rgba(255,149,0,0.25); }

/* ── INFO BOX ── */
.info-box {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 20px 24px; margin: 24px 0;
}
.info-box h4 {
  font-size: 0.85rem; font-family: var(--font-mono);
  color: var(--accent); letter-spacing: 1px; margin-bottom: 10px;
}
.info-box ul { padding-left: 20px; }
.info-box li { color: var(--text2); font-size: 0.9rem; line-height: 1.8; }
.info-box.danger { border-left-color: var(--accent2); }
.info-box.danger h4 { color: var(--accent2); }
.info-box.success { border-left-color: var(--accent3); }
.info-box.success h4 { color: var(--accent3); }

/* ── GRID ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* ── STAT CARD ── */
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 20px; text-align: center;
}
.stat-num {
  font-family: var(--font-mono); font-size: 2rem;
  font-weight: 700; color: var(--accent);
}
.stat-label { font-size: 0.8rem; color: var(--text2); margin-top: 4px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-in { animation: fadeIn .4s ease both; }

/* ── CAPTURE FEED ── */
.capture-item {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 6px; padding: 12px 16px; margin-bottom: 8px;
  animation: slideIn .3s ease;
}
.capture-module {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--accent2); letter-spacing: 1px;
}
.capture-data { font-size: 0.85rem; color: var(--text); margin-top: 4px; }
.capture-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text3); margin-top: 4px; }

/* ── QUIZ ── */
.quiz-question {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 28px; margin-bottom: 20px;
}
.quiz-q-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  padding: 12px 18px; border-radius: 8px;
  border: 1px solid var(--border2); background: var(--bg2);
  cursor: pointer; transition: all .2s;
  font-size: 0.9rem; color: var(--text2); text-align: left;
}
.quiz-option:hover { border-color: var(--accent); color: var(--text); }
.quiz-option.correct { border-color: var(--accent3); background: rgba(57,255,20,0.08); color: var(--accent3); }
.quiz-option.wrong { border-color: var(--accent2); background: rgba(255,60,95,0.08); color: var(--accent2); }
.quiz-option:disabled { cursor: default; }

/* ── PHONE MOCKUP ── */
.phone-mockup {
  width: 280px; margin: 0 auto;
  background: #1a1a2e; border-radius: 36px;
  border: 3px solid #2a2a4e; padding: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.phone-notch {
  width: 80px; height: 20px; background: #0a0a1e;
  border-radius: 10px; margin: 0 auto 16px;
}
.phone-screen { border-radius: 20px; overflow: hidden; }

/* ── EMAIL MOCKUP ── */
.email-client {
  background: #f0f0f0; border-radius: 10px;
  border: 1px solid var(--border); overflow: hidden;
}
.email-header {
  background: #f0f0f0; padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text2);
}
.email-toolbar {
  padding: 8px 20px; background: #f0f0f0;
  border-bottom: 1px solid var(--border);
  display: flex; gap: 12px;
}
.email-sidebar {
  width: 140px; background: #f0f0f0;
  border-right: 1px solid var(--border);
  padding: 16px 0; flex-shrink: 0;
}
.email-folder {
  padding: 8px 16px; font-size: 0.8rem;
  color: var(--text2); cursor: pointer;
}
.email-folder.active { background: rgba(0,212,255,0.08); color: var(--accent); }
.email-main { display: flex; min-height: 300px; }
.email-list { flex: 1; }
.email-item {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: background .15s;
}
.email-item:hover, .email-item.selected { background: rgba(0,212,255,0.05); }
.email-item-from { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.email-item-subject { font-size: 0.82rem; color: var(--text2); }
.email-item-date { font-size: 0.72rem; color: var(--text3); float: right; }
.email-body-panel {
  flex: 2; border-left: 1px solid var(--border);
  padding: 20px; display: none;
}
.email-body-panel.active { display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar { padding: 14px 16px; }
  .nav-links { gap: 12px; }
  .module-header { flex-direction: column; gap: 12px; }
  .module-icon-big { width: 56px; height: 56px; font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .demo-card-body { padding: 16px; }
  .phone-mockup { width: 240px; }
  .blocks-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 480px) {
  .three-col { grid-template-columns: 1fr; }
  .nav-links .nav-link:not(.nav-admin) { display: none; }
}

/* ── REVEAL SYSTEM ── */
.info-box.hidden-lesson {
  display: none;
}
.info-box.hidden-lesson.revealed {
  display: block;
  animation: fadeUp .6s ease both;
}

.reveal-btn-wrap {
  margin: 20px 0;
  text-align: center;
  display: none;
}
.reveal-btn-wrap.visible {
  display: block;
  animation: fadeUp .5s ease both;
}

.btn-reveal {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(57,255,20,0.1));
  border: 1px solid var(--accent);
  color: var(--accent); font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: var(--font-sans);
  transition: all .2s; letter-spacing: .5px;
  box-shadow: 0 0 24px rgba(0,212,255,0.15);
}
.btn-reveal:hover {
  background: linear-gradient(135deg, rgba(0,212,255,0.25), rgba(57,255,20,0.15));
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,212,255,0.25);
}
.btn-reveal .reveal-icon {
  font-size: 1.3rem;
  transition: transform .3s;
}
.btn-reveal:hover .reveal-icon {
  transform: rotate(15deg) scale(1.2);
}

.lessons-revealed-msg {
  display: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 8px;
  letter-spacing: 1px;
}
.lessons-revealed-msg.visible {
  display: block;
  animation: fadeIn .4s ease;
}

/* ── MODO CLARO ─────────────────────────────────────────────────────────────── */
body.light-mode {
  --bg: #f0f4f8;
  --bg2: #e2e8f0;
  --bg3: #d4dde8;
  --card: #ffffff;
  --border: #c8d5e3;
  --border2: #b0c0d0;
  --text: #1a2332;
  --text2: #3a4f6a;
  --text3: #7a90a8;
  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --glow-blue: 0 0 20px rgba(0,150,200,0.15);
  --glow-red: 0 0 20px rgba(200,40,70,0.15);
  --glow-green: 0 0 20px rgba(30,160,40,0.15);
}

body.light-mode .hero-grid {
  background-image:
    linear-gradient(rgba(0,100,180,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,100,180,0.06) 1px, transparent 1px);
}
body.light-mode .terminal {
  background: #1a1a2e;
}
body.light-mode .navbar {
  background: rgba(240,244,248,0.95);
  border-bottom-color: var(--border);
}
body.light-mode .quiz-option {
  background: var(--bg2);
}
body.light-mode .form-input {
  background: var(--bg2);
  color: var(--text);
}
body.light-mode .demo-card {
  background: var(--card);
}
body.light-mode code {
  background: var(--bg2);
  color: var(--text2);
}

/* ── TAMAÑO DE FUENTE ────────────────────────────────────────────────────────── */
html.font-sm  { font-size: 14px; }
html.font-md  { font-size: 16px; }
html.font-lg  { font-size: 19px; }
html.font-xl  { font-size: 22px; }

/* ── PANEL DE ACCESIBILIDAD ──────────────────────────────────────────────────── */
#a11y-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#a11y-toggle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
#a11y-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0,212,255,0.4);
}

#a11y-menu {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  min-width: 220px;
  animation: fadeUp .2s ease;
}
#a11y-menu.open {
  display: block;
}

.a11y-section {
  margin-bottom: 14px;
}
.a11y-section:last-child {
  margin-bottom: 0;
}
.a11y-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

/* Botón modo oscuro/claro */
.a11y-theme-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.a11y-theme-btn {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.a11y-theme-btn:hover,
.a11y-theme-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,0.08);
}

/* Botones de tamaño */
.a11y-font-btns {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 6px;
}
.a11y-font-btn {
  padding: 8px 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-sans);
  text-align: center;
  font-weight: 600;
}
.a11y-font-btn:hover,
.a11y-font-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,212,255,0.08);
}
.a11y-font-btn:nth-child(1) { font-size: 0.72rem; }
.a11y-font-btn:nth-child(2) { font-size: 0.85rem; }
.a11y-font-btn:nth-child(3) { font-size: 1rem; }
.a11y-font-btn:nth-child(4) { font-size: 1.15rem; }

@media (max-width: 480px) {
  #a11y-panel {
    bottom: 16px;
    right: 16px;
  }
}