/* ═══════════════════════════════════════════════════════════════
   Brújula Fiscal — Landing Page Styles
   Design tokens alineados con el SaaS (tailwind.config.js)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg-main:       #0A0F1E;
  --bg-card:       #111827;
  --bg-card-hover: #1A1F2B;
  --bg-sidebar:    #0D1526;
  --text-main:     #F1F5F9;
  --text-muted:    #94A3B8;
  --accent:        #3B82F6;
  --accent-soft:   #60A5FA;
  --accent-glow:   rgba(59, 130, 246, 0.35);
  --purple:        #8B5CF6;
  --ok:            #22C55E;
  --warn:          #F59E0B;
  --danger:        #EF4444;
  --border:        rgba(255, 255, 255, 0.08);
  --border-hl:     rgba(255, 255, 255, 0.15);
  --nav-h:         72px;
  --max-w:         1140px;
  --radius:        16px;
  --radius-lg:     24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .logo-text, .stat-num, .plan-price {
  font-family: 'Outfit', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── BACKGROUND BLOBS ── */
.bg-glow {
  position: fixed; inset: 0;
  overflow: hidden; z-index: -1; pointer-events: none;
}
.blob {
  position: absolute; filter: blur(100px); opacity: 0.25;
  border-radius: 50%; animation: blobFloat 25s infinite alternate ease-in-out;
}
.blob-1 { top: -15%; left: -10%; width: 550px; height: 550px; background: radial-gradient(circle, var(--accent) 0%, transparent 70%); }
.blob-2 { bottom: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, var(--purple) 0%, transparent 70%); animation-delay: -8s; }
@keyframes blobFloat { to { transform: translate(80px, 40px) scale(1.08); } }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center; padding: 0 5%;
  background: rgba(10, 15, 30, 0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); width: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
  width: 34px; height: 34px; background: var(--accent); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 12px var(--accent-glow);
}
.logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: -0.02em; }
.logo-accent { color: var(--accent); }

.nav-links { list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-cta {
  background: #fff !important; color: var(--bg-main) !important;
  font-weight: 600 !important; border-radius: 10px !important;
}
.nav-cta:hover { background: #e5e7eb !important; box-shadow: 0 0 12px rgba(255,255,255,0.15); }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative; z-index: 110;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px auto; border-radius: 2px; transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.93rem; font-weight: 600;
  padding: 13px 26px; border-radius: 12px; cursor: pointer;
  transition: all 0.3s; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff; box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--accent-glow); }
.btn-ghost {
  background: rgba(255,255,255,0.04); color: #fff;
  border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hl); }

/* ── HERO ── */
.hero {
  padding: calc(var(--nav-h) + 72px) 5% 88px;
  text-align: center; position: relative;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.25);
  color: #93C5FD; border-radius: 999px; padding: 6px 16px;
  font-size: 0.83rem; font-weight: 500; margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--accent-soft);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent-soft);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 860px; margin: 0 auto 18px;
}
h1 em {
  font-style: normal;
  background: linear-gradient(to right, var(--accent-soft), #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 36px; font-weight: 300; line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trial-note { margin-top: 14px; font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; }

/* ── STATS BAR ── */
.stats-bar {
  max-width: var(--max-w); margin: 0 auto 72px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-item {
  background: rgba(17, 24, 39, 0.7); backdrop-filter: blur(10px);
  padding: 24px 20px; text-align: center; transition: background 0.3s;
}
.stat-item:hover { background: rgba(17, 24, 39, 0.95); }
.stat-num { font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }

/* ── SECTION COMMONS ── */
section { padding: 72px 5%; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  background: rgba(59,130,246,0.1); padding: 4px 12px;
  border-radius: 6px; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; color: #fff; margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--text-muted); max-width: 500px;
  font-weight: 300; margin-bottom: 44px;
}

/* ── GLASS CARD ── */
.glass-card {
  background: rgba(17, 24, 39, 0.6); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: all 0.3s; position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hl), transparent);
}
.glass-card:hover {
  background: var(--bg-card-hover); border-color: var(--border-hl);
  transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,0.35);
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── HOW IT WORKS ── */
.step-num {
  font-family: 'Outfit', sans-serif; font-size: 3.5rem; font-weight: 800;
  line-height: 1; margin-bottom: 14px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), transparent);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.step-icon { font-size: 1.6rem; margin-bottom: 10px; }
.step-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-text { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── FEATURES ── */
.feature-card { display: flex; flex-direction: column; gap: 10px; }
.feature-icon { font-size: 1.5rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  background: rgba(59,130,246,0.12); color: #93C5FD;
  font-size: 0.73rem; font-weight: 500; padding: 4px 10px;
  border-radius: 999px; border: 1px solid rgba(59,130,246,0.25);
}

/* ── ARCA BANNER ── */
.arca-banner {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-main));
  border: 1px solid var(--border-hl);
  box-shadow: 0 0 30px rgba(59,130,246,0.08);
  border-radius: var(--radius-lg); padding: 36px 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  max-width: var(--max-w); margin: 0 auto 72px;
  position: relative; overflow: hidden;
}
.arca-banner::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 35%;
  background: radial-gradient(circle at right, rgba(59,130,246,0.08) 0%, transparent 70%);
}
.arca-text h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.arca-text p { color: var(--text-muted); font-size: 0.92rem; max-width: 480px; }
.arca-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.arca-badge {
  background: rgba(34,197,94,0.1); color: #86EFAC;
  font-size: 0.75rem; font-weight: 600; padding: 4px 12px;
  border-radius: 999px; border: 1px solid rgba(34,197,94,0.25);
}

/* ── PRICING ── */
.pricing-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 20px; margin-bottom: 36px;
}
.plan-card { display: flex; flex-direction: column; padding: 32px 28px; }
.plan-card.featured {
  background: linear-gradient(180deg, rgba(30,58,138,0.15) 0%, rgba(17,24,39,0.8) 100%);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 24px rgba(59,130,246,0.12);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--purple));
  color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  padding: 4px 14px; border-radius: 999px; letter-spacing: 0.05em;
}
.plan-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.plan-price { font-size: 2.2rem; font-weight: 800; margin-bottom: 4px; color: #fff; line-height: 1; }
.plan-price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.plan-period { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.plan-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 20px; }
.plan-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; flex: 1; margin-bottom: 28px;
}
.plan-features li {
  font-size: 0.88rem; display: flex; align-items: flex-start;
  gap: 8px; color: var(--text-muted);
}
.plan-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; }
.featured .plan-features li::before { color: var(--ok); }
.featured .plan-features li { color: #E5E7EB; }
.btn-plan {
  display: flex; justify-content: center; align-items: center;
  font-weight: 600; padding: 11px 0; border-radius: 10px; cursor: pointer;
  transition: all 0.2s; border: 1px solid var(--border);
  background: rgba(255,255,255,0.04); color: #fff; width: 100%;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
}
.btn-plan:hover { background: rgba(255,255,255,0.08); border-color: var(--border-hl); }
.btn-plan-featured {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff; border: none;
}
.btn-plan-featured:hover { box-shadow: 0 6px 16px var(--accent-glow); transform: translateY(-1px); }

/* ── FAQ ── */
.faq-q { font-size: 0.98rem; font-weight: 700; margin-bottom: 8px; color: #fff; }
.faq-a { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ── CTA FINAL ── */
.cta-final {
  background: radial-gradient(ellipse at bottom, #1E3A8A 0%, var(--bg-main) 60%);
  text-align: center; padding: 88px 5%; border-top: 1px solid var(--border);
}
.cta-final h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 14px;
}
.cta-final p {
  color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 36px; max-width: 480px; margin-inline: auto;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 40px 5%; text-align: center;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-logo {
  font-family: 'Outfit', sans-serif; font-weight: 800;
  font-size: 1.15rem; color: #fff; margin-bottom: 14px;
}
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { font-size: 0.88rem; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.25); }

/* ── ANIMATIONS ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate { opacity: 0; animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links {
    display: none; position: fixed; top: 0; right: 0;
    width: 280px; height: 100vh; background: var(--bg-sidebar);
    flex-direction: column; padding: 80px 24px 24px;
    border-left: 1px solid var(--border); gap: 4px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; width: 100%; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .arca-banner { flex-direction: column; padding: 24px; text-align: center; }
  .arca-banner .btn { width: 100%; }
  .pricing-header { flex-direction: column; align-items: flex-start; }
  .blob { opacity: 0.15; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
