/* ===== POC mecánica · 1920×1080 scale-to-fit ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: "Segoe UI", Arial, sans-serif; background: #0c0d11; overflow: hidden; }

#viewport {
  position: fixed; inset: 0;
  overflow: hidden;
  background: #0c0d11;
}

/* Lienzo fijo, centrado de forma determinista; el JS lo escala con transform */
#stage {
  width: 1920px; height: 1080px;
  position: absolute; top: 50%; left: 50%;
  transform-origin: center center;
  background: #eef1f6;
  overflow: hidden;
  user-select: none;
}

.screen { position: absolute; inset: 0; }
.hidden { display: none !important; }

/* ---------- HOME ---------- */
.title    { position: absolute; top: 70px; left: 0; right: 0; text-align: center; font-size: 64px; color: #1c2130; }
.subtitle { position: absolute; top: 158px; left: 0; right: 0; text-align: center; font-size: 28px; color: #5a6275; }
.subtitle b { color: #1c2130; }

#dropzone {
  position: absolute; left: 760px; top: 230px;
  width: 400px; height: 400px;
  border: 6px dashed #aeb6c6; border-radius: 28px;
  background: #ffffff;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s, transform .15s;
}
#dropzone.over { border-color: #2f6df0; background: #eef3ff; transform: scale(1.03); }
.dz-label { font-size: 30px; color: #aeb6c6; text-align: center; line-height: 1.3; pointer-events: none; }
#dropzone.has-items .dz-label { display: none; }

/* círculos */
.circle {
  position: absolute;
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  cursor: grab;
  touch-action: none;
}
.circle.dragging { cursor: grabbing; box-shadow: 0 18px 40px rgba(0,0,0,.35); z-index: 50; }
.circle.placed { box-shadow: 0 6px 14px rgba(0,0,0,.25); }

#selinfo { position: absolute; top: 830px; left: 0; right: 0; text-align: center; font-size: 26px; color: #5a6275; height: 34px; }

/* botones */
.btn {
  position: absolute; border: none; border-radius: 12px;
  font-size: 26px; padding: 16px 30px; cursor: pointer;
}
.btn.primary { left: 600px; top: 910px; width: 380px; background: #2f6df0; color: #fff; }
.btn.primary:disabled { background: #b9c2d6; cursor: not-allowed; }
.btn.ghost { background: transparent; color: #5a6275; border: 2px solid #c4ccdb; }
#btn-reset { left: 1020px; top: 910px; }
.btn.corner { top: 30px; right: 30px; left: auto; font-size: 20px; padding: 10px 18px; }

/* ---------- PLAYER ---------- */
#player { background: #0c0d11; }
#slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #2f6df0;
}
#slide-num { font-size: 620px; font-weight: 800; color: rgba(255,255,255,.95); line-height: 1; }

/* overlay superior (zona reservada del producto real) */
#slide-overlay {
  position: absolute; top: 0; left: 0; right: 0; height: 150px;
  background: rgba(0,0,0,.38);
  display: flex; align-items: center; gap: 22px;
  padding: 0 48px; color: #fff; font-size: 34px;
}
#slide-overlay .ov-label { opacity: .85; }
#slide-overlay .dot { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.6); }

#caption { position: absolute; bottom: 40px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 26px; }

.nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: 30px; width: 90px; height: 120px;
  border: none; border-radius: 14px;
  background: rgba(255,255,255,.18); color: #fff; font-size: 60px; cursor: pointer;
}
.nav.right { left: auto; right: 30px; }
.nav:disabled { opacity: .25; cursor: default; }
