/* LUX · sitio nuevo · base común de las tres variantes.
   Parte del sistema LUX ruta B «Resaltador» (design-system/BRAND.md §3-§4, tokens.css [data-theme="lux"]).
   Cada variante agrega lo suyo encima; acá solo va lo que las tres comparten. */

@font-face { font-family: "Source Serif 4"; src: url("fuentes/SourceSerif4.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fuentes/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fuentes/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --papel: #ffffff;
  --panel: #f6f5f1;
  --tinta: #111111;
  --gris: #595959;          /* 7,0:1 sobre papel, 6,4:1 sobre panel */
  --resaltador: #ffe14a;    /* solo detrás de texto #111 (14,5:1) */
  --linea: rgba(17, 17, 17, 0.14);
  --linea-suave: rgba(17, 17, 17, 0.07);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;

  --canal: clamp(20px, 4.4vw, 64px);   /* 64 px en escritorio, 20 en celular (BRAND §5) */
  --aire: clamp(96px, 11vw, 160px);    /* entre secciones */

  /* Curvas: studio/roles/motion.md §3 y emilkowalski-skills.md */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ol, ul, figure, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; text-wrap: balance; letter-spacing: -0.015em; }
p { text-wrap: pretty; }

/* Resaltado: franja en la mitad inferior (titulares) y <mark> pleno en texto corrido (BRAND §3) */
.hl {
  background: linear-gradient(transparent 52%, var(--resaltador) 52%, var(--resaltador) 94%, transparent 94%) no-repeat;
  background-size: 100% 100%;
  padding: 0 0.06em; margin: 0 -0.06em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl.hl-a-mano { background: none; }   /* lo dibuja resaltador.js (Text Highlighter de Magic UI, en JS plano) */
mark { background: var(--resaltador); color: var(--tinta); padding: 0 0.15em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.eyebrow, .mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.5; }
.num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: var(--papel); padding: 10px 14px; text-decoration: none;
}
.saltar:focus { top: 12px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.boton {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 20px; background: var(--tinta); color: var(--papel);
  font: 500 15px/1 var(--sans); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.boton:active { transform: scale(0.97); }
.boton .flecha { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .boton:hover .flecha { transform: translateX(4px); } }
.enlace { text-underline-offset: 4px; text-decoration-thickness: 1px; }

.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Preguntas: <details> nativo, accesible sin JS */
.faq details { border-top: 1px solid var(--linea); }
.faq details:last-child { border-bottom: 1px solid var(--linea); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0; font: 600 clamp(18px, 1.6vw, 21px)/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 62ch; color: var(--gris); }

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