 
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7f7f7;
  display: flex;
  justify-content: center;
  padding: 2rem;
}





.container {
  display: flex;
  flex-direction: row;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  width: 100%;
}

.formulario {
  flex: 1;
  padding-right: 2rem;
}

.formulario h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.campo {
  margin-bottom: 1.2rem;
}

.campo label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: bold;
}

.campo input, .campo select {
  width: 100%;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #4169e1;
  border-radius: 8px;
  outline: none;
}

.colores {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease;
}

.color-option input {
  display: none;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option input:checked + span,
.color-option input:checked {
  outline: 2px solid #333;
  box-shadow: 0 0 0 3px white, 0 0 0 5px #4169e1;
  border: 2px solid #4169e1;
}



.btn {
  background-color: #4169e1;
  color: white;
  border: none;
  padding: 0.9rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
}

.btn:disabled {
background-color: #cccccc;
cursor: not-allowed;
color: #666666;
}

.preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 2px solid #eee;
  padding-left: 2rem;
}

.phone-frame {
  width: 300px;
  height: 540px;
  border: 16px solid #000;
  border-radius: 40px;
  position: relative;
  background: #fff;
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 8px;
  background: #333;
  border-radius: 10px;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1rem;
  text-align: center;
}

.qr-container canvas {
  margin-bottom: 1rem;
}

.qr-container p {
  font-weight: bold;
  color: #333;
}


@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 1rem;
  }

  .formulario {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .preview {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid #eee;
    padding-top: 2rem;
  }
}