:root {
  --sala: #07090a;
  --sala-2: #11161a;
  --hueso: #ede8dc;
  --tenue: #aaa69b;
  --linea: #2a3034;
  --oro: #d4b36a;
  --margen: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
/* Desplazamiento suave solo tras usar un enlace: al recargar, el navegador vuelve
   a tu lugar de golpe en vez de mostrar el comienzo y recorrer la página. */
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--sala);
  color: var(--hueso);
  font: 400 1.0625rem/1.65 "Inter", system-ui, sans-serif;
}
/* Mientras se vuelve a la posición anterior (js/restaurar.js) */
html.restaurando main, html.restaurando footer { visibility: hidden; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 7vw, 6rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); letter-spacing: -0.015em; }
a { color: inherit; }
::selection { background: var(--oro); color: var(--sala); }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; }

.accion {
  display: inline-block;
  padding: 15px 30px;
  border: 1px solid var(--oro);
  border-radius: 999px;
  background: var(--oro);
  color: var(--sala);
  font: 600 1rem "Inter", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease), background-color 180ms ease;
}
.accion:active { transform: scale(0.97); }
.accion--linea { background: transparent; color: var(--hueso); }
@media (hover: hover) and (pointer: fine) {
  .accion:hover { background: var(--hueso); border-color: var(--hueso); color: var(--sala); }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 420px) {
  .nav { gap: 0 12px; }
  .nav a { font-size: 0.82rem; }
}
