* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3rem;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #ffffff;
}

.kiosco-card {
  background: #ffffff;
  width: 380px;
  max-width: 92vw;
  padding: 2.25rem 2rem 2rem;
  border-radius: 22px;
  border: 1px solid #eef0f3;
  box-shadow: 0 20px 50px rgba(15, 23, 32, 0.08);
  text-align: center;
  animation: aparecer .35s ease-out;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.kiosco-titulo {
  margin: 0 0 .35rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #16202c;
  letter-spacing: .2px;
}

.kiosco-tienda {
  display: none;
  margin-bottom: 1.25rem;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #cfa14d, #a97b2e);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(169, 123, 46, 0.35);
}

.kiosco-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #0f1720;
  margin-bottom: .5rem;
  box-shadow: 0 0 0 4px #f1f1f4;
}

.kiosco-video-wrap video,
.kiosco-video-wrap canvas {
  display: block;
  width: 100%;
}

.kiosco-aviso {
  font-size: .78rem;
  color: #8a94a3;
  margin: .6rem 0 1.1rem;
}

.kiosco-input {
  width: 100%;
  padding: .85rem 1rem;
  font-size: 1.25rem;
  text-align: center;
  letter-spacing: 1px;
  margin-bottom: .9rem;
  border: 2px solid #e6e8ec;
  border-radius: 12px;
  background: #f8f9fb;
  color: #16202c;
  transition: border-color .15s, box-shadow .15s;
}

.kiosco-input:focus {
  outline: none;
  border-color: #cfa14d;
  box-shadow: 0 0 0 4px rgba(207, 161, 77, 0.18);
  background: #fff;
}

.kiosco-btn {
  width: 100%;
  padding: .95rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.kiosco-btn:active { transform: scale(.98); }
.kiosco-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.kiosco-btn-primario {
  background: linear-gradient(135deg, #16202c, #2a3b4f);
  box-shadow: 0 10px 24px rgba(22, 32, 44, 0.28);
}
.kiosco-btn-primario:hover:not(:disabled) { box-shadow: 0 14px 28px rgba(22, 32, 44, 0.35); }

.kiosco-btn-salida {
  background: linear-gradient(135deg, #c53030, #9b2626);
  box-shadow: 0 10px 24px rgba(197, 48, 48, 0.25);
  margin-bottom: .7rem;
}

.kiosco-btn-regreso {
  background: linear-gradient(135deg, #2f855a, #226b46);
  box-shadow: 0 10px 24px rgba(47, 133, 90, 0.25);
  margin-bottom: .7rem;
}

.kiosco-secundario {
  display: block;
  margin-top: 1.1rem;
  padding: .8rem;
  border-radius: 12px;
  border: 1.5px solid #e6e8ec;
  color: #4a5568;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 600;
  transition: background .15s, border-color .15s;
}
.kiosco-secundario:hover { background: #f8f9fb; border-color: #cfa14d; color: #16202c; }

.kiosco-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: aparecer .2s ease-out;
}

.kiosco-modal {
  background: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.5rem;
  max-width: 320px;
  width: 88vw;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.kiosco-modal p {
  margin: 0 0 1.25rem;
  color: #16202c;
  font-size: .95rem;
  line-height: 1.4;
}

.kiosco-modal-botones {
  display: flex;
  gap: .6rem;
}

.kiosco-modal-botones button {
  flex: 1;
  padding: .75rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
}

.kiosco-modal-cancelar { background: #eef0f3; color: #16202c; }
.kiosco-modal-confirmar { background: linear-gradient(135deg, #c53030, #9b2626); color: #fff; }

#resultado {
  margin-top: 1rem;
  font-weight: 600;
  font-size: .95rem;
  min-height: 1.3em;
}
.ok { color: #1e8e4f; }
.error { color: #d93025; }
