/* ============================================================
   IAWA — Design Tokens: Color + Type
   Plataforma de cursos y capacitaciones por conversaciones guiadas
   ------------------------------------------------------------
   v0.4 — Hunter green primary (#355E3B) + arena ribbon. Navy kept as backup.
   Fonts are loaded from Google Fonts (see @import below).
   SUBSTITUTION NOTE: These are the chosen *brand* fonts, served
   from Google Fonts CDN rather than self-hosted .woff2 files.
   If you need self-hosted webfonts, ask and we'll vendor them
   into /fonts.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Spline+Sans+Mono:wght@400;500;700&display=swap');

:root {
  /* ---------------------------------------------------------
     1. PRIMITIVE COLOR SCALES
     --------------------------------------------------------- */

  /* Hunter green — "la onda": PRIMARY brand (v0.4), knowledge, growth, trust.
     Anchored on #355E3B (= hunter-600). */
  --hunter-50:  #EBF1EC;
  --hunter-100: #D2E2D5;
  --hunter-200: #A8C6AD;
  --hunter-300: #79A581;
  --hunter-400: #538B5F;
  --hunter-500: #426F4B;
  --hunter-600: #355E3B;  /* PRIMARY — logo green */
  --hunter-700: #2B4B30;
  --hunter-800: #213A26;
  --hunter-900: #16271A;

  /* Navy — RESPALDO / backup palette (was primary through v0.3).
     Kept available; anchored on #1E3250 (= navy-600). */
  --navy-50:  #EFF2F6;
  --navy-100: #D8DFEA;
  --navy-200: #B2C0D3;
  --navy-300: #8498B5;
  --navy-400: #566F93;
  --navy-500: #324E73;
  --navy-600: #1E3250;  /* PRIMARY — logo navy */
  --navy-700: #182840;
  --navy-800: #121F32;
  --navy-900: #0B1422;

  /* Arena — warm taupe/sand: the brand's warm half, neutrals, calm.
     Anchored on the logo sand #BEAA96 (= sand-400). Ramps paper -> ink. */
  --sand-50:  #FAF7F1;  /* app canvas / paper */
  --sand-100: #F2ECE1;
  --sand-200: #E7DDCD;  /* hairline dividers */
  --sand-300: #D5C7B1;
  --sand-400: #BEAA96;  /* BRAND ARENA — logo sand */
  --sand-500: #9D8C76;
  --sand-600: #71654F;
  --sand-700: #4C4538;
  --sand-800: #2D2A22;
  --sand-900: #1A1712;  /* ink */
  --white:    #FFFFFF;

  /* Clay — warm coral/terracotta: achievement, CTAs, energy, humanity */
  --clay-50:  #FCEEE7;
  --clay-100: #F9DAC9;
  --clay-200: #F4B89D;
  --clay-300: #EF9571;
  --clay-400: #EA7649;
  --clay-500: #E15A2B;  /* ACCENT */
  --clay-600: #C5491F;
  --clay-700: #9E3A19;

  /* Semantic status hues */
  --green-500:  #1F8A5B;
  --green-50:   #E6F3EC;
  --amber-500:  #C98A00;
  --amber-50:   #F7EFD9;
  --red-500:    #D14343;
  --red-50:     #F8E7E5;
  --info-500:   #2A6FB5;
  --info-50:    #E4EEF8;

  /* ---------------------------------------------------------
     2. SEMANTIC COLOR ROLES
     --------------------------------------------------------- */
  --bg-canvas:    var(--sand-50);    /* page background — warm paper */
  --bg-surface:   var(--white);      /* cards, panels */
  --bg-sunken:    var(--sand-100);   /* wells, inset areas */
  --bg-inverse:   var(--hunter-800);   /* dark sections */
  --bg-brand:     var(--hunter-600);   /* solid brand fills */

  --fg-1: var(--hunter-900);   /* primary text / ink */
  --fg-2: var(--sand-700);   /* secondary text */
  --fg-3: var(--sand-500);   /* muted / captions */
  --fg-on-color: var(--white);
  --fg-on-dark: var(--sand-50);

  --border-1: var(--sand-200);  /* default hairline */
  --border-2: var(--sand-300);  /* stronger border */
  --border-focus: var(--hunter-600);

  --brand:        var(--hunter-600);
  --brand-hover:  var(--hunter-700);
  --brand-soft:   var(--hunter-50);
  --warm:         var(--sand-400);  /* brand arena tone */
  --warm-soft:    var(--sand-100);
  --accent:       var(--clay-500);
  --accent-hover: var(--clay-600);
  --accent-soft:  var(--clay-50);

  --success: var(--green-500);
  --warning: var(--amber-500);
  --danger:  var(--red-500);
  --info:    var(--info-500);

  /* ---------------------------------------------------------
     3. TYPOGRAPHY
     Geometric stack, tuned to the "onda" logo — Rubik gives the
     wordmark & headlines their own voice, distinct from the mark.
     Rubik            = display, headlines & the IAWA wordmark.
     Manrope          = UI, body, reading.
     Spline Sans Mono = data, folios, metrics (pairs with Rubik).
     --------------------------------------------------------- */
  --font-display: 'Rubik', 'Manrope', system-ui, sans-serif;
  --font-sans: 'Manrope', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-logo: 'Rubik', 'Manrope', sans-serif;  /* wordmark IAWA (its own voice, pairs with the onda) */
  --font-wordmark: var(--font-logo);

  /* Type scale (px) — modular ~1.25 */
  --text-display: 60px;
  --text-h1: 44px;
  --text-h2: 33px;
  --text-h3: 26px;
  --text-h4: 21px;
  --text-lg: 18px;
  --text-base: 16px;
  --text-sm: 14px;
  --text-xs: 13px;

  --leading-tight: 1.08;
  --leading-snug: 1.22;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.03em;
  --tracking-snug: -0.015em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.12em;

  /* ---------------------------------------------------------
     4. SPACING (4px base)
     --------------------------------------------------------- */
  --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;

  /* ---------------------------------------------------------
     5. RADII
     --------------------------------------------------------- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* ---------------------------------------------------------
     6. SHADOWS (warm-tinted, soft)
     --------------------------------------------------------- */
  --shadow-xs: 0 1px 2px rgba(21, 39, 26, 0.06);
  --shadow-sm: 0 1px 3px rgba(21, 39, 26, 0.08), 0 1px 2px rgba(21, 39, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(21, 39, 26, 0.10), 0 2px 4px rgba(21, 39, 26, 0.05);
  --shadow-lg: 0 12px 28px rgba(21, 39, 26, 0.14), 0 4px 10px rgba(21, 39, 26, 0.07);
  --shadow-xl: 0 24px 56px rgba(11, 22, 12, 0.20);
  --ring-focus: 0 0 0 3px rgba(53, 94, 59, 0.22);

  /* ---------------------------------------------------------
     7. MOTION
     --------------------------------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 360ms;
}

/* ============================================================
   SEMANTIC ELEMENT STYLES (opt-in helpers)
   Apply .iawa-prose to a container, or use the classes directly.
   ============================================================ */

.iawa-display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--fg-1);
}
h1, .iawa-h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
  color: var(--fg-1);
}
h2, .iawa-h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  font-weight: 600;
  color: var(--fg-1);
}
h3, .iawa-h3 {
  font-family: var(--font-sans);
  font-size: var(--text-h3);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  font-weight: 700;
  color: var(--fg-1);
}
h4, .iawa-h4 {
  font-family: var(--font-sans);
  font-size: var(--text-h4);
  line-height: var(--leading-snug);
  font-weight: 700;
  color: var(--fg-1);
}
.iawa-lead {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  font-weight: 400;
}
p, .iawa-body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--fg-2);
  font-weight: 400;
}
.iawa-small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--fg-3);
}
.iawa-overline {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--accent);
}
code, .iawa-code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-sunken);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
  color: var(--hunter-600);
}

/* ============================================================
   LOGO COMPONENT
   The logo is now the "onda" ribbon SVG (it reads I-A-W-A).
   Use <img class="iawa-logo" ...> and control size with height.
   ============================================================ */
.iawa-logo {
  display: inline-block;
  height: 30px;
  width: auto;
  vertical-align: middle;
}

/* ============================================================
   LOCKUP (imagotipo) = isotipo onda + wordmark IAWA
   The primary logo. Scale the whole lockup with font-size.
   <span class="iawa-lockup" style="font-size:24px">
     <img src=".../iawa-wave.svg" alt=""><span class="iawa-wm">IAWA</span>
   </span>
   Add .on-dark on dark surfaces; .stack for the vertical version.
   ============================================================ */
.iawa-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  line-height: 1;
}
.iawa-lockup img {
  height: 0.84em;
  width: auto;
  display: block;
}
.iawa-wm {
  font-family: var(--font-wordmark);
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1em;
  line-height: 1;
  color: var(--brand);
}
.iawa-lockup.on-dark .iawa-wm { color: var(--sand-50); }
.iawa-lockup.stack {
  flex-direction: column;
  gap: 0.24em;
}
.iawa-lockup.stack img { height: 1.12em; }
