/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ESTILOS GENERALES DEL BODY */
body {
  background: #f5f8ff;
  color: #1a1a1a;
  padding: 20px;
  line-height: 1.5;
  min-height: 100vh;
}

/* ENCABEZADOS */
h1, h2, h3 {
  color: #003366;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }

/* ENLACES */
a {
  color: #0059b3;
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
  transition: color 0.3s ease;
}

a:hover {
  color: #003366;
  text-decoration: underline;
}

/* BOTÓN DE CERRAR SESIÓN ESPECIAL */
a[href*="cerrar_sesion"] {
  background-color: #d9534f;
  color: white !important;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
}

a[href*="cerrar_sesion"]:hover {
  background-color: #c9302c;
  text-decoration: none;
}

/* LISTAS SIN ESTILO DE PUNTO */
ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto 30px auto;
  padding-left: 0;
}

ul li {
  background: #e6f0ff;
  margin-bottom: 12px;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: 600;
  color: #003366;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul li a {
  margin-left: 10px;
  font-weight: 600;
  color: #004080;
}

/* FORMULARIOS */
form {
  max-width: 450px;
  background: #e9f0ff;
  margin: 20px auto 40px auto;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="number"],
form select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border: 1.5px solid #8ab4f8;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="password"]:focus,
form input[type="number"]:focus,
form select:focus {
  border-color: #0059b3;
  outline: none;
}

/* CHECKBOX */
form input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.1);
  vertical-align: middle;
  cursor: pointer;
}

form label {
  font-weight: 600;
  color: #003366;
  cursor: pointer;
}

/* BOTÓN ENVIAR */
form input[type="submit"] {
  background-color: #0059b3;
  color: white;
  font-weight: 700;
  padding: 12px;
  border: none;
  border-radius: 6px;
  width: 100%;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

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

/* PÁRRAFOS */
p {
  max-width: 600px;
  margin: 15px auto 25px auto;
  color: #004080;
  font-weight: 600;
  text-align: center;
}

/* DIVS PARA LISTADOS (Profesores) */
div {
  max-width: 600px;
  background: #d9e6ff;
  margin: 10px auto;
  padding: 15px 20px;
  border-radius: 8px;
  color: #003366;
  font-weight: 600;
}

hr {
  max-width: 600px;
  margin: 30px auto;
  border: none;
  border-top: 1px solid #aac6ff;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }

  form, ul, div {
    max-width: 100%;
    margin: 15px auto;
  }

  ul li {
    flex-direction: column;
    align-items: flex-start;
  }

  ul li a {
    margin-left: 0;
    margin-top: 6px;
  }
}
