/* Digital Latin Fest — Home en construcción (brandbook 2026) */

/* Tipografías de marca (autoalojadas) */
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Orbitron'; src: url('../fonts/orbitron-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/work-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url('../fonts/work-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('../fonts/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --axis: #471E97;
  --nav: #02081A;
  --pulse: #00DEF3;
  --orbit: #FFE937;
  --radar: #B4A2EF;
  --horizon: #F9FBEE;
  --muted: rgba(249, 251, 238, 0.74);
  --faint: rgba(249, 251, 238, 0.56);
  --line: rgba(180, 162, 239, 0.24);
  --font-title: 'Orbitron', system-ui, sans-serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4.5vw, 64px);
  /* Ancho útil del texto: no invade la zona de DEXER */
  --hero-w: calc(52vw - var(--gutter) - 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html, body { min-height: 100%; }

body.dlf-home {
  background:
    radial-gradient(60% 60% at 72% 42%, rgba(71, 30, 151, 0.85), transparent 70%),
    radial-gradient(40% 40% at 10% 95%, rgba(0, 222, 243, 0.1), transparent 70%),
    var(--nav);
  color: var(--horizon);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a:focus-visible {
  outline: 2px solid var(--pulse);
  outline-offset: 6px;
  border-radius: 4px;
}

#dlf-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.is-ready #dlf-scene { opacity: 1; }
.no-webgl #dlf-scene { display: none; }

/* Retícula de puntos (universo visual DLF) */
.dlf-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(180, 162, 239, 0.22) 1px, transparent 1.4px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(70% 70% at 22% 62%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 22% 62%, #000 0%, transparent 75%);
  opacity: 0.45;
  z-index: 1;
}

/* Velo sutil detrás del texto (contraste sobre las órbitas) */
body.dlf-home::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 58% 52% at 0% 80%, rgba(2, 8, 26, 0.62), rgba(2, 8, 26, 0.25) 60%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* Respaldo sin WebGL: DEXER como imagen */
.dlf-dexer-fallback {
  display: none;
  position: fixed;
  right: 4vw;
  top: 50%;
  width: min(44vw, 640px);
  height: auto;
  transform: translateY(-50%);
  z-index: 1;
}
.no-webgl .dlf-dexer-fallback,
.dexer-fallback .dlf-dexer-fallback { display: block; }

/* Cabecera */
.dlf-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: clamp(20px, 3vw, 40px) var(--gutter);
  z-index: 3;
}
.dlf-brand { display: inline-flex; line-height: 0; }
.dlf-brand img { height: clamp(28px, 2.5vw, 38px); width: auto; }
.dlf-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--horizon);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 8, 26, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  white-space: nowrap;
}
.dlf-status i {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse);
  animation: dlf-ping 2.4s ease-out infinite;
}

/* Bloque principal */
.dlf-hero {
  position: fixed;
  left: var(--gutter);
  bottom: clamp(96px, 14vh, 160px);
  width: var(--hero-w);
  z-index: 3;
  opacity: calc(1 - var(--e, 0) * 2.4);
}
/* Sin transform en el contenedor: "+10 años en órbita" es fixed en móvil */
.dlf-hero > :not(.dlf-orbit) { translate: 0 calc(var(--e, 0) * -60px); }
.is-journey .dlf-hero, .is-exploring .dlf-hero { pointer-events: none; }
.is-exploring .dlf-hero, .is-exploring .dlf-dexer-tag, .is-exploring .dlf-scrollhint { opacity: 0; transition: opacity .6s ease; }
.dlf-hero > * {
  opacity: 0;
  transform: translateY(16px);
  animation: dlf-rise 1s var(--ease) forwards;
}
.dlf-hero > :nth-child(2) { animation-delay: .1s; }
.dlf-hero > :nth-child(3) { animation-delay: .2s; }
.dlf-hero > :nth-child(4) { animation-delay: .3s; }
.dlf-hero > :nth-child(6) { animation-delay: .5s; }

/* "+10 años en órbita": la nave insignia (WebGL) ilumina el texto con su foco */
.dlf-orbit { margin-bottom: 32px; }
.dlf-orbit__stage { height: clamp(78px, 11.5vh, 124px); }
.dlf-orbit__text {
  position: relative;
  display: inline-block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: min(46px, calc(var(--hero-w) / 16.5));
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dlf-orbit__text b { font-weight: 800; }
.dlf-orbit__base { color: rgba(249, 251, 238, 0.28); }
.dlf-orbit__base b { color: rgba(255, 233, 55, 0.78); }
.dlf-orbit__lit {
  position: absolute;
  inset: 0;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.95), 0 0 14px rgba(0, 222, 243, 0.85), 0 0 34px rgba(0, 222, 243, 0.55), 0 0 70px rgba(0, 222, 243, 0.3);
  opacity: var(--li, 0);
  -webkit-mask-image: radial-gradient(ellipse 34% 220% at var(--lx, 50%) 0%, #000 0%, #000 30%, rgba(0, 0, 0, 0.45) 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 34% 220% at var(--lx, 50%) 0%, #000 0%, #000 30%, rgba(0, 0, 0, 0.45) 62%, transparent 100%);
  pointer-events: none;
}
.dlf-orbit__lit b { color: var(--orbit); text-shadow: 0 0 8px rgba(255, 233, 55, 0.9), 0 0 26px rgba(255, 233, 55, 0.55); }
/* Sin WebGL: texto iluminado de forma estática */
.no-webgl .dlf-orbit__stage { display: none; }
.no-webgl .dlf-orbit__lit { opacity: 1; -webkit-mask-image: none; mask-image: none; }

/* Etiquetas de los planetas temáticos */
.dlf-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radar);
  margin-bottom: 24px;
}
.dlf-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* Título: siempre en dos líneas. La línea más larga mide 13,13em en Orbitron 800. */
.dlf-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: min(64px, calc(var(--hero-w) / 13.4));
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.dlf-title span,
.dlf-title em {
  display: block;
  white-space: nowrap;
}
.dlf-title em {
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(90deg, var(--radar), var(--pulse) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dlf-lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--muted);
}
.dlf-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--pulse);
  color: var(--nav);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 8px 28px -10px rgba(0, 222, 243, 0.6);
  transition: transform .25s var(--ease), background-color .25s;
}
.dlf-cta:hover { transform: translateY(-2px); background: #4be9f8; }
/* Propulsor: se enciende al pasar el cursor */
.dlf-cta__flame {
  position: absolute;
  left: -2px;
  top: 50%;
  width: 34px;
  height: 14px;
  transform: translate(-60%, -50%) scaleX(0);
  transform-origin: 100% 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 100% 50%, #fff 0%, var(--pulse) 30%, rgba(71, 30, 151, 0.7) 62%, transparent 75%);
  filter: blur(1px);
  opacity: 0;
  transition: transform .25s var(--ease), opacity .2s;
  pointer-events: none;
}
.dlf-cta:hover .dlf-cta__flame, .dlf-cta:focus-visible .dlf-cta__flame {
  opacity: 1;
  transform: translate(-60%, -50%) scaleX(1);
  animation: dlf-flame .09s steps(2) infinite alternate;
}
@keyframes dlf-flame { to { filter: blur(1.6px) brightness(1.35); width: 40px; } }
.dlf-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 6px;
  border: 0;
  background: none;
  color: var(--horizon);
  font: 500 16px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color .2s;
}
.dlf-ghost:hover { color: var(--pulse); }
.dlf-ghost span { transition: transform .25s var(--ease); }
.dlf-ghost:hover span { transform: translateX(4px); }
.dlf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; }
button:focus-visible, .dlf-ghost:focus-visible { outline: 2px solid var(--pulse); outline-offset: 4px; border-radius: 999px; }
.dlf-hero > :nth-child(5) { animation-delay: .4s; }
.dlf-hero .dlf-actions { margin-top: 28px; }
.dlf-telemetry { margin-top: 28px; max-width: 470px; }
.dlf-telemetry__bar {
  position: relative;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(180, 162, 239, 0.18);
}
.dlf-telemetry__bar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--pulse), transparent);
  animation: dlf-scan 2.8s cubic-bezier(.6, 0, .4, 1) infinite;
}
.dlf-telemetry__grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 10px 18px;
  margin-top: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
}
.dlf-telemetry dt { font-size: 10px; letter-spacing: 0.1em; color: var(--faint); }
.dlf-telemetry dd {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--horizon);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dlf-telemetry dd i { font-style: normal; font-size: 10px; margin-left: 6px; }
.dlf-telemetry dd .up { color: #3ee6a0; }
.dlf-telemetry dd .down { color: #ff7a8a; }
.dlf-telemetry dd.is-live::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  vertical-align: 2px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: 0 0 8px var(--pulse);
}

/* Etiqueta de DEXER */
.dlf-dexer-tag {
  position: fixed;
  translate: 0 calc(var(--e, 0) * -40px);
  right: var(--gutter);
  bottom: clamp(96px, 14vh, 160px);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  z-index: 3;
  opacity: 0;
  transition: opacity 1.2s ease .6s;
}
.dlf-dexer-tag strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--horizon);
  margin-bottom: 6px;
}
.dexer-ready .dlf-dexer-tag { opacity: calc(1 - var(--e, 0) * 2); }

/* Pie */
.dlf-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(16px, 2.5vw, 32px) var(--gutter);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249, 251, 238, 0.45);
  z-index: 3;
}

@keyframes dlf-rise { to { opacity: 1; transform: none; } }
@keyframes dlf-scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
@keyframes dlf-ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 222, 243, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(0, 222, 243, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 222, 243, 0); }
}

/* Pantallas anchas: el título crece hasta su tope sin romper las dos líneas */
@media (min-width: 1600px) {
  .dlf-lead { font-size: 18px; }
}

/* Laptops bajas: compacta el ritmo vertical */
@media (max-height: 760px) and (min-width: 820px) {
  .dlf-hero { bottom: 88px; }
  .dlf-orbit { margin-bottom: 22px; }
  .dlf-orbit__stage { height: 70px; }
  .dlf-eyebrow { margin-bottom: 16px; }
  .dlf-lead { margin-top: 16px; }
  .dlf-telemetry { margin-top: 22px; }
  .dlf-hero .dlf-actions { margin-top: 20px; }
}
@media (max-height: 600px) and (min-width: 820px) {
  .dlf-lead { display: none; }
}

/* Tablet vertical y móvil: DEXER arriba, texto abajo sobre un velo Nav */
@media (max-width: 819px) {
  :root { --hero-w: calc(100vw - 2 * var(--gutter)); }
  body.dlf-home::before { display: none; }
  body.dlf-home::after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62vh;
    background: linear-gradient(to top, rgba(2, 8, 26, 0.96), rgba(2, 8, 26, 0.75) 55%, transparent);
    pointer-events: none;
    z-index: 2;
  }
  .dlf-hero { bottom: 72px; }
  .dlf-title { font-size: min(52px, calc(var(--hero-w) / 13.6)); }
  .dlf-orbit {
    position: fixed;
    top: 58px;
    left: var(--gutter);
    right: var(--gutter);
    margin: 0;
    text-align: center;
  }
  .dlf-orbit__stage { height: 46px; }
  .dlf-orbit__text { font-size: min(28px, calc(var(--hero-w) / 14.6)); }
  .dlf-eyebrow { margin-bottom: 16px; font-size: 11px; }
  .dlf-lead { margin-top: 16px; font-size: 15px; line-height: 1.55; }
  .dlf-telemetry { margin-top: 18px; }
  .dlf-telemetry__grid { grid-template-columns: repeat(2, auto); }
  .dlf-hero .dlf-actions { margin-top: 18px; gap: 6px 18px; }
  .dlf-cta { min-height: 44px; padding: 10px 20px; font-size: 15px; }
  .dlf-ghost { min-height: 44px; font-size: 15px; }
  .dlf-dexer-tag, .dlf-foot__tag { display: none; }
  .dlf-dexer-fallback { right: 50%; top: 9vh; transform: translateX(50%); width: 78vw; }
}
@media (max-width: 819px) and (min-width: 600px) {
  .dlf-lead { font-size: 17px; max-width: 52ch; }
}

@media (prefers-reduced-motion: reduce) {
  .dlf-hero > * { animation: none; opacity: 1; transform: none; }
  .dlf-hero > .dlf-orbit { opacity: 1; }
  .dlf-telemetry__bar span, .dlf-status i, .dlf-scrollhint i { animation: none; }
}

/* =========================================================================
 * v0.7 — Universo interactivo
 * ========================================================================= */

/* Cabecera: sonido + estado */
.dlf-top { pointer-events: none; }
.dlf-top > * { pointer-events: auto; }
.dlf-top__right { display: flex; align-items: center; gap: 10px; }
.dlf-sound {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 8, 26, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--faint);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.dlf-sound:hover, .dlf-sound[aria-pressed="true"] { color: var(--horizon); border-color: rgba(0, 222, 243, 0.45); }
.dlf-sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.dlf-sound__bars i { width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .3s; }
.dlf-sound[aria-pressed="true"] .dlf-sound__bars i { background: var(--pulse); animation: dlf-eq 0.9s ease-in-out infinite alternate; }
.dlf-sound[aria-pressed="true"] .dlf-sound__bars i:nth-child(2) { animation-delay: -.3s; }
.dlf-sound[aria-pressed="true"] .dlf-sound__bars i:nth-child(3) { animation-delay: -.6s; }
.dlf-sound[aria-pressed="true"] .dlf-sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes dlf-eq { from { height: 3px; } to { height: 12px; } }

/* Indicador para bajar */
.dlf-scrollhint {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 3vh, 34px);
  translate: -50% 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  opacity: calc(1 - var(--e, 0) * 4);
  transition: color .2s;
}
.dlf-scrollhint:hover { color: var(--horizon); }
.dlf-scrollhint i {
  width: 18px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 10px;
  position: relative;
}
.dlf-scrollhint i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 2px;
  height: 6px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--pulse);
  animation: dlf-wheel 1.8s ease-in-out infinite;
}
@keyframes dlf-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

/* Bitácora de misión */
.dlf-journey { position: relative; margin-top: 100vh; height: calc(var(--stations) * 90vh); pointer-events: none; }
.dlf-log {
  position: fixed;
  left: var(--gutter);
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: min(440px, 38vw);
  opacity: var(--jo, 0);
  visibility: hidden;
  pointer-events: none;
}
.is-journey .dlf-log { visibility: visible; pointer-events: auto; }
.dlf-log__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radar);
}
.dlf-log__kicker::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.dlf-log__title {
  margin-top: 12px;
  font: 500 clamp(22px, 2.1vw, 30px)/1.15 var(--font-title);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.dlf-log__title b { font-weight: 800; color: var(--pulse); }
.dlf-log__years {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 22px 0 18px;
  font: 400 10px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--faint);
}
.dlf-log__years li {
  flex: 1;
  padding-top: 9px;
  border-top: 2px solid rgba(180, 162, 239, 0.22);
  transition: color .3s, border-color .3s;
}
.dlf-log__years li.is-past { border-color: rgba(0, 222, 243, 0.45); }
.dlf-log__years li.is-on { color: var(--horizon); border-color: var(--pulse); }
.dlf-log__cards { position: relative; min-height: 420px; }
.dlf-log__card {
  position: absolute;
  inset: 0 0 auto 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(2, 8, 26, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.dlf-log__card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.dlf-log__card figure { aspect-ratio: 16 / 8; overflow: hidden; }
.dlf-log__card img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.9) contrast(1.05); }
.dlf-log__body { padding: 20px 22px 22px; }
.dlf-log__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 400 11px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--radar);
}
.dlf-log__card h2 { margin-top: 10px; font: 800 clamp(18px, 1.6vw, 24px)/1.2 var(--font-title); text-transform: uppercase; letter-spacing: 0.02em; }
.dlf-log__stat { margin-top: 12px; font-size: 15px; color: var(--muted); }
.dlf-log__stat b { font: 800 clamp(26px, 2.4vw, 34px)/1 var(--font-title); color: var(--orbit); margin-right: 6px; }
.dlf-log__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.dlf-log__card--next { border-color: rgba(0, 222, 243, 0.45); box-shadow: 0 0 60px -20px rgba(0, 222, 243, 0.5); }
.dlf-log__card--next h2 { font-size: clamp(22px, 2vw, 30px); }
.dlf-log__card--next .dlf-actions { margin-top: 20px; }

/* Panel de planeta */
.dlf-planet {
  position: fixed;
  right: var(--gutter);
  top: 50%;
  z-index: 5;
  width: min(400px, 34vw);
  padding: 28px 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(2, 8, 26, 0.74);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  translate: 0 -50%;
  animation: dlf-panel .6s var(--ease) both;
}
.dlf-planet[hidden] { display: none; }
@keyframes dlf-panel { from { opacity: 0; transform: translateX(24px); } }
.dlf-planet__close, .dlf-pass__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--horizon);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.dlf-planet__close:hover, .dlf-pass__close:hover { border-color: var(--pulse); color: var(--pulse); }
.dlf-planet__kicker { font: 400 12px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pulse); }
.dlf-planet__title { margin-top: 12px; font: 800 clamp(20px, 1.7vw, 26px)/1.2 var(--font-title); text-transform: uppercase; }
.dlf-planet__text { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.dlf-planet .dlf-actions { margin-top: 22px; }

/* Retícula del cursor sobre los planetas */
.dlf-reticle {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 4;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border: 1px solid rgba(0, 222, 243, 0.8);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s, transform .25s var(--ease);
}
.dlf-reticle::before, .dlf-reticle::after {
  content: "";
  position: absolute;
  background: var(--pulse);
}
.dlf-reticle::before { left: 50%; top: -6px; bottom: -6px; width: 1px; -webkit-mask: linear-gradient(#000 6px, transparent 6px calc(100% - 6px), #000 0); mask: linear-gradient(#000 6px, transparent 6px calc(100% - 6px), #000 0); }
.dlf-reticle::after { top: 50%; left: -6px; right: -6px; height: 1px; -webkit-mask: linear-gradient(90deg, #000 6px, transparent 6px calc(100% - 6px), #000 0); mask: linear-gradient(90deg, #000 6px, transparent 6px calc(100% - 6px), #000 0); }
.dlf-reticle.is-on { opacity: 1; transform: scale(1); }
.dlf-reticle span {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 14px;
  translate: 0 -50%;
  white-space: nowrap;
  font: 400 11px/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--horizon);
  text-shadow: 0 1px 8px rgba(2, 8, 26, 0.95);
}
.dlf-reticle span b { display: block; color: var(--pulse); font-weight: 400; }

/* Aviso flotante */
.dlf-toast {
  position: fixed;
  left: 50%;
  top: 22%;
  z-index: 6;
  translate: -50% 0;
  font: 800 clamp(22px, 3vw, 40px)/1 var(--font-title);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orbit);
  text-shadow: 0 0 18px rgba(255, 233, 55, 0.7), 0 0 50px rgba(255, 233, 55, 0.35);
  pointer-events: none;
  opacity: 0;
}
.dlf-toast.is-on { animation: dlf-toast 3.4s var(--ease) both; }
@keyframes dlf-toast { 0% { opacity: 0; transform: scale(0.8); } 15% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-20px); } }

/* Pase de abordaje */
.dlf-pass {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 32px 30px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(120% 80% at 100% 0%, rgba(71, 30, 151, 0.55), transparent 60%), #050b22;
  color: var(--horizon);
  font-family: var(--font-body);
  overflow: auto;
}
.dlf-pass::backdrop { background: rgba(2, 8, 26, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dlf-pass[open] { animation: dlf-panel .5s var(--ease) both; }
.dlf-pass__kicker { font: 400 11px/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--pulse); }
.dlf-pass h2 { margin-top: 12px; font: 800 26px/1.15 var(--font-title); text-transform: uppercase; }
.dlf-pass__lead { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.dlf-pass__form label { display: block; margin-top: 16px; font: 400 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.dlf-pass__form input[type="text"], .dlf-pass__form input[type="email"], .dlf-pass__form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 8, 26, 0.6);
  color: var(--horizon);
  font: 400 16px/1 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.dlf-pass__form select option { background: #050b22; }
.dlf-pass__form input:focus, .dlf-pass__form select:focus { outline: none; border-color: var(--pulse); box-shadow: 0 0 0 3px rgba(0, 222, 243, 0.18); }
.dlf-pass__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dlf-pass__check { display: flex !important; gap: 10px; align-items: flex-start; font: 400 12px/1.5 var(--font-body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--muted) !important; }
.dlf-pass__check input { margin-top: 3px; accent-color: var(--pulse); width: 16px; height: 16px; flex: none; }
.dlf-pass__error { min-height: 20px; margin-top: 12px; font-size: 14px; color: #ff8a98; }
.dlf-pass__form .dlf-cta { margin-top: 6px; }
.dlf-pass__result img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 60px -20px rgba(0, 222, 243, 0.4); }
.dlf-pass__result .dlf-actions { margin-top: 18px; }
.dlf-pass__note { margin-top: 12px; font-size: 13px; color: var(--faint); }
.dlf-pass .dlf-cta.is-busy { opacity: .7; pointer-events: none; }

/* Despegue */
.dlf-intro { display: none; }
.dlf-intro-on .dlf-hero > *, .dlf-intro-on .dlf-dexer-tag { animation-play-state: paused; }
.dlf-intro-on body { overflow: hidden; }
.dlf-intro-on .dlf-intro {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  transition: opacity .9s ease;
}
.dlf-intro__warp { position: absolute; inset: 0; width: 100%; height: 100%; }
.dlf-intro__label { position: relative; font: 400 12px/1 var(--font-mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--radar); }
.dlf-intro__count {
  position: relative;
  font: 800 clamp(64px, 12vw, 160px)/1 var(--font-title);
  letter-spacing: 0.04em;
  color: var(--horizon);
  text-shadow: 0 0 30px rgba(0, 222, 243, 0.55);
  font-variant-numeric: tabular-nums;
}
.dlf-intro__count.is-zero { color: var(--orbit); text-shadow: 0 0 40px rgba(255, 233, 55, 0.7); }
.dlf-intro__skip {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(20px, 4vh, 40px);
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.dlf-intro__skip:hover { color: var(--horizon); border-color: var(--pulse); }
.dlf-intro.is-warp .dlf-intro__label, .dlf-intro.is-warp .dlf-intro__count, .dlf-intro.is-warp .dlf-intro__skip { opacity: 0; transition: opacity .3s; }
.dlf-intro.is-out { opacity: 0; pointer-events: none; }

/* Respaldo estático (equipos muy limitados) */
.dlf-poster { display: none; }
.dlf-static .dlf-poster {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  z-index: 0;
}
.dlf-static #dlf-scene { display: none; }

/* Explorando un planeta: DEXER y el texto ceden protagonismo */
.is-exploring .dlf-scrollhint { pointer-events: none; }

@media (max-width: 819px) {
  .dlf-top__right { gap: 8px; }
  .dlf-sound { height: 34px; padding: 0 11px; }
  .dlf-sound__label { display: none; }
  .dlf-status { padding: 9px 13px; }
  .dlf-scrollhint { display: none; }
  .dlf-log {
    left: var(--gutter);
    right: var(--gutter);
    top: auto;
    bottom: 16px;
    translate: none;
    width: auto;
  }
  .dlf-log__head { display: none; }
  .dlf-log__years { margin: 0 0 12px; font-size: 9px; }
  .dlf-log__cards { min-height: 0; height: 47vh; }
  .dlf-log__card { inset: auto 0 0 0; }
  .dlf-log__card figure { aspect-ratio: 16 / 6; }
  .dlf-log__body { padding: 14px 16px 16px; }
  .dlf-log__text { font-size: 14px; }
  .dlf-planet {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
    width: auto;
    translate: none;
    padding: 22px 20px 18px;
  }
  .dlf-planet__text { font-size: 15px; }
  .dlf-pass { padding: 26px 20px 22px; }
  .dlf-pass h2 { font-size: 22px; }
}
@media (max-width: 819px) and (max-height: 700px) {
  .dlf-log__card figure { display: none; }
  .dlf-log__cards { height: 36vh; }
}

/* ================================================================ v0.9.1 */

/* Pantallas bajas (MacBook 13" y similares): la bitácora nunca queda bajo el logo */
@media (min-width: 820px) {
  .dlf-log { top: calc(50% + 40px); }
}
@media (min-width: 820px) and (max-height: 860px) {
  .dlf-log__title { font-size: clamp(20px, 1.8vw, 26px); }
  .dlf-log__years { margin: 14px 0 12px; }
  .dlf-log__cards { min-height: 340px; }
  .dlf-log__card figure { aspect-ratio: 16 / 6; }
  .dlf-log__body { padding: 16px 20px 18px; }
}
@media (min-width: 820px) and (max-height: 720px) {
  .dlf-log { top: calc(50% + 32px); }
  .dlf-log__cards { min-height: 280px; }
  .dlf-log__card figure { aspect-ratio: 16 / 4.4; }
}
@media (min-width: 820px) and (max-height: 600px) {
  .dlf-log__card figure { display: none; }
  .dlf-log__cards { min-height: 190px; }
}

/* Botón secundario del encabezado: lila del logo con el mismo efecto del botón principal */
.dlf-hero .dlf-actions .dlf-ghost {
  position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: 999px; background: var(--radar); color: var(--nav);
  font-family: var(--font-body); font-weight: 500; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 28px -10px rgba(180, 162, 239, 0.8);
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), background-color .25s, box-shadow .25s;
}
.dlf-hero .dlf-actions .dlf-ghost:hover, .dlf-hero .dlf-actions .dlf-ghost:focus-visible {
  transform: translateY(-2px); background: #C8BAF6; color: var(--nav); box-shadow: 0 12px 32px -10px rgba(180, 162, 239, 0.95);
}
.dlf-hero .dlf-actions .dlf-ghost::before {
  content: ""; position: absolute; left: -2px; top: 50%; width: 34px; height: 14px;
  transform: translate(-60%, -50%) scaleX(0); transform-origin: 100% 50%; border-radius: 50%;
  background: radial-gradient(ellipse at 100% 50%, #fff 0%, var(--radar) 30%, rgba(71, 30, 151, 0.7) 62%, transparent 75%);
  filter: blur(1px); opacity: 0; transition: opacity .2s, transform .25s; pointer-events: none;
}
.dlf-hero .dlf-actions .dlf-ghost:hover::before, .dlf-hero .dlf-actions .dlf-ghost:focus-visible::before {
  opacity: 1; transform: translate(-60%, -50%) scaleX(1); animation: dlf-flame .09s steps(2) infinite alternate;
}
.dlf-hero .dlf-actions .dlf-ghost span { transition: transform .25s; }
.dlf-hero .dlf-actions .dlf-ghost:hover span { transform: translateX(3px); }
