/* Reset de estilos */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Estilos generales */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f3f4f6;
  color: #333;
  display: flex;
  justify-content: center;
}

h1 {
  padding: 2rem 0 1rem 0;
  text-align: center;
  font-size: 1.5rem;
}

h2 {
  text-align: center;
  margin: 2rem 0 1rem 0;
  font-size: 1.25rem;
}

h3 {
  display: inline-block;
  font-size: 1rem;
}

form {
  margin: 1rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 1rem;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Contenedores */
.contenedor,
.machine-block {
  border: 1px solid #ccc;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

#contendor_adjuntos {
  line-height: 2rem;
}

#contendor_firma {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#contendor_firma canvas {
  margin-bottom: 1rem;
  width: 100%;
  max-width: 400px;
  border: 1px solid #000;
  height: 200px;
}

#contendor_firma button {
  max-width: 15rem;
  padding: 0.5rem;
  height: auto;
}

/* Campos de entrada */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="file"] {
  width: 100%;
  padding: 1rem 0.75rem;
  margin: 0.5rem 0;
  font-size: 1rem;
  border: 2px dashed #ccc;
  border-radius: 5px;
  background-color: #fafafa;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1a73e8;
  outline: none;
}

/* Textarea */
textarea {
  resize: none;
  height: 100px;
}

/* Botones */
button {
  width: 100%;
  height: 3rem;
  background-color: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
}

button:hover {
  background-color: #1669bb;
}

.btn_eliminar {
  color: red;
  cursor: pointer;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

/* Ajustes responsivos */
@media (min-width: 600px) {
  h1 {
      font-size: 2rem;
  }

  h2 {
      font-size: 1.5rem;
  }

  h3 {
      font-size: 1.25rem;
  }

  form {
      width: 90%;
  }

  button {
      width: auto;
      padding: 0.75rem 1.5rem;
  }

  #contendor_firma canvas {
      max-width: 500px;
  }
}

@media (min-width: 768px) {
  form {
      width: 80%;
  }
}

@media (min-width: 1024px) {
  form {
      width: 70%;
  }
}
