/* estiloformulario.css */

body {
  font-family: Arial, sans-serif;
  background-color: #f5f7fa;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #2c3e50;
}

form {
  max-width: 700px;
  margin: auto;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

fieldset {
  border: 2px solid #3498db;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

legend {
  font-weight: bold;
  color: #2980b9;
  padding: 0 10px;
}

label {
  display: inline-block;
  width: 160px;
  margin-bottom: 10px;
  font-weight: bold;
  color: #34495e;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
  width: calc(100% - 170px);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin-bottom: 15px;
}

input[type="radio"],
input[type="checkbox"] {
  margin-left: 10px;
  margin-right: 5px;
}

textarea {
  resize: vertical;
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  margin: 10px 5px 0 0;
  cursor: pointer;
  font-weight: bold;
}

button[type="submit"] {
  background-color: #2ecc71;
  color: white;
}

button[type="reset"] {
  background-color: #e74c3c;
  color: white;
}

button:hover {
  opacity: 0.9;
}