/* ═══════════════════════════════════════════════
   DOKAIA — Landing Page Styles
   Inteligencia aplicada a tus documentos
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --bg: #080c14;
  --bg2: #0d1220;
  --bg3: #111827;
  --card: #131c2e;
  --border: rgba(99,179,237,0.12);
  --accent: #3b82f6;
  --accent2: #06b6d4;
  --glow: rgba(59,130,246,0.35);
  --text: #f0f4ff;
  --muted: #8899bb;
  --success: #10d9a0;
  --white: #ffffff;
  --radius: 14px;
  --font-head: 'Fustat', serif; /* títulos — semibold (600) */
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 72px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(72px, 18vw, 96px);
}

/* ── BASE ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.5;
}

/* ── AURORA BG ── */
.aurora {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(59,130,246,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(6,182,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(99,102,241,0.07) 0%, transparent 70%);
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { opacity: 1; transform: scale(1) translateY(0); }
  50%  { opacity: 0.85; transform: scale(1.04) translateY(-10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── GRID LINES ── */
.grid-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── LAYOUT ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
nav {
  --nav-h: 72px;
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px;
  min-height: var(--nav-h);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: var(--bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  min-width: 0;
  position: relative;
  z-index: 10;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(99, 179, 237, 0.25); }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2.5px auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}
.nav-backdrop {
  display: none;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language Toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 8px; padding: 3px; cursor: pointer;
}
.lang-btn {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  padding: 4px 10px; border-radius: 6px; border: none;
  color: var(--muted); background: transparent; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.04em;
}
.lang-btn.active { background: var(--accent); color: white; }

.btn-nav {
  padding: 9px 20px; border-radius: 8px;
  background: var(--accent); color: white;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.2s; letter-spacing: 0.02em; white-space: nowrap;
}
.btn-nav:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 20px var(--glow); }

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(96px, 14vw, 120px) 16px clamp(48px, 8vw, 80px);
  position: relative; z-index: 2;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 500; color: var(--accent2);
  margin-bottom: 32px; letter-spacing: 0.05em; text-transform: uppercase;
  animation: fadeInUp 0.7s ease both;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 600; line-height: 1.08;
  letter-spacing: -0.04em; max-width: 820px;
  animation: fadeInUp 0.7s 0.1s ease both;
}
.hero h1 .line2 {
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: block;
}
.hero-sub {
  margin-top: 24px; font-size: 1.15rem;
  color: var(--muted); max-width: 580px; line-height: 1.65;
  animation: fadeInUp 0.7s 0.2s ease both;
}
.hero-cta {
  margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  animation: fadeInUp 0.7s 0.3s ease both;
}
.hero-social-proof {
  margin-top: 60px;
  animation: fadeInUp 0.7s 0.4s ease both;
}
.hero-social-proof p {
  font-size: 0.82rem; color: var(--muted); letter-spacing: 0.05em;
  text-transform: uppercase; margin-bottom: 16px;
}
.logos-row { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; }
.logo-pill {
  padding: 8px 20px; border-radius: 8px;
  border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  color: var(--muted); letter-spacing: 0.05em;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  padding: 15px 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  color: white; font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  transition: all 0.25s; letter-spacing: 0.02em;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow); }

.btn-secondary {
  padding: 15px 34px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.25s;
}
.btn-secondary:hover { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.06); }

/* ══════════════════════════════════════
   STATS BAR
══════════════════════════════════════ */
.stats-bar {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(13,18,32,0.6); backdrop-filter: blur(12px);
  padding: 0;
}
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.stat-item {
  padding: 36px 24px; text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-head); font-size: 2.4rem; font-weight: 600;
  background: linear-gradient(135deg, var(--text), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.stat-label { font-size: 0.83rem; color: var(--muted); margin-top: 4px; }

/* ══════════════════════════════════════
   SECTIONS — SHARED
══════════════════════════════════════ */
section { position: relative; z-index: 2; padding: 100px 0; }

.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2);
  margin-bottom: 16px; padding: 5px 14px;
  border: 1px solid rgba(6,182,212,0.25); border-radius: 100px;
  background: rgba(6,182,212,0.06);
}
.section-title {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1.12; max-width: 640px;
}
.section-sub { margin-top: 16px; font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.65; }
.section-bg-alt { background: rgba(13, 18, 32, 0.4); }
.section-intro { margin-bottom: 56px; }
.section-intro--center { text-align: center; }
.section-title--center { margin-left: auto; margin-right: auto; }
.section-sub--center { margin: 16px auto 0; }

/* ── HOW IT WORKS ── */
.how-header { text-align: center; margin-bottom: 72px; }
.how-header .section-title,
.how-header .section-sub { margin: 0 auto; text-align: center; }

.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border-radius: var(--radius); overflow: hidden;
}
.step-card {
  background: var(--card); padding: 44px 36px;
  position: relative; overflow: hidden; transition: background 0.3s;
}
.step-card:hover { background: #1a2540; }
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s;
}
.step-card:hover::before { transform: scaleX(1); }
.step-num {
  font-family: var(--font-head); font-size: 3.5rem; font-weight: 600;
  color: rgba(59,130,246,0.12); letter-spacing: -0.05em;
  line-height: 1; margin-bottom: 20px;
}
.step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.4rem;
}
.step-card h3 {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  margin-bottom: 12px; letter-spacing: -0.02em;
}
.step-card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }

/* ── FEATURES ── */
.features-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.features-layout.reverse { direction: rtl; }
.features-layout.reverse > * { direction: ltr; }

.feature-list { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.feature-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; border-radius: var(--radius);
  background: rgba(255,255,255,0.02); border: 1px solid transparent;
  transition: all 0.25s; cursor: default;
}
.feature-item:hover { background: rgba(59,130,246,0.05); border-color: var(--border); }
.feature-icon-wrap {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.feature-item h4 { font-family: var(--font-head); font-size: 0.98rem; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 0.87rem; color: var(--muted); line-height: 1.55; }

/* ── UI MOCKUP ── */
.ui-mockup {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.mockup-bar {
  background: #0a1020; padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.mockup-url {
  flex: 1; background: rgba(255,255,255,0.04); border-radius: 6px;
  padding: 5px 12px; font-size: 0.75rem; color: var(--muted);
  border: 1px solid rgba(255,255,255,0.06);
}
.mockup-body { padding: 24px; }
.doc-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px;
}
.doc-icon { font-size: 1.4rem; }
.doc-info { flex: 1; }
.doc-name { font-size: 0.85rem; font-weight: 600; }
.doc-meta { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.doc-status {
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.status-ok   { background: rgba(16,217,160,0.12); color: var(--success); }
.status-proc { background: rgba(59,130,246,0.12); color: var(--accent); }
.status-pend { background: rgba(251,191,36,0.12); color: #fbbf24; }
.ai-tag {
  margin-top: 14px; padding: 12px 16px; border-radius: 8px;
  background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.2);
  font-size: 0.82rem; color: var(--accent2);
  display: flex; align-items: center; gap: 8px;
}

/* ── SEGMENTS ── */
.segments-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.segment-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 36px 28px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.segment-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(59,130,246,0.1), transparent 60%);
  opacity: 0; transition: opacity 0.3s;
}
.segment-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.25); }
.segment-card:hover::after { opacity: 1; }
.segment-emoji { font-size: 2rem; margin-bottom: 20px; display: block; }
.segment-role {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent2); margin-bottom: 8px;
}
.segment-card h3 {
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.025em; margin-bottom: 14px;
}
.segment-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.segment-benefits { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.seg-benefit { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; color: var(--text); }
.seg-check { color: var(--success); font-size: 0.9rem; }

/* ── API ── */
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.api-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  position: relative; overflow: hidden;
}
.api-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.api-badge {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(59,130,246,0.15); color: var(--accent); text-transform: uppercase;
}
.api-badge--get {
  background: rgba(16, 217, 160, 0.12);
  color: var(--success);
}
.api-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.api-card p  { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }
.code-block {
  margin-top: 20px; background: #060a12; border-radius: 8px;
  padding: 16px; font-family: 'Courier New', monospace; font-size: 0.78rem;
  line-height: 1.6; border: 1px solid rgba(255,255,255,0.06); overflow-x: auto;
}
.code-block .k { color: #79c0ff; }
.code-block .s { color: #a5d6ff; }
.code-block .v { color: var(--success); }
.code-block .c { color: #6a737d; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 28px; position: relative; transition: transform 0.3s;
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.featured {
  border-color: rgba(59,130,246,0.5);
  background: linear-gradient(160deg, #131c2e, #0f1d35);
  box-shadow: 0 0 40px rgba(59,130,246,0.15);
}
.plan-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: white; font-size: 0.72rem; font-weight: 700;
  padding: 5px 16px; border-radius: 100px; white-space: nowrap;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.plan-name {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.plan-price {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 600;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 6px;
}
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 8px; margin-right: 2px; }
.plan-price span { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan-price--custom { font-size: 2rem; }
.plan-feature-muted { color: var(--muted); }
.plan-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.87rem; line-height: 1.4; }
.plan-features li .chk { color: var(--success); flex-shrink: 0; font-size: 0.9rem; }
.plan-features li .x  { color: #4b5563; flex-shrink: 0; font-size: 0.9rem; }
.btn-plan {
  display: block; width: 100%; padding: 13px; border-radius: 10px; text-align: center;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none; border: none;
}
.btn-plan-primary { background: linear-gradient(135deg, var(--accent), #2563eb); color: white; }
.btn-plan-primary:hover { box-shadow: 0 6px 24px var(--glow); transform: translateY(-1px); }
.btn-plan-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-plan-outline:hover { border-color: rgba(59,130,246,0.4); background: rgba(59,130,246,0.06); }

/* ── CTA FINAL ── */
.cta-section {
  margin: 0 24px 80px; border-radius: 24px;
  background: linear-gradient(135deg, #0f1d35, #0d1a30);
  border: 1px solid rgba(59,130,246,0.2);
  padding: 80px 60px; text-align: center;
  position: relative; overflow: hidden; z-index: 2;
  box-shadow: 0 0 80px rgba(59,130,246,0.08);
}
.cta-section::before {
  content: ''; position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(59,130,246,0.3), transparent, rgba(6,182,212,0.2));
  border-radius: 24px; z-index: -1;
}
.cta-glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.15), transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.cta-section h2 {
  font-family: var(--font-head); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600; letter-spacing: -0.035em; margin-bottom: 16px;
}
.cta-section p { font-size: 1.05rem; color: var(--muted); max-width: 500px; margin: 0 auto 40px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-badge-top { margin: 0 auto 28px; }
.btn-cta { font-size: 1rem; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 48px 0 36px; position: relative; z-index: 2; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 32px; }
.footer-brand .logo img { height: 28px; }
.footer-tagline { font-size: 0.83rem; color: var(--muted); margin-top: 8px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h5 {
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer-col a {
  display: block; color: var(--muted); text-decoration: none; font-size: 0.87rem;
  margin-bottom: 8px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-col-note {
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.96rem;
  line-height: 1.4;
  color: #fff;
}
@media (min-width: 640px) {
  .footer-col-note {
    white-space: nowrap;
  }
}
.footer-col-note a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
}
.footer-col-note a:hover {
  color: #fff;
  opacity: 0.85;
}
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-slogan { font-size: 0.8rem; color: var(--muted); }

/* ── DIVIDER ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── PÁGINA Q&A ── */
.qa-page {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 64px;
  min-height: 60vh;
}
.qa-header {
  margin-bottom: 36px;
  max-width: 720px;
}
.qa-intro { margin-top: 8px; }
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
}
.qa-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 28, 46, 0.65);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.qa-item[open] {
  border-color: rgba(99, 179, 237, 0.22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.qa-item summary {
  cursor: pointer;
  padding: 16px 18px;
  padding-right: 44px;
  font-family: var(--font-head);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  list-style: none;
  position: relative;
  line-height: 1.45;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.25s ease;
  opacity: 0.8;
}
.qa-item[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.qa-answer {
  padding: 0 18px 18px;
  padding-top: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.65;
  border-top: 1px solid transparent;
}
.qa-item[open] .qa-answer {
  border-top-color: var(--border);
  padding-top: 14px;
}
.qa-updated {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.qa-back {
  margin-top: 24px;
}

/* ── FORMULARIO ALTA DE CUENTA ── */
.form-page {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 64px;
  min-height: 60vh;
}
.container--narrow {
  max-width: 720px;
}
.form-page-header {
  margin-bottom: 28px;
}
.form-page-lead {
  margin-top: 8px;
}
.form-page-cta {
  margin: 10px 0 0;
}
.form-page-cta .btn-cta {
  display: inline-block;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form-feedback {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-feedback--ok {
  background: rgba(16, 217, 160, 0.12);
  border: 1px solid rgba(16, 217, 160, 0.35);
  color: var(--text);
}
.form-feedback--err {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: var(--text);
}

/* ── PÁGINAS LEGALES (privacidad, términos) ── */
.legal-page {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 64px;
  min-height: 60vh;
}
.container--legal {
  max-width: 760px;
}
.legal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 40px;
}
.legal-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.legal-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.25;
}
.legal-title--caps {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.15rem, 2.8vw, 1.45rem);
  line-height: 1.35;
}
.legal-lead {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}
.legal-section {
  margin-bottom: 28px;
}
.legal-section:last-of-type {
  margin-bottom: 0;
}
.legal-section h2 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.35;
}
.legal-section p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}
.legal-section li {
  margin-bottom: 8px;
}
.legal-section li:last-child {
  margin-bottom: 0;
}
.legal-content a {
  color: var(--accent2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--text);
}
.legal-meta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}
.legal-meta p {
  margin-bottom: 6px;
}
.legal-meta p:last-child {
  margin-bottom: 0;
}
.legal-back {
  margin-top: 28px;
}
@media (max-width: 640px) {
  .legal-content {
    padding: 24px 20px 28px;
  }
}
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}
.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}
.form-fieldset:last-of-type {
  margin-bottom: 20px;
}
.form-legend {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0;
  margin-bottom: 18px;
  width: 100%;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.form-field--full {
  grid-column: 1 / -1;
}
.form-field--wide {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-field--wide,
  .form-field--full {
    grid-column: auto;
  }
}
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.form-req {
  color: var(--accent2);
  font-weight: 600;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-textarea {
  display: block;
  min-height: 140px;
  resize: vertical;
  line-height: 1.55;
}
.form-input::placeholder {
  color: rgba(136, 153, 187, 0.55);
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(99, 179, 237, 0.22);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}
.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238899bb' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 24px;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
.form-submit {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
}
.nav-links a.nav-link-active {
  color: var(--accent2);
}


/* ══════════════════════════════════════
   SCROLL ANIMATIONS
══════════════════════════════════════ */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.animate-ready {
  opacity: 0;
  transform: translateY(30px);
}
.reveal.animate-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .features-layout { gap: 48px; }
  .step-card { padding: 36px 28px; }
}

@media (max-width: 900px) {
  :root {
    --nav-h: 76px;
  }
  nav {
    --nav-h: 76px;
    max-width: 100%;
    padding: 14px 24px;
    padding-left: 30px;
    align-items: center;
  }
  .nav-inner {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
  }
  .nav-inner .logo img {
    height: calc(36px * 0.9);
    width: auto;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 120;
    flex-shrink: 0;
  }
  body.nav-open nav .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  body.nav-open nav .nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }
  body.nav-open nav .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    pointer-events: none;
  }
  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-panel {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 100;
    flex: none;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 20px 24px max(32px, env(safe-area-inset-bottom, 0px));
    background: var(--bg2);
    border-left: none;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.35s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    visibility: hidden;
  }
  body.nav-open nav .nav-panel {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links a {
    padding: 14px 6px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-right {
    flex-direction: column;
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    gap: 16px;
    border-top: 1px solid var(--border);
  }
  .btn-nav {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }

  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-bottom: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-layout { grid-template-columns: 1fr; gap: 40px; }
  .features-layout.reverse { direction: ltr; }
  .segments-grid { grid-template-columns: 1fr; }
  .api-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .how-header { margin-bottom: 48px; }
  .cta-section { padding: 56px 24px; margin: 0 16px 56px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 600px) {
  .stats-inner {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 16px;
  }
  .stat-item:last-child { border-bottom: none; }
  .hero h1 { font-size: clamp(1.85rem, 9vw, 2.8rem); }
  .hero-sub { font-size: 1.02rem; }
  .hero-cta { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  .logos-row { gap: 12px; }
  .logo-pill { padding: 8px 14px; font-size: 0.8rem; }
  .section-title { font-size: clamp(1.55rem, 6vw, 2.2rem); }
  .cta-section h2 { font-size: clamp(1.45rem, 6vw, 2rem); }
  .cta-btns { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .cta-btns .btn-primary,
  .cta-btns .btn-secondary { width: 100%; text-align: center; }
  .mockup-body { padding: 16px; }
  .code-block { font-size: 0.7rem; padding: 12px; }
}

@media (max-width: 380px) {
  .container { padding: 0 14px; }
  nav { padding-left: 24px; padding-right: 16px; }
  .lang-toggle { align-self: center; }
}
