/* Lo común a la home y a las subpáginas. Sale del diseño de Claude Design
   («Home» y «Proyecto - Ponle nombre»): papel claro, tinta casi negra, un verde
   de acento y monoespaciada para todo lo que es dato o etiqueta. */

:root {
  --papel: #F6F5F1;
  --papel-2: #FCFBF8;
  --tinta: #15171A;
  --tinta-2: #3A3E44;
  --tinta-3: #4A4E55;
  --tinta-4: #62666D;
  --verde: #2F6B5E;
  --verde-claro: #E2ECE8;
  --verde-texto: #245448;
  --ocre: #8A6420;
  --linea: rgba(21, 23, 26, .14);
  --ancho: 1312px;
  --margen: clamp(20px, 4vw, 64px);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Instrument Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
.mono { font-family: var(--mono); }
.envoltura { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--margen); }

/* ── cabecera fija */
.cabecera { position: sticky; top: 0; z-index: 5; background: var(--papel); border-bottom: 1px solid var(--linea); }
.cabecera .envoltura {
  padding-top: 6px; padding-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap;
}
.marca-casa { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 16px; font-weight: 600; }
.marca-casa img { width: 30px; height: 30px; object-fit: cover; border-radius: 50%; }
.menu { display: flex; gap: 4px 24px; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.menu a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.menu a:hover { color: var(--verde); }

/* ── piezas sueltas */
.punto { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.tipo { display: inline-flex; align-items: center; gap: 7px; }
.etiquetas { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 13px; color: var(--verde); }
.antetitulo { font-family: var(--mono); font-size: 13px; color: var(--verde); }
.pie-figura { font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--tinta-3); }

.boton {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px;
  font: 500 16px var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid var(--tinta); transition: background .2s;
}
.boton:active { transform: translateY(1px); }
.boton.lleno { background: var(--tinta); color: var(--papel); }
.boton.lleno:hover { background: var(--verde); border-color: var(--verde); }
.boton.hueco { background: transparent; color: var(--tinta); }
.boton.hueco:hover { background: var(--papel); }
.boton.grande { min-height: 52px; font-size: 17px; }

/* ── pie oscuro */
.pie { background: var(--tinta); color: #F2F1EC; }
.pie a:hover { color: #9FD0C2; }

/* ── lienzo de puntos: el tamaño lo pone quien lo usa */
canvas.puntos { display: block; width: 100%; }
