/* General */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #e3f2fd, #fff);
  margin: 0;
  padding: 20px;
  color: #333;
}

h1 {
  text-align: center;
  color: #1565c0;
  margin-bottom: 30px;
}

/* Formulario */
form {
  max-width: 700px;
  margin: auto;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Fieldsets */
fieldset {
  border: 2px solid #bbdefb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}

legend {
  font-weight: bold;
  color: #1976d2;
  padding: 0 10px;
}

/* Etiquetas y campos */
label {
  display: inline-block;
  width: 170px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

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% - 180px);
  padding: 8px;
  border: 1px solid #90caf9;
  border-radius: 6px;
  background-color: #f9f9f9;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #1976d2;
  outline: none;
  background-color: #e3f2fd;
}

/* Radios y Checkboxes */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 8px;
}

p {
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  color: #1976d2;
}

/* Botones */
button {
  padding: 10px 25px;
  font-size: 16px;
  margin: 10px 10px 0 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"] {
  background-color: #1976d2;
  color: white;
}

button[type="reset"] {
  background-color: #eeeeee;
  color: #333;
}

button:hover {
  transform: scale(1.05);
}

button[type="submit"]:hover {
  background-color: #0d47a1;
}

button[type="reset"]:hover {
  background-color: #e0e0e0;
}

/* Responsivo */
@media (max-width: 768px) {
  label,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  input[type="date"],
  input[type="time"],
  input[type="file"],
  select,
  textarea {
    width: 100%;
    display: block;
  }

  label {
    margin-bottom: 5px;
  }
}