/* ─── DESIGN TOKENS ───────────────────────────────────────────────────────── */
:root {
  --bg-base:      #080810;
  --bg-surface:   #0f0f1a;
  --bg-card:      #13131f;
  --bg-card-hover:#181828;
  --border:       rgba(255, 255, 255, 0.07);
  --border-hover: rgba(107, 23, 194, 0.3);
  --primary:      #6B17C2;
  --primary-dim:  rgba(107, 23, 194, 0.15);
  --primary-glow: rgba(107, 23, 194, 0.25);
  --purple:       #a855f7;
  --purple-dim:   rgba(168, 85, 247, 0.15);
  --blue:         #ec4899;
  --blue-dim:     rgba(236, 72, 153, 0.15);
  --orange:       #fb923c;
  --orange-dim:   rgba(251, 146, 60, 0.15);
  --text:         #e2e8f0;
  --text-muted:   #64748b;
  --text-subtle:  #94a3b8;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-glow:  0 0 40px rgba(107, 23, 194, 0.12);
}

/* ─── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─── UTILITIES ───────────────────────────────────────────────────────────── */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--primary-dim);
  border-radius: 100px;
  border: 1px solid rgba(107, 23, 194, 0.2);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header p {
  color: var(--text-subtle);
  font-size: 17px;
}

/* ─── NAVBAR ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(8, 8, 16, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.nav-logo-icon svg { width: 18px; height: 18px; }

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-subtle);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-links .nav-cta {
  background: var(--primary);
  color: #000;
  font-weight: 600;
}

.nav-links .nav-cta:hover { background: #00e6bf; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  gap: 48px;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.hero-glow.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(107,23,194,0.18), transparent 70%);
  top: -150px; left: -100px;
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-glow.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,0.12), transparent 70%);
  bottom: -100px; right: -100px;
  animation: floatGlow 10s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(30px, 20px); }
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(107,23,194,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-subtle);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Botón Store */
.btn-store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  background: #fff;
  color: #000;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.btn-store.large { padding: 18px 32px; font-size: 16px; }

.store-icon { width: 28px; height: 28px; flex-shrink: 0; }
.btn-store-text { display: flex; flex-direction: column; line-height: 1.2; }
.btn-store-label { font-size: 11px; font-weight: 400; opacity: 0.7; }
.btn-store-name { font-size: 16px; font-weight: 700; }

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-subtle);
  transition: all 0.2s;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(107,23,194,0.06);
}

.btn-secondary svg { width: 18px; height: 18px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat { text-align: center; }
.stat-value { display: block; font-size: 16px; font-weight: 700; color: var(--primary); font-family: 'JetBrains Mono', monospace; }
.stat-label { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 32px; background: var(--border); }

/* ─── APP SCREENSHOT HERO ─────────────────────────────────────────────────── */
.hero-visual {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 620px;
  width: 100%;
}

.hero-screenshot-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), var(--shadow-glow);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.hero-screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 50px rgba(107, 23, 194, 0.3);
}

.hero-main-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.hero-main-img:hover {
  transform: scale(1.01);
}

/* ─── BADGES GLOBALES ─────────────────────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-dim);
  color: var(--primary);
  border: 1px solid rgba(107, 23, 194, 0.3);
  margin-bottom: 12px;
}

/* ─── FEATURES ────────────────────────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(107,23,194,0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.teal   { background: var(--primary-dim); color: var(--primary); }
.feature-icon.purple { background: var(--purple-dim);  color: var(--purple); }
.feature-icon.blue   { background: var(--blue-dim);    color: var(--blue); }
.feature-icon.orange { background: var(--orange-dim);  color: var(--orange); }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-subtle);
  line-height: 1.65;
}

/* ─── EJEMPLOS REALES Y MOTOR DE TABLAS ──────────────────────────────────── */
.examples-section {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.examples-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.examples-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.ex-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ex-tab-icon {
  font-size: 16px;
}

.ex-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.ex-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(107, 23, 194, 0.4);
}

.examples-content {
  position: relative;
  min-height: 480px;
}

.example-panel {
  display: none;
  animation: fadeInPanel 0.4s ease;
}

.example-panel.active {
  display: block;
}

@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.example-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.example-preview {
  display: flex;
  flex-direction: column;
}

.img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.img-frame:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.img-frame img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.img-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  pointer-events: none;
}

.example-info {
  display: flex;
  flex-direction: column;
}

.example-info h3 {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.25;
}

.example-info > p {
  font-size: 15px;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-bottom: 24px;
}

.example-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.example-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.example-feature-list li strong {
  color: var(--text);
}

.bullet-icon {
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ─── TABLAS CARDS GRID ─────────────────────────────────────────────────── */
.tables-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.table-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 20px rgba(107, 23, 194, 0.2);
}

.table-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #000;
}

.table-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.table-card:hover .table-card-img img {
  transform: scale(1.05);
}

.table-card-body {
  padding: 20px;
}

.table-card-body h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.table-card-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── SHOWCASE ────────────────────────────────────────────────────────────── */
.showcase { padding: 100px 0; background: var(--bg-base); position: relative; }

.showcase-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 120px;
}

.showcase-item:last-child { margin-bottom: 0; }

.showcase-item.reverse { flex-direction: row-reverse; }

.showcase-img {
  flex: 1.2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), var(--shadow-glow);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-img.visible { transform: translateY(0); opacity: 1; }

.showcase-img img {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.showcase-img:hover img { transform: scale(1.02); }

.showcase-text {
  flex: 0.8;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.showcase-text.visible { transform: translateY(0); opacity: 1; }

.showcase-text h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.showcase-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-subtle);
}

/* ─── SECURITY ────────────────────────────────────────────────────────────── */
.security { padding: 100px 0; }

.security-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.security-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.security-text > p {
  color: var(--text-subtle);
  font-size: 16px;
  margin-bottom: 32px;
}

.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 15px;
}

.security-check {
  width: 24px;
  height: 24px;
  background: var(--primary-dim);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.security-list strong { color: var(--text); }
.security-list li > div:last-child { color: var(--text-subtle); }

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-glow);
}

.sec-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.sec-icon { font-size: 20px; flex-shrink: 0; }

.sec-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.sec-sub { font-size: 12px; color: var(--text-muted); }

.sec-badge {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

.sec-badge.active { background: rgba(34,197,94,0.15); color: #4ade80; }

/* ─── HOW IT WORKS ────────────────────────────────────────────────────────── */
.how {
  padding: 100px 0;
  background: var(--bg-surface);
  position: relative;
}

.how::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
  text-align: center;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.step.visible { opacity: 1; transform: translateY(0); }

.step-number {
  font-size: 48px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.step p   { font-size: 14px; color: var(--text-subtle); line-height: 1.6; }

.step-connector {
  align-self: center;
  flex: 0 0 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-dim), var(--border));
  margin-top: -40px;
}

/* ─── DOWNLOAD ────────────────────────────────────────────────────────────── */
.download {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107,23,194,0.1), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.download-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.download-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border: 1px solid rgba(107,23,194,0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.download-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.download-inner > p {
  color: var(--text-subtle);
  font-size: 16px;
  margin-bottom: 40px;
}

.download-inner .btn-store { margin: 0 auto; width: fit-content; }

.download-note {
  margin-top: 20px !important;
  font-size: 13px !important;
  color: var(--text-muted) !important;
  margin-bottom: 0 !important;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.6;
}

.footer-dev { font-size: 13px !important; }
.footer-dev a { color: var(--primary); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-subtle);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-visual { width: 100%; max-width: 100%; }
  .security-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > :first-child { grid-column: 1 / -1; }
  .step-connector { display: none; }
  
  .showcase-item, .showcase-item.reverse {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 80px;
  }
}

@media (max-width: 600px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 16px; background: var(--bg-surface); border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .steps { flex-direction: column; align-items: center; }
}

/* ─── DOCS PAGE ───────────────────────────────────────────────────────────── */

/* Asegura que el body de la página docs no tenga el overflow oculto */
body.docs-page { overflow-x: hidden; }

/* Layout principal docs: sidebar + contenido */
.docs-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 68px; /* altura del navbar */
}

/* ─── SIDEBAR ─────────────────────────────────────────────────────────────── */
.docs-sidebar {
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 32px 0 48px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.docs-sidebar::-webkit-scrollbar { width: 4px; }
.docs-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-header {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-version {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border-radius: 100px;
  padding: 2px 10px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-nav { padding: 0 12px; }

.sidebar-group {
  margin-bottom: 28px;
}

.sidebar-group-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 6px;
}

.sidebar-link {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-subtle);
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.sidebar-link.active {
  color: var(--primary);
  background: var(--primary-dim);
  border-left-color: var(--primary);
  font-weight: 500;
}

.sidebar-toggle-mobile { display: none; }

/* ─── DOCS CONTENT ────────────────────────────────────────────────────────── */
.docs-content {
  flex: 1;
  min-width: 0;
  padding: 48px 64px 80px;
  max-width: 900px;
}

.docs-section {
  scroll-margin-top: 88px;
}

.docs-section-header {
  margin-bottom: 40px;
}

.docs-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-dim);
  border-radius: 100px;
  padding: 3px 12px;
  margin-bottom: 14px;
  border: 1px solid rgba(107,23,194,0.2);
}

.docs-section h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.docs-lead {
  font-size: 17px;
  color: var(--text-subtle);
  line-height: 1.7;
}

.docs-section h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-section h2::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.docs-section p {
  font-size: 15px;
  color: var(--text-subtle);
  line-height: 1.75;
  margin-bottom: 12px;
}

/* ─── LISTAS ──────────────────────────────────────────────────────────────── */
.docs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 20px;
}

.docs-list li {
  font-size: 15px;
  color: var(--text-subtle);
  padding-left: 20px;
  position: relative;
  line-height: 1.65;
}

.docs-list li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--primary);
  font-weight: 700;
}

.docs-list.ordered {
  counter-reset: docs-counter;
}

.docs-list.ordered li {
  counter-increment: docs-counter;
}

.docs-list.ordered li::before {
  content: counter(docs-counter);
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  font-family: 'JetBrains Mono', monospace;
  top: 2px;
  left: 0;
}

.docs-list strong { color: var(--text); }

/* ─── CALLOUTS ────────────────────────────────────────────────────────────── */
.docs-callout {
  display: flex;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.docs-callout.note {
  background: rgba(107,23,194,0.08);
  border-color: rgba(107,23,194,0.2);
  color: var(--text-subtle);
}

.docs-callout.tip {
  background: rgba(34,197,94,0.07);
  border-color: rgba(34,197,94,0.2);
  color: var(--text-subtle);
}

.docs-callout.warning {
  background: rgba(251,191,36,0.07);
  border-color: rgba(251,191,36,0.2);
  color: var(--text-subtle);
}

.docs-callout strong { color: var(--text); }

/* ─── TABLAS ──────────────────────────────────────────────────────────────── */
.docs-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.docs-table th {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-table td {
  padding: 12px 16px;
  color: var(--text-subtle);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: top;
  line-height: 1.5;
}

.docs-table tr:last-child td { border-bottom: none; }
.docs-table tr:hover td { background: rgba(255,255,255,0.02); }
.docs-table td strong { color: var(--text); }
.docs-table td code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: rgba(107,23,194,0.12); padding: 2px 6px; border-radius: 4px; color: var(--purple); }

/* ─── CÓDIGO ──────────────────────────────────────────────────────────────── */
.docs-code {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 16px 0 24px;
  overflow-x: auto;
}

.docs-code code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  display: block;
  white-space: pre;
}

.code-comment { color: var(--text-muted); }

/* Inline code */
.docs-section p code,
.docs-section li code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  background: rgba(107,23,194,0.12);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--purple);
}

/* ─── LINK INLINE ─────────────────────────────────────────────────────────── */
.docs-inline-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.docs-inline-link:hover { color: var(--purple); }

/* ─── DOCS SCREENSHOTS ───────────────────────────────────────────────────── */
.docs-img-box {
  margin: 28px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.docs-img-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.docs-img-box img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

.docs-img-caption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.docs-img-caption::before {
  content: '📸';
  font-size: 13px;
}

/* ─── FIELD BADGES ────────────────────────────────────────────────────────── */
.field-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.field-badge.text     { background: rgba(107,23,194,0.15); color: #a78bfa; }
.field-badge.number   { background: rgba(251,146,60,0.15); color: #fb923c; }
.field-badge.date     { background: rgba(34,197,94,0.15);  color: #4ade80; }
.field-badge.list     { background: rgba(236,72,153,0.15); color: #ec4899; }
.field-badge.bool     { background: rgba(56,189,248,0.15); color: #38bdf8; }
.field-badge.attach   { background: rgba(251,191,36,0.15); color: #fbbf24; }
.field-badge.relation { background: rgba(168,85,247,0.15); color: #c084fc; }
.field-badge.formula  { background: rgba(52,211,153,0.15); color: #34d399; }
.field-badge.long     { background: rgba(148,163,184,0.1); color: #94a3b8; }

/* ─── KBD (teclas) ────────────────────────────────────────────────────────── */
kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

.shortcuts-table td:last-child { white-space: nowrap; }

/* ─── DIVISORES ───────────────────────────────────────────────────────────── */
.docs-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 56px 0;
}

/* ─── FOOTER DE DOCS ─────────────────────────────────────────────────────── */
.docs-footer {
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.docs-footer p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.docs-footer-version {
  font-size: 12px !important;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.5;
}

/* ─── RESPONSIVE DOCS ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .docs-content { padding: 40px 40px 80px; }
}

@media (max-width: 768px) {
  .docs-layout { position: relative; }

  .docs-sidebar {
    position: fixed;
    top: 68px;
    left: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }

  .docs-sidebar.open { transform: translateX(0); }

  .sidebar-toggle-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 60;
    box-shadow: 0 4px 16px rgba(107,23,194,0.4);
  }

  .sidebar-toggle-mobile svg {
    width: 20px;
    height: 20px;
    color: #fff;
    transition: transform 0.3s;
  }

  .docs-sidebar.open ~ .sidebar-toggle-mobile svg { transform: rotate(180deg); }

  .docs-content { padding: 32px 20px 80px; }
}

/* ─── LIGHTBOX MODAL (HD Screenshot Viewer) ───────────────────────────────── */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.lightbox-container {
  position: relative;
  z-index: 2;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-container {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}

.lightbox-close:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}

.lightbox-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: calc(85vh - 50px);
  object-fit: contain;
  display: block;
}

.lightbox-caption {
  padding: 12px 20px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  text-align: center;
  font-weight: 500;
}

/* ─── RESPONSIVE EJEMPLOS Y HERO ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .example-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .showcase-item {
    flex-direction: column !important;
    gap: 32px;
  }
}

/* ─── DOCS STORE DOWNLOAD CARD ────────────────────────────────────────────── */
.docs-store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(107, 23, 194, 0.14) 0%, rgba(18, 18, 30, 0.95) 100%);
  border: 1px solid rgba(107, 23, 194, 0.35);
  border-radius: var(--radius-lg);
  margin: 20px 0 28px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.docs-store-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.docs-store-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.docs-store-card-desc {
  font-size: 14px;
  color: var(--text-subtle);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .docs-store-card {
    flex-direction: column;
    align-items: flex-start;
  }
}


