/*
 * Noeul · base
 * Fuentes, normalización y tipografía de elementos sueltos. Va después de tokens.css.
 * Las fuentes están junto a este archivo para que la misma ruta relativa sirva en la
 * página (/diseno/...) y en el panel (/panel/...).
 */
@font-face {
  font-family: "Manrope";
  src: url("fuente-manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fuente-cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fuente-cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fuente-cormorant-500-italica.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: var(--t-md);
  line-height: var(--interlinea);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: var(--peso-medio);
  line-height: var(--interlinea-titulo);
  letter-spacing: -0.01em;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--marca-hondo); text-underline-offset: 0.2em; }
a:hover { color: var(--texto); }

img, svg { display: block; max-width: 100%; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }

:focus-visible {
  outline: 2px solid var(--foco);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection { background: var(--n-rubor); color: var(--texto); }

[hidden] { display: none !important; }

/* Texto solo para lectores de pantalla. */
.solo-lector {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Cifras alineadas en tablas, precios y contadores. */
.cifras-tabulares { font-variant-numeric: tabular-nums; }
