body {
  margin: 0;
  font-family: Arial;
  background: #111;
  color: white;

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.container {
  text-align: center;
}

button {
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  border-radius: 8px;
  border: none;
}

input[type="color"] {
  height: 40px;
  width: 60px;
  border: none;
}

#qr {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* ESTE ES EL BORDE BLANCO */
#qr canvas,
#qr img {
  background: white;
  padding: 15px;
  border-radius: 10px;
}

#qr canvas,
#qr img {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* contenedor principal */
.container {
  text-align: center;
  width: 300px;
}

/* panel tipo tarjeta */
.panel {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;

  display: flex;
  flex-direction: column;
  gap: 20px; /* 👈 separación automática */
}

/* cada campo */
.campo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* etiquetas */
.campo label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #aaa;
}

/* input texto */
.campo input[type="text"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
}

/* input color */
.campo.color {
  align-items: center;
}

.campo input[type="color"] {
  width: 60px;
  height: 40px;
  border: none;
  cursor: pointer;
}

/* botón */
button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #2e86ff;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  background: #1f6ed4;
}

.campo input:focus {
  box-shadow: 0 0 0 2px #2e86ff;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;

  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;

  padding: 30px;
  width: 320px;

  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);

  text-align: center;
  color: white;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.campo input[type="text"] {
  width: 100%;
  padding: 12px;

  border-radius: 10px;
  border: none;
  outline: none;

  background: rgba(255,255,255,0.1);
  color: white;

  backdrop-filter: blur(5px);
}

.campo input::placeholder {
  color: rgba(255,255,255,0.5);
}

.campo input[type="color"] {
  width: 70px;
  height: 40px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

button {
  padding: 12px;
  border-radius: 12px;

  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);

  color: white;
  cursor: pointer;

  backdrop-filter: blur(5px);
  transition: 0.2s;
}

button:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

#qr {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

#qr canvas,
#qr img {
  background: white;
  padding: 15px;
  border-radius: 15px;

  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.container::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;

  border: 1px solid rgba(255,255,255,0.2);
  pointer-events: none;
}

* {
  box-sizing: border-box;
}