/* AdaptiveLearn — Cloudflare-inspired design system */

:root {
  --accent: #F38020;
  --accent-light: #FF9F4A;
  --accent-glow: rgba(243, 128, 32, 0.25);
  --bg: #0B0F19;
  --bg-elevated: #111827;
  --bg-card: #1E293B;
  --bg-card-hover: #243044;
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Sora', 'DM Sans', system-ui, sans-serif;
  --transition: 0.2s ease;
}

[data-theme="light"] {
  --bg: #F8FAFC;
  --bg-elevated: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --text: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-full { width: 100%; }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav { background: rgba(248, 250, 252, 0.9); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }
:root:not([data-theme]) .sun-icon { display: block; }
:root:not([data-theme]) .moon-icon { display: none; }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 112px 0 56px;
  overflow: hidden;
  min-height: min(92vh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .container.hero-inner {
  max-width: 1280px;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(165deg, #fffaf5 0%, #f7f8fb 42%, #eef2f7 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.85;
}

.hero-orb--warm {
  width: min(52vw, 560px);
  height: min(52vw, 560px);
  top: -8%;
  right: 8%;
  background: radial-gradient(circle, rgba(243, 128, 32, 0.28) 0%, transparent 68%);
  animation: hero-orb-drift 14s ease-in-out infinite alternate;
}

.hero-orb--cool {
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  bottom: 4%;
  left: -4%;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.12) 0%, transparent 70%);
  animation: hero-orb-drift 18s ease-in-out infinite alternate-reverse;
}

.hero-rings {
  position: absolute;
  top: 50%;
  right: 6%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  transform: translateY(-46%);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 42%, rgba(243, 128, 32, 0.07) 43%, transparent 44%),
    radial-gradient(circle, transparent 58%, rgba(15, 23, 42, 0.05) 59%, transparent 60%),
    radial-gradient(circle, transparent 74%, rgba(243, 128, 32, 0.05) 75%, transparent 76%);
  animation: hero-ring-pulse 8s ease-in-out infinite;
}

[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 55% at 18% 18%, rgba(243, 128, 32, 0.14) 0%, transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 42%, rgba(243, 128, 32, 0.07) 0%, transparent 55%),
    linear-gradient(180deg, #0B0F19 0%, #111827 100%);
}

[data-theme="dark"] .hero-rings {
  background:
    radial-gradient(circle, transparent 42%, rgba(243, 128, 32, 0.12) 43%, transparent 44%),
    radial-gradient(circle, transparent 58%, rgba(255, 255, 255, 0.04) 59%, transparent 60%),
    radial-gradient(circle, transparent 74%, rgba(243, 128, 32, 0.08) 75%, transparent 76%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 3.25rem;
  align-items: center;
}

.hero-copy {
  max-width: 36rem;
  width: 100%;
}

.hero-brand {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  animation: hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand span {
  color: var(--accent);
}

.hero-kicker {
  margin: 0 0 18px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  animation: hero-rise 0.7s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-badge {
  display: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.55rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  animation: hero-rise 0.75s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 28px;
  line-height: 1.55;
  animation: hero-rise 0.75s 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0;
  animation: hero-rise 0.75s 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  max-width: 56rem;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 16px 0;
  margin: 0;
  min-width: 0;
  border-right: 1px solid rgba(243, 128, 32, 0.35);
}

.stat:nth-child(3n) {
  border-right: none;
  padding-right: 0;
}

.stat:nth-child(n + 4) {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.stat-num {
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 10rem;
}

.stat-divider {
  display: none;
}

.hero-pillars {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 34rem;
  animation: hero-rise 0.75s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-pillar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px 0 0;
  margin-right: 12px;
  border-right: 1px solid rgba(243, 128, 32, 0.35);
}

.hero-pillar:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hero-pillar strong {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-pillar span {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: auto;
  pointer-events: none;
  opacity: 1;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-rise 0.9s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-stage {
  position: relative;
  width: min(100%, 520px);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 245, 0.95));
  box-shadow:
    0 32px 72px rgba(15, 23, 42, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  padding: 18px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center right;
}

[data-theme="dark"] .hero-panel {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero-float {
  position: absolute;
  z-index: 3;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  padding: 12px 14px;
  animation: hero-float-bob 5.5s ease-in-out infinite;
}

[data-theme="dark"] .hero-float {
  background: rgba(30, 41, 59, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero-float--courses {
  left: -8%;
  top: 12%;
  width: 168px;
  animation-delay: 0.4s;
}

.hero-float--insight {
  right: -4%;
  bottom: 10%;
  width: 132px;
  text-align: left;
  animation-delay: 1.1s;
}

.hero-float-label {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim, var(--text-muted));
}

.hero-float--courses ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-float--courses li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text);
}

.hero-float--courses li em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.hero-float-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}

.hero-float-note {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-panel-students {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  background: rgba(243, 128, 32, 0.1);
  border: 1px solid rgba(243, 128, 32, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
}

.hero-chip--more {
  background: rgba(15, 23, 42, 0.05);
  border-color: var(--border);
  color: var(--text-muted);
}

@keyframes hero-float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-18px, 14px) scale(1.06); }
}

@keyframes hero-ring-pulse {
  0%, 100% { opacity: 0.55; transform: translateY(-46%) scale(1); }
  50% { opacity: 0.9; transform: translateY(-46%) scale(1.03); }
}

@keyframes heroMeter {
  from { width: 0; }
  to { width: 78%; }
}

@keyframes hero-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 55%;
  background: radial-gradient(ellipse at center, rgba(243, 128, 32, 0.18), transparent 70%);
  pointer-events: none;
}

.hero-panel-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-panel-dots {
  display: flex;
  gap: 5px;
}

.hero-panel-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  display: block;
}

.hero-panel-dots i:nth-child(1) { background: #f87171; }
.hero-panel-dots i:nth-child(2) { background: #fbbf24; }
.hero-panel-dots i:nth-child(3) { background: #34d399; }

.hero-panel-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-panel-live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 6px;
  padding: 3px 9px;
  animation: hero-live-pulse 2.4s ease-in-out infinite;
}

.hero-panel-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #10b981;
  vertical-align: 1px;
}

.hero-panel-query {
  position: relative;
  padding: 14px 14px 12px;
  border-radius: 12px;
  background: rgba(243, 128, 32, 0.06);
  border: 1px solid rgba(243, 128, 32, 0.16);
  margin-bottom: 12px;
}

.hero-panel-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.hero-panel-query p,
.hero-panel-typed {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
}

.hero-panel-result {
  position: relative;
  padding: 12px 14px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
}

[data-theme="dark"] .hero-panel-result {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.hero-panel-row:last-of-type {
  border-bottom: none;
}

.hero-panel-row span {
  color: var(--text-muted);
}

.hero-panel-row strong {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.hero-panel-meter {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.hero-panel-meter-fill {
  width: 78%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  animation: heroMeter 1.6s ease 0.2s both;
}

.hero-panel-foot {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--text-dim, var(--text-muted));
}

.globe-ring,
.data-nodes,
.node,
.pulse {
  display: none;
}

.social-proof--tight {
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
}

/* ── Social proof ── */
.social-proof {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.proof-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.proof-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.proof-logo {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── En datos · contadores ── */
.al-datos {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(243, 128, 32, 0.06), transparent 60%);
}

.al-datos .section-sub {
  max-width: 40rem;
  margin-bottom: 40px;
}

.al-datos__counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 24px;
  margin-bottom: 20px;
}

@media (min-width: 720px) {
  .al-datos__counters {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
  }
}

.al-datos__counter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.al-datos__num {
  font-size: clamp(2.4rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  display: inline;
}

.al-datos__suffix {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.al-datos__label {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 16rem;
}

.al-datos__note {
  font-size: 13px;
  color: var(--text-dim);
  margin: 8px 0 40px;
  max-width: 44rem;
  line-height: 1.5;
}

.al-datos__roi {
  margin: 0 0 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
}

.al-datos__counters--roi {
  margin: 28px 0 32px;
}

.al-datos__roi-grid {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  gap: 18px 28px;
}

@media (min-width: 720px) {
  .al-datos__roi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.al-datos__roi-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.al-datos__roi-grid strong {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}

.al-datos__roi-grid span {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.al-datos__table-wrap {
  margin-top: 36px;
  max-width: 52rem;
}

.al-datos__table-caption {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 8px;
}

.al-datos__table-title {
  margin: 0 0 16px;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.al-datos__table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.al-datos__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 32rem;
  font-size: 0.92rem;
}

.al-datos__table th,
.al-datos__table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.45;
}

.al-datos__table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(243, 128, 32, 0.06);
  white-space: nowrap;
}

.al-datos__table tbody tr:last-child td {
  border-bottom: none;
}

.al-datos__table tbody tr:hover td {
  background: rgba(243, 128, 32, 0.04);
}

.al-datos__table td:first-child {
  color: var(--text);
  font-weight: 600;
  min-width: 12rem;
}

.al-datos__table td:nth-child(2) {
  white-space: nowrap;
  width: 5.5rem;
}

.al-datos__table td:last-child {
  color: var(--text-muted);
}

.al-datos__table-val {
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  display: inline-block;
  min-width: 3.2em;
}

/* Accordions — static metrics, no count-up / fade gimmicks */
.al-accordion {
  display: grid;
  gap: 12px;
  margin: 8px 0 40px;
  max-width: 56rem;
}

.al-accordion__item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated, var(--bg));
  overflow: hidden;
}

.al-accordion__summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  padding-right: 48px;
  user-select: none;
}

.al-accordion__summary::-webkit-details-marker {
  display: none;
}

.al-accordion__summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.al-accordion__item[open] > .al-accordion__summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.al-accordion__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.al-accordion__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.al-accordion__body {
  padding: 0 16px 18px;
}

.al-accordion__body .al-datos__table-scroll {
  border-radius: 8px;
}

.al-datos__synergy {
  margin: 0 0 40px;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  max-width: 52rem;
}

.al-datos__synergy-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 0 0 10px;
}

.al-datos__synergy-title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.al-datos__synergy-lead {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.al-datos__synergy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.al-datos__synergy-list li {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.al-datos__synergy-list strong {
  color: var(--text);
  font-weight: 700;
}

.al-datos__pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
}

@media (min-width: 640px) {
  .al-datos__pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .al-datos__pillars {
    grid-template-columns: repeat(5, 1fr);
  }
}

.al-datos__pillar h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 8px;
}

.al-datos__pillar p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ── Sections ── */
section { padding: 100px 0; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.feature-card:hover {
  border-color: rgba(243, 128, 32, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: rgba(243, 128, 32, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
}
.card-link:hover { color: var(--accent-light); }

/* ── How it works ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.step-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow {
  align-self: center;
  font-size: 24px;
  color: var(--accent);
  opacity: 0.5;
  padding-top: 40px;
}

/* ── Demo / Dashboard ── */
.demo { background: var(--bg-elevated); }

.live-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.metric-icon {
  width: 40px;
  height: 40px;
  background: rgba(243, 128, 32, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.metric-icon svg { width: 20px; height: 20px; }
.metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.metric-unit { font-size: 18px; color: var(--text-muted); }
.metric-label { font-size: 12px; color: var(--text-muted); display: block; margin-top: 4px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-header h3 { font-size: 16px; font-weight: 700; }

.card-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(243, 128, 32, 0.12);
  color: var(--accent);
  border-radius: 100px;
}
.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  opacity: 0.95;
}

.chart-wrapper { position: relative; }
.chart-wrapper canvas { width: 100%; height: auto; }

.chart-legend, .path-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.legend-dot, .legend-node {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.legend-node { border-radius: 3px; border: 1px solid var(--border); }

.student-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }

.student-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  transition: var(--transition);
}
.student-item:hover { background: rgba(255, 255, 255, 0.03); }

.student-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.student-info { flex: 1; min-width: 0; }
.student-name { font-size: 14px; font-weight: 600; display: block; }
.student-level { font-size: 12px; color: var(--text-muted); }

.level-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.level-beginner { background: rgba(243, 128, 32, 0.15); color: var(--accent); }
.level-intermediate { background: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.level-advanced { background: rgba(16, 185, 129, 0.15); color: #10B981; }

.student-progress-ring { position: relative; flex-shrink: 0; }
.progress-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
}

.student-activity { display: flex; flex-direction: column; gap: 8px; }
.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.path-section { margin-bottom: 32px; }
.path-card .path-visualizer { overflow-x: auto; }
.path-card canvas { width: 100%; height: auto; }

/* ── Simulator ── */
.simulator-section { margin-top: 8px; }

.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sim-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.sim-profile { display: flex; gap: 16px; align-items: flex-start; }
.sim-profile h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.sim-profile p { font-size: 13px; color: var(--text-muted); }

.sim-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.sim-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}
.diff-indicator {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}
.sim-score {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.sim-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.question-area { padding: 28px; }

.question-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(243, 128, 32, 0.12);
  color: var(--accent);
  border-radius: 100px;
  margin-bottom: 16px;
}

.question-text {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.question-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.q-option {
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.q-option:hover { border-color: var(--accent); color: var(--accent); }
.q-option.selected { border-color: var(--accent); background: rgba(243, 128, 32, 0.1); }
.q-option.correct { border-color: #10B981; background: rgba(16, 185, 129, 0.1); color: #10B981; }
.q-option.incorrect { border-color: #EF4444; background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.q-option:disabled { cursor: not-allowed; opacity: 0.7; }

.sim-feedback {
  padding: 28px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.feedback-icon {
  width: 36px;
  height: 36px;
  background: rgba(243, 128, 32, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.feedback-icon svg { width: 20px; height: 20px; }
.feedback-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.feedback-text.correct { color: #10B981; }
.feedback-text.incorrect { color: #EF4444; }

.sim-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.sim-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
  min-width: 120px;
}
.sim-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 100px;
  transition: width 0.4s ease;
}
.sim-progress-text {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Testimonial ── */
.testimonial {
  background: var(--bg-elevated);
  text-align: center;
}
.testimonial blockquote {
  max-width: 720px;
  margin: 0 auto;
}
.testimonial p {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial footer strong { display: block; font-size: 16px; color: var(--text); }
.testimonial footer span { font-size: 14px; color: var(--text-dim); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}
.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}
.pricing-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.currency { font-size: 24px; vertical-align: super; }
.price-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-card ul { list-style: none; margin-bottom: 28px; }
.pricing-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-card li::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ── Resources ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.resource-card:hover { border-color: rgba(243, 128, 32, 0.3); transform: translateY(-2px); }
.resource-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.resource-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.resource-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.resource-card a { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ── CTA ── */
.cta {
  text-align: center;
  background: var(--bg-elevated);
}
.cta h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta p { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; max-width: 280px; line-height: 1.6; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-visual {
    display: flex;
    min-height: 0;
    order: 2;
  }
  .hero-copy { order: 1; }
  .hero-stage {
    width: 100%;
    min-height: 0;
    padding: 8px 0;
  }
  .hero-float { display: none; }
  .hero-panel {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    transform: none;
  }
  .dashboard-grid { grid-template-columns: 1fr; }
  .sim-body { grid-template-columns: 1fr; }
  .sim-feedback { border-left: none; border-top: 1px solid var(--border); }
  .step-arrow { display: none; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }
  .hero { padding-top: 100px; min-height: auto; }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    border-right: 1px solid rgba(243, 128, 32, 0.35);
    padding-right: 16px;
  }
  .stat:nth-child(3n) {
    border-right: 1px solid rgba(243, 128, 32, 0.35);
  }
  .stat:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
    padding-top: 16px;
  }
  .hero-pillars {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  .hero-pillar {
    border-right: none;
    margin-right: 0;
    padding: 0;
    border-left: 2px solid var(--accent);
    padding-left: 12px;
  }
  .question-options { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}


/* Hero · light: atmósfera cálida + panel de producto */
[data-theme="light"] .hero-bg {
  background:
    linear-gradient(165deg, #fffaf5 0%, #f7f8fb 42%, #eef2f7 100%);
}
[data-theme="light"] .hero-title {
  color: #0f172a;
}
[data-theme="light"] .hero-pillar strong {
  color: var(--accent);
}
[data-theme="light"] .hero-pillar {
  border-color: rgba(243, 128, 32, 0.35);
}
