* {
  font-family: "Poppins", sans-serif;
  padding: 0px;
  margin: 0px;
}

#logo1 {
  width: 300px;
  height: auto;
  object-fit: contain;
}

#logo2 {
  width: 150px;
  height: auto;
  object-fit: contain;
}

body {
  background-color: #f0f2f5;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header {
  width: 100%;
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

#logo1 {
  width: 300px;
  height: auto;
  object-fit: contain;
}

#logo2 {
  width: 150px;
  height: auto;
  object-fit: contain;
}

h1 {
  color: white;
  font-size: 24px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.formulario {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  margin: 40px auto;
  padding: 20px;
  width: 500px;
}

.contact_form ul {
  list-style: none;
  padding: 0;
}

.contact_form li {
  margin-bottom: 15px;
}

#opci {
  text-align: center;
}

h2 {
  color: #c62828;
  font-size: 18.3px;
  margin-bottom: 5px;
}

#estud,
#inten,
#admin {
  display: inline-block;
  padding: 50px 12px 2px 8px;
  transition: all 0.3s ease;
}

#estud:hover,
#inten:hover,
#admin:hover {
  background-color: gray;
  color: white;
  text-shadow: 2px 2px red;
  cursor: pointer;
  border-radius: 5px;
}

.regis {
  color: rgb(121, 121, 121);
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #1c1e21;
  font-weight: 600;
}

.label-activo {
  background-color: #c62828 !important;
  color: white !important;
  text-shadow: 2px 2px darkred !important;
  border-radius: 5px;
}

input[type="text"],
input[type="password"] {
  width: 93%;
  padding: 14px 16px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-size: 17px;
  background-color: #f5f6f7;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
  outline: none;
}

button {
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#ingresar {
  background-color: #c62828;
  color: white;
  width: 100%;
  margin-bottom: 7px;
}

#ingresar:hover {
  background-color: #b71c1c;
}

footer {
  margin-top: 20px;
  text-align: center;
  color: #737373;
  font-size: 14px;
}

dialog {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 20px;
  width: 300px;
  margin: auto;
}

.msg_boton {
  background-color: #c62828;
  color: white;
  margin-top: 15px;
  width: 100%;
}

.msg_boton:hover {
  background-color: #b71c1c;
}

/* Estilos para los diálogos de registro */
#dialogRegistroEst,
#dialogRegistroInt {
  border: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 500px;
  margin: auto;
  background-color: white;
}

#dialogRegistroEst h2,
#dialogRegistroInt h2 {
  color: #c62828;
  font-size: 18.3px;
  margin-bottom: 20px;
  text-align: center;
}

.formulario-registro-est,
.formulario-registro-int {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.campo {
  display: flex;
  flex-direction: column;
}

.campo-doble {
  display: flex;
  gap: 10px;
}

.campo-doble .campo {
  flex: 1;
}

.campo label {
  display: block;
  margin-bottom: 5px;
  color: #1c1e21;
  font-weight: 600;
}

.campo input[type="text"],
.campo input[type="password"],
.campo input[type="email"],
.campo select {
  width: 93%;
  padding: 14px 16px;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  font-size: 17px;
  background-color: #f5f6f7;
}

.campo input[type="text"]:focus,
.campo input[type="password"]:focus,
.campo input[type="email"]:focus,
.campo select:focus {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
  outline: none;
}

.botones-registro {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.botones-registro .boton {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-registrar {
  background-color: #c62828;
  color: white;
  width: 100%;
}

.btn-registrar:hover {
  background-color: #b71c1c;
}

.btn-cancelar {
  background-color: #737373;
  color: white;
  width: 100%;
}

.btn-cancelar:hover {
  background-color: #5a5a5a;
}

/* Indicador de campos obligatorios */
.campo label::after {
  content: " *";
  color: #c62828;
}

.campo:has(input:not([required])) label::after,
.campo:has(select:not([required])) label::after {
  content: "";
}

/* Eliminar el diálogo genérico anterior */
#dialogRegistro {
  display: none;
}