/* Laboratorio de Colores · base.css
   Tipografía local (sin conexiones externas), colores y reglas comunes. */

@font-face { font-family: 'Nunito'; font-weight: 500; font-display: swap; src: url('../fuentes/nunito-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap; src: url('../fuentes/nunito-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap; src: url('../fuentes/nunito-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 900; font-display: swap; src: url('../fuentes/nunito-latin-900-normal.woff2') format('woff2'); }

:root {
  --papel: #F6F3EE;
  --mesa: #FFFFFF;
  --tinta: #1F2430;
  --tinta-suave: #5E584D;
  --borde: #E7E2DA;
  --hueco: #F1EDE6;
  --rojo-boton: #D62B2B;
  --radio: 24px;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html { scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 500 16px/1.5 Nunito, 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow-x: clip;
}

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

button { font: inherit; cursor: pointer; color: inherit; }

:focus-visible { outline: 3px solid #2A4FD0; outline-offset: 2px; }

.boton {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  border: 2px solid var(--borde);
  background: var(--mesa);
  font-weight: 800;
  font-size: 16px;
}
.boton-oscuro { background: var(--tinta); border-color: var(--tinta); color: #FFFFFF; }
.boton-rojo { background: var(--rojo-boton); border-color: var(--rojo-boton); color: #FFFFFF; }

/* Mancha de pintura: forma irregular, como pintura recién echada. */
.mancha {
  display: block;
  border-radius: 46% 54% 43% 57% / 55% 44% 56% 45%;
  box-shadow: inset -6px -8px 0 rgba(0, 0, 0, 0.08), inset 6px 6px 0 rgba(255, 255, 255, 0.22);
}
.mancha.clara { outline: 2px solid var(--borde); outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
