:root {
  --bg: #000000;
  --card: #121212;
  --accent: #00ff41;
  --danger: #ff3b30;
  --text: #ffffff;
  --text-dim: #888;
}

body {
  font-family: -apple-system, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- PANTALLAS --- */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}
.active { display: flex; }

/* --- UI CÁMARA CIRCULAR --- */
.camera-ring {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  overflow: hidden;
  margin: 30px 0;
  background: #000;
  position: relative;
}
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- BOTONES --- */
.btn-main {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 22px;
  border-radius: 50px;
  font-weight: 900;
  font-size: 18px;
  width: 90%;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 255, 65, 0.2);
}

.btn-ghost {
  background: transparent;
  border: 1px solid #444;
  color: #ffffff;
  padding: 12px;
  border-radius: 8px;
  width: 100%;
  margin-top: auto;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
}
.btn-ghost:active { background: #222; }

/* --- RESULTADOS --- */
.status-top {
  width: 100%;
  padding: 35px 20px;
  text-align: center;
  border-radius: 20px;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.valid-bg { background: var(--accent); color: #000; }
.invalid-bg { background: var(--danger); color: #fff; }
.warning-bg { background: #ffcc00; color: #000; }

.data-list {
  background: var(--card);
  width: 100%;
  border-radius: 15px;
  padding: 10px 20px;
  border: 1px solid #222;
}
.data-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #222;
}
.data-item:last-child { border: none; }
.label {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}