/* ============================================================
   UX4Kids v2 — KidsCorp Design System
   10 Principios de UX para U18
   ============================================================ */

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

:root {
  /* PALETTE */
  --purple-100: #e0b3ff;
  --purple-200: #cc7aff;
  --purple-300: #b44dff;
  --purple-400: #9b30ff;
  --purple-500: #7b1fa2;
  --purple-600: #6a0dad;
  --purple-700: #4a0078;
  --purple-800: #2d004d;

  --cyan:       #00d4ff;
  --cyan-dim:   #0097b8;
  --green:      #00e676;
  --red:        #ff3b5c;
  --orange:     #ff8a3d;
  --peach:      #ffab91;
  --magenta:    #ff2bd6;
  --yellow:     #ffd93d;

  /* BG / SURFACE */
  --bg:         #08080d;
  --bg-soft:    #0e0e16;
  --surface:    #14141e;
  --surface-2:  #1c1c2a;
  --surface-3:  #262638;
  --border:     rgba(180,77,255,.12);

  /* TEXT */
  --text:       #f5f3fa;
  --text-dim:   #b8b2cf;
  --text-muted: #6e6888;
  --text-faint: #4a4560;

  /* LIGHT ZONE OVERRIDES (applied on .light sections) */
  --l-bg:       #f6f3fb;
  --l-surface:  #ffffff;
  --l-surface-2:#f0eaf8;
  --l-border:   rgba(20,16,30,.08);
  --l-text:     #14101e;
  --l-dim:      #4a4360;
  --l-muted:    #7c7596;

  /* TYPE */
  --font: 'Montserrat', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  /* GEOMETRY */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --max:  1240px;
  --gap:  40px;

  /* MOTION */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; background: var(--bg); color: var(--text); font-family: var(--font); }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }
code { font-family: var(--mono); }
em { font-style: normal; font-weight: 700; color: #9F44FB; }
strong { font-weight: 700; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-headline .hl-inner { transform: none !important; opacity: 1 !important; }
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger > *:nth-child(1) { transition-delay: .04s; }
.stagger > *:nth-child(2) { transition-delay: .10s; }
.stagger > *:nth-child(3) { transition-delay: .16s; }
.stagger > *:nth-child(4) { transition-delay: .22s; }
.stagger > *:nth-child(5) { transition-delay: .28s; }
.stagger > *:nth-child(6) { transition-delay: .34s; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
.sep {
  height: 1px; max-width: var(--max); margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(180,77,255,.2), transparent);
}
section.principle { padding: 120px 0; position: relative; overflow: hidden; }
@media (max-width: 768px) {
  section.principle { padding: 80px 0; }
  :root { --gap: 20px; }
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 2000;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--purple-400), var(--magenta));
  transition: width .1s linear;
}

/* ============================================================
   PRINCIPLE TRACKER (left sidebar)
   ============================================================ */
.principle-tracker {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  z-index: 900;
  display: flex; flex-direction: column; gap: 6px;
  opacity: 0; transition: opacity .4s;
}
.principle-tracker.visible { opacity: 1; }
.tracker-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: .6rem; font-weight: 600;
  color: var(--text-muted);
  transition: all .3s var(--ease);
}
.tracker-dot:hover { background: rgba(180,77,255,.15); border-color: rgba(180,77,255,.4); color: var(--purple-200); }
.tracker-dot.active { background: var(--purple-400); border-color: var(--purple-200); color: white; transform: scale(1.15); }
@media (max-width: 1400px) { .principle-tracker { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px var(--gap);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(8,8,13,.25);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  padding: 13px var(--gap);
  background: rgba(8,8,13,.88);
  border-bottom-color: rgba(180,77,255,.12);
}
.nav-logo img { height: 36px; width: auto; }

.nav-principles {
  display: flex; align-items: center; gap: 14px;
  flex: 1; justify-content: center;
}
.nav-label {
  font-family: var(--mono); font-size: .68rem;
  color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase;
}
.nav-dots {
  display: flex; gap: 2px;
}
.nav-dots a {
  font-family: var(--mono); font-size: .65rem; font-weight: 600;
  padding: 5px 7px; border-radius: 6px;
  color: var(--text-faint);
  transition: color .2s, background .2s;
}
.nav-dots a:hover, .nav-dots a.active { color: var(--purple-200); background: rgba(180,77,255,.1); }

.nav-cta {
  font-family: var(--mono); font-size: .75rem; letter-spacing: 1px; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 700;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,255,255,.14); }
@media (max-width: 900px) {
  .nav-principles { display: none; }
  .nav-logo img { height: 28px; }
}
@media (max-width: 600px) { .nav-cta { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.hero-stage { position: absolute; inset: 0; overflow: hidden; }

.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .5;
  will-change: transform; pointer-events: none;
}
.hero-blob.b1 { width: 700px; height: 700px; background: radial-gradient(#9b30ff 0%, transparent 65%); top: -180px; left: -160px; }
.hero-blob.b2 { width: 560px; height: 560px; background: radial-gradient(#00d4ff 0%, transparent 65%); bottom: -120px; right: -100px; opacity: .3; }
.hero-blob.b3 { width: 400px; height: 400px; background: radial-gradient(#ff2bd6 0%, transparent 70%); top: 15%; right: 20%; opacity: .2; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(180,77,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,77,255,.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}
.hero-kids-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  will-change: transform;
}
.hero-kids {
  width: min(1000px, 90vw); height: auto;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.5)) drop-shadow(0 0 50px rgba(155,48,255,.2));
  transform: translateY(20px);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,13,.6) 0%, transparent 30%, transparent 55%, rgba(8,8,13,.9) 100%),
    radial-gradient(ellipse 60% 45% at 50% 55%, transparent 0%, rgba(8,8,13,.35) 100%);
  pointer-events: none;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-family: var(--mono); font-size: .72rem; letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-bottom: 24px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease) .1s, transform .7s var(--ease) .1s;
}
.hero.in .hero-pill { opacity: 1; transform: translateY(0); }
.dot-pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--purple-300); flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180,77,255,.7); }
  70% { box-shadow: 0 0 0 10px rgba(180,77,255,0); }
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 var(--gap);
  max-width: 1050px;
}
.hero-kicker {
  font-family: var(--mono); font-size: .78rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--purple-200); margin-bottom: 16px;
  opacity: 0;
  transition: opacity .6s var(--ease) .2s;
}
.hero.in .hero-kicker { opacity: 1; }

.hero-headline {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 900; line-height: .94;
  letter-spacing: -.03em;
  margin-bottom: 26px;
}
.hl-line { display: block; overflow: hidden; }
.hl-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform .9s var(--ease);
}
.hl-accent { color: var(--purple-200); }
.hero.in .hl-line:nth-child(1) .hl-inner { transform: translateY(0); transition-delay: .15s; }
.hero.in .hl-line:nth-child(2) .hl-inner { transform: translateY(0); transition-delay: .28s; }
.hero.in .hl-line:nth-child(3) .hl-inner { transform: translateY(0); transition-delay: .42s; }

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--text-dim);
  line-height: 1.7; max-width: 600px; margin: 0 auto 34px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s;
}
.hero.in .hero-sub { opacity: 1; transform: translateY(0); }

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(16px);
  transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s;
}
.hero.in .hero-actions { opacity: 1; transform: translateY(0); }

/* Floating badges */
.hero-float-a, .hero-float-b {
  position: absolute; z-index: 3;
  padding: 16px 20px;
  background: rgba(20,20,30,.75);
  backdrop-filter: blur(18px);
  border-radius: var(--r);
  animation: floaty 6s ease-in-out infinite;
  opacity: 0;
  transition: opacity .8s var(--ease) 1.1s;
}
.hero.in .hero-float-a, .hero.in .hero-float-b { opacity: 1; }
.hero-float-a {
  bottom: 130px; right: 6vw;
  border: 1px solid rgba(0,212,255,.25);
  animation-delay: 0s;
}
.hero-float-b {
  top: 160px; left: 5vw;
  border: 1px solid rgba(180,77,255,.25);
  animation-delay: 1.5s;
}
.hf-num {
  font-family: var(--font); font-weight: 900; font-size: 2.4rem;
  letter-spacing: -.04em; line-height: 1;
  color: var(--cyan);
}
.hero-float-b .hf-num { color: var(--purple-200); }
.hf-txt {
  font-family: var(--mono); font-size: .68rem; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--text-dim); margin-top: 4px;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 900px) {
  .hero-float-a { right: 4vw; bottom: 100px; }
  .hero-float-b { display: none; }
}

/* Scroll hint */
.scroll-hint {
  position: absolute; z-index: 3; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0; transition: opacity .8s 1.4s;
}
.hero.in .scroll-hint { opacity: 1; }
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-muted); border-radius: 12px;
  position: relative;
}
.scroll-wheel {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; background: var(--text-muted);
  border-radius: 2px;
  animation: wheel 1.6s infinite;
}
@keyframes wheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  60% { transform: translate(-50%, 11px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 700; font-size: .98rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 6px 28px rgba(255,255,255,.1);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 44px rgba(255,255,255,.16); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text); font-weight: 600; font-size: .98rem;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); transform: translateY(-2px); }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--bg);
  border-top: 1px solid rgba(180,77,255,.1);
  border-bottom: 1px solid rgba(180,77,255,.1);
  padding: 64px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  align-items: end;
}
@media (max-width: 800px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
.stat { text-align: center; }
.stat-n {
  font-weight: 900; font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1; letter-spacing: -.045em; color: var(--text);
}
.stat-n.violet { color: var(--purple-200); }
.stat-n.cyan { color: var(--cyan); }
.stat-n.green { color: var(--green); }
.stat-n.orange { color: var(--orange); }
.stat-l {
  margin-top: 12px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-muted);
  line-height: 1.5; max-width: 180px; margin-left: auto; margin-right: auto;
}

/* ============================================================
   SECTION — PRINCIPLE DARK / LIGHT
   ============================================================ */
.principle.dark { background: var(--bg); color: var(--text); }
.principle.light {
  --text: #14101e;
  --text-dim: #4a4360;
  --text-muted: #7c7596;
  --surface: #ffffff;
  --surface-2: #f0eaf8;
  --border: rgba(20,16,30,.08);
  background: var(--l-bg); color: var(--l-text);
}
.principle.with-glow::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 30% at 20% 0%, rgba(155,48,255,.08), transparent 65%),
    radial-gradient(ellipse 50% 30% at 80% 100%, rgba(0,212,255,.07), transparent 65%);
  z-index: 0;
}
.principle > .container { position: relative; z-index: 1; }

/* ============================================================
   PRINCIPLE HEADER
   ============================================================ */
.p-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--purple-300); margin-bottom: 18px;
}
.principle.light .p-eyebrow { color: var(--purple-500); }
.p-num {
  background: rgba(180,77,255,.12); color: var(--purple-300);
  padding: 3px 9px; border-radius: 999px;
  font-weight: 700;
}
.principle.light .p-num { background: rgba(155,48,255,.12); color: var(--purple-500); }
.p-header { max-width: 860px; margin-bottom: 52px; }
.p-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
  margin-bottom: 18px; text-wrap: balance;
}
.p-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-dim); line-height: 1.7; max-width: 660px;
}
.principle.light .p-desc { color: var(--l-dim); }
.accent-c { color: #9F44FB; }
.principle.light .accent-c { color: #9F44FB; }

/* ============================================================
   P01 — SEGMENTACIÓN
   ============================================================ */
.age-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 52px; align-items: start;
}
@media (max-width: 900px) { .age-grid { grid-template-columns: 1fr; gap: 36px; } }

.age-tabs { display: flex; flex-direction: column; gap: 8px; }
.age-tab {
  display: grid; grid-template-columns: 72px 1fr auto;
  gap: 16px; align-items: center;
  padding: 20px 22px; border-radius: var(--r);
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.age-tab:hover, .age-tab.active {
  background: rgba(180,77,255,.07);
  border-color: rgba(180,77,255,.28);
  transform: translateX(5px);
}
.at-range { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; color: var(--purple-200); }
.age-tab[data-age="1"] .at-range { color: var(--purple-300); }
.age-tab[data-age="2"] .at-range { color: var(--purple-400); }
.age-tab[data-age="3"] .at-range { color: var(--purple-500); }
.at-name { font-size: 1rem; font-weight: 700; }
.at-hint { font-size: .85rem; color: var(--text-dim); }
.age-spec {
  position: sticky; top: 100px;
  background: var(--surface);
  border: 1px solid rgba(180,77,255,.12);
  border-radius: var(--r-lg);
  padding: 30px;
  overflow: hidden; min-height: 360px;
}
.age-spec::after {
  content: ''; position: absolute; top: 0; right: 0;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,212,255,.07), transparent 70%);
  pointer-events: none;
}
.as-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.as-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cyan); }
.as-range {
  font-weight: 900; font-size: 3.6rem; letter-spacing: -.05em; line-height: .9;
  color: var(--purple-200);
  transition: color .35s var(--ease);
}
.age-spec[data-active="1"] .as-range { color: var(--purple-300); }
.age-spec[data-active="2"] .as-range { color: var(--purple-400); }
.age-spec[data-active="3"] .as-range { color: var(--purple-500); }
.as-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 22px; transition: all .35s var(--ease); }
.as-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.asc-key { font-family: var(--mono); font-size: .68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.asc-val { font-size: .98rem; font-weight: 600; color: var(--text); line-height: 1.4; transition: all .3s; }
.as-examples { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06); }
.as-ex-label { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-right: 8px; }
.as-example { font-size: .9rem; color: var(--text-dim); transition: all .3s; }

.pullquote-inline {
  margin-top: 56px; padding: 44px 0;
  text-align: center; border-top: 1px solid rgba(180,77,255,.1);
}
.pullquote-inline q {
  font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 600;
  line-height: 1.35; letter-spacing: -.02em;
  color: var(--text); max-width: 800px; margin: 0 auto; display: block;
  text-wrap: balance; quotes: '"' '"';
}
.pullquote-inline q::before, .pullquote-inline q::after { color: var(--purple-300); }

/* ============================================================
   P02 — TOUCH TARGETS
   ============================================================ */
.touch-layout {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: stretch;
}
@media (max-width: 900px) { .touch-layout { grid-template-columns: 1fr; gap: 40px; } }

.touch-diagram {
  padding: 32px;
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  box-shadow: 0 2px 20px rgba(80,40,120,.06);
  display: flex; flex-direction: column; justify-content: center;
}
.td-title {
  font-family: var(--mono); font-size: .72rem; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--l-muted);
  margin-bottom: 32px;
}
.td-circles {
  display: flex; align-items: flex-end; justify-content: space-around;
  height: 220px;
}
.td-circle {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(180,77,255,.1);
  border: 2px solid rgba(180,77,255,.3);
  transition: transform .3s var(--ease), border-color .3s;
  cursor: default;
  flex-shrink: 0;
}
.td-circle:hover { transform: scale(1.05); border-color: var(--purple-400); }
.td-circle.c1 { width: 160px; height: 160px; background: rgba(155,48,255,.18); border-color: var(--purple-300); }
.td-circle.c2 { width: 120px; height: 120px; background: rgba(155,48,255,.12); border-color: var(--purple-400); }
.td-circle.c3 { width: 96px; height: 96px; background: rgba(0,212,255,.08); border-color: var(--cyan-dim); }
.td-circle.c4 { width: 80px; height: 80px; background: rgba(0,212,255,.05); border-color: rgba(0,212,255,.3); }
.td-circ-inner { text-align: center; }
.td-age { display: block; font-family: var(--mono); font-size: .68rem; color: var(--l-muted); letter-spacing: 1px; }
.td-size { display: block; font-weight: 800; font-size: 1rem; color: var(--l-text); margin-top: 2px; }
.td-note { margin-top: 20px; font-size: .82rem; color: var(--l-muted); text-align: center; }

.touch-rules { display: flex; flex-direction: column; gap: 16px; }
.touch-rule {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px;
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r);
  transition: transform .3s, border-color .3s;
}
.touch-rule:hover { transform: translateX(5px); border-color: rgba(155,48,255,.2); }
.tr-icon { font-size: 1.5rem; flex-shrink: 0; }
.touch-rule h5 { font-size: 1rem; font-weight: 700; color: var(--l-text); margin-bottom: 5px; }
.touch-rule p { font-size: .93rem; color: var(--l-dim); line-height: 1.6; }
.touch-callout {
  padding: 20px 24px;
  background: rgba(155,48,255,.06);
  border: 1px solid rgba(155,48,255,.18);
  border-radius: var(--r);
  font-size: .95rem; color: var(--l-dim); line-height: 1.6;
}
.touch-callout strong { color: var(--l-text); }

/* ============================================================
   P03 — CARGA COGNITIVA
   ============================================================ */
.cog-layout { display: flex; flex-direction: column; gap: 28px; }
.cog-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1000px) { .cog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cog-cards { grid-template-columns: 1fr; } }

.cog-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.cog-card:hover { transform: translateY(-5px); border-color: rgba(180,77,255,.2); }
.cc-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; width: 32px; height: 32px;
}
.cog-card h4 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.cog-card p { font-size: .92rem; color: var(--text-dim); line-height: 1.65; }
.cc-tag {
  font-family: var(--mono); font-size: .65rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text-faint);
  margin-top: 16px; display: block;
}

.cog-callout {
  padding: 24px 28px;
  background: rgba(255,59,92,.04);
  border: 1px solid rgba(255,59,92,.18);
  border-radius: var(--r);
  display: flex; gap: 18px; align-items: flex-start;
  font-size: .98rem; color: var(--text-dim); line-height: 1.65;
}
.ccout-icon { font-size: 1.4rem; flex-shrink: 0; }
.cog-callout strong { color: var(--text); }
.cog-callout code { background: var(--surface-2); padding: 2px 7px; border-radius: 5px; font-size: .85rem; color: var(--cyan); }

/* ============================================================
   P04 — ARQUITECTURA HUB & SPOKE
   ============================================================ */
.arq-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .arq-layout { grid-template-columns: 1fr; gap: 40px; } }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
@media (max-width: 600px) { .do-dont { grid-template-columns: 1fr; } }
.do-box, .dont-box {
  padding: 22px; border-radius: var(--r);
  font-size: .94rem; line-height: 1.6;
}
.do-box {
  background: rgba(0,230,118,.05); border: 1px solid rgba(0,230,118,.18);
  color: var(--l-dim);
}
.dont-box {
  background: rgba(255,59,92,.04); border: 1px solid rgba(255,59,92,.18);
  color: var(--l-dim);
}
.do-box h5 { color: #00a047; font-family: var(--mono); font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.dont-box h5 { color: #c81f44; font-family: var(--mono); font-size: .72rem; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 8px; }
.arq-note {
  font-size: .96rem; color: var(--l-dim); line-height: 1.7;
  padding: 18px 22px;
  background: rgba(155,48,255,.05);
  border-radius: var(--r);
}
.arq-note strong { color: var(--l-text); }

/* Hub viz */
.hub-viz {
  position: relative; aspect-ratio: 1;
  width: 100%; max-width: 420px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.hub-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px dashed rgba(155,48,255,.22);
  animation: spin 40s linear infinite;
}
.hub-ring.r2 { inset: 13%; border-color: rgba(0,150,196,.18); animation-duration: 28s; animation-direction: reverse; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

.hub-lines {
  position: absolute; inset: 0; pointer-events: none;
}
.hub-lines svg { width: 100%; height: 100%; }
.hub-lines line { stroke: rgba(155,48,255,.25); stroke-dasharray: 4 6; }

.hub-center {
  position: relative; z-index: 3;
  width: 130px; height: 130px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-400), var(--purple-700));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 900; font-size: 1rem;
  letter-spacing: 3px; text-transform: uppercase; color: white;
  box-shadow: 0 0 0 10px rgba(155,48,255,.12), 0 0 50px rgba(155,48,255,.45);
}

.hub-spoke {
  position: absolute; z-index: 4;
  background: white; border: 1px solid rgba(155,48,255,.2);
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: .82rem; font-weight: 600; color: var(--l-text);
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 4px 14px rgba(80,40,120,.08);
  transition: all .3s var(--ease);
  cursor: pointer;
}
.hub-spoke:hover { background: rgba(0,150,196,.08); border-color: #0096c4; transform: scale(1.06); }
.hub-spoke.hs1 { top: 3%; left: 50%; transform: translateX(-50%); }
.hub-spoke.hs2 { top: 28%; right: 0; }
.hub-spoke.hs3 { bottom: 28%; right: 0; }
.hub-spoke.hs4 { bottom: 3%; left: 50%; transform: translateX(-50%); }
.hub-spoke.hs5 { bottom: 28%; left: 0; }
.hub-spoke.hs6 { top: 28%; left: 0; }
.hub-spoke.hs1:hover, .hub-spoke.hs4:hover { transform: translateX(-50%) scale(1.06); }

/* ============================================================
   P05 — LENGUAJE VISUAL
   ============================================================ */
.icon-compare {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 20px; align-items: center; margin-bottom: 32px;
}
@media (max-width: 700px) { .icon-compare { grid-template-columns: 1fr; gap: 16px; } }

.ic-card {
  padding: 32px 24px; border-radius: var(--r-lg);
  background: var(--surface);
  text-align: center; position: relative; overflow: hidden;
  transition: transform .35s var(--ease);
}
.ic-card:hover { transform: translateY(-4px); }
.ic-card.bad { border: 1px solid rgba(255,59,92,.2); }
.ic-card.good { border: 1px solid rgba(0,212,255,.2); }
.ic-badge {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.ic-badge.obsoleto { background: rgba(255,59,92,.12); color: var(--red); }
.ic-badge.actual { background: rgba(0,212,255,.1); color: var(--cyan); }
.ic-glyph {
  margin: 16px auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.ic-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.ic-card p { font-size: .9rem; color: var(--text-dim); line-height: 1.55; }
.ic-arrow {
  font-size: 2rem; color: var(--purple-300); font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 700px) { .ic-arrow { transform: rotate(90deg); } }

.color-age {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px;
}
@media (max-width: 900px) { .color-age { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .color-age { grid-template-columns: 1fr; } }
.ca-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s;
}
.ca-card:hover { transform: translateY(-4px); border-color: rgba(180,77,255,.22); }
.ca-swatch { height: 140px; }
.s1 { background: conic-gradient(from 90deg, #ff6b6b, #ffd93d, #6bcb77, #4d96ff, #ff6b6b); }
.s2 { background: linear-gradient(135deg, #c084fc, #818cf8, #60a5fa); }
.s3 { background: linear-gradient(135deg, #00d4ff 0%, #b026ff 60%, #0a0a0a 100%); }
.s4 { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); }
.ca-card h5 { padding: 18px 18px 4px; font-size: .98rem; font-weight: 700; }
.ca-card p { padding: 0 18px 10px; font-size: .88rem; color: var(--text-dim); line-height: 1.55; }
.ca-tag {
  margin: 0 18px 16px; display: inline-block;
  font-family: var(--mono); font-size: .65rem; letter-spacing: 1px; text-transform: uppercase;
  background: rgba(255,255,255,.05); color: var(--text-muted);
  padding: 3px 9px; border-radius: 999px;
}

.emoji-note {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 26px;
  background: rgba(255,217,61,.05);
  border: 1px solid rgba(255,217,61,.2);
  border-radius: var(--r);
  font-size: .96rem; color: var(--text-dim); line-height: 1.65;
}
.en-icon { font-size: 1.3rem; flex-shrink: 0; }
.emoji-note strong { color: var(--text); }

/* ============================================================
   P06 — SCAFFOLDING
   ============================================================ */
.scaffold-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px; align-items: center;
  margin-bottom: 44px;
}
@media (max-width: 900px) {
  .scaffold-flow { grid-template-columns: 1fr; gap: 14px; }
  .sf-arrow { transform: rotate(90deg) !important; text-align: center; }
}
.sf-node {
  padding: 24px 20px; border-radius: var(--r);
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  text-align: center;
  transition: transform .3s, border-color .3s;
}
.sf-node:hover { transform: translateY(-4px); border-color: rgba(155,48,255,.25); }
.sf-node.unlock {
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(155,48,255,.05));
  border-color: #0096c4;
}
.sfn-num { font-family: var(--mono); font-size: .65rem; letter-spacing: 1.5px; color: var(--purple-500); margin-bottom: 8px; }
.sfn-icon { font-size: 1.6rem; margin-bottom: 8px; }
.sfn-title { font-size: .98rem; font-weight: 800; color: var(--l-text); margin-bottom: 6px; }
.sfn-desc { font-size: .82rem; color: var(--l-dim); line-height: 1.5; }
.sf-arrow { color: var(--purple-400); font-size: 1.5rem; text-align: center; }

.game-ages {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px;
}
@media (max-width: 800px) { .game-ages { grid-template-columns: 1fr; } }
.ga-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .35s var(--ease), border-color .35s;
  position: relative; overflow: hidden;
}
.ga-card:hover { transform: translateY(-5px); border-color: rgba(155,48,255,.25); }
.ga-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple-400), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.ga-card:hover::after { transform: scaleX(1); }
.ga-pill {
  font-family: var(--mono); font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(155,48,255,.1); color: var(--purple-500);
  margin-bottom: 16px; display: inline-block;
}
.ga-card h4 { font-size: 1.2rem; font-weight: 800; color: var(--l-text); margin-bottom: 10px; }
.ga-card p { font-size: .93rem; color: var(--l-dim); line-height: 1.6; margin-bottom: 12px; }
.ga-example {
  font-size: .82rem; color: var(--purple-500);
  font-family: var(--mono); font-style: italic;
}

.dark-warn {
  padding: 22px 26px;
  background: rgba(255,59,92,.05);
  border: 1px solid rgba(255,59,92,.2);
  border-radius: var(--r);
}
.dw-label { font-weight: 700; color: var(--red); display: block; margin-bottom: 12px; font-size: .98rem; }
.dw-items { display: flex; flex-wrap: wrap; gap: 8px; }
.dw-items span {
  background: rgba(255,59,92,.08); color: #c81f44;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .5px;
}

/* ============================================================
   P07 — UX WRITING
   ============================================================ */
.writing-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 900px) { .writing-layout { grid-template-columns: 1fr; gap: 40px; } }

.writing-bubbles { display: flex; flex-direction: column; gap: 12px; }
.wb {
  padding: 16px 20px; border-radius: 20px;
  font-size: .98rem; line-height: 1.5; max-width: 86%; position: relative;
}
.wb.bad {
  background: rgba(255,59,92,.08);
  border: 1px solid rgba(255,59,92,.2);
  border-bottom-left-radius: 5px; align-self: flex-start;
}
.wb.good {
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(180,77,255,.05));
  border: 1px solid rgba(0,212,255,.2);
  border-bottom-right-radius: 5px; align-self: flex-end;
}
.wb-tag {
  font-family: var(--mono); font-size: .65rem; letter-spacing: 1.2px;
  text-transform: uppercase; opacity: .8; margin-bottom: 6px; display: block;
}
.wb.bad .wb-tag { color: var(--red); }
.wb.good .wb-tag { color: var(--cyan); }

.writing-rules { display: flex; flex-direction: column; gap: 14px; }
.wr-item {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.05);
  border-left: 3px solid var(--purple-300);
  border-radius: var(--r);
  transition: transform .3s, border-left-color .3s;
}
.wr-item:hover { transform: translateX(5px); }
.wr-item h5 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.wr-item p { font-size: .93rem; color: var(--text-dim); line-height: 1.6; }
.wr-item em { color: var(--purple-200); }

/* ============================================================
   P08 — RETROALIMENTACIÓN SENSORIAL
   ============================================================ */
.earcon-board {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 2px 20px rgba(80,40,120,.06);
}
.earcon-board::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 15% 0%, rgba(155,48,255,.07), transparent 50%);
}
.earcon-row {
  display: grid; grid-template-columns: auto 1fr auto auto;
  gap: 20px; align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--l-border);
  position: relative;
}
.earcon-row:last-child { border-bottom: none; }

.earcon-play {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid rgba(155,48,255,.3);
  background: rgba(155,48,255,.07);
  color: var(--purple-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  transition: all .25s var(--ease);
}
.earcon-play:hover { background: rgba(155,48,255,.18); border-color: var(--purple-400); transform: scale(1.08); }
.earcon-play.playing {
  background: var(--purple-400); border-color: var(--purple-200); color: white;
  animation: playPulse 1.2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,48,255,.4); }
  50% { box-shadow: 0 0 0 12px rgba(155,48,255,0); }
}
.earcon-info .ei-name { font-size: 1rem; font-weight: 700; color: var(--l-text); margin-bottom: 3px; }
.earcon-info .ei-desc { font-size: .86rem; color: var(--l-muted); }
.earcon-spec { font-family: var(--mono); font-size: .75rem; color: var(--l-muted); text-align: right; min-width: 130px; }
.ev {
  font-family: var(--mono); font-size: .68rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 5px 10px; border-radius: 999px; font-weight: 600;
}
.ev.low { background: rgba(0,230,118,.1); color: #00a047; }
.ev.mid { background: rgba(155,48,255,.1); color: var(--purple-500); }
.ev.high { background: rgba(255,138,61,.1); color: #d35a00; }
.ev.neg { background: rgba(255,59,92,.08); color: #c81f44; }
@media (max-width: 700px) {
  .earcon-row { grid-template-columns: auto 1fr; row-gap: 6px; }
  .earcon-spec, .ev { grid-column: 2; text-align: left; min-width: 0; }
}

.earcon-warn {
  margin-top: 24px; padding: 18px 24px;
  background: rgba(255,59,92,.04);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  font-size: .95rem; color: var(--l-dim); line-height: 1.65;
}
.earcon-warn strong { color: var(--l-text); }

/* ============================================================
   P09 — PRIVACIDAD Y SEGURIDAD
   ============================================================ */
.ethics-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px;
}
@media (max-width: 900px) { .ethics-grid { grid-template-columns: 1fr; } }
.eth-card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform .35s var(--ease);
  position: relative; overflow: hidden;
}
.eth-card:hover { transform: translateY(-5px); }
.eth-num {
  font-weight: 900; font-size: 3.6rem; letter-spacing: -.04em; line-height: 1;
  color: var(--purple-300); margin-bottom: 14px;
}
.eth-card h4 { font-size: 1.1rem; font-weight: 800; color: var(--purple-200); margin-bottom: 10px; }
.eth-card p { font-size: .93rem; color: var(--text-dim); line-height: 1.65; }

.ethics-contrast {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 700px) { .ethics-contrast { grid-template-columns: 1fr; } }
.ec-bad, .ec-good {
  padding: 24px 26px; border-radius: var(--r);
  font-size: .94rem; line-height: 1.6;
}
.ec-bad { background: rgba(255,59,92,.04); border: 1px solid rgba(255,59,92,.18); }
.ec-good { background: rgba(0,230,118,.04); border: 1px solid rgba(0,230,118,.18); }
.ec-bad h5 { color: var(--red); font-size: .85rem; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.ec-good h5 { color: var(--green); font-size: .85rem; font-family: var(--mono); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
.ec-bad ul, .ec-good ul { padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.ec-bad li { color: var(--text-dim); }
.ec-good li { color: var(--text-dim); }

/* ============================================================
   P10 — ACCESIBILIDAD
   ============================================================ */
.a11y-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px;
}
@media (max-width: 900px) { .a11y-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .a11y-grid { grid-template-columns: 1fr; } }
.a11y-card {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  transition: transform .35s var(--ease), border-color .35s;
}
.a11y-card:hover { transform: translateY(-5px); border-color: rgba(155,48,255,.25); }
.a11y-icon { display: flex; align-items: center; margin-bottom: 14px; width: 28px; height: 28px; }
.a11y-card h5 { font-size: 1rem; font-weight: 800; color: var(--l-text); margin-bottom: 8px; }
.a11y-card p { font-size: .88rem; color: var(--l-dim); line-height: 1.6; }

.a11y-callout {
  padding: 24px 30px;
  background: linear-gradient(135deg, rgba(0,212,255,.07), rgba(155,48,255,.04));
  border: 1px solid rgba(0,212,255,.2);
  border-radius: var(--r);
  display: flex; gap: 20px; align-items: flex-start;
}
@media (max-width: 600px) { .a11y-callout { flex-direction: column; gap: 12px; } }
.ac-badge {
  font-family: var(--mono); font-size: .7rem; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(0,212,255,.12); color: #0096c4;
  flex-shrink: 0; white-space: nowrap;
}
.a11y-callout p { font-size: .95rem; color: var(--l-dim); line-height: 1.65; }

/* ============================================================
   SYNTHESIS SECTION
   ============================================================ */
.synthesis {
  padding: 120px 0; background: var(--bg);
}
.syn-header { max-width: 740px; margin-bottom: 52px; }
.syn-eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--purple-300); display: block; margin-bottom: 16px;
}
.syn-header h2 {
  font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1;
}

.syn-list { max-width: 880px; display: flex; flex-direction: column; gap: 10px; }
.sl-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: 18px; align-items: center;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.04);
  border-radius: var(--r);
  transition: all .3s var(--ease);
}
.sl-row:hover { border-color: rgba(180,77,255,.22); background: rgba(180,77,255,.03); transform: translateX(5px); }
.sl-num {
  font-weight: 900; font-size: 1.8rem; letter-spacing: -.03em;
  color: var(--purple-300); line-height: 1;
  transition: color .3s;
}
.sl-row:hover .sl-num { color: var(--cyan); }
.sl-text { font-size: 1rem; line-height: 1.55; }
.sl-text strong { color: var(--text); margin-right: 7px; }
.sl-text span { color: var(--text-dim); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 70px 0 50px;
  border-top: 1px solid rgba(180,77,255,.1);
  background: var(--bg);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 30px; flex-wrap: wrap; margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.footer-logo img { height: 36px; }
.footer-cta p { font-size: .95rem; color: var(--text-dim); margin-bottom: 14px; }
.footer-sources {
  font-family: var(--mono); font-size: .56rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 32px; letter-spacing: .3px;
}
.fs-title { font-weight: 700; color: var(--text-faint); margin-right: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; color: var(--text-faint);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.btt {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid rgba(180,77,255,.28);
  color: var(--text); font-size: 1.1rem;
  opacity: 0; transform: translateY(10px);
  transition: all .3s var(--ease);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(10px);
}
.btt.visible { opacity: 1; transform: translateY(0); }
.btt:hover { background: var(--purple-400); border-color: var(--purple-200); transform: translateY(-2px); }

/* ============================================================
   SELECTION
   ============================================================ */
::selection { background: var(--purple-400); color: white; }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switch {
  position: relative;
  margin-right: 8px;
}
.ls-current {
  background: rgba(180,77,255,.08);
  border: 1px solid rgba(180,77,255,.25);
  color: var(--text);
  font-family: var(--mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.ls-current:hover { background: rgba(180,77,255,.16); border-color: rgba(180,77,255,.4); }
.ls-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-2);
  border: 1px solid rgba(180,77,255,.2);
  border-radius: var(--r);
  overflow: hidden;
  min-width: 130px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.lang-switch.open .ls-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.ls-opt {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ls-opt:hover { background: rgba(180,77,255,.08); color: var(--text); }
.ls-opt.active { color: var(--purple-200); font-weight: 700; }

/* ============================================================
   INTERACTIVITY TOWER
   ============================================================ */
@keyframes growUp {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
.tower-graph {
  position: relative; height: 380px;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding-left: 40px; padding-bottom: 40px; margin-top: 90px;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 40px;
}
.tower-graph::before {
  content: ''; position: absolute; left: 30px; top: 0; bottom: 40px;
  width: 1px; border-left: 1px dashed rgba(255,255,255,0.2);
}
.tower-graph::after {
  content: ''; position: absolute; left: 30px; right: 0; bottom: 40px;
  height: 1px; border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.tower-y-label {
  position: absolute; left: -45px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  color: var(--text-muted, #888); font-size: .85rem;
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; white-space: nowrap;
}
.tower-x-label {
  position: absolute; right: 0; bottom: 18px;
  color: var(--text-muted, #888); font-size: .85rem;
  letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.tower-bar {
  width: 18%; border-radius: 6px 6px 0 0; position: relative;
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid rgba(180,77,255,0.4); border-bottom: none;
  background: linear-gradient(to top, rgba(123,31,162,0.8), rgba(180,77,255,0.3));
  box-shadow: inset 0 4px 20px rgba(255,255,255,0.1), 0 0 30px rgba(180,77,255,0.2);
  transition: height 1s cubic-bezier(0.2,0.8,0.2,1);
  transform-origin: bottom;
  animation: growUp 1.5s ease-out forwards;
}
.tower-bar-icon {
  position: absolute; top: -80px;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; width: 140%; text-align: center;
}
.tower-bar-icon span { font-size: .8rem; font-weight: 700; line-height: 1.2; }
.tower-bar-icon i    { font-size: 1.4rem; color: var(--text); font-style: normal; }
.tower-bar-label {
  position: absolute; bottom: -64px; text-align: center;
  width: 140%; font-size: .75rem; color: var(--text-dim, #aaa);
  line-height: 1.3; font-weight: 500;
}
.tower-labels {
  display: flex; justify-content: space-around;
  padding-left: 40px; margin-top: 16px; align-items: flex-start;
}
.tower-labels .tower-bar-label {
  position: static; bottom: auto; width: auto;
  flex: 1; text-align: center;
}
.tower-wrapper { display: flex; gap: 40px; }
@media (max-width: 768px) {
  .tower-wrapper { flex-direction: column; }
  .tower-sidebar { width: 100% !important; border-left: none !important; padding-left: 0 !important; padding-top: 30px; border-top: 1px solid rgba(180,77,255,0.1); }
  .tower-bar-icon span, .tower-bar-label { font-size: .65rem; }
}
