/* Base: fuente, fondo, layout y tipografía (4.2 y 4.3). Cero colores propios: todo es var().
   UI v3 (7-oct): la tipografía de la app de Growkey. Fuente del sistema, cuerpo de 16 px, títulos de 28 px y peso 400,
   encabezados de sección en tipo oración (nunca mayúsculas con espaciado). Fondo blanco limpio, sin lavados. */
@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);
  /* La pila de la app de Growkey: la del sistema (SF en Apple, Segoe en Windows, Roboto en Android). Manrope queda
     de respaldo para un sistema sin ninguna de esas. */
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Manrope", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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; text-underline-offset: 3px; }
[hidden] { display: none !important; }

:focus { outline: none; }
/* El foco se ve siempre con teclado: anillo celeste de 3 px, separado del borde. Sigue la forma de cada
   control (cápsula, tarjeta): no se le cambia el radio. */
:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
a:focus-visible { border-radius: 6px; }
::selection { background: var(--info-tinte); color: var(--tinta); }

.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. La de la app de Growkey: el título de
   página en 28 px y peso 400; lo demás en 16 y 14; los números grandes, con su peso. */
.titulo-grande { font-size: 1.75rem; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; }
.titulo { font-size: 1.75rem; line-height: 1.25; font-weight: 400; letter-spacing: -0.01em; }
.titular { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
.encabezado { font-size: 1rem; line-height: 1.4; font-weight: 600; }
.cuerpo { font-size: 1rem; font-weight: 400; }
.secundario { font-size: 0.875rem; line-height: 1.5; color: var(--tinta-2); }
.pie { font-size: 0.8125rem; line-height: 1.45; font-weight: 400; color: var(--tinta-3); }
.cifras { font-variant-numeric: tabular-nums; }
.lectura { max-width: 68ch; }
.seccion-titulo { font-size: 0.875rem; font-weight: 500; letter-spacing: 0; color: var(--tinta-2); text-transform: none; }

/* Layout */
.app { min-height: 100vh; display: flex; flex-direction: column; }
/* Cada pantalla entra con un fundido corto. Solo al cambiar de pantalla: el sondeo no lo repite. Sólo opacidad:
   un transform en <main> volvería relativas a la página las barras y hojas fijas que viven adentro. */
.app > main { animation: pagina-entra var(--medio) var(--curva); }
@keyframes pagina-entra { from { opacity: 0; } to { opacity: 1; } }
.contenedor { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.contenedor-angosto { max-width: 880px; }
.pagina { padding-top: 40px; 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, .titulo { font-size: 1.5rem; }
  .titular { font-size: 1.0625rem; }
}

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