/* Createdby — sitio oficial · HTML/CSS puro, sin dependencias */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #1b1b1f;
  --muted: #5d5d58;
  --line: #e6e3dc;
  --accent: #6d28d9;
  --accent-soft: #f3eefe;
  --on-accent: #ffffff;
  --max: 880px;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;
    --surface: #1a1a1e;
    --ink: #ececea;
    --muted: #a5a5a0;
    --line: #2b2b30;
    --accent: #a78bfa;
    --accent-soft: #241b3a;
    --on-accent: #16121f;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Accesibilidad ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip:focus { left: 0; }

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

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-header nav {
  max-width: var(--max);
  margin-inline: auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}
.brand b { color: var(--accent); font-weight: 800; }

.site-header ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-header ul a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.97rem;
}
.site-header ul a:hover { color: var(--accent); }
.site-header ul a[aria-current="page"] {
  color: var(--accent);
}

.lang-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 12px !important;
  font-size: 0.85rem !important;
  color: var(--muted) !important;
}
.lang-link:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 800; margin: 0.4em 0 0.45em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); font-weight: 750; margin: 2.2em 0 0.5em; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 1.6em 0 0.4em; }

p { margin: 0.7em 0; }

.lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 42em;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.muted { color: var(--muted); }

a { color: var(--accent); text-underline-offset: 3px; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

/* ---------- Secciones ---------- */

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 6vw, 4rem); }

section.block { padding: 1.6rem 0; }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 650;
  text-decoration: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 11px 24px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { filter: brightness(1.08); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); filter: none; }

/* ---------- Tarjetas ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
}

.card h3 { margin-top: 0.2em; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 1.6rem 0;
}

.panel-accent {
  background: var(--accent-soft);
  border-color: transparent;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
  vertical-align: middle;
}

/* ---------- Capturas ---------- */

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 1.6rem 0;
}

.shots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: block;
}

/* ---------- Listas de ecosistema / datos ---------- */

.eco-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.eco-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.eco-list li:last-child { border-bottom: 0; }
.eco-list strong { display: block; margin-bottom: 2px; }
.eco-list span { color: var(--muted); }

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 1.2rem 0;
}
dl.facts dt { font-weight: 650; }
dl.facts dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Formulario ---------- */

.contact-form { max-width: 560px; margin-top: 1.4rem; }

.contact-form label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  margin: 1rem 0 0.3rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.contact-form button { margin-top: 1.2rem; }

.hint { font-size: 0.88rem; color: var(--muted); }

.email-big {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Prosa legal ---------- */

.prose { max-width: 720px; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.legal-meta { color: var(--muted); font-size: 0.92rem; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(3rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-footer .brand { font-size: 1.1rem; }

/* ---------- Firma Createdby™ ----------
   La marca del pie ya no es texto: es el primitivo portátil de /assets/firma/
   (ver su README). Acá SOLO se tematiza con las custom properties --cb-*; el
   CSS del primitivo no se toca, y la tipografía la hereda del sitio.

   El selector lleva el modo a propósito: esta hoja carga DESPUÉS de firma.css,
   así que un `.site-footer .cb-firma` a secas le ganaría por orden a
   `.cb-firma[data-cb-modo="lineal"]` y le borraría el tamaño de crédito.

   En términos, privacidad y los borradores legales no hay firma: ahí la marca
   va en texto plano. */

.brand--firma {
  display: block;      /* el ancho real del pie es lo que mide el ajuste
                          automático del primitivo para no desbordar */
  line-height: 1;
}
.brand--firma:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }

/* Regla 5 del primitivo: descriptor y marca con la MISMA tinta, a plena fuerza
   —jamás un gris—. `.site-footer a { color: var(--muted) }` le gana a `.brand`
   por especificidad, así que sin esto la firma nacería apagada. En claro la
   tinta es --ink y en oscuro también: el token ya cambia con el tema. */
.site-footer .brand--firma .cb-firma[data-cb-modo="lineal"] {
  --cb-tinta: var(--ink);
  --cb-size: 1.05rem;
}

/* El primitivo se mide contra el ancho del padre y se achica si no entra. Para
   que esa cuenta sea la de verdad, la caja tiene que medir lo que mide el
   contenido: si ocupa todo el ancho del pie, `scrollWidth` da justo el hueco y
   el ajuste recorta un punto sin necesidad. Con `max-content` sólo se achica
   cuando de verdad no entra.

   Y SIN `max-width: 100%`: recortar la caja aprieta al descriptor, que tiene
   `overflow: hidden`, y le come letras en silencio en vez de desbordar. El
   primitivo necesita ver ese desborde para saber cuánto achicarse. */
.site-footer .brand--firma .cb-firma[data-cb-modo="lineal"] {
  width: max-content;
}


.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0.9rem 0;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.legal-name {
  margin: 0.8rem 0 0.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .cards, .shots { grid-template-columns: 1fr; }
  .shots { justify-items: center; }
  .shots img { max-width: 300px; }
  dl.facts { grid-template-columns: 1fr; gap: 2px 0; }
  dl.facts dd { margin-bottom: 10px; }
}

/* ---------- Prisma (adaptado del motor prism-glass de Otra Visión) ----------
   prism.js fija en cada elemento:
     --p-hue   tono espectral según ángulo al cursor
     --p-alpha opacidad del wash de superficie
     --p-edge  opacidad del brillo de bordes
     --p-gx/gy posición del gradiente (hacia el cursor)                       */

:root { --prism-strength: 0.55; --shine-color: rgba(109, 40, 217, 0.12); }

@media (prefers-color-scheme: dark) {
  :root { --prism-strength: 1; --shine-color: rgba(255, 255, 255, 0.16); }
}

.prism-glass {
  position: relative;
  overflow: hidden;
  box-shadow:
    inset calc((0.5 - var(--p-gx, 0.5)) * 5px) calc((0.5 - var(--p-gy, 0.5)) * 5px)
    6px 0
    hsla(var(--p-hue, 0), 100%, 75%, calc(var(--p-edge, 0) * 0.32 * var(--prism-strength))),
    inset calc((0.5 - var(--p-gx, 0.5)) * 12px) calc((0.5 - var(--p-gy, 0.5)) * 12px)
    20px 0
    hsla(calc(var(--p-hue, 0) + 40), 100%, 65%, calc(var(--p-edge, 0) * 0.11 * var(--prism-strength)));
}

.prism-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background: conic-gradient(
    from calc(var(--p-hue, 0) * 1deg),
    hsla(0, 100%, 70%, 0.32),
    hsla(60, 100%, 65%, 0.32),
    hsla(120, 100%, 60%, 0.32),
    hsla(180, 100%, 65%, 0.32),
    hsla(240, 100%, 70%, 0.32),
    hsla(300, 100%, 65%, 0.32),
    hsla(360, 100%, 70%, 0.32)
  );
  -webkit-mask-image: radial-gradient(
    ellipse at calc(var(--p-gx, 0.5) * 100%) calc(var(--p-gy, 0.5) * 100%),
    rgba(0, 0, 0, calc(var(--p-alpha, 0) * var(--prism-strength))) 0%,
    rgba(0, 0, 0, calc(var(--p-alpha, 0) * var(--prism-strength) * 0.25)) 45%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse at calc(var(--p-gx, 0.5) * 100%) calc(var(--p-gy, 0.5) * 100%),
    rgba(0, 0, 0, calc(var(--p-alpha, 0) * var(--prism-strength))) 0%,
    rgba(0, 0, 0, calc(var(--p-alpha, 0) * var(--prism-strength) * 0.25)) 45%,
    transparent 75%
  );
  mix-blend-mode: screen;
}

/* Chip vidrio con shine de barrido (estilo gran-titulo de Otra Visión) */
.chip {
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding: 7px 18px;
  border-radius: 9px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 24%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 9%, transparent);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  backdrop-filter: blur(5px);
}

.chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, var(--shine-color) 40% 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shine 5.5s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 110%; }
}

/* Glow de letras (estilo Createdby™MOTION) — prism.js divide [data-glow] */
[data-glow] .gw { white-space: nowrap; }
[data-glow] .gl { transition: text-shadow 0.12s linear; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip::before { animation: none; }
  .prism-glass { box-shadow: none; }
  .prism-glass::after { display: none; }
}

/* ============================================================
   EL ESPECTRO — cada color representa un área del ecosistema
   Confirmados: azul = PODCASTING · verde = ADS · morado = GAMES
   Provisionales: ámbar = MOTION · infrarrojo = infraestructura
   La luz blanca completa (todo el espectro) = Createdby™ALL
   ============================================================ */

:root {
  --area-podcasting: #4596ff;
  --area-ads: #34d27b;
  --area-games: #a06bff;
  --area-motion: #ffb04d;
  --area-infra: #ff5e5e;
  --spectrum: linear-gradient(90deg,
    #b3001b 0%, #ff5e3a 12%, #ffb04d 24%, #ffe14d 36%,
    #34d27b 50%, #45c4ff 63%, #4596ff 74%, #7b5bff 86%, #6a00b8 100%);
  /* Variante CÍCLICA para la banda animada: empieza y termina en el MISMO
     rojo y cierra el violeta→magenta→rojo, para que al repetirse no haya
     corte entre morado y rojo. */
  --spectrum-loop: linear-gradient(90deg,
    #ff2d55 0%, #ff5e3a 8%, #ffb04d 17%, #ffe14d 26%,
    #34d27b 37%, #2ec5d3 46%, #45c4ff 55%, #4596ff 64%,
    #7b5bff 73%, #a23cff 81%, #d63cc0 89%, #ff3d77 95%, #ff2d55 100%);
}

.area-podcasting { --area-c: var(--area-podcasting); }
.area-ads        { --area-c: var(--area-ads); }
.area-games      { --area-c: var(--area-games); }
.area-motion     { --area-c: var(--area-motion); }
.area-infra      { --area-c: var(--area-infra); }

/* Hairline de área en cards + punto luminoso en títulos */
.card[class*="area-"] { border-top: 3px solid var(--area-c); }
.card.area-all { border-top: 3px solid transparent; background-clip: padding-box; position: relative; }
.card.area-all::before {
  content: '';
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--spectrum);
}

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
  background: var(--area-c, var(--muted));
  box-shadow: 0 0 9px var(--area-c, transparent);
}
.dot-all { background: var(--spectrum); box-shadow: 0 0 9px rgba(160, 107, 255, 0.6); }

.card[class*="area-"]:hover {
  border-color: color-mix(in srgb, var(--area-c) 45%, var(--line));
  box-shadow: 0 0 26px color-mix(in srgb, var(--area-c) 22%, transparent);
}

/* ---------- Línea espectral (la luz saliendo del prisma) ---------- */

.spectral-band {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--spectrum-loop);
  background-size: 200% 100%;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.18), 0 0 26px rgba(123, 91, 255, 0.35);
  animation: spectrumShift 9s linear infinite;
}

@keyframes spectrumShift { to { background-position: -200% 0; } }

/* ---------- Hero galáctico (siempre oscuro, como el cosmos) ---------- */

.hero-galaxy {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #f2f1f6;
  padding: clamp(4.5rem, 13vh, 8.5rem) 24px clamp(3.5rem, 9vh, 6.5rem);
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(123, 79, 166, 0.30), transparent 70%),
    radial-gradient(42% 38% at 15% 78%, rgba(69, 150, 255, 0.14), transparent 70%),
    radial-gradient(42% 38% at 85% 72%, rgba(52, 210, 123, 0.10), transparent 70%),
    radial-gradient(46% 40% at 88% 12%, rgba(255, 94, 94, 0.09), transparent 70%),
    #0a0a0c;
}

.hero-galaxy::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

.hero-galaxy > * { position: relative; }

.hero-galaxy .lead { color: #b9b5c6; margin: 1.6rem auto 0; }

.hero-galaxy .cta-row { justify-content: center; }

.hero-galaxy .btn {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0c;
}

.hero-galaxy .btn.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.hero-galaxy .chip {
  border-top-color: rgba(255, 255, 255, 0.30);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  color: #cfcadd;
}

/* ---------- Lockup CREATEDBY / THE ALL ARTS COMPANY ---------- */

.lockup {
  --lockup-size: clamp(2.6rem, 10.5vw, 7rem);
  display: inline-block;
  margin: 2.2rem 0 0;
  line-height: 1;
}

.lockup .l1 {
  display: block;
  font-size: var(--lockup-size);
  font-weight: 800;
  letter-spacing: 0.015em;
  color: #ffffff;
  text-shadow:
    0 0 16px rgba(255, 255, 255, 0.28),
    0 0 70px rgba(160, 107, 255, 0.30);
}

.lockup .l2 {
  display: block;
  margin-top: 0.32em;
  font-size: calc(var(--lockup-size) * 0.285);
  font-weight: 280;
  letter-spacing: 0.395em;
  margin-right: -0.395em; /* compensa el tracking del último glifo */
  color: #d8d4e4;
}

.lockup .spectral-band { margin-top: 1.5em; }

/* ---------- Wordmark brillando (estilo Únete/MOTION) ---------- */

@keyframes brandGlow {
  0%, 100% { text-shadow: 0 0 7px rgba(160, 107, 255, 0.20); }
  50%      { text-shadow: 0 0 16px rgba(160, 107, 255, 0.55); }
}

.site-header .brand { animation: brandGlow 4.5s ease-in-out infinite; }

/* ---------- Header pegajoso con vidrio ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Footer con hairline espectral ---------- */

.site-footer { border-top: 0; padding-top: 0; }
.site-footer::before {
  content: '';
  display: block;
  height: 1px;
  background: var(--spectrum);
  opacity: 0.55;
  margin-bottom: 2.2rem;
}

/* ---------- Entrada escalonada (estilo Únete) ---------- */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.fu1, .fu2, .fu3, .fu4 { opacity: 0; animation: fadeUp 0.7s ease forwards; }
.fu2 { animation-delay: 0.12s; }
.fu3 { animation-delay: 0.26s; }
.fu4 { animation-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .fu1, .fu2, .fu3, .fu4 { opacity: 1; animation: none; }
  .spectral-band { animation: none; }
  .site-header .brand { animation: none; }
}

/* ============================================================
   HOME: hero sin header — la navegación vive dentro del hero
   y se convierte en header (con createdby™ centrado) al bajar.
   ============================================================ */

/* ™ posicionado en absoluto: no altera el centrado de la marca */
.brand { position: relative; }
.brand .tm {
  position: absolute;
  top: -0.18em;
  right: -0.85em;
  font-size: 0.52em;
  font-weight: 600;
  color: var(--muted);
}

.lockup { position: relative; }
.lockup .tm {
  position: absolute;
  top: calc(var(--lockup-size) * 0.04);
  right: calc(var(--lockup-size) * -0.16);
  font-size: calc(var(--lockup-size) * 0.15);
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 0 10px rgba(160, 107, 255, 0.4);
}

/* Kicker superior sin burbuja, donde iría el header */
.hero-topline {
  margin: 0 0 clamp(3rem, 10vh, 6.5rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 650;
  color: #b9b5c6;
}

.home .hero-galaxy { padding-top: 1.7rem; }

/* Navegación dentro del hero, debajo de los CTAs */
.hero-nav {
  margin-top: 2.8rem;
  display: flex;
  gap: 8px 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-nav a {
  color: #d8d4e4;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
}

.hero-nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(160, 107, 255, 0.8);
}

.hero-nav .lang-link {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 0.85rem;
  color: #b9b5c6;
}

/* Header del home: oculto arriba, aparece al hacer scroll */
.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.home.scrolled .site-header {
  transform: none;
  opacity: 1;
}

/* El mismo header (lockup centrado) en TODAS las páginas: home e internas.
   minmax(0,1fr) fuerza columnas laterales IGUALES (1fr = minmax(auto,1fr)
   las haría desiguales por el ancho del nav izquierdo y descentraría la marca). */
:is(.home, .galaxy-page) .site-header nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

:is(.home, .galaxy-page) .site-header .nav-left { justify-self: start; }
:is(.home, .galaxy-page) .site-header .nav-right { justify-self: end; }

/* En móvil no hay espacio para centrar la marca entre dos navs: el grid de
   3 columnas apretaría las pistas y la marca chocaría con el nav. Volvemos
   al layout estándar (marca a la izquierda, nav a la derecha), que sí entra a 375px. */
@media (max-width: 560px) {
  :is(.home, .galaxy-page) .site-header nav {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
  }
  :is(.home, .galaxy-page) .site-header .brand-lockup { order: -1; margin-right: auto; }
  :is(.home, .galaxy-page) .site-header ul { gap: 12px; }
  :is(.home, .galaxy-page) .site-header ul a { font-size: 0.85rem; }
}

/* Marca completa en el header: mini-lockup APILADO, igual que el del hero.
   THE ALL ARTS COMPANY va DEBAJO de CREATEDBY™, no a su costado: en una línea
   la marca medía ~300px y se comía la columna central del grid de 3 pistas. */
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.06rem;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

/* La fila CREATEDBY+™ es un hijo propio para que el ancho del lockup sea
   max(fila, segunda línea) y no la suma de las tres piezas. */
.brand-lockup .hb-row {
  display: flex;
  align-items: baseline;
}

.brand-lockup .hb1 {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-lockup .tm {
  position: static;
  font-size: 0.5em;
  font-weight: 600;
  align-self: flex-start;
  margin-left: 0.02em;
  color: var(--muted);
}

/* flex-basis 100% = salto de línea forzado sin tocar el HTML.
   El tracking está calibrado para que esta línea mida lo mismo que CREATEDBY™
   (~117px vs ~119px), que es lo que hace que el lockup se lea como un bloque. */
.brand-lockup .hb2 {
  margin-top: 0.36em;
  font-weight: 300;
  font-size: 0.436em;
  letter-spacing: 0.13em;
  margin-right: -0.13em; /* compensa el tracking del último glifo */
  color: var(--ink); /* misma luminosidad que CREATEDBY; jerarquía solo por peso/tamaño */
}

.brand-lockup .gl { transition: text-shadow 0.12s linear; }

@media (max-width: 480px) {
  .home .site-header .lang-link { display: none; }
  .home .site-header ul { gap: 10px; }
  .home .site-header .brand { font-size: 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home .site-header { transition: none; }
}

/* ============================================================
   PÁGINAS INTERNAS: hero galáctico + header transparente→vidrio
   Misma identidad que el home, sin el lockup gigante.
   ============================================================ */

/* Banda de hero galáctico para páginas internas */
.hero-page {
  padding: clamp(7rem, 17vh, 10rem) 24px clamp(2.8rem, 7vh, 4.5rem);
}

.hero-page .hero-topline { margin-bottom: 1.3rem; }

.hero-page h1 {
  color: #ffffff;
  margin: 0 auto;
  max-width: 17em;
  text-shadow: 0 0 22px rgba(160, 107, 255, 0.22);
}

.hero-page .spectral-band {
  width: min(280px, 62%);
  margin: 1.6rem auto 0;
}

.hero-page .lead { margin-top: 1.4rem; }

.hero-page .legal-meta { color: #b9b5c6; }

.hero-galaxy a { color: #c4b5fd; }

/* En páginas internas el header flota transparente sobre el hero
   y gana vidrio al salir del hero (toggle .scrolled vía prism.js). */
.galaxy-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
}

.galaxy-page .site-header .brand { color: #f1eff8; }
.galaxy-page .site-header .brand-lockup .hb1,
.galaxy-page .site-header .brand-lockup .hb2 { color: #f1eff8; }
.galaxy-page .site-header .brand .tm { color: rgba(255, 255, 255, 0.7); }
.galaxy-page .site-header ul a { color: #e4e0ee; }
.galaxy-page .site-header ul a:hover,
.galaxy-page .site-header ul a[aria-current="page"] { color: #ffffff; }
.galaxy-page .site-header .lang-link { border-color: rgba(255, 255, 255, 0.28); color: #cfcadd; }

.galaxy-page.scrolled .site-header {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.galaxy-page.scrolled .site-header .brand { color: var(--ink); }
.galaxy-page.scrolled .site-header .brand-lockup .hb1,
.galaxy-page.scrolled .site-header .brand-lockup .hb2 { color: var(--ink); }
.galaxy-page.scrolled .site-header .brand .tm { color: var(--muted); }
.galaxy-page.scrolled .site-header ul a { color: var(--ink); }
.galaxy-page.scrolled .site-header ul a:hover,
.galaxy-page.scrolled .site-header ul a[aria-current="page"] { color: var(--accent); }
.galaxy-page.scrolled .site-header .lang-link { border-color: var(--line); color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .galaxy-page .site-header { transition: none; }
}
