/* Consulting Backwards · Espacios de trabajo
   Diseñado por In-Sight para Consulting Backwards.
   Del árbol de In-Sight: Host Grotesk, láminas de un solo fondo, piezas recortadas, lima.
   Del árbol de Consulting Backwards: el marco de tinta con bloques redondeados, la barra lima, "backwards" al revés.
   Regla de dos voces: lima es lo nuestro, azul es lo suyo (el cliente). */

@font-face { font-family: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/host-grotesk-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: "Host Grotesk"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("/assets/fonts/host-grotesk-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; }

:root {
  --ink: #0f0f0e; --ink-2: #1a1a18; --ink-lift: #2a2a27;
  --paper: #f3f3f1; --fog: #e4e4e1; --white: #fafaf8;
  --lime: #c9f23a; --lime-lit: #d8ff52;
  --sky: #8ec5ff; --sky-lit: #a9d3ff;
  --on-ink: #f3f3f1; --on-ink-mute: #a9a9a3; --mute: #4a4a44;
  --rule: rgba(15, 15, 14, 0.16); --rule-strong: rgba(15, 15, 14, 0.7); --rule-ink: rgba(243, 243, 241, 0.14);
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --g: clamp(6px, 0.7vw, 10px);
  --r: clamp(20px, 2.4vw, 36px);
  --r-s: clamp(14px, 1.4vw, 20px);
  --pad: clamp(20px, 4.6vw, 72px);
  --max: 1360px;
  --bar: 64px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 24px); background: var(--ink); }
body { margin: 0; overflow-x: clip; background: var(--ink); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
::selection { background: var(--lime); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: 12px; z-index: 80; background: var(--lime); color: var(--ink); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transform: translateY(-180%); }
.skip:focus-visible { transform: none; }

/* ---------- El marco de tinta ---------- */
.marco { padding: 0 var(--g) var(--g); min-height: 100svh; display: flex; flex-direction: column; }
.lamina { position: relative; border-radius: var(--r); background: var(--paper); padding: clamp(56px, 8vw, 128px) var(--pad); overflow: clip; }
.lamina + .lamina { margin-top: var(--g); }
.lamina > .in { max-width: var(--max); margin-inline: auto; }
.l-ink { background: var(--ink-2); color: var(--on-ink); }
.l-ink-0 { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 0 0 1px var(--rule-ink); }
.l-paper { background: var(--paper); }
.l-fog { background: var(--fog); }
.l-white { background: var(--white); }
.l-lime { background: var(--lime); }
.l-sky { background: var(--sky); }

/* ---------- Barra superior ---------- */
.barra { position: sticky; top: 0; z-index: 40; background: var(--ink); color: var(--on-ink); }
.barra .in { height: var(--bar); display: flex; align-items: center; gap: 16px; padding-inline: clamp(8px, 1.4vw, 20px); }
.marca { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.marca .guion { width: 18px; height: 6px; border-radius: 3px; background: var(--lime); flex: none; }
.marca .back { display: inline-block; transition: transform 520ms var(--ease-in-out); }
@media (hover: hover) and (pointer: fine) { .marca:hover .back { transform: scaleX(-1); } }
.espacio { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rule-ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.espacio::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sky); }
.espacio.nuestro::before { background: var(--lime); }
.pestanas { display: flex; gap: 4px; margin-inline: auto; }
.pestana { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--on-ink-mute); text-decoration: none; white-space: nowrap; transition: background-color 200ms ease, color 200ms ease; }
.pestana[aria-current="page"] { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .pestana:not([aria-current="page"]):hover { color: var(--on-ink); background: var(--ink-lift); } }
.salir { font-size: 14px; color: var(--on-ink-mute); text-decoration: none; padding: 8px 4px; white-space: nowrap; }
.salir:hover { color: var(--on-ink); }
.barra .der { display: flex; align-items: center; gap: 14px; }

@media (max-width: 900px) {
  .barra .in { flex-wrap: wrap; height: auto; padding-block: 12px 8px; row-gap: 10px; }
  .barra .der { margin-left: auto; }
  .pestanas { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 4px; }
  .pestanas::-webkit-scrollbar { display: none; }
  .marca .texto { display: none; }
  html { scroll-padding-top: 140px; }
}

/* ---------- Tipografía ---------- */
.etiqueta { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.etiqueta::before { content: ""; width: 14px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.9; }
.l-ink .etiqueta::before, .l-ink-0 .etiqueta::before { background: var(--lime); opacity: 1; }
.display { font-size: clamp(56px, 11.4vw, 200px); font-weight: 720; line-height: 0.86; letter-spacing: -0.058em; }
.h1 { font-size: clamp(46px, 7.2vw, 120px); font-weight: 680; line-height: 0.9; letter-spacing: -0.05em; text-wrap: balance; }
.h2 { font-size: clamp(38px, 5.2vw, 84px); font-weight: 660; line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; }
.h3 { font-size: clamp(24px, 2.2vw, 34px); font-weight: 650; line-height: 1.05; letter-spacing: -0.035em; }
.lead { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.42; font-weight: 400; letter-spacing: -0.012em; text-wrap: pretty; }
.cuerpo { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.chico { font-size: 14px; line-height: 1.45; }
.mute { color: var(--mute); }
.l-ink .mute, .l-ink-0 .mute { color: var(--on-ink-mute); }
.l-sky .mute { color: #1f3550; }
.l-lime .mute { color: #33401a; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--lime); color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out), box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--linea { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn svg { width: 18px; height: 18px; flex: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--lime-lit); }
  .btn--ink:hover { background: var(--ink-lift); }
  .btn--linea:hover { background: var(--ink); color: var(--on-ink); box-shadow: none; }
  .l-ink .btn--linea:hover, .l-ink-0 .btn--linea:hover { background: var(--on-ink); color: var(--ink); }
}

/* ---------- Pie ---------- */
.pie { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; color: var(--on-ink-mute); font-size: 14px; padding: 22px clamp(8px, 1.4vw, 20px) 14px; }
.pie a { text-decoration: none; }
.pie a:hover { color: var(--on-ink); }

/* ---------- Aparecer al leer ---------- */
.js [data-sube] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-sube].visto { opacity: 1; transform: none; }
.js .mascara { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .mascara > span { display: block; transform: translateY(105%); transition: transform 1100ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .visto .mascara > span, .js .mascara.visto > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-sube], .js .mascara > span { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 420px) { .display { font-size: 14.4vw; } }
