/* Reset básico */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Arial', sans-serif;
  background: #f4f4f9;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background: #fff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;  /* En escritorio limita el ancho */
  display: flex;
  flex-direction: column;
}

h2 {
  text-align: center;
  color: #FF0000;
  margin-bottom: 25px;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #333;
}

input, select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

canvas {
  width: 100% !important;
  height: 150px;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-top: 10px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background-color: #FFFF00;
  color: black;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background-color: #cc0000;
}

/* --- Responsive para móviles --- */
@media (max-width: 600px) {
  body {
    display: block;  /* Quitar flex centrado */
    padding: 0;
    margin: 0;
  }

  .form-container {
    width: 100%;
    max-width: 100%;   /* Ocupa todo el ancho */
    height: 100vh;     /* Ocupa toda la altura de la pantalla */
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;  /* Scroll interno si el contenido es mayor */
  }

  canvas {
    height: 200px;     /* Canvas más grande en móvil */
  }

  input, select {
    font-size: 16px;
    padding: 12px 10px;
  }

  button {
    margin-top: 15px;
  }
}

button:hover {
  background: radial-gradient(circle,rgba(217, 181, 0, 1) 0%, rgba(255, 255, 0, 1) 100%);
}


