
/* =========================
ESTILOS GENERALES
========================= */

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #1f3c88, #2e5cb8);
  margin: 0;
  padding: 40px 0;
}

/* =========================
CONTENEDOR FORMULARIO
========================= */

form {
  background-color: #ffffff;
  width: 60%;
  max-width: 750px;
  margin: auto;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* =========================
TÍTULOS
========================= */

h1 {
  text-align: center;
  color: #1f3c88;
  margin-bottom: 10px;
}

h2 {
  color: #2e5cb8;
  border-left: 4px solid #1f3c88;
  padding-left: 10px;
  margin-top: 30px;
}

p {
  color: #444;
}

/* =========================
CAMPOS DE TEXTO
========================= */

input[type="text"],
input[type="password"],
select,
textarea,
input[type="file"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  transition: all 0.3s ease;
}

/* Efecto al hacer foco */

input[type="text"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #2e5cb8;
  outline: none;
  box-shadow: 0 0 5px rgba(46, 92, 184, 0.4);
}

/* =========================
CHECKBOX Y RADIO
========================= */

input[type="checkbox"],
input[type="radio"] {
  margin-right: 8px;
  margin-bottom: 8px;
}

/* =========================
BOTONES
========================= */

input[type="submit"],
input[type="reset"] {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.3s ease;
}

input[type="submit"] {
  background-color: #1f3c88;
  color: white;
}

input[type="submit"]:hover {
  background-color: #16306d;
}

input[type="reset"] {
  background-color: #cccccc;
  color: #333;
}

input[type="reset"]:hover {
  background-color: #aaaaaa;
}

/* =========================
TEXTAREA
========================= */

textarea {
  resize: vertical;
}

/* =========================
LÍNEAS SEPARADORAS
========================= */

hr {
  border: none;
  height: 1px;
  background-color: #e0e0e0;
  margin: 25px 0;
}

/* =========================
RESPONSIVE
========================= */

@media (max-width: 768px) {
  form {
    width: 90%;
    padding: 25px;
  }
}
