/* ==========================================================================
   Inversimply — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Primary palette — azul de marca (coincide con el logo) */
  --primary-50: #eef1ff;
  --primary-100: #e0e5ff;
  --primary-200: #c6cefe;
  --primary-300: #a4b0fc;
  --primary-400: #8090f9;
  --primary-500: #6376f5;
  --primary-600: #4f63ec;
  --primary-700: #3f4fd4;
  --primary-800: #3540a8;
  --primary-900: #2f3985;
  --primary-950: #1d2150;

  /* Positive / verde dato */
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;

  /* Neutrals */
  --ink-950: #0a0e1a;
  --ink-900: #111827;
  --ink-800: #1f2937;
  --ink-700: #374151;
  --ink-600: #4b5563;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #d1d5db;
  --ink-200: #e5e7eb;
  --ink-150: #eceef2;
  --ink-100: #f3f4f6;
  --ink-50: #f9fafb;
  --ink-25: #fcfcfd;
  --white: #ffffff;

  /* Danger / banco */
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;

  /* Type */
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Times New Roman', serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-full: 999px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(17, 24, 39, 0.04), 0 2px 4px -2px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(17, 24, 39, 0.06), 0 4px 6px -4px rgba(17, 24, 39, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(17, 24, 39, 0.08), 0 8px 10px -6px rgba(17, 24, 39, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(17, 24, 39, 0.18);

  /* Container */
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 40px);

  /* Header */
  --header-height: 72px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--white);
  font-feature-settings: 'cv11', 'ss01';
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

/* Selection */
::selection { background: var(--primary-600); color: white; }

/* Container utility */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}
.container-wide {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  width: 100%;
}

/* Typography helpers */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-600);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: var(--ink-950);
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-600);
  max-width: 640px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink-950);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 0 0 1px var(--ink-950), 0 10px 20px -8px rgba(10, 14, 26, 0.4);
}
.btn-primary:hover {
  background: var(--ink-900);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 0 0 1px var(--ink-900), 0 16px 28px -10px rgba(10, 14, 26, 0.5);
}
.btn-accent {
  background: var(--primary-600);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 10px 24px -10px var(--primary-600);
}
.btn-accent:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border: 1px solid var(--ink-200);
}
.btn-ghost:hover {
  background: var(--ink-50);
  border-color: var(--ink-300);
}
.btn-lg {
  padding: 17px 28px;
  font-size: 16px;
}
.btn-sm {
  padding: 10px 16px;
  font-size: 14px;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-200) 20%, var(--ink-200) 80%, transparent);
  margin: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Section base */
.section {
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
}
.section-compact {
  padding-block: clamp(48px, 6vw, 88px);
}
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
}
.section-header .eyebrow {
  margin-bottom: 20px;
}

/* Scrollbar tidy */
html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--ink-50); }
html::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 10px; border: 3px solid var(--ink-50); }
html::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

/* Utility */
.muted { color: var(--ink-500); }
.mono { font-family: var(--font-mono); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
