/* ═══════════════════════════════════════════════════════════════════
   MoneyFlow Landing — styles.css
   Sereno (Calm Navy) design system — exact token match to web/index.html
   ═══════════════════════════════════════════════════════════════════ */

/* ── 1. Sereno design-system tokens ─────────────────────────────── */
:root {
  /* Brand */
  --clr-brand:           #1B3A6B;
  --clr-brand-hover:     #142D54;
  --clr-brand-light:     #EAF0FA;
  --clr-brand-mid:       #2B5FAD;

  /* Surfaces */
  --clr-bg:              #FAFAF8;
  --clr-surface:         #FFFFFF;
  --clr-surface-muted:   #F2F2F0;
  --clr-border:          #E2E2DF;
  --clr-border-strong:   #C8C8C4;

  /* Text */
  --clr-text-strong:     #111110;
  --clr-text-body:       #3D3D3A;
  --clr-text-muted:      #6B6B68;
  --clr-text-disabled:   #9E9E9A;

  /* Semantic */
  --clr-positive:        #047857;
  --clr-positive-bg:     #ECFDF5;
  --clr-spend:           #B91C1C;
  --clr-spend-bg:        #FEF2F2;
  --clr-warning:         #B45309;
  --clr-warning-bg:      #FFFBEB;

  /* Badge */
  --clr-badge-cat-bg:    #EAF0FA;
  --clr-badge-cat-text:  #1B3A6B;
  --clr-badge-src-bg:    #ECFDF5;
  --clr-badge-src-text:  #047857;

  /* Radii */
  --rad-sm:    4px;
  --rad-md:    8px;
  --rad-lg:    12px;
  --rad-xl:    16px;
  --rad-chip:  20px;

  /* Spacing (4 px base) */
  --sp-1:   4px;   --sp-2:   8px;  --sp-3:  12px;  --sp-4:  16px;
  --sp-5:  20px;   --sp-6:  24px;  --sp-8:  32px;  --sp-10: 40px;
  --sp-12: 48px;   --sp-16: 64px;  --sp-20: 80px;  --sp-24: 96px;

  /* Elevation */
  --elev-0: none;
  --elev-1: 0 1px 2px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.04);
  --elev-2: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --elev-3: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);

  /* Motion */
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   320ms;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1100px;
  --nav-h:          64px;
}

/* ── 2. Reset / base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  margin: 0;
  background: var(--clr-bg);
  color: var(--clr-text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--clr-brand-mid);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ── 3. Container ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

@media (min-width: 640px)  { .container { padding-inline: var(--sp-8); } }
@media (min-width: 1100px) { .container { padding-inline: var(--sp-10); } }

/* ── 4. Section chrome ───────────────────────────────────────────── */
.section {
  padding-block: var(--sp-16);
}
@media (min-width: 900px) {
  .section { padding-block: var(--sp-24); }
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--clr-text-strong);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--sp-4);
}
@media (min-width: 640px) {
  .section-title { font-size: 2.125rem; }
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  max-width: 56ch;
  line-height: 1.65;
}

/* ── 5. Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--rad-sm);
  padding: 0.75rem 1.375rem;
  transition:
    filter     var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform  var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.btn:hover:not(:disabled)  { filter: brightness(0.92); }
.btn:active:not(:disabled) { transform: translateY(1px); }

/* Primary — white text on navy — 10.8:1 PASS */
.btn-primary {
  background: var(--clr-brand);
  color: #fff;
  box-shadow: var(--elev-1);
}
.btn-primary:hover { background: var(--clr-brand-hover); box-shadow: var(--elev-2); filter: none; }

/* Primary hero — larger, used in hero + CTA sections */
.btn-primary-hero {
  background: var(--clr-brand);
  color: #fff;
  font-size: 1.0625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--rad-sm);
  box-shadow: var(--elev-2);
}
.btn-primary-hero:hover { background: var(--clr-brand-hover); box-shadow: var(--elev-3); filter: none; }

/* Ghost — navy on white, hero variant */
.btn-ghost-hero {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.45);
  font-size: 1.0625rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--rad-sm);
}
.btn-ghost-hero:hover { background: rgba(255,255,255,0.1); filter: none; }

/* Ghost — body-section variant */
.btn-ghost {
  background: transparent;
  color: var(--clr-brand);
  border: 1.5px solid var(--clr-brand);
  border-radius: var(--rad-sm);
}
.btn-ghost:hover { background: var(--clr-brand-light); filter: none; }

/* White-filled — for navy backgrounds */
.btn-white {
  background: #fff;
  color: var(--clr-brand);
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 0.875rem 1.75rem;
  border-radius: var(--rad-sm);
  box-shadow: var(--elev-2);
}
.btn-white:hover { background: var(--clr-brand-light); box-shadow: var(--elev-3); filter: none; }

/* ── 6. Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-brand);
  letter-spacing: -0.02em;
}

/* Desktop links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--sp-6);
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links .nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text-body);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links .nav-link:hover { color: var(--clr-brand); }

.nav-links .nav-login {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--clr-text-body);
}
.nav-links .nav-login:hover { color: var(--clr-brand); }

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  border-radius: var(--rad-sm);
  flex-shrink: 0;
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text-strong);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity  var(--dur-base) var(--ease-out);
}
.nav-toggle[aria-expanded="true"] .bar-top    { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar-mid    { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar-bottom { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  flex-direction: column;
  padding: var(--sp-6);
  gap: var(--sp-1);
  z-index: 99;
  box-shadow: var(--elev-3);
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--clr-text-body);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--rad-md);
  transition: background var(--dur-fast) var(--ease-out);
}
.mobile-menu a:hover { background: var(--clr-brand-light); color: var(--clr-brand); }

.mobile-menu-cta {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

/* ── 7. Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(155deg, #0d2244 0%, #1B3A6B 55%, #2B5FAD 100%);
  color: #fff;
  padding-block: var(--sp-16) var(--sp-20);
  overflow: hidden;
  position: relative;
}
@media (min-width: 900px) {
  .hero { padding-block: var(--sp-20) var(--sp-24); }
}

/* Subtle decorative radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,95,173,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  gap: var(--sp-12);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10);
  }
}

/* Copy */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--rad-chip);
  padding: var(--sp-1) var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
}
@media (min-width: 640px) {
  .hero h1 { font-size: 3.25rem; }
}
@media (min-width: 900px) {
  .hero h1 { font-size: 3.5rem; }
}

.hero-subhead {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
  max-width: 50ch;
  margin-bottom: var(--sp-8);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-microcopy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
}
.hero-microcopy .micro-sep {
  color: rgba(255,255,255,0.3);
  margin-inline: -2px;
}

/* Hero art column */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
 * Hero art slot — tasteful Sereno gradient fallback now.
 * TODO: swap in generated hero art —
 *   Option A: set --hero-art variable on :root to url('hero.jpg')
 *             and add  background-image: var(--hero-art);  here
 *   Option B: replace the linear-gradient below with:
 *             background: url('hero.jpg') center/cover no-repeat;
 *   The .mock-tudinero card will float on top regardless.
 */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--rad-xl);
  background: linear-gradient(145deg, #0a1e3a 0%, #1B3A6B 60%, #2B5FAD 100%);
  padding: var(--sp-6);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35), 0 4px 16px rgba(0,0,0,0.2);
}

/* ── 8. Inline mockups — shared chrome ───────────────────────────── */
.mock-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  box-shadow: var(--elev-2);
  overflow: hidden;
}

.mock-card-body {
  padding: var(--sp-4) var(--sp-5);
}

.mock-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
}

.mock-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: var(--rad-chip);
}
.mock-chip-cat {
  background: var(--clr-badge-cat-bg);
  color: var(--clr-badge-cat-text);
}
.mock-chip-src {
  background: var(--clr-badge-src-bg);
  color: var(--clr-badge-src-text);
}
.mock-chip-positive {
  background: var(--clr-positive-bg);
  color: var(--clr-positive);
}
.mock-chip-warning {
  background: var(--clr-warning-bg);
  color: var(--clr-warning);
}

.mock-rule {
  height: 1px;
  background: var(--clr-border);
  margin-block: var(--sp-3);
}

/* Bar component */
.mock-bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--clr-surface-muted);
  overflow: hidden;
  flex: 1;
}
.mock-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--dur-slow) var(--ease-out);
}

/* ── 8a. Tu dinero — hero mockup ─────────────────────────────────── */
.mock-tudinero {
  width: 100%;
}
.mock-tudinero .mock-card-body { padding: var(--sp-4); }

.mock-td-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}
.mock-td-nav {
  display: flex;
  gap: 4px;
}
.mock-td-nav-btn {
  width: 24px;
  height: 22px;
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-sm);
  background: var(--clr-surface);
  color: var(--clr-text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mock-td-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--clr-text-strong);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.mock-td-sublabels {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--sp-3);
}
.mock-td-income {
  font-size: 11px;
  font-weight: 500;
  color: var(--clr-text-body);
  margin-bottom: var(--sp-1);
}
.mock-td-income .positive { color: var(--clr-positive); font-weight: 600; }

.mock-td-bucket {
  display: grid;
  grid-template-columns: 90px auto 1fr 36px;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}
.mock-td-bucket-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-body);
}
.mock-td-bucket-amt {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text-strong);
}
.mock-td-bucket-pct {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-text-muted);
  text-align: right;
}

/* ── 8b. Suscripciones mockup ────────────────────────────────────── */
.mock-subs-header {
  background: var(--clr-surface-muted);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-border);
}
.mock-subs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock-subs-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--clr-text-strong);
}
.mock-subs-total {
  font-size: 11px;
  font-weight: 600;
  color: var(--clr-positive);
  background: var(--clr-positive-bg);
  padding: 2px 8px;
  border-radius: var(--rad-chip);
}

.mock-sub-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-surface-muted);
  gap: var(--sp-3);
}
.mock-sub-row:last-child { border-bottom: none; }

.mock-sub-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-text-body);
}
.mock-sub-detail {
  font-size: 10px;
  color: var(--clr-text-muted);
  margin-top: 1px;
}
.mock-sub-amounts {
  text-align: right;
  flex-shrink: 0;
}
.mock-sub-mes {
  font-size: 12px;
  font-weight: 600;
  color: var(--clr-text-strong);
}
.mock-sub-anual {
  font-size: 10px;
  color: var(--clr-text-muted);
  margin-top: 1px;
}

/* ── 8c. Presupuesto mockup ──────────────────────────────────────── */
.mock-budget-summary {
  background: var(--clr-brand-light);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.mock-budget-kv { font-size: 11px; color: var(--clr-text-muted); }
.mock-budget-kv strong { color: var(--clr-text-strong); font-weight: 600; }

.mock-budget-bucket {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--clr-surface-muted);
}
.mock-budget-bucket:last-child { border-bottom: none; }

.mock-budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
  gap: var(--sp-3);
}
.mock-budget-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-text-body);
}
.mock-budget-meta {
  font-size: 10px;
  color: var(--clr-text-muted);
  text-align: right;
}

/* ── 8d. Tasa de ahorro mockup ───────────────────────────────────── */
.mock-stat {
  text-align: center;
  padding: var(--sp-6) var(--sp-5);
}
.mock-stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--clr-positive);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.mock-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-4);
}
.mock-stat-breakdown {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}
.mock-stat-item {
  text-align: center;
}
.mock-stat-item-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text-strong);
}
.mock-stat-item-lbl {
  font-size: 10px;
  color: var(--clr-text-muted);
}

/* ── 8e. Anomalía alert mockup ───────────────────────────────────── */
.mock-alert-banner {
  background: var(--clr-warning-bg);
  border-bottom: 1px solid #fde68a;
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.mock-alert-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}
.mock-alert-text {
  font-size: 12px;
  color: var(--clr-warning);
  font-weight: 600;
  line-height: 1.4;
}
.mock-alert-detail {
  font-size: 11px;
  color: var(--clr-text-muted);
  line-height: 1.4;
}
.mock-alert-body {
  padding: var(--sp-3) var(--sp-4);
}
.mock-alert-ledger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}
.mock-alert-merchant {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text-strong);
}
.mock-alert-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--clr-text-strong);
}
.mock-alert-compare {
  font-size: 11px;
  color: var(--clr-text-muted);
}

/* ── 8f. Asistente Q&A mockup ────────────────────────────────────── */
.mock-chat-header {
  background: var(--clr-brand);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.mock-chat-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.mock-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.mock-chat-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.mock-chat-bubble-user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--clr-brand);
  color: #fff;
  font-size: 12px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--rad-md) var(--rad-sm) var(--rad-md) var(--rad-md);
  line-height: 1.45;
}
.mock-chat-bubble-ai {
  align-self: flex-start;
  max-width: 92%;
  background: var(--clr-surface-muted);
  color: var(--clr-text-body);
  font-size: 12px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--rad-sm) var(--rad-md) var(--rad-md) var(--rad-md);
  line-height: 1.45;
  border: 1px solid var(--clr-border);
}
.mock-chat-highlight {
  color: var(--clr-positive);
  font-weight: 600;
}

/* ── 8g. Ledger row mockup ───────────────────────────────────────── */
.mock-ledger {
  width: 100%;
  border-collapse: collapse;
}
.mock-ledger thead th {
  background: var(--clr-surface-muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-text-muted);
  padding: var(--sp-2) var(--sp-3);
  text-align: left;
  border-bottom: 1px solid var(--clr-border);
}
.mock-ledger tbody td {
  font-size: 12px;
  color: var(--clr-text-body);
  padding: var(--sp-3);
  border-top: 1px solid var(--clr-surface-muted);
  vertical-align: middle;
}
.mock-ledger .td-amount {
  font-weight: 600;
  color: var(--clr-text-strong);
  text-align: right;
  white-space: nowrap;
}
.mock-ledger .td-date {
  font-size: 11px;
  color: var(--clr-text-muted);
  white-space: nowrap;
}

/* ── 9. Trust strip ──────────────────────────────────────────────── */
.trust-strip {
  background: var(--clr-surface);
  border-block: 1px solid var(--clr-border);
  padding-block: var(--sp-5);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-8);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}
.trust-item-icon {
  width: 18px;
  height: 18px;
  color: var(--clr-positive);
  flex-shrink: 0;
}

/* ── 10. How it works ────────────────────────────────────────────── */
.how-it-works {
  background: var(--clr-surface);
}

.how-intro {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.how-intro .section-title { max-width: 24ch; margin-inline: auto; margin-bottom: var(--sp-4); }

.steps-grid {
  display: grid;
  gap: var(--sp-8);
}
@media (min-width: 640px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
}

.step {
  position: relative;
  padding-top: var(--sp-3);
}

.step-number-wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--elev-1);
}
.step-connector {
  display: none;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--clr-border) 0%, transparent 100%);
}
@media (min-width: 640px) {
  .step-connector { display: block; }
  .step:last-child .step-connector { display: none; }
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--clr-text-strong);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.step p {
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ── 11. Value sections ──────────────────────────────────────────── */
.values {
  background: var(--clr-bg);
}

.values-intro {
  margin-bottom: var(--sp-10);
}

.values-grid {
  display: grid;
  gap: var(--sp-6);
}
@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}

.value-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-lg);
  box-shadow: var(--elev-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform  var(--dur-base) var(--ease-out);
}
.value-card:hover {
  box-shadow: var(--elev-3);
  transform: translateY(-2px);
}

.value-mock {
  border-bottom: 1px solid var(--clr-border);
  overflow: hidden;
  background: var(--clr-bg);
}

.value-copy {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.value-q {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--clr-text-strong);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.value-desc {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* ── 12. Por qué — navy section ──────────────────────────────────── */
.why {
  background: linear-gradient(150deg, #0d2244 0%, #1B3A6B 70%, #1f448a 100%);
  color: #fff;
}

.why-inner {
  max-width: 800px;
}

.why .section-title {
  color: #fff;
  max-width: 22ch;
  margin-bottom: var(--sp-5);
}

.why-body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--sp-10);
}

.vs-grid {
  display: grid;
  gap: var(--sp-5);
}
@media (min-width: 640px) {
  .vs-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
}

.vs-col {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--rad-md);
  padding: var(--sp-5) var(--sp-5);
}

.vs-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.55);
  margin-bottom: var(--sp-3);
}
.vs-title .vs-versus {
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  margin-right: var(--sp-1);
}

.vs-body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

/* ── 13. Privacy ─────────────────────────────────────────────────── */
.privacy {
  background: var(--clr-surface);
}

.privacy-inner {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}
@media (min-width: 900px) {
  .privacy-inner { grid-template-columns: 1fr 1fr; }
}

.privacy-copy .section-title {
  margin-bottom: var(--sp-4);
}
.privacy-copy p {
  font-size: 1.0625rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.privacy-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.privacy-pillar {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
}
.privacy-pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--rad-md);
  background: var(--clr-brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-brand);
  font-size: 16px;
}
.privacy-pillar-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text-strong);
  margin-bottom: var(--sp-1);
}
.privacy-pillar-text p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.55;
}

/* ── 14. FAQ ─────────────────────────────────────────────────────── */
.faq {
  background: var(--clr-bg);
}

.faq-intro {
  margin-bottom: var(--sp-8);
  max-width: 800px;
}
.faq-intro .section-title { max-width: none; }

.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--rad-md);
  box-shadow: var(--elev-1);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--clr-text-strong);
  line-height: 1.45;
  user-select: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--clr-bg); }

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--clr-text-muted);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--sp-5) var(--sp-4);
  font-size: 0.9375rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--clr-border);
  padding-top: var(--sp-4);
}

/* ── 15. CTA final ───────────────────────────────────────────────── */
.cta-final {
  background: linear-gradient(155deg, #0d2244 0%, #1B3A6B 55%, #2B5FAD 100%);
  color: #fff;
  text-align: center;
}

.cta-final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  max-width: 560px;
  margin-inline: auto;
}

.cta-final .section-title {
  color: #fff;
  font-size: 2rem;
  max-width: 22ch;
}
@media (min-width: 640px) {
  .cta-final .section-title { font-size: 2.5rem; }
}

.cta-final-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  margin-top: -var(--sp-2);
}

/* ── 16. Footer ──────────────────────────────────────────────────── */
.footer {
  background: #0d1f3c;
  color: rgba(255,255,255,0.65);
  padding-block: var(--sp-10);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  align-items: flex-start;
}
@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.footer-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
}
.footer-tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}
.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
@media (min-width: 640px) {
  .footer-copy { text-align: right; }
}

/* ── 17. Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity  var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* ── 18. Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition:   none !important;
    animation:    none !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
