/*
 * Mitigante — design tokens, from Pao's Figma file «KYCPro.ai — Sitio web (maqueta)»
 * (file 9EZ8yzEySZvAZTC4A1Vf4T, read 2026-11-24; the raw reads are in figma-ref/).
 *
 * EVERY colour, type size, space, radius, shadow and gradient of the site lives here and only
 * here; styles.css reads them with var(). check.mjs fails if styles.css holds a raw colour or
 * length, and measures the text/background pairs below against WCAG 2.2 AA.
 *
 * Her Figma variable → token. Two of her colours are nudged one step where they carry small text
 * on a tinted background and would miss AA (listed in README «AA»): --color-link-on-tint.
 */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2");
}

:root {
  /* ── Colour (her role variables) ── */
  --color-bg: #ffffff;               /* role/surface/surface */
  --color-surface: #ffffff;          /* role/surface/surface-raised */
  --color-surface-alt: #eef3ee;      /* role/surface/surface-sunken */
  --color-surface-accent: #d9e8de;   /* the «¿No ves tu giro?» tile; role/line/line */
  --color-text: #142e21;             /* role/ink/ink — headings */
  --color-text-body: #1c3a2c;        /* role/ink/ink-secondary — running text */
  --color-text-muted: #458355;       /* role/ink/ink-muted */
  --color-link: #458355;             /* role/ink/link */
  --color-link-hover: #142e21;
  --color-link-on-tint: #2f6b45;     /* NUDGED: her #458355 is 4.04:1 on #eef3ee and 3.57:1 on #d9e8de */
  --color-accent: #142e21;           /* role/accent/accent — the dark button */
  --color-accent-hover: #1c3a2c;
  --color-on-accent: #ffffff;        /* role/ink/ink-inverse */
  --color-on-dark: #ffffff;          /* role/ink/ink-on-dark */
  --color-on-dark-secondary: #d9e8de;/* role/ink/ink-on-dark-secondary */
  --color-dark: #142e21;             /* the deep green of the band and the green block */
  --color-line: #d9e8de;             /* role/line/line */
  --color-brand: #45a86b;            /* the isotipo stroke */
  --color-brand-light: #87bd94;      /* «M de fondo» and the soft glows */
  --color-focus: #142e21;
  --color-focus-on-dark: #d9e8de;
  --color-placeholder-bg: #fff2c2;   /* preview-only marks: a [PLACEHOLDER] */
  --color-placeholder-text: #3a2f00;
  --color-placeholder-border: #8a6d00;
  --color-draft: #b4560a;            /* preview-only mark: a DRAFT line (dotted underline) */
  --color-on-photo: rgba(255, 255, 255, 0.85);
  --color-glass: rgba(20, 46, 33, 0.3);     /* NUDGED: her white 10% glass gave 4.2–4.5:1 behind white text on the photo boxes */
  --color-glass-border: rgba(255, 255, 255, 0.22);
  --color-glass-hover: rgba(20, 46, 33, 0.45);

  /* ── Type (base/type/*) ── */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-body);
  --size-root: 100%;
  --size-xs: 0.875rem;        /* 14 — text-xs */
  --size-sm: 0.9375rem;       /* 15 — text-sm: menu, cards, footer */
  --size-md: 1rem;            /* 16 — text-md: body, buttons */
  --size-lg: 1.125rem;        /* 18 — text-lg */
  --size-lede-sm: 1.1875rem;  /* 19 */
  --size-lede: 1.25rem;       /* 20 */
  --size-card-title: 1.375rem;/* 22 — text-xl */
  --size-wordmark: 1.5rem;    /* 24 in the menu */
  --size-wordmark-foot: 1.375rem; /* 22 in the footer */
  --size-tile-title: 1.25rem; /* 20 */
  --size-band: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);      /* 44 */
  --size-feature: clamp(2rem, 1.3rem + 2.1vw, 2.875rem);     /* 46–48 */
  --size-h2: clamp(2rem, 1.25rem + 2.4vw, 3.25rem);          /* 52 */
  --size-photo-title: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);   /* 56 */
  --size-green: clamp(2.25rem, 1.3rem + 3vw, 4rem);          /* 64 — text-3xl */
  --size-h1: clamp(2.5rem, 1.3rem + 3.9vw, 4.5rem);          /* 72 — page heroes */
  --size-display: clamp(2.5rem, 1.25rem + 4.2vw, 4.75rem);   /* 76 — Inicio */
  --size-date: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);       /* 28: her 38 fits «Fecha»; «[FECHA]» and «Próximamente» need less */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-strong: 600;
  --weight-heading: 600;
  --leading-body: 1.6;
  --leading-lede: 1.55;
  --leading-tight: 1.05;
  --leading-snug: 1.25;
  --tracking-display: -0.04em;
  --tracking-h2: -0.035em;
  --tracking-band: -0.03em;
  --tracking-card: -0.02em;
  --tracking-wordmark: -0.03em;
  --measure: 68ch;
  --measure-lede: 34rem;
  --measure-title: 46rem;

  /* ── Space ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;            /* 112 — her section padding */
  --gutter: 1rem;             /* 16 px side gutter on a phone */
  --container: 74.5rem;       /* 1192 — her content width at 1440 */
  --header-height: 5rem;      /* 80 */
  --target-min: 2.75rem;      /* 44 px touch targets */
  --button-height: 3.25rem;   /* 52 */
  --button-pad: 1.5rem;
  --card-pad: 1.75rem;        /* 28 */
  --card-pad-lg: 2.5rem;      /* 40 */
  --panel-pad: 2.5rem;
  --hero-pad-top: 7.5rem;
  --hero-pad-bottom: 7rem;
  --photo-min: 20rem;
  --photo-min-lg: 33.75rem;   /* 540 */
  --photo-head: 11.25rem;     /* the photo strip on a sector card */
  --hero-card-width: 22.5rem; /* 360 */
  --hero-card-overlap: 2.5rem;
  --isotipo-w: 3.025rem;      /* 48.4 */
  --isotipo-h: 1.95rem;       /* 31.2 */
  --isotipo-w-foot: 2.86rem;
  --isotipo-h-foot: 1.79rem;
  --logo-gap: 0.375rem;       /* 6 */
  --legal-index: 16rem;
  --person-photo: 14.75rem;   /* 236 */
  --m-width: 88rem;
  --m-offset-x: -10rem;
  --m-offset-y: -36rem;

  /* ── Shape ── */
  --radius-input: 0.75rem;    /* 12 — component/input/input-radius */
  --radius-button: 0.875rem;  /* 14 — component/button/button-radius */
  --radius-card: 1.375rem;    /* 22 — component/card/card-radius */
  --radius-panel: 1.75rem;    /* 28 */
  --border-width: 1px;
  --focus-width: 3px;
  --focus-offset: 2px;
  --underline-offset: 0.18em;
  --shadow-card: 0 1.5rem 1.875rem rgba(10, 61, 41, 0.14);
  --shadow-panel: 0 1.25rem 1.5625rem rgba(10, 61, 41, 0.1);
  --shadow-glass: 0 0.5rem 1.5rem rgba(8, 23, 15, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --blur-glass: 12px;

  /* ── Gradients (the «Foto: …» boxes are gradients in her file, not photos) ── */
  --grad-soft:
    radial-gradient(ellipse 60% 70% at 8% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 55% 60% at 85% 110%, rgba(135, 189, 148, 0.41), rgba(69, 131, 85, 0.12) 40%, rgba(69, 131, 85, 0) 72%),
    linear-gradient(172deg, #f4f7f3 13%, #e7eee8 100%);
  --grad-tint: linear-gradient(175deg, #eff4ef 0%, #e6ede7 100%);
  --grad-dark:
    radial-gradient(ellipse 45% 70% at 0% 0%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 55% 80% at 100% 110%, rgba(135, 189, 148, 0.33), rgba(135, 189, 148, 0) 70%),
    linear-gradient(176deg, #142e21 45%, #1a372a 55%, #23483a 70%, #34694a 92%, #4d8a5e 110%);
  --grad-panel:
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(135, 189, 148, 0.33), rgba(135, 189, 148, 0) 70%),
    linear-gradient(173deg, #ffffff 12%, #e4ece6 112%);
  --grad-photo-1:
    linear-gradient(198deg, rgba(134, 181, 159, 0.55) 1%, rgba(134, 181, 159, 0) 45%),
    linear-gradient(162deg, #9ed9c2 1%, #3d8f73 45%, #12402e 101%);
  --grad-photo-2: linear-gradient(180deg, #b6e3cd 0%, #5fb08f 55%, #2e6b51 100%);
  --grad-photo-3:
    radial-gradient(ellipse 40% 45% at 30% 72%, rgba(210, 226, 216, 0.55), rgba(210, 226, 216, 0) 70%),
    linear-gradient(180deg, #e6f5ec 0%, #7fcaa8 45%, #2a6a4f 100%);
  --grad-photo-4: linear-gradient(160deg, #1b4f3b 0%, #2f7d5f 45%, #8fd0b2 100%);
  --grad-photo-5:
    radial-gradient(ellipse 70% 80% at 100% 100%, rgba(203, 240, 221, 0.95), rgba(203, 240, 221, 0) 60%),
    linear-gradient(120deg, #15382a 0%, #22533e 40%, #3e8a68 70%, #8fd1b0 100%);
  --grad-photo-6: linear-gradient(170deg, #cdeedd 0%, #6cc39c 45%, #2b6a50 100%);
  --grad-person: linear-gradient(180deg, #d9e8de 0%, #8fbc9b 100%);
}

/* Layout values that only one component reads (kept here so styles.css stays value-free). */
:root {
  --size-legal-h2: 1.625rem;  /* 26 */
  --panel-card-min: 15.875rem;/* 254 */
  --split-photo-min: 15rem;   /* 240 */
  --sector-row-min: 20.125rem;/* 322 */
  --event-date-col: 12.5rem;
  --green-min: 21rem;         /* 336: her «bloque verde» */
  --footer-col-min: 9rem;
  --m-green-x: -8.25rem;
  --m-green-y: -25rem;
  --m-green-width: 73rem;
  --grad-scrim: linear-gradient(90deg, rgba(20, 46, 33, 0.9) 0%, rgba(20, 46, 33, 0.78) 45%, rgba(20, 46, 33, 0) 85%);
  --grad-scrim-narrow: linear-gradient(180deg, rgba(20, 46, 33, 0.72) 0%, rgba(20, 46, 33, 0.86) 100%); /* phone: text runs the full width */
  --m-opacity: 0.07;          /* her «M de fondo»: #87bd94 at 7 % */
  --hero-split-pad-top: 10.25rem;   /* 164: her Inicio photo sits 163 px under the menu */
  --hero-split-pad-bottom: 12.5rem;
}
