/* Tipografía, paleta, elementos básicos y movimiento. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --tinta: #0f1420;
  --texto: #262b36;
  --suave: #5f6672;
  --tenue: #959ba6;
  --linea: #e6e9ee;
  --linea-fuerte: #d3d8e0;
  --fondo: #fafbfc;
  --velo: #f2f4f7;
  --blanco: #ffffff;

  --azul-950: #060d1f;
  --azul-900: #0a1633;
  --azul-800: #102452;
  --azul-700: #163a7d;
  --azul-600: #1d4fa8;
  --azul-500: #2f6bd6;
  --azul-200: #c9dbf7;
  --azul-100: #e6eefb;
  --azul-50: #f4f8fe;

  --oro-600: #94763a;
  --oro-500: #bd9c57;
  --oro-400: #d6bb7c;
  --oro-200: #eddfbf;
  --oro-50: #faf6ec;

  --verde: #1c7550;
  --verde-50: #e8f5ee;
  --rojo: #b3401e;
  --rojo-50: #fbeee9;

  --degradado: linear-gradient(115deg, var(--azul-700), var(--azul-500) 60%, #6ea8f2);

  --fuente: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radio: 16px;
  --radio-s: 10px;
  --sombra-s: 0 1px 2px rgba(10, 22, 51, 0.05);
  --sombra: 0 1px 2px rgba(10, 22, 51, 0.04), 0 10px 30px -12px rgba(10, 22, 51, 0.14);
  --sombra-l: 0 2px 4px rgba(10, 22, 51, 0.04), 0 32px 64px -24px rgba(16, 36, 82, 0.32);
  --curva: cubic-bezier(0.2, 0.7, 0.2, 1);

  --ancho: 1180px;
  --margen: 24px;
  --alto-cabecera: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--alto-cabecera) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  outline: none;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--tinta);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
}

h3 {
  font-size: 1.12rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--azul-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--azul-800);
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--azul-500);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--azul-200);
}

strong {
  font-weight: 600;
  color: var(--tinta);
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--velo);
  border: 1px solid var(--linea);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.icono {
  display: inline-flex;
  flex: none;
  line-height: 0;
  font-size: 1.1em;
}

.fuera {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
}

[hidden] {
  display: none !important;
}

/* Movimiento. La clase con-mov la pone el motor solo si el navegador
   lo admite y el usuario no ha pedido reducir las animaciones. */

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes parpadeo {
  50% {
    opacity: 0;
  }
}

@keyframes latido {
  0% {
    box-shadow: 0 0 0 0 rgba(189, 156, 87, 0.55);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(189, 156, 87, 0);
  }
}

.con-mov .vista {
  animation: entrar 0.45s var(--curva) both;
}

.con-mov [data-revela] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--curva), transform 0.7s var(--curva);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.con-mov [data-revela].es-visible {
  opacity: 1;
  transform: none;
}

.con-mov {
  scroll-behavior: smooth;
}
