/* ORION · Centro de consultas — estilos (§2.13, v1.4 #1, v1.4 #7) */

:root {
  --fondo: #03040b;
  --vidrio: rgba(14, 18, 38, .55);
  --vidrio-fuerte: rgba(10, 14, 30, .82);
  --borde: rgba(150, 180, 255, .18);
  --texto: #e8ecff;
  --texto-suave: #9aa3c7;
  --acento: #7cc4ff;
  --acento-2: #b18cff;
  --peligro: #ff7a90;
  --hogar: #ffd9a0;
  --alto-barra: 64px;
  --radio: 14px;
  --sombra: 0 8px 32px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .03);
  --fuente: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--fondo);
  color: var(--texto);
  font: 15px/1.55 var(--fuente);
  -webkit-font-smoothing: antialiased;
}

body { overflow: hidden; }

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--acento); outline-offset: 2px; }
button:focus, input:focus, a:focus { outline: 2px solid var(--acento); outline-offset: 2px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

a { color: var(--acento); }

/* ---------- Vidrio (paneles) ---------- */
.vidrio,
#hud-superior,
#panel,
.tarjeta,
#ayuda-controles,
#tooltip,
#toast,
#banner-nivel,
.burbuja-consejo,
#error,
#aviso-archivo,
.boton {
  background: var(--vidrio);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .vidrio, #hud-superior, #panel, .tarjeta, #ayuda-controles, #tooltip, #toast,
  #banner-nivel, .burbuja-consejo, #error, #aviso-archivo, .boton {
    background: var(--vidrio-fuerte);
  }
}

/* Esquinas de acento (toque "juego") */
#panel::before, #panel::after,
.tarjeta::before, .tarjeta::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: .7;
}
#panel::before, .tarjeta::before { top: 6px; left: 6px; border-top: 2px solid var(--acento); border-left: 2px solid var(--acento); }
#panel::after, .tarjeta::after { bottom: 6px; right: 6px; border-bottom: 2px solid var(--acento); border-right: 2px solid var(--acento); }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--texto);
  transition: background .2s, border-color .2s;
}
.boton:hover { border-color: rgba(124, 196, 255, .55); background: rgba(30, 40, 80, .6); }
.boton--icono { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 18px; }

/* ---------- Escena ---------- */
#escena {
  position: fixed;
  inset: 0;
  outline: none;
  overflow: hidden;
}
#escena canvas { display: block; touch-action: none; }

/* ---------- Barra superior ---------- */
#hud-superior {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--alto-barra);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-radius: 0;
  border-width: 0 0 1px 0;
  z-index: 20;
}
.hud-marca { min-width: 0; flex: 1 1 0; }
#hud-titulo {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 8px rgba(124, 196, 255, .45);
}
#hud-subtitulo {
  margin: 0;
  font-size: 12px;
  color: var(--texto-suave);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#hud-subtitulo:empty { display: none; }
#btn-lista { flex: 0 0 auto; }

/* ---------- Buscador ---------- */
#buscador {
  position: relative;
  flex: 1 1 460px;
  max-width: 460px;
}
#buscador input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: rgba(5, 8, 20, .6) no-repeat 12px center / 16px 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa3c7' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
}
#buscador input::placeholder { color: var(--texto-suave); }
#resultados {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--vidrio-fuerte);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
  z-index: 30;
}
#resultados li {
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
#resultados li[aria-selected="true"], #resultados li:hover { background: rgba(124, 196, 255, .14); }
.resultado__titulo { display: block; font-size: 14px; }
.resultado__contexto { display: block; font-size: 12px; color: var(--texto-suave); }
.resultado--vacio { color: var(--texto-suave); cursor: default; }

/* ---------- Migas ---------- */
#migas {
  position: fixed;
  top: calc(var(--alto-barra) + 10px);
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  z-index: 15;
}
#migas-lista {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .9);
}
#migas-lista li { display: inline-flex; align-items: center; min-width: 0; }
#migas-lista li + li::before { content: "›"; margin: 0 6px; color: var(--texto-suave); }
#migas-lista button {
  border: 0;
  background: none;
  padding: 2px 4px;
  color: var(--acento);
  border-radius: 6px;
}
#migas-lista button:hover { text-decoration: underline; }
.migas__actual {
  max-width: 32ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--texto);
}

/* ---------- Banner de nivel ---------- */
#banner-nivel {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: .06em;
  text-align: center;
  max-width: min(640px, 92vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
  z-index: 12;
}
#banner-nivel:empty { display: none; }
#banner-nivel.banner--visible { opacity: 1; }
#banner-nivel.banner--hogar {
  color: var(--hogar);
  border-color: rgba(255, 217, 160, .45);
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 0 12px rgba(255, 200, 120, .55);
}

/* ---------- Botón "Ver foto" (tema hogar) ---------- */
#btn-foto-hogar {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  z-index: 13;
  border-color: rgba(255, 217, 160, .4);
  color: var(--hogar);
}

/* ---------- Ayuda de controles ---------- */
#ayuda-controles {
  position: fixed;
  left: 16px;
  bottom: 16px;
  max-width: 360px;
  padding: 10px 36px 10px 14px;
  font-size: 12px;
  color: var(--texto-suave);
  z-index: 11;
}
.ayuda-controles__cerrar {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--texto-suave);
  font-size: 16px;
  line-height: 1;
}
.ayuda-controles__cerrar:hover { color: var(--texto); }

/* ---------- Tooltip y toast ---------- */
#tooltip {
  position: fixed;
  left: 0;
  top: 0;
  padding: 6px 10px;
  font-size: 13px;
  max-width: 320px;
  pointer-events: none;
  border-radius: 10px;
  background: var(--vidrio-fuerte);
  z-index: 40;
}
.tooltip__detalle { display: block; font-size: 12px; color: var(--texto-suave); }

#toast {
  position: fixed;
  left: 50%;
  top: calc(var(--alto-barra) + 56px);
  transform: translateX(-50%);
  padding: 10px 16px;
  font-size: 14px;
  max-width: min(560px, 92vw);
  text-align: center;
  background: var(--vidrio-fuerte);
  z-index: 45;
}

/* ---------- Etiquetas CSS2D (v1.4 #1) ---------- */
.etiqueta {
  pointer-events: none;
  background: none;
  border: 0;
  padding: 0;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity .25s;
}
.etiqueta.etiqueta--visible { opacity: 1; }
.etiqueta__pill {
  --c: #7cc4ff;
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) translateY(-22px);
  pointer-events: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 20, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  border-color: color-mix(in srgb, var(--c) 50%, transparent);
  color: var(--texto);
  font-size: 13px;
  letter-spacing: .08em;
  font-variant: small-caps;
  text-shadow: 0 0 8px currentColor;
  transition: opacity .25s, background .2s, border-color .2s;
}
.etiqueta:not(.etiqueta--visible) .etiqueta__pill { pointer-events: none; }
.etiqueta--oculta .etiqueta__pill { opacity: 0; pointer-events: none; }
.etiqueta--hover .etiqueta__pill,
.etiqueta__pill:hover {
  background: rgba(20, 30, 60, .8);
  border-color: var(--c);
}
.etiqueta--tenue .etiqueta__pill { opacity: .5; }
.etiqueta--galaxia .etiqueta__pill {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-variant: normal;
}
.etiqueta--hogar .etiqueta__pill { color: var(--hogar); }
.etiqueta__detalle {
  font-size: 11px;
  color: var(--texto-suave);
  text-shadow: none;
  text-transform: none;
  font-weight: 400;
}
.etiqueta__detalle::before { content: "· "; }

/* ---------- Burbuja de consejo (decoraciones) ---------- */
.burbuja-consejo {
  max-width: 220px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.4;
  pointer-events: none;
  border-radius: 12px;
  opacity: 0;
  transition: opacity .2s;
  transform: translateY(-36px);
}
.burbuja-consejo.burbuja--visible { opacity: 1; }

/* ---------- Panel de solución ---------- */
#panel {
  position: fixed;
  top: var(--alto-barra);
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  padding: 20px 22px 24px;
  border-radius: var(--radio) 0 0 var(--radio);
  border-right-width: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 18;
}
#panel.panel--abierto { transform: translateX(0); }
.panel__cabecera { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.panel__cabecera-texto { flex: 1 1 auto; min-width: 0; }
.panel__contexto {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.panel__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--acento)); box-shadow: 0 0 8px var(--c, var(--acento)); }
#panel-titulo { margin: 4px 0 0; font-size: 22px; line-height: 1.25; outline: none; }
.panel__cerrar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--borde);
  border-radius: 50%;
  background: rgba(5, 8, 20, .5);
  font-size: 18px;
  line-height: 1;
}
.panel__resumen { margin: 0 0 16px; }
.panel__seccion-titulo {
  margin: 18px 0 8px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acento);
}
.panel__pasos { margin: 0; padding-left: 22px; }
.panel__pasos li { margin: 0 0 8px; }
.panel__nota {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--acento-2);
  border-radius: 8px;
  background: rgba(177, 140, 255, .08);
  font-size: 14px;
}
.panel__nota p { margin: 0 0 6px; }
.panel__nota p:last-child { margin-bottom: 0; }
.panel__pie { margin-top: 22px; }
.btn-ayuda {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124, 196, 255, .25), rgba(177, 140, 255, .25));
  border: 1px solid rgba(124, 196, 255, .5);
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
}
.btn-ayuda:hover { border-color: var(--acento); }

/* Video */
.panel__video, .video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 8px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1024;
}
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; }
.video-pendiente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 12px;
  text-align: center;
  color: var(--texto-suave);
  font-size: 13px;
  border: 1px dashed var(--borde);
  border-radius: 10px;
}
.video-pendiente svg { width: 44px; height: 44px; stroke: var(--texto-suave); fill: none; }
.video-pendiente strong { color: var(--texto); font-size: 14px; }
.video__enlace { display: inline-block; margin: 0 0 8px; font-size: 13px; }

/* Panel hogar (§2.13) */
.panel--hogar .panel__mensaje {
  margin: 8px 0 18px;
  color: var(--hogar);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 0 14px rgba(255, 190, 110, .5);
}
.panel--hogar #panel-titulo { color: var(--hogar); }

/* ---------- Tarjeta de información (§2.13, §2.27, v1.4 #7) ---------- */
.tarjeta {
  position: fixed;
  top: calc(var(--alto-barra) + 24px);
  left: 24px;
  width: min(340px, 92vw);
  max-height: 70vh;
  overflow-y: auto;
  padding: 16px 18px 18px;
  z-index: 25;
}
.tarjeta--hogar { border-color: var(--hogar); }
.tarjeta__cabecera { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
#tarjeta-galaxia-titulo, .tarjeta__titulo { flex: 1 1 auto; margin: 0; font-size: 18px; line-height: 1.3; }
.tarjeta--hogar #tarjeta-galaxia-titulo { color: var(--hogar); }
.tarjeta__cerrar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--borde);
  border-radius: 50%;
  background: rgba(5, 8, 20, .5);
  font-size: 16px;
  line-height: 1;
}
.tarjeta-foto { position: relative; margin: 0 0 12px; }
.tarjeta-foto img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #0b1024;
}
.tarjeta-foto figcaption { margin-top: 6px; font-size: 11px; color: var(--texto-suave); }
.tarjeta-foto figcaption a { color: var(--acento); }
.tarjeta-foto--sin-imagen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  border-radius: 10px;
  background: #0b1024;
  color: var(--texto-suave);
  font-size: 13px;
  text-align: center;
}
.tarjeta__insignia {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(5, 8, 20, .75);
  border: 1px solid var(--hogar);
  color: var(--hogar);
  font-size: 11px;
  letter-spacing: .06em;
}
.tarjeta__conmutador { display: flex; gap: 6px; margin: 0 0 10px; }
.tarjeta__conmutador button {
  flex: 1 1 0;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--borde);
  background: rgba(5, 8, 20, .5);
  font-size: 12px;
}
.tarjeta__conmutador button[aria-pressed="true"] { border-color: var(--hogar); color: var(--hogar); }
.tarjeta__nota { margin: 0 0 10px; font-size: 13px; color: var(--hogar); }
.tarjeta__lineas { margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; }
.tarjeta__lineas li { margin: 0 0 3px; }
.tarjeta__etiqueta { color: var(--texto-suave); }
.tarjeta__dato-titulo {
  margin: 10px 0 4px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--acento);
}
.tarjeta__dato { margin: 0; font-size: 14px; }

/* ---------- Intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  pointer-events: auto;
  z-index: 50;
}
.intro__titulo {
  margin: 0;
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: .12em;
  text-shadow: 0 0 24px rgba(124, 196, 255, .6);
  animation: aparecer 1.2s ease both;
}
.intro__subtitulo { margin: 0; color: var(--texto-suave); animation: aparecer 1.2s .4s ease both; }
.intro__saltar { position: absolute; bottom: 24px; font-size: 12px; color: var(--texto-suave); }
@keyframes aparecer { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Vista de lista (§2.15) ---------- */
#lista {
  position: fixed;
  top: var(--alto-barra);
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 56px 20px 40px;
  background: radial-gradient(ellipse at top, #0c1230 0%, var(--fondo) 70%);
  z-index: 5;
}
.lista__contenido { max-width: 860px; margin: 0 auto; }
.lista__aviso {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 122, 144, .4);
  background: rgba(255, 122, 144, .08);
}
.lista__acciones { margin: 0 0 18px; }
.lista__seccion {
  --c: var(--acento);
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--c);
  border-radius: 12px;
  background: var(--vidrio);
  border-top: 1px solid var(--borde);
  border-right: 1px solid var(--borde);
  border-bottom: 1px solid var(--borde);
}
.lista__seccion h2 { margin: 0; font-size: 18px; color: var(--c); letter-spacing: .04em; }
.lista__lema { margin: 2px 0 0; font-size: 13px; color: var(--texto-suave); }
.lista__seccion details { margin-top: 10px; }
.lista__seccion summary { cursor: pointer; font-weight: 600; }
.lista__problemas { margin: 6px 0 0; padding: 0 0 0 4px; list-style: none; }
.lista__problema {
  display: block;
  width: 100%;
  margin: 4px 0;
  padding: 6px 10px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
}
.lista__problema:hover, .lista__problema[aria-current="true"] { border-color: var(--borde); background: rgba(124, 196, 255, .08); }
body[data-modo="lista"] #escena,
body[data-modo="lista"] #ayuda-controles,
body[data-modo="lista"] #banner-nivel,
body[data-modo="lista"] #btn-foto-hogar,
body[data-modo="lista"] #tarjeta-galaxia { display: none !important; }

/* ---------- Pantallas de error y aviso file:// (§2.16) ---------- */
#error,
#aviso-archivo {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  padding: 24px 26px;
  font-size: 16px;
  white-space: pre-line;
  background: var(--vidrio-fuerte);
  z-index: 60;
}
#error { border-color: rgba(255, 122, 144, .45); }
.error__titulo { margin: 0 0 10px; font-size: 20px; color: var(--peligro); }
.error__texto { margin: 0 0 12px; }
.error__detalle {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .35);
  font: 13px/1.5 Consolas, "Cascadia Mono", monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.error__lista { margin: 0 0 12px; padding-left: 20px; font: 13px/1.5 Consolas, "Cascadia Mono", monospace; }
.error__consejo { margin: 0 0 14px; font-size: 14px; color: var(--texto-suave); }
body[data-estado="error"] #escena,
body[data-estado="error"] #ayuda-controles,
body[data-estado="error"] #panel,
body[data-estado="error"] #lista { display: none !important; }
body[data-estado="archivo"] > *:not(#aviso-archivo) { display: none !important; }

noscript {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--vidrio-fuerte);
}

/* ---------- Móvil (< 700 px): un único punto de corte (§2.13, §2.10) ---------- */
@media (max-width: 699.98px) {
  :root { --alto-barra: 108px; }
  #hud-superior {
    flex-wrap: wrap;
    align-content: center;
    gap: 6px 10px;
    padding: 8px 12px;
  }
  .hud-marca { flex: 1 1 0; }
  #hud-titulo { font-size: 16px; }
  #buscador { order: 3; flex: 1 1 100%; max-width: none; }
  #btn-lista { padding: 6px 12px; font-size: 12px; }
  #migas { left: 12px; max-width: calc(100vw - 24px); }
  #panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 62vh;
    border-radius: 16px 16px 0 0;
    border-right-width: 1px;
    border-bottom-width: 0;
    transform: translateY(100%);
  }
  #panel.panel--abierto { transform: translateY(0); }
  #ayuda-controles {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #banner-nivel { bottom: 64px; }
  #btn-foto-hogar { bottom: 12px; }
  .tarjeta {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 45vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0;
  }
  /* Galaxias más juntas en vertical: nombre y detalle en dos líneas para que no se pisen. */
  .etiqueta--galaxia .etiqueta__pill {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 3px 9px;
    font-size: 12px;
    line-height: 1.25;
  }
  .etiqueta--galaxia .etiqueta__detalle { font-size: 10px; }
  .etiqueta--galaxia .etiqueta__detalle::before { content: none; }
  .tarjeta-foto img { max-height: 18vh; object-fit: cover; }
  .tarjeta-foto--sin-imagen { max-height: 18vh; }
  #lista { padding: 52px 12px 32px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
  }
}
