/* ─────────────────────────────────────────────
   Faro Fiscal — shared design system
   Light, product-first (Stripe-style navy ink,
   one confident green gradient). Used by the
   marketing subpages, the demo and the dashboard.
   ───────────────────────────────────────────── */
:root {
  /* Brand */
  --green:        #17b667;
  --green-bright: #25d366;
  --teal:         #00a884;
  --cyan:         #0891b2;
  --grad:         linear-gradient(102deg, #25d366 0%, #00b489 46%, #0aa3b0 100%);
  --grad-soft:    linear-gradient(160deg, #eafaf1 0%, #e7f6fb 100%);

  /* Ink / neutrals */
  --ink:          #0a2540;
  --ink-2:        #334e68;
  --body:         #425466;
  --muted:        #6b7c93;
  --line:         #e3e8ee;
  --line-2:       #eef1f6;
  --surface:      #f6f9fc;
  --surface-2:    #ffffff;
  --white:        #ffffff;

  --ingreso:      #0f9d58;
  --egreso:       #e5484d;
  --warn:         #b7791f;

  --radius-sm:    10px;
  --radius:       16px;
  --radius-lg:    22px;
  --shadow-xs:    0 1px 2px rgba(10,37,64,.06);
  --shadow-sm:    0 2px 8px rgba(10,37,64,.06), 0 1px 2px rgba(10,37,64,.04);
  --shadow:       0 12px 28px -12px rgba(10,37,64,.18), 0 4px 10px -6px rgba(10,37,64,.10);
  --shadow-lg:    0 40px 80px -32px rgba(10,37,64,.30), 0 18px 36px -24px rgba(10,37,64,.20);
  --transition:   .2s cubic-bezier(.4,0,.2,1);
  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:        1160px;
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img,svg { display: block; max-width: 100%; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

h1,h2,h3,h4 { color: var(--ink); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
p  { color: var(--body); }

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--teal);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow.center { justify-content: center; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  line-height: 1; cursor: pointer; border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px -8px rgba(23,182,103,.7); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(23,182,103,.75); background: #12a75c; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(10,37,64,.5); }
.btn-ink:hover { transform: translateY(-1px); background: #0d2f52; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: #cfd7e3; transform: translateY(-1px); }
.btn-clear { background: transparent; color: var(--ink); padding-left: 4px; padding-right: 4px; }
.btn-clear:hover { color: var(--teal); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Navbar (shared) ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 24px; border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.solid, .navbar.scrolled {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10,37,64,.03);
}
.nav-inner { max-width: var(--max-w); margin: 0 auto; height: 70px; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(23,182,103,.6); }
.brand-sub { font-weight: 600; color: var(--teal); margin-left: -3px; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color var(--transition); }
.nav-links a:hover { color: var(--teal); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); }

/* ── Footer (shared) ── */
.footer { background: #071b30; color: #9fb0c3; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer .brand { color: #fff; }
.footer-brand p { font-size: 14px; color: #7f93a8; margin-top: 14px; line-height: 1.7; max-width: 300px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: #9fb0c3; transition: color var(--transition); }
.footer-col a:hover { color: #6ee7b7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #6d8098; }
.footer-bottom a { color: #9fb0c3; }
.footer-bottom a:hover { color: #6ee7b7; }

/* ── Floating WhatsApp button ── */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 95;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -6px rgba(37,211,102,.55), 0 6px 16px rgba(10,37,64,.18);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-fab:hover { transform: translateY(-2px) scale(1.05); }
.wa-fab:active { transform: scale(.97); }
.wa-fab svg { width: 32px; height: 32px; }
@media (max-width: 620px) { .wa-fab { width: 56px; height: 56px; bottom: 18px; right: 18px; } .wa-fab svg { width: 30px; height: 30px; } }

/* ─────────────────────────────────────────────
   Document / legal page layout
   ───────────────────────────────────────────── */
.doc-hero {
  padding: 132px 0 40px;
  background:
    radial-gradient(60% 60% at 15% 0%, rgba(37,211,102,.10) 0%, transparent 60%),
    radial-gradient(50% 60% at 95% 10%, rgba(8,145,178,.08) 0%, transparent 60%),
    linear-gradient(180deg, #f2fbf6 0%, #ffffff 90%);
  border-bottom: 1px solid var(--line);
}
.doc-hero .container { max-width: 820px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--teal); }
.doc-hero h1 { font-size: clamp(30px, 4.4vw, 44px); margin-bottom: 12px; }
.doc-hero .meta { font-size: 13.5px; color: var(--muted); }

.doc { max-width: 820px; margin: 0 auto; padding: 48px 24px 96px; }
.doc h2 { font-size: 22px; font-weight: 800; margin: 44px 0 14px; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 26px 0 8px; color: var(--ink-2); }
.doc p  { color: var(--body); font-size: 15.5px; margin-bottom: 14px; line-height: 1.75; }
.doc ul, .doc ol { color: var(--body); font-size: 15.5px; padding-left: 22px; margin-bottom: 16px; line-height: 1.7; }
.doc li { margin-bottom: 7px; }
.doc a { color: var(--teal); font-weight: 500; }
.doc a:hover { text-decoration: underline; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc em { color: var(--ink-2); }

.highlight {
  background: var(--grad-soft); border: 1px solid #d3ede2;
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.highlight p { margin: 0; color: var(--ink-2); font-size: 15px; }
.highlight-warn {
  background: #fff8ea; border: 1px solid #f2dfa8;
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.highlight-warn p { margin: 0; color: #92651b; font-size: 15px; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 40px; }
.toc p { margin: 0 0 12px; font-weight: 700; color: var(--ink); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.toc li { margin-bottom: 8px; }

.doc table, .plan-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 24px; }
.doc th, .plan-table th { text-align: left; padding: 11px 13px; background: var(--surface); color: var(--ink); font-weight: 700; border: 1px solid var(--line); }
.doc td, .plan-table td { padding: 11px 13px; color: var(--body); border: 1px solid var(--line); vertical-align: top; }
.doc td strong { color: var(--ink); }

.doc-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 16px 0; box-shadow: var(--shadow-xs); }
.doc-card h3 { margin-top: 0; }

/* ── Responsive (shared) ── */
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-clear { display: none; }
  .nav-toggle { display: flex; }
  .nav-open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 24px 20px;
  }
  .nav-open .nav-links a { display: block; width: 100%; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-2); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .toc ul { columns: 1; }
}
@media (max-width: 620px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
