[hidden] { display: none !important; }
:root {
  --fondo: #0b0a0d;
  --panel: rgba(16, 14, 20, 0.78);
  --borde: rgba(255, 255, 255, 0.12);
  --texto: #f1ece6;
  --tenue: #b8aea6;
  --acento: #e0322b;
  --acento-suave: rgba(224, 50, 43, 0.18);
  --radio: 10px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--texto); overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#lienzo { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: grab; touch-action: none; }
#lienzo.arrastrando { cursor: grabbing; }
#lienzo.sobre-zapatilla { cursor: pointer; }
#vineta { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 2.5s ease;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0) 45%, rgba(10,0,0,0.75) 100%); }
#vineta.activa { opacity: 1; }

#barra { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(8,7,10,0.85), rgba(8,7,10,0)); z-index: 5; }
.marca { font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }
#zonas { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.acciones { display: flex; gap: 8px; }
.btn { font: inherit; font-size: 14px; color: var(--texto); background: var(--panel); border: 1px solid var(--borde);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.btn:hover:not(:disabled) { border-color: rgba(255,255,255,0.35); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.chico { font-size: 13px; padding: 5px 12px; }
.btn.activo, .btn.zona-activa { background: var(--acento-suave); border-color: var(--acento); }
.btn-claro { background: rgba(255,255,255,0.9); color: #111; border-color: transparent; }
.btn-claro:hover:not(:disabled) { background: #fff; }
.zona { font-size: 13px; padding: 6px 12px; }
.zona.st { border-color: var(--acento); }

#recorrido, #ayuda-st { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 5;
  background: var(--panel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 10px 14px; text-align: center; }
#recorrido .modos { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
#recorrido .ayuda, #ayuda-st { font-size: 13px; color: var(--tenue); margin: 0; }

#etiqueta { position: fixed; z-index: 6; pointer-events: none; transform: translate(-50%, -130%);
  background: rgba(10,8,12,0.9); border: 1px solid var(--acento); border-radius: 8px; padding: 6px 10px; font-size: 13px;
  max-width: 320px; }

/* ficha: panel lateral derecho casi transparente; la zapatilla queda flotando sobre la tienda */
#ficha { position: fixed; z-index: 10; top: 64px; right: 16px; bottom: 16px; width: clamp(340px, 32vw, 560px);
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: linear-gradient(to bottom, rgba(10,8,12,0.34), rgba(10,8,12,0.05) 24%, rgba(10,8,12,0.05) 68%, rgba(10,8,12,0.38));
  border: 1px solid rgba(255,255,255,0.06); animation: ficha-entra .35s ease-out;
  text-shadow: 0 1px 3px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.8); }
@keyframes ficha-entra { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.ficha-cabeza { padding: 22px 48px 4px; text-align: center; flex: none; }
.ficha-cabeza .pack { color: var(--acento); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 6px; }
.ficha-cabeza h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.ficha-visor { position: relative; flex: 1 1 auto; min-height: 200px; }
#lienzo-ficha { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#lienzo-ficha:active { cursor: grabbing; }
.ficha-zoom { position: absolute; right: 12px; bottom: 8px; display: flex; flex-direction: column; gap: 6px; }
.ficha-zoom button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18,16,22,0.35); color: var(--texto); font-size: 16px; line-height: 1; cursor: pointer; }
.ficha-zoom button:hover { border-color: var(--acento); color: var(--acento); }
#ficha-estado { position: absolute; inset: 50% 0 auto 0; transform: translateY(-50%); text-align: center; color: var(--tenue);
  font-size: 14px; padding: 0 24px; }
.ficha-pie { padding: 4px 28px 18px; text-align: center; flex: none; max-height: 34%; overflow-y: auto; }
.ficha-pie p { margin: 0 0 10px; line-height: 1.5; font-size: 14.5px; color: var(--texto); }
.ficha-ayuda { color: var(--tenue) !important; font-size: 12.5px !important; margin: 0 !important; }
.cerrar { position: absolute; top: 10px; right: 14px; z-index: 2; font-size: 28px; line-height: 1; background: none;
  border: 0; color: var(--texto); cursor: pointer; text-shadow: inherit; }

#carga { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: var(--fondo);
  transition: opacity .8s; }
#carga.oculta { opacity: 0; pointer-events: none; }
.carga-caja { width: min(360px, 80vw); text-align: center; }
.carga-titulo { margin-bottom: 12px; color: var(--tenue); }
.carga-barra { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
#carga-relleno { height: 100%; width: 0; background: var(--acento); transition: width .2s; }
#carga-texto { margin-top: 8px; font-size: 13px; color: var(--tenue); }

#aviso { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 8; background: var(--panel);
  border: 1px solid var(--borde); border-radius: 8px; padding: 8px 14px; font-size: 13px; color: var(--tenue); }

@media (max-width: 900px) {
  #ficha { width: auto; left: 16px; }
  .marca { display: none; }
}
