/* ============================================================
   Fundesmo Design System — Tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* ---------- Color: Brand ---------- */
  /* Petrol-blue scale (replaces the previous green-petrol scale) */
  --color-primary: #1A4F6B;          /* Azul petróleo principal */
  --color-primary-dark: #0E3550;     /* Azul petróleo oscuro — hero, footer */
  --color-primary-deep: #07223A;     /* Azul petróleo profundo — backgrounds */
  --color-primary-light: #2A7099;    /* Azul petróleo claro — hover, acentos */
  --color-primary-soft: #D7E2EA;     /* Azul petróleo muy claro — superficies */
  --color-accent: #C9A84C;           /* Dorado — CTAs, premium */
  --color-accent-light: #E2C068;     /* Dorado claro — hover */

  /* ---------- Color: Surface & Text ---------- */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F6F1;           /* Blanco roto */
  --color-bg-dark: #0E3550;          /* Hero / inverted */
  --color-fg: #1A1A1A;               /* Texto principal */
  --color-fg-muted: #555555;         /* Texto secundario */
  --color-fg-subtle: #888888;        /* Captions, helpers */
  --color-fg-on-dark: #FFFFFF;

  /* ---------- Color: Border & Divider ---------- */
  --color-border: #E5E5E5;
  --color-border-strong: #CFCFCF;
  --color-border-accent: #C9A84C;

  /* ---------- Color: Semantic ---------- */
  --color-success: #2D8659;
  --color-warning: #C18A1F;
  --color-danger: #B23A3A;
  --color-info: #1A4F6B;

  /* ---------- Color: Special ---------- */
  --color-whatsapp: #25D366;

  /* ---------- Type: Families ---------- */
  --font-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-secondary: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;

  /* ---------- Type: Weights ---------- */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* ---------- Type: Scale ---------- */
  --fs-xs: 12px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 24px;
  --fs-2xl: 30px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 60px;
  --fs-6xl: 72px;

  /* ---------- Type: Line height ---------- */
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.55;
  --lh-relaxed: 1.7;

  /* ---------- Type: Letter spacing ---------- */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.04em;
  --ls-wider: 0.08em;
  --ls-uppercase: 0.12em;

  /* ---------- Spacing (4px base) ---------- */
  --space-0: 0;
  --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-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 999px;

  /* ---------- Shadow ---------- */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px rgba(15, 74, 74, 0.06);
  --shadow-sm: 0 1px 3px rgba(15, 74, 74, 0.08), 0 1px 2px rgba(15, 74, 74, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 74, 74, 0.10);
  --shadow-lg: 0 12px 28px rgba(15, 74, 74, 0.14);
  --shadow-hero: 0 24px 60px rgba(15, 74, 74, 0.22);

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --container-narrow: 880px;
  --header-h: 88px;

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;

  /* ---------- Brand: Logo assets ----------
     CANON · use these in every design instead of older /assets/fundesmo-logo.png.
     Three versions cover every background:

     --logo-dark    Navy outline on TRANSPARENT bg — use on white/cream/light surfaces.
     --logo-light   Cream outline on TRANSPARENT bg — use on navy/dark surfaces or photos.
     --logo-on-light  Original lockup with white bg (square crop) — when a printed paper feel is wanted.
     --logo-on-dark   Original lockup with navy bg (square crop) — for splash blocks, social tiles.

     Paths use a `--asset-root` you can override per page (e.g. ../../assets/).
     Example:  .my-header { --asset-root: '../../assets'; } */
  --asset-root: '/assets';
  --logo-dark: url('../assets/logo.webp');
  --logo-light: url('../assets/logo.webp');
  --logo-on-light: url('../assets/logo.webp');
  --logo-on-dark: url('../assets/logo.webp');
}

/* ============================================================
   Base / Reset
   ============================================================ */
* { box-sizing: border-box; }

html {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

body { margin: 0; }

/* ============================================================
   Semantic typography roles
   ============================================================ */
.h-display,
h1.h-display {
  font-family: var(--font-display);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-5xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-fg);
  text-transform: uppercase;
  margin: 0 0 var(--space-6);
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-4xl);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-5);
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-3xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
}

h3, .h3 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-2xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-4);
}

h4, .h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-3);
}

h5, .h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  margin: 0 0 var(--space-3);
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-uppercase);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 var(--space-3);
}

p, .p {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
  margin: 0 0 var(--space-4);
  text-wrap: pretty;
}

.lead {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-muted);
}

.caption,
small {
  font-family: var(--font-secondary);
  font-size: var(--fs-sm);
  color: var(--color-fg-muted);
  line-height: var(--lh-normal);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--color-primary-light); text-decoration: underline; }

code, pre, kbd {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

/* ============================================================
   Brand · Logo
   ============================================================
   Drop <span class="fundesmo-logo"></span> anywhere — size it via height
   or width like an image. The variant picks the right ink for the bg.

   <span class="fundesmo-logo"></span>             dark ink (default, for light bg)
   <span class="fundesmo-logo is-light"></span>    cream ink (for dark bg)
   <span class="fundesmo-logo is-tile"></span>     white-bg lockup tile
   <span class="fundesmo-logo is-tile-dark"></span> navy-bg lockup tile

   Or use the <img> tag directly:
     <img src="assets/logo-fundesmo-dark.png" alt="Fundesmo" class="fundesmo-logo-img">
   ============================================================ */
.fundesmo-logo {
  display: inline-block;
  height: 56px;
  aspect-ratio: 1200 / 1124;   /* matches both transparent PNGs */
  background-image: var(--logo-dark);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}
.fundesmo-logo.is-light    { background-image: var(--logo-light); }
.fundesmo-logo.is-tile     { background-image: var(--logo-on-light); aspect-ratio: 1 / 1; }
.fundesmo-logo.is-tile-dark{ background-image: var(--logo-on-dark);  aspect-ratio: 1 / 1; }

.fundesmo-logo-img {
  display: block;
  height: 56px;
  width: auto;
}
