  :root { --blanco: #f4f5f6; --texto: #e2e5e8; --suave: #adb3b9; --tenue: #858c92; --linea: rgba(255, 255, 255, 0.14); --fondo: rgba(10, 11, 13, 0.9); --rojo: #ff7a73; --azul: #8fb0cf; }
  * { box-sizing: border-box; }
  html, body { margin: 0; height: 100%; overflow: hidden; color: var(--texto); background: #050607;
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif; font-weight: 400; }
  html { -webkit-text-size-adjust: 100%; }
  body { -webkit-tap-highlight-color: transparent; }
  button { touch-action: manipulation; font-family: inherit; color: inherit; cursor: pointer; }
  #globo { position: absolute; inset: 0; z-index: 1; }
  #linea { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
  .oculta { display: none !important; }

  :root { --sombra: 0 0 2px #000, 0 0 6px #000, 0 1px 12px #000, 0 0 24px rgba(0,0,0,0.9); }
  #superior { position: absolute; top: 0; left: 0; right: 0; height: 64px; z-index: 8; display: flex; align-items: center; padding: 0 28px; background: linear-gradient(180deg, rgba(5,6,7,0.85), rgba(5,6,7,0)); pointer-events: none; }
  .marca-orbis { font-size: 21px; letter-spacing: 9px; color: var(--blanco); font-weight: 600; text-shadow: var(--sombra); }
  #barra { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 9; height: 54px; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
  #tri { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 46px; height: 30px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--suave); opacity: 0.55; pointer-events: auto; transition: opacity .25s, color .25s; filter: drop-shadow(0 0 4px #000); }
  #tri:hover, #tri:focus-visible { opacity: 1; color: var(--blanco); }
  #barra.abierto #tri { opacity: 0; pointer-events: none; }
  #menu { display: flex; align-items: center; gap: 4px; padding: 4px 8px; margin-top: 8px; background: rgba(10,11,13,0.82); border: 1px solid var(--linea); border-radius: 26px; opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .22s, transform .22s; white-space: nowrap; }
  #barra.abierto #menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .item { background: none; border: 0; padding: 10px 16px; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--suave); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
  .item:hover { color: var(--blanco); }
  .item.activa { color: var(--blanco); border-bottom-color: var(--blanco); }
  .item-ayuda { width: 34px; height: 34px; padding: 0; margin-left: 4px; border: 1px solid var(--linea); border-radius: 50%; font-size: 15px; letter-spacing: 0; text-transform: none; display: flex; align-items: center; justify-content: center; }
  .item-ayuda.activa { border-bottom-color: var(--blanco); border-color: var(--blanco); }
  #fueravista { position: absolute; z-index: 6; top: 72px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 18px; background: rgba(10,11,13,0.78); border: 1px solid var(--linea); border-radius: 22px; color: var(--blanco); animation: entrar .2s ease-out; }
  #fueravista span { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; text-shadow: var(--sombra); }
  #fueravista small { font-size: 10px; letter-spacing: 1.5px; color: var(--suave); }
  #fueravista:hover { border-color: rgba(255,255,255,0.5); }
  #zoom { position: absolute; z-index: 6; left: 28px; bottom: 80px; display: flex; flex-direction: column; border: 1px solid var(--linea); border-radius: 20px; background: rgba(10,11,13,0.55); overflow: hidden; }
  #zoom button { position: relative; width: 40px; height: 38px; background: none; border: 0; color: var(--suave); transition: color .2s, background .2s; }
  #zoom button + button { border-top: 1px solid var(--linea); }
  #zoom button:hover { color: var(--blanco); background: rgba(255,255,255,0.06); }
  #zoom span { position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; }
  #zoom #zmas span:last-child { transform: rotate(90deg); }

  #ventana { position: absolute; z-index: 7; background: rgba(12,13,15,0.95); border: 1px solid var(--linea); max-height: calc(100vh - 150px); overflow: auto; padding: 22px 24px 24px; animation: entrar .18s ease-out; }
  #ventana.menu { top: 68px; left: 50%; transform: translateX(-50%); width: 520px; max-width: calc(100vw - 40px); }
  #ventana.ancho { width: 860px; }
  @keyframes entrar { from { opacity: 0; margin-top: 8px; } to { opacity: 1; margin-top: 0; } }
  .vtit { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
  .vtit h2 { margin: 0; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--blanco); font-weight: 600; }
  .cerrar { background: none; border: 0; font-size: 18px; line-height: 1; color: var(--suave); padding: 2px 6px; }
  .cerrar:hover { color: var(--blanco); }
  #ventana, #ficha, .pestanas, #ficha2 { scrollbar-width: none; -ms-overflow-style: none; }
  #ventana::-webkit-scrollbar, #ficha::-webkit-scrollbar, .pestanas::-webkit-scrollbar, #ficha2::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .texto { font-size: 14px; line-height: 1.65; color: var(--texto); margin: 0 0 14px; }
  .sub { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--suave); margin: 20px 0 10px; }
  .formula { font-size: 15px; letter-spacing: 0.5px; color: var(--blanco); padding: 12px 14px; border: 1px solid var(--linea); margin: 0 0 16px; }
  .pasos { margin: 0 0 6px; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--texto); }
  table { width: 100%; border-collapse: collapse; font-size: 13px; }
  th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--suave); padding: 6px 8px 8px 0; border-bottom: 1px solid var(--linea); }
  td { padding: 9px 8px 9px 0; border-bottom: 1px solid rgba(255,255,255,0.07); color: var(--texto); vertical-align: top; }
  td.n { color: var(--blanco); }
  .nota { font-size: 12px; line-height: 1.6; color: var(--tenue); margin-top: 14px; }

  .pestanas { display: flex; gap: 4px; margin: -4px 0 18px; border-bottom: 1px solid var(--linea); overflow-x: auto; }
  .pestana { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--suave); white-space: nowrap; transition: color .2s; }
  .pestana:hover { color: var(--blanco); }
  .pestana.activa { color: var(--blanco); border-bottom-color: var(--blanco); }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
  .chip { font-size: 12px; letter-spacing: 1px; padding: 6px 12px; border: 1px solid var(--linea); background: none; color: var(--suave); border-radius: 14px; transition: all .2s; }
  .chip:hover { color: var(--blanco); border-color: rgba(255,255,255,0.45); }
  .chip.activa { color: #0a0b0c; background: var(--blanco); border-color: var(--blanco); }
  .leyenda { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 12px; color: var(--suave); margin: 12px 0 8px; }
  .leyenda span { display: flex; align-items: center; gap: 8px; }
  .criterio + .criterio { margin-top: -6px; }
  .criterio { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid var(--linea); background: rgba(255,255,255,0.04); }
  .criterio .etq { display: block; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tenue); margin-bottom: 3px; }
  .criterio b { display: block; font-size: 14px; color: var(--blanco); font-weight: 600; }
  .criterio .det { display: block; font-size: 12px; color: var(--suave); margin-top: 2px; }
  .cambiar { background: transparent; border: 1px solid var(--linea); color: var(--texto); font: inherit; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
  .cambiar:hover { border-color: var(--blanco); color: var(--blanco); }
  .grupo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .grupo .etq { width: 68px; flex: none; font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--tenue); }
  .grupo .chips { margin-bottom: 0; gap: 5px; }
  .grupo .chip { padding: 6px 10px; }
  .chip .punto { width: 8px; height: 8px; margin-right: 7px; vertical-align: 0; }
  .encabezado { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--tenue); margin: 16px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--linea); }
  .contexto { font-size: 12px; color: var(--tenue); margin-bottom: 4px; }
  .fila { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-top: 1px solid rgba(255,255,255,0.08); padding: 11px 6px; text-align: left; transition: background .15s; }
  .fila:hover { background: rgba(255,255,255,0.05); }
  .fila .rango { width: 20px; font-size: 12px; color: var(--tenue); }
  .fila .cuerpo { flex: 1; min-width: 0; }
  .fila .nombre { display: block; font-size: 14px; color: var(--texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fila:hover .nombre { color: var(--blanco); }
  .fila .pais { display: block; font-size: 11px; letter-spacing: 1.5px; color: var(--tenue); margin-top: 2px; text-transform: uppercase; }
  .fila .num { font-size: 16px; color: var(--blanco); font-weight: 500; }
  .punto { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
  .punto.marte { background: var(--rojo); }
  .punto.luna { background: var(--azul); }

  .personal { margin-top: 16px; padding: 16px 18px 8px; border: 1px solid var(--linea); background: rgba(255,255,255,0.02); transition: border-color .2s; }
  .personal.activa { border-color: var(--blanco); background: rgba(255,255,255,0.07); }
  .personal .ptop { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
  .personal h3 { margin: 0 0 4px; font-size: 14px; letter-spacing: 1px; color: var(--blanco); font-weight: 600; }
  .personal p { margin: 0; font-size: 12.5px; color: var(--suave); }
  .igualar { background: transparent; border: 1px solid var(--linea); color: var(--texto); font: inherit; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 12px; cursor: pointer; white-space: nowrap; }
  .igualar:hover { border-color: var(--blanco); color: var(--blanco); }
  .deslizador { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 14px; margin-bottom: 10px; font-size: 12.5px; color: var(--texto); }
  .deslizador .dp { text-align: right; color: var(--blanco); }
  .deslizador input { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: rgba(255,255,255,0.25); outline: none; cursor: pointer; }
  .deslizador input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--blanco); border: 0; }
  .deslizador input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--blanco); border: 0; }
  .personal .pie { display: flex; justify-content: flex-end; margin: 4px 0 10px; }
  .actualizar { background: var(--blanco); color: #0a0b0c; border: 0; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 10px 26px; cursor: pointer; transition: opacity .2s; }
  .actualizar:hover { opacity: .85; }
  .tarjetas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .tarjetas.cuatro { grid-template-columns: repeat(4, 1fr); }
  .tarjeta { display: flex; flex-direction: column; text-align: left; background: rgba(255,255,255,0.03); border: 1px solid var(--linea); padding: 14px 14px 16px; transition: all .2s; }
  .tarjeta:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.4); }
  .tarjeta.activa { border-color: var(--blanco); background: rgba(255,255,255,0.09); }
  .tarjeta .dibujo { height: 84px; display: flex; align-items: center; justify-content: center; color: var(--blanco); margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .tarjeta .dibujo svg { width: 100%; height: 72px; }
  .tarjeta .dibujo img { width: 100%; height: 84px; object-fit: cover; }
  .tarjeta h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: 1px; color: var(--blanco); font-weight: 600; }
  .tarjeta p { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--texto); }
  .tarjeta .pesa { font-size: 11px; letter-spacing: 1px; color: var(--suave); line-height: 1.6; margin-top: auto; text-transform: uppercase; }
  .tarjeta .uso { font-size: 12px; line-height: 1.5; color: var(--tenue); margin: 0 0 10px; }

  #ficha, #ficha2 { position: absolute; z-index: 6; right: 28px; top: 84px; width: 340px; max-height: calc(100vh - 150px); overflow: auto; background: rgba(12,13,15,0.95); contain: layout paint; border: 1px solid var(--linea); padding: 20px 22px 22px; animation: entrar .2s ease-out; }
  #ficha .cab, #ficha2 .cab { display: flex; justify-content: space-between; align-items: flex-start; }
  #ficha .tit, #ficha2 .tit { font-size: 22px; color: var(--blanco); line-height: 1.2; font-weight: 500; margin: 0 0 6px; }
  #ficha .meta, #ficha2 .meta { font-size: 11px; letter-spacing: 2px; color: var(--suave); text-transform: uppercase; margin-bottom: 16px; }
  .foto { position: relative; margin: 0 0 12px; aspect-ratio: 2 / 1; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid var(--linea); }
  .foto.sinfoto { display: none; }
  .foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 8px 5px; font-size: 9.5px; letter-spacing: 0.5px; color: rgba(255,255,255,0.78); background: linear-gradient(transparent, rgba(0,0,0,0.72)); }
  #galeria { position: absolute; z-index: 6; left: 28px; top: 84px; width: 340px; max-height: calc(100vh - 150px); overflow: auto; background: rgba(12,13,15,0.95); border: 1px solid var(--linea); padding: 18px 20px 20px; animation: entrar .2s ease-out; scrollbar-width: none; }
  #galeria::-webkit-scrollbar { display: none; }
  .gtit { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--suave); margin-bottom: 12px; }
  .gprincipal { position: relative; margin: 0 0 10px; aspect-ratio: 16 / 10; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid var(--linea); }
  .gprincipal img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .gprincipal figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; font-size: 10px; letter-spacing: 0.4px; color: rgba(255,255,255,0.8); background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
  .gprincipal figcaption b { color: #fff; font-weight: 600; }
  .gminis { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: 8px; }
  .gmini { position: relative; padding: 0; aspect-ratio: 3 / 2; overflow: hidden; background: rgba(255,255,255,0.05); border: 1px solid var(--linea); opacity: 0.6; transition: opacity .2s, border-color .2s; }
  .gmini:hover { opacity: 0.9; }
  .gmini.activa { opacity: 1; border-color: var(--blanco); }
  .gmini img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .gmini span { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 4px 3px; font-size: 9.5px; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.75)); }
  .foto[data-accion], .gprincipal { cursor: zoom-in; }
  .foto::after, .gprincipal::after { content: ""; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6'%3E%3Cpath d='M9.5 2H14v4.5M6.5 14H2V9.5M14 2L9 7M2 14l5-5'/%3E%3C/svg%3E") center / 13px no-repeat; pointer-events: none; }
  #visor { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 56px 84px 40px; background: rgba(3,4,5,0.95); animation: aparecer .2s ease-out; }
  @keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
  #visor figure { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
  #vimg { display: block; width: calc(100vw - 168px); height: calc(100vh - 150px); object-fit: contain; transition: opacity .2s; }
  .vcarga { position: absolute; top: 45%; left: 0; right: 0; text-align: center; font-size: 14px; letter-spacing: 1px; color: var(--suave); pointer-events: none; }
  #vpie { margin-top: 14px; font-size: 16px; line-height: 1.5; letter-spacing: 0.4px; color: rgba(255,255,255,0.85); text-align: center; }
  #vpie b { color: #fff; font-weight: 600; }
  .vcerrar { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linea); background: rgba(255,255,255,0.06); color: #fff; font-size: 22px; line-height: 1; }
  .vant, .vsig { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--linea); background: rgba(255,255,255,0.06); color: #fff; font-size: 34px; line-height: 1; padding: 0 0 4px; }
  .vant { left: 16px; }
  .vsig { right: 16px; }
  .vcerrar:hover, .vant:hover, .vsig:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }
  .puntaje { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); margin-bottom: 12px; }
  .puntaje svg { width: 74px; height: 74px; flex: none; }
  .puntaje .num { font-size: 24px; fill: var(--blanco); font-weight: 500; font-family: inherit; }
  .puntaje .t1 { font-size: 11px; letter-spacing: 2px; color: var(--suave); }
  .puntaje .t2 { font-size: 14px; color: var(--blanco); margin-top: 5px; }
  .acc { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 12px 2px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--texto); transition: color .2s; }
  .acc:hover { color: var(--blanco); }
  .acc svg { transition: transform .2s; }
  .acc.abierto svg { transform: rotate(180deg); }
  .acc-cuerpo { display: none; padding: 12px 2px 6px; font-size: 14px; line-height: 1.6; color: var(--texto); }
  .acc-cuerpo.abierto { display: block; }
  .var { margin-bottom: 13px; }
  .var .f2 { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: 1.5px; color: var(--suave); text-transform: uppercase; }
  .var .f2 b { color: var(--texto); font-weight: 400; letter-spacing: 0.3px; text-transform: none; font-size: 12.5px; }
  .var .tira { height: 2px; background: rgba(255,255,255,0.14); margin: 7px 0 4px; position: relative; }
  .var .tira div { height: 2px; background: var(--blanco); position: absolute; left: 0; top: 0; }
  .var .pc { font-size: 11px; letter-spacing: 1.5px; color: var(--tenue); }
  .datosfila { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; color: var(--texto); }
  .datosfila span:first-child { color: var(--suave); letter-spacing: 1.5px; font-size: 11px; text-transform: uppercase; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; }
  .tag { font-size: 11px; letter-spacing: 1.5px; padding: 5px 11px; border: 1px solid var(--linea); color: var(--suave); border-radius: 14px; }
  .tag.on { color: #0a0b0c; background: var(--blanco); border-color: var(--blanco); }
  .boton { margin-top: 18px; width: 100%; background: none; border: 1px solid var(--linea); padding: 11px 14px; letter-spacing: 3px; font-size: 11px; color: var(--texto); transition: all .2s; }
  .boton:hover { border-color: var(--blanco); color: var(--blanco); }

  #rotacion { position: absolute; z-index: 6; left: 28px; bottom: 28px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--linea); background: rgba(10,11,13,0.55); color: var(--suave); display: flex; align-items: center; justify-content: center; transition: all .2s; }
  #rotacion:hover { color: var(--blanco); border-color: rgba(255,255,255,0.5); }

  .bajar { position: fixed; z-index: 8; height: 54px; display: none; align-items: flex-end; justify-content: center; padding: 0 0 6px; border: 0; background: linear-gradient(0deg, rgba(12,13,15,0.98) 25%, rgba(12,13,15,0)); color: var(--suave); }
  .bajar:hover, .bajar:focus-visible { color: var(--blanco); }
  .bajar svg { animation: rebote 1.6s ease-in-out infinite; }
  @keyframes rebote { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
  #pista { position: absolute; z-index: 5; left: 50%; bottom: 56px; transform: translateX(-50%); font-size: 12px; letter-spacing: 1.5px; color: var(--texto); transition: opacity .8s; text-shadow: var(--sombra); white-space: nowrap; }
  #pista.fuera { opacity: 0; pointer-events: none; }
  #alt { position: absolute; bottom: 14px; right: 28px; font-size: 10px; letter-spacing: 2px; color: var(--suave); text-shadow: var(--sombra); z-index: 6; white-space: nowrap; }
  #aviso { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 10px; letter-spacing: 3px; color: var(--suave); text-shadow: var(--sombra); z-index: 6; white-space: nowrap; }

  .marca { position: relative; border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%); transition: width .25s, height .25s; }
  .marca::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
  .marca.marte { background: var(--rojo); box-shadow: 0 0 0 2px rgba(255,122,115,0.22), 0 0 0 1px rgba(0,0,0,0.5); }
  .marca.luna { background: var(--azul); box-shadow: 0 0 0 2px rgba(143,176,207,0.25), 0 0 0 1px rgba(0,0,0,0.5); }
  .marca::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); white-space: nowrap; background: rgba(10,11,13,0.95); border: 1px solid var(--linea); padding: 6px 10px; font-size: 12px; color: var(--blanco); opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 10; }
  .marca:hover::after { opacity: 1; }
  .marca.sel { box-shadow: 0 0 0 2px #000, 0 0 0 3.5px #fff; }
  .marca.sel::before { border: 1px solid var(--rojo); animation: onda 1.8s infinite; }
  .marca.luna.sel::before { border-color: var(--azul); }
  @keyframes onda { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }

  @media (max-width: 1100px) {
    .tarjetas { grid-template-columns: repeat(3, 1fr); }
    .tarjetas.cuatro { grid-template-columns: repeat(2, 1fr); }
    .item { padding: 10px 10px; letter-spacing: 2px; }
  }

  @media (max-width: 900px) {
    #superior { padding: 0 18px; }
    .item { padding: 10px 8px; letter-spacing: 1.6px; font-size: 11px; }
    #ventana.menu { width: min(640px, calc(100vw - 24px)); }
    #ventana.ancho { width: min(860px, calc(100vw - 24px)); }
    #ficha, #ficha2 { width: 300px; right: 12px; }
    #galeria { width: 280px; left: 12px; }
    #alt { right: 16px; }
    #rotacion { left: 16px; }
  }

  @media (max-width: 700px) {
    #superior { height: 56px; }
    .marca-orbis { font-size: 17px; letter-spacing: 7px; }
    #menu { flex-direction: column; align-items: stretch; gap: 0; min-width: 230px; padding: 6px; border-radius: 14px; margin-top: 4px; }
    #barra { top: 4px; left: auto; right: 6px; transform: none; width: 56px; }
    #menu { position: absolute; top: 46px; right: 0; background: rgba(10,11,13,0.97); margin-top: 0; }
    .item { text-align: left; padding: 14px 16px; letter-spacing: 2px; font-size: 12px; }
    .item-ayuda { width: 44px; height: 44px; margin: 4px 0 0 auto; }
    #zoom { left: auto; right: 16px; bottom: calc(26px + env(safe-area-inset-bottom)); }
    body.con-ficha #zoom { display: none; }
    #fueravista { top: 64px; }
    #ventana, #ventana.menu, #ventana.ancho { top: 56px; left: 0; right: 0; bottom: 0; transform: none; width: 100%; max-width: none; max-height: none; border-width: 1px 0 0 0; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
    .texto, .pasos { font-size: 15px; }
    table { font-size: 12px; }
    .tarjetas, .tarjetas.cuatro { grid-template-columns: 1fr; gap: 10px; }
    .tarjeta { display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; padding: 12px; }
    .tarjeta .dibujo { grid-row: 1 / span 4; height: auto; margin: 0; padding-right: 12px; border-bottom: 0; border-right: 1px solid rgba(255,255,255,0.08); }
    .tarjeta .dibujo svg { height: 52px; }
    .tarjeta .dibujo img { height: 72px; }
    .tarjeta p { margin-bottom: 6px; }
    .tarjeta .pesa { margin-top: 2px; }
    .criterio { flex-direction: column; align-items: stretch; }
    .cambiar, .igualar { padding: 12px 14px; }
    .grupo { flex-direction: column; align-items: flex-start; gap: 6px; }
    .grupo .chip, .chip { padding: 9px 13px; font-size: 13px; }
    .fila { padding: 14px 6px; }
    .personal { padding: 14px 14px 6px; }
    .personal .ptop { flex-direction: column; gap: 10px; }
    .deslizador { grid-template-columns: 88px 1fr 38px; gap: 10px; }
    .personal .pie { display: block; }
    .actualizar { width: 100%; padding: 15px; }
    #ficha, #ficha2 { left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 46vh; height: 46dvh; max-height: none; border-width: 1px 0 0 0; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
    #ficha .tit, #ficha2 .tit { font-size: 19px; }
    #ficha .meta, #ficha2 .meta { margin-bottom: 12px; }
    .foto { aspect-ratio: 3 / 1; }
    #galeria { left: 10px; right: 10px; top: 62px; width: auto; max-height: none; overflow: visible; padding: 8px 10px 10px; }
    .gtit { font-size: 10px; margin-bottom: 6px; }
    .gprincipal { display: none; }
    .gminis { display: flex; overflow-x: auto; scrollbar-width: none; }
    .gmini { flex: 0 0 96px; aspect-ratio: 3 / 2; }
    #visor { padding: 60px 8px 96px; }
    #vimg { width: calc(100vw - 16px); height: calc(100vh - 220px); height: calc(100dvh - 220px); }
    #vpie { font-size: 14px; }
    .vant, .vsig { top: auto; bottom: 22px; transform: none; }
    .vant { left: calc(50% - 70px); }
    .vsig { right: calc(50% - 70px); }
    .puntaje { padding: 10px 0; }
    .puntaje svg { width: 62px; height: 62px; }
    .acc { padding: 15px 2px; }
    body.con-ficha #globo { bottom: 46vh; bottom: 46dvh; }
    #linea { display: none; }
    body.con-ficha #rotacion, body.con-ficha #pista, body.con-ficha #alt, body.con-ficha #aviso { display: none; }
    #rotacion { left: 16px; bottom: calc(26px + env(safe-area-inset-bottom)); }
    #pista { bottom: calc(86px + env(safe-area-inset-bottom)); width: 84%; text-align: center; white-space: normal; font-size: 12px; }
    #alt { display: none; }
    #aviso { bottom: calc(10px + env(safe-area-inset-bottom)); font-size: 9px; letter-spacing: 2px; }
  }

  @media (max-height: 520px) and (min-width: 701px) {
    #superior { height: 52px; }
    #ventana { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); }
    #ventana.menu { top: 56px; }
    #ficha, #ficha2 { top: 58px; right: 12px; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
    #galeria { top: 58px; left: 12px; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); }
    .tarjetas { grid-template-columns: repeat(3, 1fr); }
    .tarjetas.cuatro { grid-template-columns: repeat(2, 1fr); }
    #pista { display: none; }
    #rotacion { bottom: 12px; }
    #zoom { bottom: 64px; }
    body.con-ficha #alt, body.con-ficha #aviso { display: none; }
  }

  @media (pointer: coarse) {
    .marca::before { inset: -13px; }
    .marca:hover::after { opacity: 0; }
    .cerrar { padding: 10px 12px; font-size: 22px; }
    .chip, .acc, .item { min-height: 44px; }
    #rotacion { width: 46px; height: 46px; }
    #zoom button { width: 46px; height: 44px; }
    #tri { width: 56px; height: 40px; top: 6px; }
    .deslizador { min-height: 44px; }
    .deslizador input { height: 4px; }
    .deslizador input::-webkit-slider-thumb { width: 26px; height: 26px; }
    .deslizador input::-moz-range-thumb { width: 26px; height: 26px; }
  }

  .ver-sim { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; margin-top: 12px; padding: 10px 12px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.35); color: var(--blanco); transition: background .2s, border-color .2s; }
  .ver-sim span { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; }
  .ver-sim small { font-size: 11px; color: var(--suave); letter-spacing: 0.5px; }
  .ver-sim:hover { background: rgba(255,255,255,0.14); border-color: var(--blanco); }

  #cuerpos { position: absolute; z-index: 6; left: 80px; bottom: 28px; display: flex; gap: 8px; }
  #cuerpos button { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--linea); background: rgba(10,11,13,0.55); display: flex; align-items: center; justify-content: center; transition: border-color .2s, transform .2s; }
  #cuerpos button:hover { border-color: rgba(255,255,255,0.5); transform: scale(1.06); }
  #cuerpos button.activa { border-color: var(--blanco); }
  .esfera { display: block; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset -3px -3px 6px rgba(0,0,0,0.55); }
  .esfera.tierra { background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.45), rgba(255,255,255,0) 35%), radial-gradient(circle at 62% 60%, #4f9a5b 0 16%, transparent 17%), radial-gradient(circle at 36% 42%, #5aa365 0 13%, transparent 14%), radial-gradient(circle at 50% 50%, #2c78c2, #123f75 75%); }
  .esfera.marte { background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.35), rgba(255,255,255,0) 35%), radial-gradient(circle at 60% 58%, #7a3a22 0 14%, transparent 15%), radial-gradient(circle at 36% 66%, #8c4529 0 9%, transparent 10%), radial-gradient(circle at 50% 12%, #f3eee9 0 12%, transparent 13%), radial-gradient(circle at 50% 50%, #d4764a, #9a4a28 78%); }
  .esfera.luna { background: radial-gradient(circle at 30% 28%, rgba(255,255,255,0.4), rgba(255,255,255,0) 35%), radial-gradient(circle at 62% 38%, #7f7f7d 0 15%, transparent 16%), radial-gradient(circle at 38% 64%, #8a8a88 0 10%, transparent 11%), radial-gradient(circle at 70% 70%, #858583 0 7%, transparent 8%), radial-gradient(circle at 50% 50%, #cfcfcb, #8d8d8a 78%); }

  #globo2, .etqglobo, #tabscomp, #salircomp, #ficha2 { display: none; }
  #globo2 { position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; right: 306px; }
  .etqglobo { position: absolute; z-index: 5; top: 76px; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--blanco); text-align: center; text-shadow: var(--sombra); pointer-events: none; }
  #salircomp { position: absolute; z-index: 6; bottom: 40px; left: 50%; transform: translateX(-50%); padding: 9px 18px; background: rgba(10,11,13,0.78); border: 1px solid var(--linea); border-radius: 22px; color: var(--suave); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
  #salircomp:hover { color: var(--blanco); border-color: rgba(255,255,255,0.5); }
  #etq1 { left: 306px; right: 50%; }
  #etq2 { left: 50%; right: 306px; }

  body.comparando #globo { left: 306px; right: 50%; }
  body.comparando #globo2 { display: block; }
  body.comparando .etqglobo, body.comparando #salircomp { display: block; }
  body.comparando #ficha2 { display: block; }
  body.comparando #ficha { left: 28px; right: auto; width: 270px; max-height: calc(100vh - 170px); }
  body.comparando #ficha2 { right: 28px; left: auto; top: 84px; width: 270px; max-height: calc(100vh - 170px); }
  body.comparando #ficha .foto, body.comparando #ficha .boton, body.comparando #ficha2 .boton, body.comparando #ficha .ver-sim, body.comparando #galeria { display: none !important; }
  body.comparando #zoom, body.comparando #pista, body.comparando #alt, body.comparando #fueravista { display: none !important; }
  body.comparando #trazo, body.comparando #ancla { display: none; }

  @media (max-width: 1099px) {
    #globo2 { left: 50%; right: 0; bottom: 50%; }
    #etq1 { left: 0; right: 50%; top: 66px; }
    #etq2 { left: 50%; right: 0; top: 66px; }
    body.comparando #globo { left: 0; right: 50%; bottom: 50%; top: 0; }
    body.comparando #ficha, body.comparando #ficha2 { top: 50%; bottom: 8px; max-height: none; width: auto; }
    body.comparando #ficha { left: 8px; right: calc(50% + 4px); }
    body.comparando #ficha2 { left: calc(50% + 4px); right: 8px; }
    body.comparando #salircomp { bottom: auto; top: calc(50% - 40px); }
    #cuerpos { left: 70px; }
    body.comparando #cuerpos, body.comparando #rotacion { display: none; }
  }

  @media (max-width: 700px) {
    #globo2 { bottom: 64%; }
    body.comparando #globo { bottom: 64%; }
    body.comparando .etqglobo { display: none; }
    body.comparando #tabscomp { display: flex; position: absolute; z-index: 6; left: 0; right: 0; top: 36%; }
    #tabscomp button { flex: 1; padding: 11px 8px; background: rgba(10,11,13,0.95); border: 0; border-bottom: 1px solid var(--linea); color: var(--suave); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; }
    body:not(.ver-b) #tab1, body.ver-b #tab2 { color: var(--blanco); border-bottom-color: var(--blanco); }
    body.comparando #ficha, body.comparando #ficha2 { left: 0; right: 0; top: calc(36% + 42px); bottom: 0; width: auto; border-width: 0; }
    body.comparando.ver-b #ficha, body.comparando:not(.ver-b) #ficha2 { display: none; }
    body.comparando #salircomp { top: 62px; bottom: auto; left: auto; right: 10px; transform: none; padding: 6px 10px; font-size: 9px; }
    #cuerpos { left: 70px; bottom: calc(26px + env(safe-area-inset-bottom)); }
    body.con-ficha #cuerpos { display: none; }
  }

  @media (pointer: coarse) {
    #cuerpos button { width: 46px; height: 46px; }
  }

  #detalle { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
  #detalle text { fill: #fff; font-family: inherit; paint-order: stroke; stroke: #000; stroke-width: 3px; stroke-linejoin: round; letter-spacing: 1px; }
  #detalle .d-tit { font-size: 11px; letter-spacing: 2px; }
  #detalle .d-sub { font-size: 9px; fill: #adb3b9; letter-spacing: 1.5px; }
  #detalle .d-et { font-size: 9px; fill: #cfd4d9; letter-spacing: 1.5px; }
  #detalle .d-val { font-size: 13px; font-weight: 600; }
  #detalle .d-anillo-t { font-size: 10px; fill: #e2e5e8; }
  .d-caja { fill: rgba(255,255,255,0.05); stroke: rgba(255,255,255,0.9); stroke-width: 1.2; }
  .d-esq { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: square; }
  .d-anillo { fill: none; stroke: rgba(255,255,255,0.6); stroke-width: 1; stroke-dasharray: 3 5; }
  .d-escala { stroke: #fff; stroke-width: 2; fill: none; }
  .d-norte { fill: #fff; stroke: #000; stroke-width: 1; }

  #detalle .d-pt { font-size: 9px; fill: #cfd4d9; letter-spacing: 1.5px; }
  #detalle .d-pt.act { fill: #ffb4af; }
  #detalle .d-sub.der { fill: #cfd4d9; }
  .d-prueba { fill: rgba(255,255,255,0.07); stroke: rgba(255,255,255,0.6); stroke-width: 1.2; stroke-dasharray: 4 4; }
  .d-prueba.act { fill: rgba(255,122,115,0.18); stroke: #ff7a73; stroke-width: 2; stroke-dasharray: none; }
  .d-prueba.ruta { fill: none; stroke-linejoin: round; stroke-linecap: round; }
  .d-cruz { fill: none; stroke: rgba(255,255,255,0.7); stroke-width: 1.2; }
  .d-cruz.act { stroke: #ff7a73; stroke-width: 1.8; }
  .d-punto { fill: rgba(255,255,255,0.8); stroke: #000; stroke-width: 1; }
  .d-punto.act { fill: #ff7a73; }
  .d-icono { fill: rgba(10,11,13,0.85); stroke: rgba(255,255,255,0.8); stroke-width: 1.4; }
  .d-icono.act { stroke: #ff7a73; }
  .d-rejilla { fill: none; stroke: rgba(255,255,255,0.45); stroke-width: 1; }
  .d-rejilla.act { stroke: #ff7a73; }

  .d-hit, .d-hit * { pointer-events: all; cursor: pointer; }
  .d-hit .ruta { pointer-events: stroke; }
  .d-hit .d-hitruta { fill: none; stroke: rgba(0,0,0,0); stroke-width: 18; pointer-events: stroke; stroke-linecap: round; stroke-linejoin: round; }
  .d-prueba.hov { fill: rgba(255,255,255,0.2); stroke: #fff; stroke-width: 2.6; stroke-dasharray: none; }
  .d-prueba.act.hov { fill: rgba(255,122,115,0.34); stroke: #ff7a73; }
  .d-prueba.ruta.hov { fill: none; }
  #tip-prueba { position: fixed; z-index: 12; width: 270px; padding: 13px 15px 12px; background: rgba(12,13,15,0.97); border: 1px solid rgba(255,255,255,0.22); pointer-events: none; font-size: 11px; line-height: 1.4; color: var(--texto); box-shadow: 0 8px 30px rgba(0,0,0,0.6); }
  #tip-prueba .tp-tit { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--blanco); font-weight: 600; }
  #tip-prueba .tp-uso { margin-top: 3px; color: var(--suave); }
  #tip-prueba .tp-sec { margin: 11px 0 5px; font-size: 9px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--tenue); border-top: 1px solid var(--linea); padding-top: 8px; }
  #tip-prueba .tp-fila { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; margin-bottom: 6px; }
  #tip-prueba .tp-n { color: var(--suave); }
  #tip-prueba .tp-fila b { color: var(--blanco); font-weight: 600; text-align: right; }
  #tip-prueba .tp-fila em { grid-column: 1; font-style: normal; font-size: 10px; color: var(--tenue); }
  #tip-prueba .tp-fila i { grid-column: 2; grid-row: 2; font-style: normal; font-size: 9px; letter-spacing: 1px; text-align: right; text-transform: uppercase; }
  #tip-prueba .tp-a { color: #8fd6a4; }
  #tip-prueba .tp-b { color: #e6cf8a; }
  #tip-prueba .tp-c { color: #ff9a94; }
  #tip-prueba u { display: block; height: 6px; background: rgba(255,255,255,0.12); text-decoration: none; border-radius: 3px; overflow: hidden; }
  #tip-prueba s { display: block; height: 100%; background: var(--blanco); text-decoration: none; }
  #tip-prueba .tp-punt { display: grid; grid-template-columns: 1fr 34px; align-items: center; column-gap: 8px; }
  #tip-prueba .tp-punt b { font-size: 18px; color: var(--blanco); text-align: right; font-weight: 500; }
  #tip-prueba .tp-mini { display: grid; grid-template-columns: 78px 1fr 26px; align-items: center; column-gap: 7px; margin-bottom: 4px; color: var(--suave); }
  #tip-prueba .tp-mini u { height: 4px; }
  #tip-prueba .tp-mini s { background: rgba(255,255,255,0.45); }
  #tip-prueba .tp-mini b { text-align: right; font-weight: 500; }
  #tip-prueba .tp-mini.mejor b { color: #8fd6a4; }
  #tip-prueba .tp-mini.esta { color: #ffb4af; }
  #tip-prueba .tp-mini.esta s { background: #ff7a73; }
  #tip-prueba .tp-clic { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--linea); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #ffb4af; }
  #tip-prueba .tp-nota { margin-top: 6px; font-size: 9px; color: var(--tenue); }

#idioma { position: fixed; top: 22px; right: 24px; z-index: 9; pointer-events: auto; display: inline-flex; align-items: center; gap: 0; background: none; border: 0; padding: 4px 2px; cursor: pointer; font: inherit; color: #fff; text-shadow: var(--sombra); }
#idioma span { font-size: 12px; letter-spacing: 2px; font-weight: 500; color: rgba(255,255,255,0.45); padding: 0 6px; transition: color .2s; }
#idioma span + span { border-left: 1px solid rgba(255,255,255,0.3); }
#idioma span.on { color: #fff; font-weight: 700; }
#idioma:hover span { color: rgba(255,255,255,0.8); }
#idioma:hover span.on { color: #fff; }
#idioma:focus-visible { outline: 1px solid rgba(255,255,255,0.6); outline-offset: 3px; border-radius: 3px; }
@media (max-width: 640px) { #idioma { top: 16px; right: 62px; } #idioma span { font-size: 11px; padding: 0 5px; } }
