/* =============================================================
   Consultor en IA — Color + Type Tokens
   Source: Brand Poster (BrandPoster_ConsultorenIA.pdf) + logos
   Brand owner: Academia de IA / Consultor en IA (©2025)
   ============================================================= */

/* ---------- Webfonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;0,900;1,400;1,900&display=swap');

:root {
  /* ---------- Brand palette (from BrandPoster) ---------- */
  --cia-white: #FFFFFF;
  --cia-sky:   #C5E9FF;   /* light blue accent — used in mesh + chips */
  --cia-blue:  #0551F2;   /* PRIMARY — buttons, links, accents */
  --cia-navy:  #04123A;   /* deepest — body text on light, bg on dark */

  /* ---------- Tints / shades ---------- */
  --cia-blue-100: #E6EEFF;
  --cia-blue-200: #B8CCFE;
  --cia-blue-300: #7E9DFC;
  --cia-blue-500: #0551F2;
  --cia-blue-600: #033FBF;
  --cia-blue-700: #022A82;
  --cia-blue-900: #04123A;

  --cia-ink-900: #04123A;
  --cia-ink-700: #1B2A55;
  --cia-ink-500: #4B5878;
  --cia-ink-300: #97A0BA;
  --cia-ink-100: #E5E8F1;

  /* ---------- Orange scale (accent — used for "ASESORÍA GRATIS" CTA) ---------- */
  --cia-orange-50:  #FFF3EC;
  --cia-orange-100: #FFE0CC;
  --cia-orange-200: #FFC299;
  --cia-orange-300: #FFA366;
  --cia-orange-400: #FF8C45;
  --cia-orange-500: #FF7A2E;   /* base — CTA accent */
  --cia-orange-600: #E5651A;
  --cia-orange-700: #B84D10;
  --cia-orange-800: #80350A;
  --cia-orange-900: #4A1E04;
  --cia-orange: var(--cia-orange-500);

  /* ---------- Semantic foreground / background ---------- */
  --bg:        #FFFFFF;
  --bg-soft:   #F4F8FF;
  --bg-sky:    #C5E9FF;
  --bg-invert: #04123A;

  --fg1: #04123A;          /* primary body text */
  --fg2: #1B2A55;          /* secondary text */
  --fg3: #4B5878;          /* meta / captions */
  --fg-muted: #97A0BA;
  --fg-on-blue: #FFFFFF;
  --fg-on-navy: #FFFFFF;

  --border:        #E5E8F1;
  --border-strong: #04123A;
  --link:          #0551F2;
  --link-hover:    #022A82;

  /* ---------- Status (derived, harmonized w/ brand) ---------- */
  --success: #0FB67A;
  --warning: #F59E0B;
  --danger:  #E03131;
  --info:    var(--cia-blue);

  /* ---------- Signature gradients ---------- */
  --grad-brand: linear-gradient(135deg, #C5E9FF 0%, #0551F2 55%, #04123A 100%);
  --grad-button: linear-gradient(180deg, #0551F2 0%, #033FBF 100%);
  --grad-mesh: radial-gradient(at 18% 22%, #C5E9FF 0%, transparent 55%),
               radial-gradient(at 78% 38%, #0551F2 0%, transparent 60%),
               radial-gradient(at 65% 92%, #04123A 0%, transparent 70%),
               linear-gradient(135deg, #FFFFFF 0%, #0551F2 60%, #04123A 100%);

  /* ---------- Type system ---------- */
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Sans", system-ui, sans-serif; /* Black weight */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;          /* used to highlight key words */

  /* type scale (rem, base 16px) */
  --fs-display: 4.5rem;     /* 72px hero */
  --fs-h1: 3.25rem;         /* 52px */
  --fs-h2: 2.25rem;         /* 36px */
  --fs-h3: 1.625rem;        /* 26px */
  --fs-h4: 1.25rem;         /* 20px */
  --fs-body-lg: 1.125rem;   /* 18px */
  --fs-body: 1rem;          /* 16px */
  --fs-small: 0.875rem;     /* 14px */
  --fs-micro: 0.75rem;      /* 12px */

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.45;
  --lh-loose: 1.65;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.04em;        /* used on small caps / eyebrows */

  /* ---------- Spacing (8pt scale) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* ---------- Radii ---------- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-sm: 0 1px 2px rgba(4,18,58,.08);
  --shadow-md: 0 8px 24px rgba(4,18,58,.10);
  --shadow-lg: 0 24px 60px rgba(4,18,58,.18);
  --shadow-blue: 0 14px 40px rgba(5,81,242,.35);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

/* ============================================================
   Base / semantic typography
   ============================================================ */
html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg1);
  margin: 0 0 var(--sp-4);
}

h2, .h2 {
  font-weight: var(--fw-black);
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-4);
}

h3, .h3 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-3);
}

h4, .h4 {
  font-weight: var(--fw-bold);
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-2);
}

p, .body {
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg2);
  margin: 0 0 var(--sp-4);
}

.lead {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-loose);
  color: var(--fg2);
}

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--cia-blue);
}

.display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

/* Use Black weight as in-text emphasis to highlight key words
   (the brand poster's signature treatment). */
.key,
strong.key {
  font-weight: var(--fw-black);
  color: var(--cia-blue);
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--link-hover); border-bottom-color: currentColor; }

code, .mono {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 0.92em;
  background: var(--cia-blue-100);
  color: var(--cia-blue-700);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

::selection { background: var(--cia-sky); color: var(--cia-navy); }
