/* Base compartida por las opciones de "Próximamente". */
@font-face {
  font-family: 'Playfair Display';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/playfair-display-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url('fonts/playfair-display-latin-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/playfair-display-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/inter-latin-500-normal.woff2') format('woff2');
}

:root {
  --noche: #081421;
  --b900: #132739;
  --b700: #2a4c6c;
  --b500: #3e6c98;
  --b300: #8fb0d0;
  --b100: #e6edf4;
  --navy: #041b53;
  --oro: #c9a063;
  --hueso: #f7f6f3;
  --tinta: #14181f;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, sans-serif;
  --fg: #fff;
  --fg-suave: var(--b300);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
  background: var(--noche);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
canvas#escena {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Capa de texto sobre la escena */
.capa {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 56px);
  pointer-events: none;
}
.capa a {
  pointer-events: auto;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, currentColor 35%, transparent);
}
.capa a:hover {
  border-bottom-color: var(--oro);
}
.logo {
  display: block;
  width: clamp(220px, 30vw, 420px);
  height: auto;
}
.sobre {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--oro);
  margin: 0;
}
h1.prox {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
}
h1.prox em {
  font-style: italic;
  color: var(--oro);
}
.bajada {
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--fg-suave);
  max-width: 34ch;
  margin: 0;
}
.pie {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg-suave);
}
.leyenda {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--fg-suave);
  transition: opacity 0.8s ease;
}

/* Entrada escalonada del texto */
@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.entra {
  opacity: 0;
  animation: subir 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 0.16s + var(--espera, 0.4s));
}

/* Selector de opciones (solo para iterar; se saca en la versión final) */
.opciones {
  position: fixed;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgb(8 20 33 / 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px;
  z-index: 10;
}
.opciones a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}
.opciones a[aria-current] {
  background: var(--oro);
  color: var(--noche);
}

@media (max-aspect-ratio: 9/10) {
  .opciones {
    top: 10px;
    bottom: auto;
    right: 10px;
    transform: scale(0.85);
    transform-origin: top right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entra {
    animation: none;
    opacity: 1;
  }
}
