/* ==========================================================================
   base.css — reset, fuentes, design tokens y tipografía
   ========================================================================== */

/* --- Fuentes autoalojadas (extraídas del bundle original) ---------------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-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: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-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;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('../assets/fonts/source-sans-3-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;
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Tipografía */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* Neutros / texto */
  --ink: #12202F;
  --navy: #0B1F33;
  --navy-2: #163A59;
  --navy-line: #1E4363;
  --slate: #3C4C5D;
  --muted: #617184;
  --muted-2: #8A98A8;
  --muted-3: #64798F;
  --on-dark: #C9D5E1;
  --on-dark-2: #8FA6BC;

  /* Superficies */
  --bg: #F5F7FA;
  --surface: #FFFFFF;
  --surface-2: #FBFCFE;
  --surface-3: #F8FAFC;

  /* Bordes */
  --line: #E3E9F0;
  --line-soft: #EEF2F6;
  --line-mid: #F1F5F9;
  --line-input: #C9D5E1;
  --line-strong: #D5DEE8;

  /* Marca */
  --teal: #0EA5A8;
  --teal-dark: #0E7C7F;
  --teal-deep: #0B5C5E;
  --teal-soft: #E6F6F6;
  --teal-wash: #F0FAFA;
  --teal-line: #BEE7E7;
  --sky: #38BDF8;
  --amber: #F59E0B;

  /* Estados de riesgo: fondo / borde / texto */
  --risk-danger-bg: #FFF5F5;
  --risk-danger-line: #F5D8D9;
  --risk-danger-ink: #B0353A;
  --risk-warn-bg: #FFFBF3;
  --risk-warn-line: #F6D8A8;
  --risk-warn-ink: #8A5A08;
  --risk-info-bg: #F4F8FD;
  --risk-info-line: #DCE7F3;
  --risk-info-ink: #163A59;
  --risk-ok-bg: #F1FAF4;
  --risk-ok-line: #BFE9CC;
  --risk-ok-ink: #14532D;

  --danger: #E5484D;
  --success-bg: #E7F8EC;
  --success-ink: #14532D;

  /* Radios */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 20px;
  --r-pill: 999px;

  /* Sombras */
  --shadow-card: 0 2px 4px rgba(11, 31, 51, .04), 0 30px 60px -34px rgba(11, 31, 51, .3);
  --shadow-mock: 0 2px 4px rgba(11, 31, 51, .04), 0 34px 60px -30px rgba(11, 31, 51, .32);
  --shadow-float: 0 20px 40px -18px rgba(11, 31, 51, .65);
  --shadow-menu: 0 26px 54px -28px rgba(11, 31, 51, .5);

  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 74px;

  /* Altura mínima de touch target */
  --tap: 44px;
}

/* --- Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Corta cualquier desborde lateral en celular sin bloquear el scroll vertical */
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
svg { display: block; }

ul, ol { list-style: none; }

a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover { color: var(--navy); text-decoration: underline; }

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

/* --- Tipografía --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  text-wrap: balance;
}

.h1 {
  font-size: clamp(34px, 5.2vw, 66px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -2px;
}

.h2 {
  font-size: clamp(27px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.55;
  color: var(--slate);
  text-wrap: pretty;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Animaciones -------------------------------------------------------- */
@keyframes drawLine { from { stroke-dashoffset: 900; } to { stroke-dashoffset: 0; } }
@keyframes fadeBand { from { opacity: 0; } to { opacity: .38; } }
@keyframes riseCard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes islandIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.85); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
