/* abaku.mx — landing styles
   Borrador 1. Dark por default, light disponible.
*/

/* ============ TOKENS ============ */
:root {
  --bg:           #0d0820;
  --bg-2:         #15102e;
  --bg-3:         #1a1232;
  --surface:      rgba(255,255,255,.04);
  --surface-2:    rgba(255,255,255,.08);
  --border:       rgba(167,139,250,.18);
  --border-2:     rgba(167,139,250,.32);

  --text:         #ebe5ff;
  --text-soft:    rgba(235,229,255,.78);
  --text-mute:    rgba(235,229,255,.55);

  --primary:      #8b5cf6;
  --primary-2:    #a855f7;
  --primary-3:    #c4b5fd;
  --accent:       #22d3ee;

  --grad-1:       linear-gradient(135deg, #a855f7 0%, #6d28d9 60%, #4338ca 100%);
  --grad-text:    linear-gradient(120deg, #c4b5fd 0%, #f472b6 50%, #fde68a 100%);
  --grad-hero:    radial-gradient(1200px 600px at 70% -10%, rgba(168,85,247,.35), transparent 60%),
                  radial-gradient(900px 500px at 10% 30%, rgba(34,211,238,.18), transparent 60%);

  --shadow-1:     0 1px 2px rgba(0,0,0,.4), 0 8px 30px rgba(109,40,217,.25);
  --shadow-2:     0 30px 80px rgba(0,0,0,.55);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --font:      'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:      'JetBrains Mono', ui-monospace, "SF Mono", Consolas, monospace;

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Light variant */
html[data-theme="light"] {
  --bg:        #fafaff;
  --bg-2:      #f3f0ff;
  --bg-3:      #ffffff;
  --surface:   rgba(109,40,217,.04);
  --surface-2: rgba(109,40,217,.08);
  --border:    rgba(109,40,217,.18);
  --border-2:  rgba(109,40,217,.30);

  --text:      #1a1232;
  --text-soft: rgba(26,18,50,.74);
  --text-mute: rgba(26,18,50,.55);

  --grad-hero: radial-gradient(1200px 600px at 70% -10%, rgba(168,85,247,.20), transparent 60%),
               radial-gradient(900px 500px at 10% 30%, rgba(34,211,238,.10), transparent 60%);

  --shadow-1:  0 1px 2px rgba(20,10,60,.06), 0 8px 30px rgba(109,40,217,.10);
  --shadow-2:  0 30px 80px rgba(50,30,120,.18);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
code, pre { font-family: var(--mono); }

/* ============ LAYOUT ============ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .kicker { justify-content: center; }
.section-sub { color: var(--text-soft); font-size: 17px; }

/* ============ TYPOGRAPHY ============ */
.display {
  font-size: clamp(36px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 18px 0 22px;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 12px 0 12px;
}
h3 { font-size: 19px; margin: 0 0 6px; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 13px; margin: 0 0 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mute); }
.lead { font-size: 18px; color: var(--text-soft); max-width: 600px; }
.muted { color: var(--text-mute); }
.small { font-size: 13px; }

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.kicker-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-2);
  box-shadow: 0 0 0 4px rgba(168,85,247,.18);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 0 4px rgba(168,85,247,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(168,85,247,.06); }
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--grad-1);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  box-shadow: var(--shadow-1);
}
.brand-text { font-size: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a { transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.nav-burger span {
  display: block; width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  display: inline-grid; place-items: center;
  color: var(--text-soft);
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-2); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
html[data-theme="light"] .theme-toggle .ic-sun { display: block; }
html[data-theme="light"] .theme-toggle .ic-moon { display: none; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s var(--ease), background .15s, border-color .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--grad-1);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.btn-primary:hover { box-shadow: 0 4px 12px rgba(0,0,0,.35), 0 14px 40px rgba(168,85,247,.45); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}

/* ============ HERO ============ */
.bg-glow {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-glow::before,
.bg-glow::after,
.bg-glow > .glow-orb {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.bg-glow::before {
  width: 60vmax; height: 60vmax;
  background: radial-gradient(circle, rgba(168,85,247,.45), rgba(168,85,247,0) 70%);
  top: -20%; left: -10%;
  opacity: .85;
  animation: drift1 28s ease-in-out infinite;
}
.bg-glow::after {
  width: 50vmax; height: 50vmax;
  background: radial-gradient(circle, rgba(34,211,238,.30), rgba(34,211,238,0) 70%);
  bottom: -20%; right: -10%;
  opacity: .65;
  animation: drift2 36s ease-in-out infinite;
}
.bg-glow .glow-orb {
  width: 40vmax; height: 40vmax;
  background: radial-gradient(circle, rgba(244,114,182,.22), rgba(244,114,182,0) 70%);
  top: 30%; left: 30%;
  opacity: .55;
  animation: drift3 44s ease-in-out infinite;
}
@keyframes drift1 {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(18vw, 10vh) scale(1.08); }
  66%  { transform: translate(-6vw, 18vh) scale(.95); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes drift2 {
  0%   { transform: translate(0,0) scale(1); }
  40%  { transform: translate(-22vw, -8vh) scale(1.12); }
  75%  { transform: translate(8vw, -16vh) scale(.92); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes drift3 {
  0%   { transform: translate(-10vw, -10vh) scale(1); }
  35%  { transform: translate(12vw, 4vh) scale(1.15); }
  70%  { transform: translate(-4vw, 14vh) scale(.88); }
  100% { transform: translate(-10vw, -10vh) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-glow::before,
  .bg-glow::after,
  .bg-glow > .glow-orb { animation: none; }
}
html[data-theme="light"] .bg-glow::before {
  background: radial-gradient(circle, rgba(168,85,247,.20), rgba(168,85,247,0) 70%);
}
html[data-theme="light"] .bg-glow::after {
  background: radial-gradient(circle, rgba(34,211,238,.14), rgba(34,211,238,0) 70%);
}
html[data-theme="light"] .bg-glow .glow-orb {
  background: radial-gradient(circle, rgba(244,114,182,.14), rgba(244,114,182,0) 70%);
}
.hero {
  padding: 80px 0 100px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy { max-width: 620px; }
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px 20px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-mute);
}
.hero-trust strong { color: var(--text); font-weight: 700; }

.hero-visual {
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34,211,238,.18);
  border: 1px solid rgba(34,211,238,.45);
  color: #67e8f9;
  font-size: 12.5px;
  font-weight: 700;
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  z-index: 2;
}

/* ============ MOCK WINDOW ============ */
.window {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transform: rotate(-1.2deg) translateY(-4px);
  transition: transform .4s var(--ease);
}
.window:hover { transform: rotate(0deg) translateY(-8px); }
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ef4444; } .dot-y { background: #f59e0b; } .dot-g { background: #22c55e; }
.window-url {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-mute);
  margin-left: 12px;
}
.window-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 320px;
}
.window-body-lg { min-height: 380px; grid-template-columns: 1fr; }

.mock-sidebar {
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.mock-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 14px;
  font-weight: 800;
}
.mock-logo span {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  background: var(--grad-1);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
}
.mock-item {
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text-mute);
}
.mock-item.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.mock-content { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mock-strip {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.mock-chip {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mock-chip.ok { background: rgba(34,197,94,.16); color: #86efac; }
.mock-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-card-h { font-size: 10.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.mock-card-num { font-size: 18px; font-weight: 800; color: var(--text); }
.mock-bar {
  height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden;
}
.mock-bar span {
  display: block; height: 100%;
  background: var(--grad-1);
  border-radius: 2px;
}
.mock-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px;
}
.mock-tile {
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.mock-tile.big { height: 50px; background: linear-gradient(135deg, rgba(168,85,247,.18), rgba(34,211,238,.10)); }

.mock-page { padding: 18px; }
.mock-hero-bar {
  height: 60px;
  background: linear-gradient(135deg, rgba(168,85,247,.22), rgba(34,211,238,.12));
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 14px;
}
.mock-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.mock-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-block-h { height: 10px; width: 60%; background: var(--surface-2); border-radius: 4px; }
.mock-block-l { height: 22px; background: var(--surface-2); border-radius: 6px; }
.mock-block-l.short { width: 70%; }
.mock-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mock-tr {
  height: 38px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--surface-2) 24%, transparent 24% 32%, var(--surface-2) 32% 56%, transparent 56% 64%, var(--surface-2) 64% 86%, transparent 86%);
  background-size: 100% 38px;
}
.mock-tr.h { height: 32px; background: var(--bg-3); }
.mock-tr:last-child { border-bottom: 0; }

/* ============ STATS ============ */
.stats {
  padding: 32px 0 20px;
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}
.stat { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.stat-num {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-lbl { font-size: 13px; color: var(--text-mute); }

/* ============ FEATURES ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.feat:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: var(--border-2);
}
.feat-ic {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ic) 22%, transparent);
  color: var(--ic);
  margin-bottom: 16px;
}
.feat-ic svg { width: 22px; height: 22px; }
.feat p { color: var(--text-soft); font-size: 14.5px; margin: 0; }

/* ============ WHO ============ */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.who {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.who p { color: var(--text-soft); font-size: 15px; margin: 6px 0 16px; }
.who-list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-soft); }
.who-list li { padding-left: 22px; position: relative; }
.who-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--grad-1);
  box-shadow: inset 0 0 0 3px var(--bg);
}

/* ============ DEMO ============ */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.demo-ctas { margin: 18px 0 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.demo-creds { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.cred {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.cred-tag {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--primary-3);
  padding: 2px 8px;
  background: rgba(168,85,247,.16);
  border-radius: 4px;
}
.cred code { color: var(--text); }

/* ============ PRICING ============ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.price-feat {
  background: linear-gradient(180deg, rgba(168,85,247,.15), rgba(168,85,247,.04));
  border-color: var(--border-2);
  box-shadow: 0 24px 60px rgba(168,85,247,.18);
  transform: scale(1.03);
}
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.price-h { font-size: 14px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .12em; }
.price-tag {
  display: flex; align-items: baseline; gap: 6px;
}
.price-num {
  font-size: 44px; font-weight: 800;
  letter-spacing: -.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-per { font-size: 13px; color: var(--text-mute); }
.price-desc { font-size: 13.5px; color: var(--text-mute); margin-top: -10px; }
.price-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-soft); flex: 1; }
.price-list li { padding-left: 24px; position: relative; }
.price-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: rgba(34,197,94,.18);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386efac' stroke-width='2.4' stroke-linecap='round'><path d='M4 8.5l2.5 2.5L12 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.price-foot {
  margin: 36px auto 0;
  text-align: center;
  color: var(--text-soft);
  font-size: 14.5px;
  max-width: 700px;
}

/* ============ FAQ ============ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: flex-start;
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: background .15s, border-color .15s;
}
.faq-list details[open] {
  background: var(--surface-2);
  border-color: var(--border-2);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-mute);
  transition: transform .25s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14.5px;
}

/* ============ CTA SECTION ============ */
.section-cta { padding-bottom: 120px; }
.cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(168,85,247,.2), rgba(34,211,238,.1));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 60px 40px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(168,85,247,.25), transparent 70%);
  pointer-events: none;
}
.cta-card .h2 { margin-top: 4px; }
.cta-card .lead { margin: 0 auto; }
.cta-row {
  margin-top: 26px;
  display: flex; flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}
.footer ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-soft); }
.footer ul a { transition: color .15s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .kicker-dot { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-feat { transform: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-cta .theme-toggle { display: inline-grid; }
  .nav-burger { display: inline-flex; }
  .feat-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; padding: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
}

/* Mobile menu open */
body.menu-open .nav-links {
  display: flex;
  position: fixed;
  inset: 68px 0 0 0;
  flex-direction: column;
  background: var(--bg);
  padding: 30px 24px;
  z-index: 49;
  border-top: 1px solid var(--border);
  font-size: 18px;
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   COMPONENTES AÑADIDOS (borrador 2)
   ========================================================================== */

/* Modalidad cards: agrega icono al .who */
.who-ic {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--ic) 22%, transparent);
  color: var(--ic);
  margin-bottom: 16px;
}
.who-ic svg { width: 24px; height: 24px; }
.who h3 { margin-top: 0; }

/* Categorías de módulos */
.cat { margin: 32px 0; }
.cat:first-of-type { margin-top: 0; }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 4px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--tagc) 22%, transparent);
  color: var(--tagc);
  white-space: nowrap;
}
.cat-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mod {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.mod:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--border-2);
}
.mod-ic {
  font-size: 22px;
  line-height: 1;
  display: inline-block;
  margin-bottom: 10px;
}
.mod h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: -.005em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mod p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Badges para módulos */
.badge-star {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #78350f;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.badge-soon {
  background: rgba(167,139,250,.20);
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid rgba(167,139,250,.35);
}

/* Documentación section */
.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.doc-list {
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-soft);
}
.doc-list li {
  padding-left: 28px;
  position: relative;
}
.doc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  background: rgba(34,197,94,.20);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386efac' stroke-width='2.4' stroke-linecap='round'><path d='M4 8.5l2.5 2.5L12 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* Mock de doc */
.mock-doc {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 380px;
}
.mock-doc-side {
  background: var(--bg-3);
  border-right: 1px solid var(--border);
  padding: 14px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px;
}
.mock-doc-h {
  font-size: 10.5px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700;
  padding: 4px 8px 10px;
}
.mock-doc-i {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--text-mute);
}
.mock-doc-i.active {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}
.mock-doc-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.mock-doc-t {
  height: 26px;
  width: 70%;
  background: linear-gradient(90deg, var(--surface-2), var(--surface));
  border-radius: 6px;
  margin-bottom: 6px;
}
.mock-doc-l {
  height: 12px;
  background: var(--surface-2);
  border-radius: 4px;
}
.mock-doc-l.short { width: 65%; }
.mock-doc-step {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  background: var(--grad-1);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin: 8px 0 -2px;
}

/* Moodle band */
.moodle-band {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(34,211,238,.06));
  border: 1px solid var(--border-2);
  border-radius: 22px;
  padding: 40px 44px;
}
.h2-tight { margin: 8px 0 4px; }
.moodle-list {
  display: flex; flex-direction: column;
  gap: 8px; font-size: 14.5px; color: var(--text-soft);
}
.moodle-list li {
  padding-left: 24px;
  position: relative;
}
.moodle-list li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--primary-2);
  font-weight: 800;
}
.moodle-cta {
  text-align: right;
  background: var(--surface);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.moodle-cta .btn { width: 100%; justify-content: center; }

/* Testimonios */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 22px;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.testi:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  background: var(--surface-2);
}
.testi-q {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  position: relative;
  padding-left: 20px;
}
.testi-q::before {
  content: '“';
  position: absolute;
  left: -2px; top: -10px;
  font-size: 56px;
  color: var(--primary-2);
  opacity: .35;
  font-family: Georgia, serif;
  line-height: 1;
}
.testi-who {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}
.testi-who img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-2);
  flex-shrink: 0;
}
.testi-who strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}
.testi-who span {
  font-size: 12.5px;
  color: var(--text-mute);
}

/* Footer expand */
.footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); }

@media (max-width: 1024px) {
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: 1fr; gap: 30px; }
  .moodle-band { grid-template-columns: 1fr; padding: 32px 28px; }
  .moodle-cta { text-align: center; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .mod-grid { grid-template-columns: 1fr; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .moodle-band { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   LIGHT MODE — fixes de contraste
   ========================================================================== */

/* Texto con gradient en light mode: usar gradient oscuro para que no se pierda */
html[data-theme="light"] .grad,
html[data-theme="light"] .stat-num,
html[data-theme="light"] .price-num {
  background: linear-gradient(120deg, #6d28d9 0%, #a855f7 50%, #db2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Kicker pill: más contraste en light */
html[data-theme="light"] .kicker {
  background: rgba(109,40,217,.07);
  color: #5b21b6;
  border-color: rgba(109,40,217,.18);
}
html[data-theme="light"] .kicker-dot {
  background: #6d28d9;
  box-shadow: 0 0 0 4px rgba(109,40,217,.18);
}
html[data-theme="light"] @keyframes pulseDotL {
  0%,100% { box-shadow: 0 0 0 4px rgba(109,40,217,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(109,40,217,.06); }
}

/* Window mock en light: fondo blanco, texto legible */
html[data-theme="light"] .window {
  background: #ffffff;
  border-color: rgba(109,40,217,.18);
  box-shadow: 0 30px 80px rgba(50,30,120,.18);
}
html[data-theme="light"] .window-bar {
  background: #f5f3ff;
  border-bottom-color: rgba(109,40,217,.12);
}
html[data-theme="light"] .window-url { color: #7c3aed; }
html[data-theme="light"] .mock-sidebar {
  background: #faf7ff;
  border-right-color: rgba(109,40,217,.12);
}
html[data-theme="light"] .mock-item { color: #6b7280; }
html[data-theme="light"] .mock-item.active {
  background: rgba(109,40,217,.10);
  color: #4c1d95;
}
html[data-theme="light"] .mock-card { background: #ffffff; border-color: rgba(109,40,217,.10); }
html[data-theme="light"] .mock-card-h { color: #6b7280; }
html[data-theme="light"] .mock-card-num { color: #1f2937; }
html[data-theme="light"] .mock-bar { background: #ede9fe; }
html[data-theme="light"] .mock-tile,
html[data-theme="light"] .mock-block { background: #ffffff; border-color: rgba(109,40,217,.10); }
html[data-theme="light"] .mock-block-h,
html[data-theme="light"] .mock-block-l,
html[data-theme="light"] .mock-tr { background: #f3f0ff; }
html[data-theme="light"] .mock-tr.h { background: #ede9fe; }
html[data-theme="light"] .mock-chip.ok { background: rgba(22,163,74,.16); color: #15803d; }
html[data-theme="light"] .mock-doc-side { background: #faf7ff; }
html[data-theme="light"] .mock-doc-i { color: #6b7280; }
html[data-theme="light"] .mock-doc-i.active { background: rgba(109,40,217,.10); color: #4c1d95; }
html[data-theme="light"] .mock-doc-l,
html[data-theme="light"] .mock-doc-t { background: #ede9fe; }

/* Hero badge en light */
html[data-theme="light"] .hero-badge {
  background: rgba(34,211,238,.18);
  border-color: rgba(34,211,238,.45);
  color: #0e7490;
}

/* Cred-tag */
html[data-theme="light"] .cred-tag {
  background: rgba(109,40,217,.10);
  color: #6d28d9;
}

/* Price feat box */
html[data-theme="light"] .price-feat {
  background: linear-gradient(180deg, rgba(168,85,247,.08), rgba(168,85,247,.02));
  box-shadow: 0 24px 60px rgba(168,85,247,.14);
}

/* Categoría tag legibles en light */
html[data-theme="light"] .cat-tag {
  background: color-mix(in srgb, var(--tagc) 14%, white);
  color: color-mix(in srgb, var(--tagc) 70%, black);
  border: 1px solid color-mix(in srgb, var(--tagc) 30%, transparent);
}

/* Badges */
html[data-theme="light"] .badge-soon {
  background: rgba(109,40,217,.08);
  color: #6d28d9;
  border-color: rgba(109,40,217,.20);
}

/* CTA card en light */
html[data-theme="light"] .cta-card {
  background: linear-gradient(135deg, rgba(168,85,247,.10), rgba(34,211,238,.06));
  border-color: rgba(109,40,217,.20);
}
html[data-theme="light"] .cta-card::before {
  background: radial-gradient(600px 200px at 50% 0%, rgba(168,85,247,.18), transparent 70%);
}

/* Moodle band en light */
html[data-theme="light"] .moodle-band {
  background: linear-gradient(135deg, rgba(168,85,247,.07), rgba(34,211,238,.04));
  border-color: rgba(109,40,217,.20);
}
html[data-theme="light"] .moodle-cta {
  background: #ffffff;
  border-color: rgba(109,40,217,.10);
}

/* Stats card glass en light */
html[data-theme="light"] .stats-grid {
  background: #ffffff;
  border-color: rgba(109,40,217,.12);
  box-shadow: 0 12px 40px rgba(50,30,120,.06);
}

/* Botones ghost en light: texto oscuro definitivo */
html[data-theme="light"] .btn-ghost {
  color: #1f1646;
  border-color: rgba(109,40,217,.20);
}
html[data-theme="light"] .btn-ghost:hover {
  background: rgba(109,40,217,.06);
  border-color: rgba(109,40,217,.35);
}

/* Theme toggle border en light */
html[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: rgba(109,40,217,.18);
  color: #6d28d9;
}

/* Brand mark sigue con gradient — ok */

/* Nav background en light: blur translúcido */
html[data-theme="light"] .nav {
  background: color-mix(in srgb, #ffffff 80%, transparent);
}

/* Footer en light */
html[data-theme="light"] .footer { background: var(--bg); border-top-color: rgba(109,40,217,.12); }
html[data-theme="light"] .footer-bottom { border-top-color: rgba(109,40,217,.12); }

/* FAQ expanded en light */
html[data-theme="light"] .faq-list details {
  background: #ffffff;
  border-color: rgba(109,40,217,.12);
}
html[data-theme="light"] .faq-list details[open] {
  background: #faf7ff;
  border-color: rgba(109,40,217,.30);
}

/* Surfaces de feat / mod / who / testi en light: subir contraste */
html[data-theme="light"] .feat,
html[data-theme="light"] .mod,
html[data-theme="light"] .who,
html[data-theme="light"] .testi,
html[data-theme="light"] .price,
html[data-theme="light"] .cred {
  background: #ffffff;
  border-color: rgba(109,40,217,.12);
}
html[data-theme="light"] .feat:hover,
html[data-theme="light"] .mod:hover,
html[data-theme="light"] .testi:hover {
  background: #faf7ff;
  border-color: rgba(109,40,217,.28);
}

/* Testi "”" mark en light */
html[data-theme="light"] .testi-q::before { color: #a855f7; opacity: .55; }

/* ==========================================================================
   MOD CARD COMO BUTTON (clickeable) + MODAL (borrador 3)
   ========================================================================== */

.mod {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  position: relative;
}
.mod:focus-visible {
  outline: 2px solid var(--primary-2);
  outline-offset: 2px;
}
.mod-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-3);
  letter-spacing: -.005em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.mod:hover .mod-more,
.mod:focus-visible .mod-more { opacity: 1; transform: translateX(0); }

html[data-theme="light"] .mod-more { color: #6d28d9; }

/* Hero "tight" para sub-páginas */
.hero-tight { padding: 60px 0 30px; }
.hero-tight .display { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 14px; }

/* Cat-nav pills (página /modulos) */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.cat-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: background .15s, border-color .15s, transform .12s var(--ease);
}
.cat-nav-pill:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}
.cat-nav-pill:active { transform: translateY(1px); }
.cat-nav-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--tagc);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tagc) 18%, transparent);
}
.cat-nav-count {
  font-size: 11px;
  font-weight: 800;
  background: color-mix(in srgb, var(--tagc) 22%, transparent);
  color: var(--tagc);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}
html[data-theme="light"] .cat-nav-pill { background: #ffffff; border-color: rgba(109,40,217,.12); }
html[data-theme="light"] .cat-nav-count {
  background: color-mix(in srgb, var(--tagc) 14%, white);
  color: color-mix(in srgb, var(--tagc) 70%, black);
}

/* Mock pills (estados de documentos en el mock del expediente) */
.mock-pill {
  font-size: 9.5px; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
  margin-left: auto;
  display: inline-block;
}
.mock-pill.ok   { background: rgba(34,197,94,.18); color: #86efac; }
.mock-pill.warn { background: rgba(245,158,11,.18); color: #fde68a; }
.mock-pill.bad  { background: rgba(239,68,68,.18); color: #fca5a5; }
html[data-theme="light"] .mock-pill.ok   { background: rgba(22,163,74,.16); color: #15803d; }
html[data-theme="light"] .mock-pill.warn { background: rgba(245,158,11,.16); color: #b45309; }
html[data-theme="light"] .mock-pill.bad  { background: rgba(239,68,68,.16); color: #b91c1c; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,4,20,.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn .25s var(--ease);
}
.modal-card {
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(168,85,247,.12);
  padding: 32px 36px 28px;
  animation: modalSlideIn .35s var(--ease);
}
html[data-theme="light"] .modal-card {
  background: #ffffff;
  border-color: rgba(109,40,217,.20);
  box-shadow: 0 30px 80px rgba(50,30,120,.30);
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.modal-close:hover {
  background: var(--surface-2);
  color: var(--text);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
  padding-right: 36px;
}
.modal-ic {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}
.modal-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary-3);
  margin-bottom: 6px;
}
html[data-theme="light"] .modal-cat { color: #6d28d9; }
.modal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.modal-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.modal-bullets-h {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-mute);
  margin: 0 0 12px;
}
.modal-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.modal-bullets li {
  padding-left: 26px;
  position: relative;
}
.modal-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  background: rgba(34,197,94,.20);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386efac' stroke-width='2.4' stroke-linecap='round'><path d='M4 8.5l2.5 2.5L12 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.modal-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
body.modal-open { overflow: hidden; }

@media (max-width: 720px) {
  .modal { padding: 12px; }
  .modal-card { padding: 24px 22px 22px; border-radius: 18px; }
  .modal-title { font-size: 20px; }
  .modal-ic { font-size: 30px; }
}

/* ==========================================================================
   COMPONENTES BORRADOR 4
   ========================================================================== */

/* Lista numerada del flujo de inscripción */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  font-size: 14.5px;
  color: var(--text-soft);
}
.flow-list li {
  padding: 10px 14px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  list-style: none;
}
.flow-list li strong {
  color: var(--primary-3);
  margin-right: 8px;
  font-weight: 800;
}
html[data-theme="light"] .flow-list li {
  background: #ffffff;
  border-color: rgba(109,40,217,.12);
}
html[data-theme="light"] .flow-list li strong {
  color: #6d28d9;
}

/* Mock del flujo de inscripción */
.mock-flow {
  padding: 22px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.mock-flow-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.mock-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: inline-grid; place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mute);
}
.mock-step.done {
  background: rgba(34,197,94,.20);
  border-color: rgba(52,211,153,.45);
  color: #6ee7b7;
}
.mock-step.active {
  background: var(--grad-1);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(168,85,247,.45);
}
html[data-theme="light"] .mock-step.done { background: rgba(22,163,74,.16); color: #15803d; }

.mock-flow-h {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.mock-flow-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mock-flow-amount small {
  font-size: 14px;
  color: var(--text-mute);
  -webkit-text-fill-color: var(--text-mute);
  margin-left: 4px;
  font-weight: 600;
}
.mock-flow-options {
  display: flex; flex-direction: column;
  gap: 6px;
}
.mock-flow-opt {
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-soft);
}
.mock-flow-opt.active {
  background: rgba(168,85,247,.14);
  border-color: var(--border-2);
  color: var(--text);
  font-weight: 600;
}
html[data-theme="light"] .mock-flow-opt {
  background: #ffffff;
  border-color: rgba(109,40,217,.10);
}
html[data-theme="light"] .mock-flow-opt.active {
  background: rgba(109,40,217,.10);
  color: #4c1d95;
}

.mock-flow-card {
  display: flex; flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 6px;
}
.mock-flow-card .mock-block-h { width: 80px; }
.mock-flow-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mock-flow-row .mock-block-l { width: 100%; }
.mock-flow-cta {
  margin-top: 8px;
  padding: 12px 16px;
  background: var(--grad-1);
  border-radius: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-1);
}

/* Mock table rich (demo) */
.mock-table-rich {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.mtr-h {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 0.9fr 0.8fr;
  padding: 10px 14px;
  background: var(--bg-3);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.mtr-h .num { text-align: right; }
.mtr-r {
  display: grid;
  grid-template-columns: 1.6fr 1.4fr 0.9fr 0.8fr;
  padding: 9px 14px;
  font-size: 12.5px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
  gap: 8px;
  align-items: center;
}
.mtr-r:last-child { border-bottom: 0; }
.mtr-r .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}
.mtr-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
  width: fit-content;
}
.mtr-pill.ok   { background: rgba(34,197,94,.18); color: #86efac; }
.mtr-pill.warn { background: rgba(245,158,11,.18); color: #fde68a; }
.mtr-pill.bad  { background: rgba(239,68,68,.18);  color: #fca5a5; }
html[data-theme="light"] .mtr-pill.ok   { background: rgba(22,163,74,.16); color: #15803d; }
html[data-theme="light"] .mtr-pill.warn { background: rgba(245,158,11,.16); color: #b45309; }
html[data-theme="light"] .mtr-pill.bad  { background: rgba(239,68,68,.16);  color: #b91c1c; }

/* Form de contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(168,85,247,.12), rgba(34,211,238,.06));
  border: 1px solid var(--border-2);
  border-radius: 24px;
  padding: 50px 52px;
}
html[data-theme="light"] .contact-grid {
  background: linear-gradient(135deg, rgba(168,85,247,.08), rgba(34,211,238,.04));
  border-color: rgba(109,40,217,.20);
}
.contact-direct {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--text-soft);
}
.contact-direct a {
  color: var(--primary-3);
  border-bottom: 1px dashed transparent;
  transition: border-color .15s;
}
.contact-direct a:hover { border-bottom-color: var(--primary-3); }
html[data-theme="light"] .contact-direct a { color: #6d28d9; }

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
html[data-theme="light"] .contact-form {
  background: #ffffff;
  border-color: rgba(109,40,217,.12);
  box-shadow: 0 12px 40px rgba(50,30,120,.08);
}
.cf-row { display: flex; flex-direction: column; gap: 6px; }
.cf-row label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-mute);
}
.cf-row input,
.cf-row select,
.cf-row textarea {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font);
}
.cf-row textarea { resize: vertical; min-height: 100px; }
.cf-row input:focus,
.cf-row select:focus,
.cf-row textarea:focus {
  outline: none;
  border-color: var(--primary-2);
  background: var(--surface-2);
}
html[data-theme="light"] .cf-row input,
html[data-theme="light"] .cf-row select,
html[data-theme="light"] .cf-row textarea {
  background: #ffffff;
  border-color: rgba(109,40,217,.18);
  color: #1a1232;
}
html[data-theme="light"] .cf-row input:focus,
html[data-theme="light"] .cf-row select:focus,
html[data-theme="light"] .cf-row textarea:focus {
  border-color: #6d28d9;
  background: #faf7ff;
}
.cf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cf-hp {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.cf-status {
  font-size: 13.5px;
  font-weight: 600;
  padding: 4px 0;
  min-height: 22px;
}
.cf-status.is-ok  { color: #6ee7b7; }
.cf-status.is-err { color: #fca5a5; }
html[data-theme="light"] .cf-status.is-ok  { color: #047857; }
html[data-theme="light"] .cf-status.is-err { color: #b91c1c; }

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 28px;
  }
  .mtr-h, .mtr-r {
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;
    font-size: 11px;
  }
}
@media (max-width: 720px) {
  .cf-2 { grid-template-columns: 1fr; }
  .mtr-h, .mtr-r {
    grid-template-columns: 1.5fr 1fr 0.9fr;
  }
  .mtr-h > :nth-child(4),
  .mtr-r > :nth-child(4) { display: none; }
}

/* ==========================================================================
   ECOSISTEMA (Qué es ABAKU)
   ========================================================================== */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}
.eco-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.eco-card:hover {
  transform: translateY(-3px);
  background: var(--surface-2);
  border-color: var(--border-2);
}
.eco-card-feat {
  background: linear-gradient(180deg, rgba(168,85,247,.18), rgba(168,85,247,.04));
  border-color: var(--border-2);
  box-shadow: 0 24px 60px rgba(168,85,247,.18);
}
html[data-theme="light"] .eco-card {
  background: #ffffff;
  border-color: rgba(109,40,217,.12);
}
html[data-theme="light"] .eco-card-feat {
  background: linear-gradient(180deg, rgba(168,85,247,.10), rgba(168,85,247,.02));
  box-shadow: 0 24px 60px rgba(168,85,247,.14);
}
.eco-tag {
  display: inline-block;
  width: fit-content;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary-3);
  background: rgba(168,85,247,.18);
  padding: 4px 10px;
  border-radius: 6px;
}
html[data-theme="light"] .eco-tag {
  background: rgba(109,40,217,.10);
  color: #6d28d9;
}
.eco-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
}
.eco-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  margin: 0;
}
.eco-bullets {
  display: flex; flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-soft);
  margin-top: auto;
  padding-top: 8px;
}
.eco-bullets li {
  padding-left: 22px;
  position: relative;
}
.eco-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  background: rgba(168,85,247,.20);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c4b5fd' stroke-width='2.4' stroke-linecap='round'><path d='M4 8.5l2.5 2.5L12 5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
html[data-theme="light"] .eco-bullets li::before {
  background-color: rgba(109,40,217,.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236d28d9' stroke-width='2.4' stroke-linecap='round'><path d='M4 8.5l2.5 2.5L12 5'/></svg>");
}
.eco-note {
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-soft);
  padding: 22px 0;
  border-top: 1px solid var(--border);
}

@media (max-width: 1024px) {
  .eco-grid { grid-template-columns: 1fr; }
  .eco-card-feat { transform: none; box-shadow: none; }
}
