/* style.css */
/* versión confirmada - 2026-06-16 09:09 */
/* Cambios introducidos:
- Añade estilos para experiencia facial Movicol.
- Mantiene layout fullscreen tipo kiosk.
- Añade mensajes grandes centrados, slogan y botones.
*/

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
  touch-action: none;
  user-select: none;
}

#app {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

#inputVideo {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

#outputCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

#topUi {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

#statusText {
  flex: 1;
  color: #fff;
  font-size: 22px;
  line-height: 1.25;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

#progressShell {
  width: 220px;
  display: none;
  align-items: center;
  gap: 10px;
}

#progressTrack {
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

#progressBar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #fff;
  transition: width 0.15s linear;
}

#progressText {
  min-width: 48px;
  color: #fff;
  font-size: 15px;
  text-align: right;
}

#centerMessage {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: min(1100px, calc(100vw - 80px));
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: clamp(42px, 6vw, 92px);
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  letter-spacing: -0.04em;
  text-shadow:
    0 4px 18px rgba(0, 0, 0, 0.75),
    0 0 35px rgba(255, 255, 255, 0.12);
  display: none;
}

#centerMessage.small {
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

#centerMessage.slogan {
  font-size: clamp(48px, 7vw, 110px);
  color: #ffffff;
}

button {
  pointer-events: auto;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 16px 28px;
  color: #fff;
  background: #005eb8;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

#startButton {
  position: absolute;
  left: 50%;
  bottom: 56px;
  transform: translateX(-50%);
}

#changeDirectoryButton {
  position: absolute;
  right: 28px;
  bottom: 28px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  font-size: 15px;
  padding: 12px 18px;
}

@media (max-width: 700px) {
  #topUi {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  #statusText {
    font-size: 18px;
  }

  #changeDirectoryButton {
    right: 18px;
    bottom: 18px;
  }
}