/* ============================================================
   FinTotal — Plataforma informativa financiera
   Sistema de diseño: Fintech fresca y cercana
   ============================================================ */

:root {
  /* Color — Paleta moderna y financiera */
  --bg:            #FBF9FF;
  --bg-2:          #F7F2FF;
  --surface:       #ffffff;
  --ink:           #1F1B2D;
  --ink-soft:      oklch(0.46 0.028 290);
  --ink-faint:     oklch(0.62 0.02 290);

  --primary:       #820AD1;
  --primary-strong:color-mix(in oklab, #820AD1 82%, #000);
  --primary-ink:   color-mix(in oklab, #820AD1 58%, #000);
  --primary-soft:  color-mix(in oklab, #820AD1 9%, #fff);
  --primary-soft2: color-mix(in oklab, #820AD1 22%, #fff);

  --lime:          #00C48C;
  --lime-strong:   #00A878;
  --lime-soft:     #E3F8F0;

  --coral:         #FFB800;
  --coral-soft:    #FFF3D4;
  --gold-ink:      #B07E00;

  --sky:           oklch(0.72 0.13 235);
  --sky-soft:      oklch(0.95 0.035 235);

  --border:        oklch(0.92 0.012 290);
  --border-soft:   oklch(0.95 0.01 290);

  /* Tipografía */
  --font-display: 'Graphik', 'Graphik Web', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Graphik', 'Graphik Web', 'Hanken Grotesk', system-ui, sans-serif;

  /* Radios & sombras */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px oklch(0.4 0.05 290 / 0.06), 0 2px 6px oklch(0.4 0.05 290 / 0.05);
  --sh-md: 0 4px 14px oklch(0.4 0.08 290 / 0.08), 0 10px 30px oklch(0.4 0.08 290 / 0.07);
  --sh-lg: 0 12px 28px oklch(0.4 0.1 290 / 0.10), 0 28px 60px oklch(0.4 0.1 290 / 0.12);
  --sh-primary: 0 10px 26px color-mix(in oklab, #820AD1 38%, transparent);

  --container: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; }

/* Layout helpers */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow {
  display: block;
  font-size: 31px; font-weight: 700; letter-spacing: 0; line-height: 1.15;
  text-transform: none;
  color: var(--primary);
  background: none;
  padding: 0; border-radius: 0;
}
.eyebrow svg { display: none; }
.section-head { max-width: 720px; }
.eyebrow + h2, .section-head h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: clamp(16px, 1.6vw, 19px); margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: var(--r-pill);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.btn-primary:hover { background: var(--primary-strong); transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: #fff; box-shadow: 0 10px 24px color-mix(in oklab, #00C48C 38%, transparent); }
.btn-lime:hover { background: var(--lime-strong); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  border: 1px solid var(--border-soft);
}

/* Generic chips */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600;
  padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--bg-2); color: var(--ink-soft);
  border: 1px solid var(--border);
}

/* Image placeholder */
.ph {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background-color: var(--primary-soft);
  background-image: repeating-linear-gradient(
    135deg,
    oklch(0.9 0.04 290 / 0.6) 0px,
    oklch(0.9 0.04 290 / 0.6) 11px,
    oklch(0.94 0.025 290 / 0.6) 11px,
    oklch(0.94 0.025 290 / 0.6) 22px
  );
  display: flex; align-items: flex-end;
  border: 1px solid var(--border);
}
.ph__tag {
  margin: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11.5px; font-weight: 500;
  color: var(--primary-ink);
  background: oklch(1 0 0 / 0.82);
  backdrop-filter: blur(4px);
  padding: 6px 10px; border-radius: 9px;
  display: inline-flex; align-items: center; gap: 7px;
  box-shadow: var(--sh-sm);
}
.ph__tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--coral);
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }

/* Selection */
::selection { background: var(--primary-soft2); color: var(--primary-ink); }

#root { isolation: isolate; }
