/* Base visual común de XETHER (rediseño del 8 de noviembre de 2026).
   La X de haces de luz, rótulos en Geist Mono, ritmo de día y noche, apariciones al desplazarse
   y escenas animadas. Todo funciona sin JavaScript: las animaciones solo se activan cuando el
   reproductor marca la página con .motion-ok, y con movimiento reducido se ve el estado final. */
@font-face { font-family: 'Geist Mono'; src: url('/public/fonts/geist-mono-400.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --xe-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --night: #0b1020;
  --night-2: #121a2e;
  --night-line: #ffffff1c;
  --night-text: #c9cfdb;
  --beam-top: #2a5bff;
  --beam-bottom: #e60f6a;
}

.xether-shell .mono-label { display: block; font: 500 .75rem/1.5 var(--xe-mono); letter-spacing: .12em; text-transform: uppercase; }

/* Apariciones al desplazarse */
html.motion-ok [data-reveal] { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
html.motion-ok [data-reveal]:not(.is-revealed) { opacity: 0; transform: translateY(22px); }

/* La X de haces de luz: cuatro brazos hechos de haces paralelos que convergen */

/* Secciones nocturnas */
.xether-shell .band-night { background: var(--night); color: #fff; }
.xether-shell .band-night .lead, .xether-shell .band-night p { color: var(--night-text); }

/* Escenas animadas (motor de aethernova.ai) */
.scene { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.scene-steps { display: flex; flex-direction: column; }
.xether-shell .scene-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; width: 100%; padding: 22px 0; border: 0; border-top: 1px solid #d3d9e6; background: none; color: #7a8399; text-align: left; font: inherit; position: relative; }
.xether-shell .scene-step:last-child { border-bottom: 1px solid #d3d9e6; }
.xether-shell .scene-step::before { content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: calc(var(--step-progress, 0) * 100%); background: var(--scene-accent, #2a5bff); }
.xether-shell .scene-step > .mono-label { padding-top: 8px; font-size: .6875rem; }
.xether-shell .scene-step strong { display: block; color: inherit; font: 500 clamp(1.5rem, 2.4vw, 2.3rem)/1.15 var(--xe-font); letter-spacing: -.035em; }
.xether-shell .scene-step-text { display: block; max-width: 34ch; margin-top: 10px; font: 400 .9375rem/1.6 var(--xe-font); }
.xether-shell .scene-step[aria-selected='true'] { color: #111625; }
.xether-shell .scene-step[aria-selected='true'] > .mono-label { color: var(--scene-accent, #2a5bff); }
.scene-player { min-width: 0; }
.scene-stage { position: relative; overflow: hidden; padding: clamp(14px, 2.4vw, 30px); border-radius: 10px; background: #090c18; isolation: isolate; }
.scene-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.xether-shell .scene-header img { display: block; width: auto; height: 20px; max-width: 220px; }
.xether-shell .scene-header span { font: 500 .625rem/1.4 var(--xe-mono); letter-spacing: .12em; color: #8b93a6; }
.scene-header i { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: var(--scene-accent, #2a5bff); box-shadow: 0 0 10px var(--scene-accent, #2a5bff); }
.scene-canvas-wrap { container-type: inline-size; }
.scene-canvas { display: block; width: 100%; aspect-ratio: 1000 / 700; }
@container (max-width: 559px) { .scene-canvas { aspect-ratio: 400 / 600; } }
.scene-controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; }
.xether-shell .scene-controls .mono-label { font-size: .625rem; color: #68748b; letter-spacing: .1em; }
.xether-shell .scene-toggle { flex: none; min-height: 36px; padding: 6px 14px; border: 1px solid #c6cbd8; border-radius: 999px; background: #fff; color: #22283b; font: 500 .8125rem/1.2 var(--xe-font); }
.scene[data-state='complete'] .scene-header i { animation: none; }
.band-night .scene-step { border-color: #ffffff24; color: #7c869c; }
.band-night .scene-step[aria-selected='true'] { color: #fff; }
.band-night .scene-toggle { background: transparent; border-color: #ffffff3d; color: #fff; }

@media (max-width: 900px) {
  .scene { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .scene-steps { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .xether-shell .scene-step { padding: 16px 0; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
  .xether-shell .scene-step:last-child { border-bottom: 0; }
  .xether-shell .scene-step strong { font-size: 1.35rem; }
  .xether-shell .scene-step-text { font-size: .8125rem; }
}
@media (max-width: 480px) {
  .scene-steps { grid-template-columns: minmax(0, 1fr); }
  .xether-shell .scene-step-text { display: none; }
  .xether-shell .scene-step[aria-selected='true'] .scene-step-text { display: block; }
}
@media (max-width: 420px) { .xether-shell .scene-header span { display: none; } }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* La X del logotipo y la firma animada (9 de noviembre de 2026; scenes/logo-intro.js).
   Sustituye a la X de haces de luz. Sin JavaScript o con movimiento reducido se ve el logotipo completo. */
.xlogo { display: block; width: 100%; height: auto; overflow: visible; }
.xlogo[data-logo-intro] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.xlogo .xl-top .xl-fill { fill: #1e3c90; }
.xlogo .xl-bottom .xl-fill { fill: #e60f6a; }
.xlogo .xl-outline { fill: none; stroke-width: 1.4; stroke-linejoin: round; }
.xlogo .xl-top .xl-outline { stroke: #1e3c90; }
.xlogo .xl-bottom .xl-outline { stroke: #e60f6a; }
.xlogo .xl-letters { fill: var(--xe-ink); }
.xlogo .xl-x, .xlogo .xl-arm, .xlogo .xl-letter { transform-box: fill-box; }
