body {
  background: white;
}
p {
  color: black;
}
h1 {
  font-weight: bold;
}
/*SELECTOR DE ATRIBUTO*/

input[type] {
  background-color: rgb(245, 220, 245)
   }

input[type-text] {
  color:crimson;
}

input[type-password] {
  color:blue;
}

input[type=file]{
  color:cadetblue;
}
input[type=reset]{
  color:darkblue;
}
input[type=submit]{
  color:darkslateblue;
}
textarea{
  color:#8bdddd;
}
input[type=checkbox]{
  /* ===============================
  ESTILO GENERAL DE LA PÁGINA
  ================================ */

  body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #f2f4f7, #e6ecf2);
    margin: 0;
    padding: 50px 0;
    color: #333;
  }

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

  form {
    width: 65%;
    max-width: 850px;
    margin: auto;
    background-color: #ffffff;
    padding: 45px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 6px solid #2f5d8a;
  }

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

  h1 {
    text-align: center;
    color: #1e2a38;
    margin-bottom: 10px;
    font-size: 28px;
  }

  h2 {
    color: #2f5d8a;
    margin-top: 35px;
    font-size: 18px;
    border-left: 4px solid #3a8f6b;
    padding-left: 10px;
  }

  /* ===============================
  TEXTO Y SEPARADORES
  ================================ */

  p {
    line-height: 1.6;
    margin-bottom: 15px;
  }

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

  /* ===============================
  CAMPOS DE FORMULARIO
  ================================ */

  input[type="text"],
  input[type="password"],
  select,
  textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: 1px solid #cbd3dc;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s ease;
    box-sizing: border-box;
    background-color: #fafbfc;
  }

  /* Efecto al hacer foco */

  input[type="text"]:focus,
  input[type="password"]:focus,
  select:focus,
    textarea:focus {
      border-color: #2f5d8a;
      outline: none;
      background-color: #ffffff;
      box-shadow: 0 0 6px rgba(47, 93, 138, 0.25);
  }

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

  input[type="checkbox"],
  input[type="radio"] {
    margin-right: 8px;
    margin-top: 10px;
    accent-color: #3a8f6b;
  }

  /* ===============================
  INPUT FILE
  ================================ */

  input[type="file"] {
    margin-top: 10px;
    font-size: 14px;
  }

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

  input[type="submit"],
  input[type="reset"] {
    padding: 12px 22px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-right: 12px;
    transition: 0.3s ease;
  }

  /* Botón enviar */

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

  input[type="submit"]:hover {
    background-color: #24496d;
    transform: translateY(-2px);
  }

  /* Botón borrar */

  input[type="reset"] {
    background-color: #3a8f6b;
    color: white;
  }

  input[type="reset"]:hover {
    background-color: #2f7456;
    transform: translateY(-2px);
  }

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

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