/* ============================================================
   Asternova — Landings de captación de colaboradores

   Paleta de marca (Manual de Marca, ed. 01): Ink Black de fondo,
   Blue Slate / Pacific Blue en frío, Golden Orange / Chocolate en
   cálido como único acento de acción. Sin dependencias externas.

   Tipografía (Drive: Asternova/2. Imagen corporativa/tipografias.zip),
   según la regla de emparejamiento del manual:
     Manrope estructura  — titula, ordena, señaliza, botones, etiquetas.
     Source Serif 4 habla — cuerpo de texto, citas, contexto.
   Nunca las dos en el mismo nivel de jerarquía dentro de un bloque:
   el énfasis dentro de un titular se hace con color, no con familia.

   Espaciado en múltiplos de 4px (grilla de 4pt del manual).
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/SourceSerif4-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-structure: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-voice: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bg: #121e2a;              /* Ink Black */
  --bg-rgb: 18, 30, 42;       /* Ink Black en componentes, para los velos */
  --border: rgba(0, 97, 125, 0.35); /* Blue Slate, baja opacidad */
  --text: #d7d2cc;            /* Dust Grey — mismo tono que el logo "blanco" */
  --muted: #c5b9ad;           /* Pale Oak */
  --highlight: #6aa4b7;       /* Pacific Blue — énfasis en títulos */
  --accent: #ec9b33;          /* Golden Orange — único color de acción (CTA) */
  --accent-hover: #dc6b2f;    /* Chocolate */
  --accent-ink: #121e2a;
  --radius: 16px;
  --maxw: 720px;
}

* { box-sizing: border-box; }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--highlight);
  outline-offset: 3px;
  border-radius: 4px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-voice);
  font-size: 1.125rem;        /* 18px — Body S del manual */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Fondo de estrellas (assets/galaxy.js) ---- */
.galaxy-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.galaxy-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}
/* Velo sobre el campo de estrellas: mantiene el texto legible y deja
   el fondo en el 70% de neutros que pide la proporción del manual. */
.galaxy-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    115% 75% at 50% 30%,
    rgba(var(--bg-rgb), 0.35) 0%,
    rgba(var(--bg-rgb), 0.72) 55%,
    rgba(var(--bg-rgb), 0.92) 100%
  );
}

main {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 24px 80px;
  animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand { text-align: center; margin-bottom: 40px; }
.brand-logo { display: inline-block; height: 40px; width: auto; }

h1 {
  font-family: var(--font-structure);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}
/* Énfasis por color, manteniendo una sola familia en el titular. */
h1 strong {
  font-weight: inherit;
  color: var(--highlight);
}

.lead {
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  text-wrap: pretty;
  max-width: 60ch;
  margin: 0 auto 40px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta { text-align: center; margin-top: 40px; }
.btn {
  display: inline-block;
  font-family: var(--font-structure);
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.2;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 40px rgba(236, 155, 51, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--accent-hover); }
.btn:active { transform: translateY(0); background: var(--accent-hover); }
.btn:focus-visible { outline-offset: 4px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) {
  .btn { transition: background 0.15s ease; }
  .btn:hover { transform: none; }
}

.footer-note {
  font-family: var(--font-structure);
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 48px;
}

/* ---- Coming soon (asternova.studio raíz) ---- */
body.coming-soon {
  min-height: 100vh;
  display: flex;
}
body.coming-soon main {
  margin: auto;
  padding: 24px;
  text-align: center;
}
.coming-soon .brand { margin-bottom: 40px; }
.coming-soon .brand-logo { height: 56px; }
.coming-soon h1 {
  font-size: clamp(2.75rem, 9vw, 5.25rem);  /* hasta 84px — H1 del manual */
  margin-bottom: 16px;
}
.coming-soon .lead { margin-bottom: 0; }

/* ---- Browser surfaces ---- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--highlight); }
