/* Base: fuente, fondo acuarela, layout y tipografía (4.2 y 4.3). Cero colores propios: todo es var(). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fuentes/manrope-latin-ext.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fuentes/manrope-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--tinta);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Manrope", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* La única decoración: lavados de acuarela, fijos, detrás de todo (4.3). Uno celeste detrás del
   encabezado y la isla, uno lila detrás de la columna derecha (la tarjeta de costo, el gasto, los
   botones de bajar) y los de las esquinas. El contenido va en tarjetas sólidas encima. */
body::before {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(34% 26% at 38% 4%, var(--lavado-celeste), transparent 72%),
    radial-gradient(30% 40% at 82% 40%, var(--lavado-lila), transparent 72%),
    radial-gradient(40% 38% at 6% 10%, var(--lavado-celeste), transparent 76%),
    radial-gradient(34% 34% at 96% 6%, var(--lavado-lila), transparent 76%),
    radial-gradient(42% 40% at 4% 94%, var(--lavado-menta), transparent 76%),
    radial-gradient(40% 38% at 96% 96%, var(--lavado-durazno), transparent 76%);
  filter: blur(40px);
}

h1, h2, h3, h4, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
img, video { display: block; max-width: 100%; }
a { color: var(--acento-texto); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 12px; }

.solo-lectores {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Escala tipográfica en rem, para que crezca con el tamaño de texto del usuario. */
.titulo-grande { font-size: 2rem; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
.titulo { font-size: 1.75rem; line-height: 1.18; font-weight: 600; letter-spacing: -0.022em; }
.titular { font-size: 1.375rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.018em; }
.encabezado { font-size: 1.0625rem; line-height: 1.35; font-weight: 600; }
.cuerpo { font-size: 1.0625rem; font-weight: 400; }
.secundario { font-size: 0.9375rem; line-height: 1.45; color: var(--tinta-2); }
.pie { font-size: 0.8125rem; line-height: 1.4; font-weight: 500; color: var(--tinta-3); }
.cifras { font-variant-numeric: tabular-nums; }
.lectura { max-width: 68ch; }
.seccion-titulo { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--tinta-2); text-transform: none; }

/* Layout */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.contenedor-angosto { max-width: 928px; }
.pagina { padding-top: 36px; padding-bottom: 72px; flex: 1; }
.pagina-con-barra { padding-bottom: 132px; }

.pila { display: flex; flex-direction: column; }
.pila-4 { gap: 4px; } .pila-8 { gap: 8px; } .pila-12 { gap: 12px; } .pila-16 { gap: 16px; } .pila-24 { gap: 24px; } .pila-32 { gap: 32px; }
.fila { display: flex; align-items: center; }
.fila-8 { gap: 8px; } .fila-12 { gap: 12px; } .fila-16 { gap: 16px; }
.envuelve { flex-wrap: wrap; }
.estira { flex: 1; min-width: 0; }
.entre { justify-content: space-between; }

.dos-columnas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: start;
}
.columna-fija { position: sticky; top: 84px; }

@media (max-width: 899px) {
  .dos-columnas { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .columna-fija { position: static; }
  .solo-escritorio { display: none !important; }
}
@media (min-width: 900px) {
  .solo-telefono { display: none !important; }
}
@media (max-width: 599px) {
  .contenedor { padding: 0 16px; }
  .pagina { padding-top: 24px; }
  .titulo-grande { font-size: 1.75rem; }
  .titulo { font-size: 1.5rem; }
  .titular { font-size: 1.25rem; }
}

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