/* DIGITALSIZES · tokens de diseño (fuente: DESIGN.md) */
/* Archivo (SIL Open Font License 1.1), variable: ancho 62-125, peso 100-900. Auto-hospedada. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Color: neutros + un solo acento (naranja de marca) */
  --bg: #ffffff;
  --bg-soft: #f4f4f3;          /* secciones alternas, filas, campos */
  --bg-ink: #111111;           /* bloque oscuro (máx. 1 por página en el sitio) */
  --ink: #111111;              /* texto principal (18.9:1 sobre blanco) */
  --ink-2: #3d3d3d;            /* texto secundario (11:1) */
  --ink-3: #5f5f5f;            /* ayudas y metadatos (6.4:1) */
  --line: #e4e4e2;             /* bordes y divisores */
  --line-strong: #cfcfcc;
  --orange: #ff6c00;           /* marca: bloques, botones (texto negro encima, 6.97:1) */
  --orange-title: #e85f00;     /* títulos grandes sobre blanco (3.46:1, solo >= 24px negrita) */
  --orange-tint: #fff1e6;      /* fondos suaves de estado */
  --on-orange: #111111;
  --on-ink: #f6f6f4;
  --on-ink-2: #b9b9b5;         /* secundario sobre negro (9.9:1) */

  /* Estados (panel) */
  --ok: #1f7a4d;  --ok-tint: #e7f4ec;
  --warn: #8a5a00; --warn-tint: #fdf3dc;
  --err: #b3261e; --err-tint: #fbe9e7;
  --info: #2b4c7e; --info-tint: #e8eef8;

  /* Tipografía */
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display-wdth: 72;          /* títulos condensados, rectos */
  --display-wght: 820;
  --fs-hero: clamp(2.75rem, 1.6rem + 4.6vw, 5.25rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
  --fs-lead: 1.1875rem;
  --fs-body: 1rem;
  --fs-sm: .875rem;
  --fs-xs: .78rem;

  /* Espacio y forma */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius: 4px;               /* UN radio para todo: anguloso, como el logo */
  --skew: -12deg;              /* inclinación de la banda del logo */
  --maxw: 1240px;
  --shadow: 0 1px 2px rgb(17 17 17 / .06), 0 8px 24px -12px rgb(17 17 17 / .18);
  --shadow-lg: 0 30px 60px -28px rgb(17 17 17 / .35);

  /* Movimiento */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;
  --dur-fast: .18s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  font-variation-settings: 'wdth' 100; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.display, h1, h2, h3 {
  font-family: var(--font); font-weight: var(--display-wght);
  font-variation-settings: 'wdth' var(--display-wdth);
  line-height: 1.02; letter-spacing: -.01em; margin: 0; text-wrap: balance;
}
.num { font-variant-numeric: tabular-nums; }

/* Banda inclinada del logo: resalta UNA palabra por título */
.band {
  position: relative; display: inline-block; padding: 0 .18em; z-index: 0; color: var(--on-orange);
}
.band::before {
  content: ''; position: absolute; inset: .08em -.04em .02em; z-index: -1;
  background: var(--orange); transform: skewX(var(--skew));
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55em; white-space: nowrap;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
  padding: .95em 1.35em; border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.btn:active { transform: translateY(1px) scale(.985); }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 2px;
}
.btn-primary { background: var(--orange); color: var(--on-orange); }
.btn-primary:hover { background: #ff7d1f; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { font-size: var(--fs-sm); padding: .7em 1em; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; transform: none; }

/* Formularios */
.field { display: grid; gap: 6px; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.help { font-size: var(--fs-xs); color: var(--ink-3); }
.input, .select, .textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius);
  padding: .75em .9em; width: 100%; transition: border-color var(--dur-fast);
}
.input::placeholder, .textarea::placeholder { color: #767676; }
.input:hover, .select:hover, .textarea:hover { border-color: #9a9a96; }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--ink); }
.field.is-error .input { border-color: var(--err); }
.error-text { font-size: var(--fs-xs); color: var(--err); font-weight: 600; }

/* Insignias de estado */
.badge {
  display: inline-flex; align-items: center; gap: .4em; font-size: var(--fs-xs); font-weight: 650;
  padding: .3em .6em; border-radius: var(--radius); line-height: 1.2; white-space: nowrap;
}
.badge-neutral { background: var(--bg-soft); color: var(--ink-2); }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-err { background: var(--err-tint); color: var(--err); }
.badge-info { background: var(--info-tint); color: var(--info); }
.badge-brand { background: var(--orange-tint); color: #9a3f00; }

/* Revelado al hacer scroll (JS agrega .is-in); sin JS o con movimiento reducido, todo visible */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
