/* Base: reset, tipografía, botones en paralelogramo, utilidades y cursor. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; }
img { height: auto; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
main { display: block; outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: 0.7rem 1rem;
  background: var(--ink); color: var(--paper); font-size: var(--fs-small);
}
.skip:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Tipografía */
.display, .h1, .h2 {
  font-weight: 500; letter-spacing: var(--track-display); line-height: 0.9; text-wrap: balance;
}
.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); letter-spacing: var(--track-tight); line-height: 0.94; }
.h2 { font-size: var(--fs-h2); letter-spacing: var(--track-tight); line-height: 0.98; }
.h3 { font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.lead { font-size: var(--fs-lead); line-height: 1.42; letter-spacing: -0.012em; color: var(--ink); text-wrap: pretty; }
.prose p + p { margin-top: 1em; }
.prose { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.lower { text-transform: lowercase; }
.mono, .kicker {
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.02em; text-transform: uppercase;
  font-weight: 450; line-height: 1.4;
}
.kicker { display: inline-flex; align-items: center; gap: 0.7em; color: var(--ink-3); }
.kicker::before {
  content: ""; width: 1.6em; height: 0.36em; background: currentColor;
  transform: skewY(var(--slant)); transform-origin: left center;
}
[data-theme="dark"] .kicker { color: var(--night-mute); }

/* Contenedores */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* Botón en paralelogramo: la forma del acento */
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper);
  position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.5rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--btn-fg); white-space: nowrap;
}
.btn::before, .btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: skewX(calc(var(--slant) * -1));
}
.btn::before { background: var(--btn-bg); }
.btn::after { background: var(--accent); clip-path: inset(0 100% 0 0); transition: clip-path 0.55s var(--ease-set); }
.btn:hover::after, .btn:focus-visible::after { clip-path: inset(0 0 0 0); }
.btn:hover, .btn:focus-visible { color: var(--accent-ink); }
.btn .arrow { width: 1.1em; height: 1.1em; transition: transform 0.5s var(--ease-out); }
.btn:hover .arrow { transform: translateX(0.25em); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--line::before { border: 1px solid currentColor; }

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease-set); padding-bottom: 0.1em;
}
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

/* Marca de texto redactado por nosotros */
.pending {
  display: inline-flex; align-items: center; gap: 0.4em; margin: 0 0 0 0.4em; padding: 0.15em 0.55em;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
  line-height: 1.5; vertical-align: middle; color: var(--pending); background: #fff4dc; border: 1px dashed #d9a640;
  white-space: normal; max-width: 100%;
}
[data-theme="dark"] .pending { background: #3a2e14; color: #f5cf7c; border-color: #8f6a1d; }

/* Líneas con máscara (titulares) */
.line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.line__in { display: block; }

/* Figuras */
.fig { position: relative; overflow: hidden; background: var(--paper-3); }
.fig picture, .fig img { width: 100%; height: 100%; }
.fig__note {
  position: absolute; left: 0.75rem; bottom: 0.7rem; z-index: 2; color: #fff; font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.03em; text-transform: uppercase; text-shadow: 0 1px 8px rgb(0 0 0 / 0.45);
}
.caption { margin-top: 0.8rem; color: var(--ink-3); font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.03em; text-transform: uppercase; }

/* Separador: el acento */
.tick { width: 2.4rem; height: auto; fill: currentColor; color: var(--accent); }

/* Cursor (solo puntero fino y con movimiento) */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .motion .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none;
    mix-blend-mode: normal;
  }
  .cursor__bar {
    position: absolute; left: -11px; top: -3px; width: 22px; height: 6px; background: var(--accent);
    transform: rotate(var(--slant)); transition: transform 0.45s var(--ease-out), width 0.45s var(--ease-out),
      height 0.45s var(--ease-out), left 0.45s var(--ease-out), top 0.45s var(--ease-out), opacity 0.3s;
  }
  .cursor__label {
    position: absolute; left: 18px; top: 10px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em;
    text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: 0.35em 0.7em;
    white-space: nowrap; opacity: 0; transform: translateY(6px) skewX(calc(var(--slant) * -1));
    transition: opacity 0.3s, transform 0.4s var(--ease-out);
  }
  .cursor.is-label .cursor__label { opacity: 1; transform: translateY(0) skewX(calc(var(--slant) * -1)); }
  .cursor.is-link .cursor__bar { width: 34px; left: -17px; }
  .cursor.is-hidden .cursor__bar { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
