/* ============================================================
   Planific.ar — base.css
   Reset + design tokens
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 16px;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:root {
  /* ===== Brand palette =====
     Deep Navy = Fintech, confianza, profesionalismo
     Emerald   = Energía, crecimiento, finanzas
     Ice Blue  = Secciones claras
     Ink       = Texto principal */
  --teal-900: #0A192F;
  --teal-800: #112240;
  --teal-700: #233554;
  --teal-500: #495670;
  --teal-300: #8892B0;

  --accent-coral: #10B981;   /* Emerald */
  --accent-coral-2: #059669; /* Emerald hover */
  --gold-500: #F59E0B;
  --gold-300: #FCD34D;
  --cream-50: #F8FAFC;
  --cream-100: #F1F5F9;

  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --line: #E2E8F0;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-dark: #0A192F;
  --surface-cream: #F8FAFC;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.7rem;
  --text-3xl: 2.15rem;
  --text-4xl: 2.8rem;
  --text-hero: clamp(2.4rem, 4.6vw, 4.2rem);

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(11,47,42,.06), 0 1px 3px rgba(11,47,42,.04);
  --shadow-md: 0 10px 25px -10px rgba(11,47,42,.25), 0 4px 10px -4px rgba(11,47,42,.10);
  --shadow-lg: 0 24px 50px -20px rgba(11,47,42,.35), 0 10px 22px -10px rgba(11,47,42,.18);
  --shadow-coral: 0 10px 30px -10px rgba(224,78,57,.55);

  /* Spacing */
  --pad-section: clamp(56px, 8vw, 120px);
  --container: 1180px;
}

/* Selection */
::selection { background: var(--accent-coral); color: #fff; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent-coral);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Utility */
.container {
  width: min(var(--container), 100% - 32px);
  margin-inline: auto;
}
.text-accent { color: var(--accent-coral); }
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.01em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--teal-700);
}
.eyebrow--light { color: var(--gold-300); }
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-coral);
  box-shadow: 0 0 0 4px rgba(224,78,57,.18);
}
.micro {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 10px;
}
.micro--light { color: rgba(255,255,255,.6); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-coral);
  color: #fff;
  box-shadow: var(--shadow-coral);
}
.btn--primary:hover { background: var(--accent-coral-2); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(37,211,102,.6);
}
.btn--whatsapp:hover { background: #1FB855; transform: translateY(-1px); }
.btn--block { width: 100%; display: flex; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* On dark surfaces tweak ghost button */
.section--dark .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); }
