/*****
Customiza los estilos para el sistema de Posgrados FC
*****/
/* Parametros del body*/
body {
  margin: 0 auto;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px; /* Tamaño base ajustado */
}

/* Personalización de la clase card-header con bg-primary */
.card-header.bg-primary {
  background-color: #337ab7 !important;
  border-color: #2e6da4 !important;
  color: #ffffff !important;
  text-align: center;
  padding: 0.75rem;
  font-size: 1.25rem;
}

.nav-divider {
    list-style: none;
    margin: 0.5rem 0;
}

.text-naranja-menu {
    color: rgba(255, 165, 0, 0.85); /* naranja opaco */
    letter-spacing: 0.5px;
}

/* Personalización del botón */
.btn-primary {
  background-color: #337ab7;
  border-color: #2e6da4;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #004A98;
  border-color: #204d74;
}

/* Personalización del color del texto en el formulario */
.card-body form {
  color: #666;
}

.card-body form .form-label {
  color: #666;
  font-size: 1rem;
}

.card-body form input::placeholder {
  color: #aaa;
}

.navbar {
  background-color: #004080;
}

.navbar-brand img {
  height: 50px;
}

.menu-lateral {
  margin: 0;
  border-radius: 0;
  text-align: left;
  padding-left: 10px;
  width: 100%;
  border: 1px solid #ffffff;
  box-shadow: none;
  height: 50px;
  line-height: 50px;
  font-size: 16px;
}

.menu-lateral + .menu-lateral {
  margin-top: -1px;
  border-top: none;
}

.separador-vertical {
  margin-right: 10px;
  margin-left: 10px;
  height: 60%;
  display: inline;
  border: 1px solid white;
  float: left;
}

.separador-horizontal {
  padding-left: 20%;
  width: 100%;
  margin: 8px 0;
  border: 1px solid white;
}

#Encabezado {
  max-width: 90%;
  margin: 0 auto;
  color: white;
  text-align: right;
}

#divEncabezado {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 0;
}

.fondo-encabezado {
  background-color: #004A98;
}

#logoUASLP, #logoEntidad {
  height: 70px;
  width: auto;
}

.titulo {
  font-size: 1.2em;
  font-weight: bold;
}

.subtitulo {
  font-size: 1em;
}

.fondo-menu-superior {
  margin: 5px 0;
  background-color: #DADADA;
}

.menu-superior {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: stretch;
  justify-content: flex-end;
}

.boton-menu-superior {
  display: flex;
  min-width: 140px;
  min-height: 36px;
  padding: 5px;
  border: none;
  color: #002F74;
  background-color: #f1f1f1;
  text-transform: uppercase;
  font-size: 0.9em;
  justify-content: center;
  align-items: center;
}

button {
  width: 100%;
  padding: 10px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  color: white;
  background-color: #0056b3;
}

.sidebar-custom {
  background-color: #004080;
  color: white;
  transition: all 0.3s ease-in-out;
}

.nav-link:hover {
  background-color: #06062e;
  color: white;
  border-radius: 5px;
}

#menu-lateral {
  background-color: #004085;
  margin: 0;
  padding: 0;
  height: 100vh;
}

.btn-table {
  background-color: #337ab7;
  border-color: #2e6da4;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table:hover {
  background-color: #286090;
  border-color: #204d74;
  color: black;
}

/* Estilo base */
.btn-table-primary {
  background-color: #337ab7;
  border-color: #2e6da4;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-primary:hover {
  background-color: #286090;
  border-color: #204d74;
  color: black;
}

.btn-table-success {
  background-color: #5cb85c;
  border-color: #4cae4c;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-success:hover {
  background-color: #449d44;
  border-color: #398439;
  color: black;
}

.btn-table-info {
  background-color: #5bc0de;
  border-color: #46b8da;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-info:hover {
  background-color: #31b0d5;
  border-color: #269abc;
  color: black;
}

.btn-table-warning {
  background-color: #f0ad4e;
  border-color: #eea236;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-warning:hover {
  background-color: #ec971f;
  border-color: #d58512;
  color: black;
}

.btn-table-danger {
  background-color: #d9534f;
  border-color: #d43f3a;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-danger:hover {
  background-color: #c9302c;
  border-color: #ac2925;
  color: black;
}

.btn-table-secondary {
  background-color: #6c757d;
  border-color: #5a6268;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-secondary:hover {
  background-color: #545b62;
  border-color: #4e555b;
  color: black;
}

.btn-table-light {
  background-color: #f8f9fa;
  border-color: #dae0e5;
  color: #212529;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-light:hover {
  background-color: #e2e6ea;
  border-color: #d6d8db;
  color: black;
}

.btn-table-dark {
  background-color: #343a40;
  border-color: #1d2124;
  color: #ffffff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
}

.btn-table-dark:hover {
  background-color: #23272b;
  border-color: #1a1e21;
  color: black;
}

.btn-table-link {
  background-color: transparent;
  border: none;
  color: #007bff;
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  width: auto;
  text-decoration: none;
}

.btn-table-link:hover {
  background-color: transparent;
  border: none;
  color: #0056b3;
  text-decoration: underline;
}


.titulo-tabla {
  color: #0a0a4b;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

.table-hover tbody tr:hover td, .table-hover tbody tr:hover th {
  background-color: #557da094;
}

.toastify {
  position: absolute !important;
}

.toastify:hover {
  opacity: 1 !important;
}

/* Asegurar que los contenedores tengan un espaciado adecuado 
.container-fluid {
  padding: 1rem; 
}
*/

/* Centrando elementos con más precisión */
.centered-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Asegurar altura completa de la ventana */
}

/* Estilos de botones personalizados */
.btn-custom {
  background-color: #337ab7;
  color: white;
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
}

.btn-custom:hover {
  background-color: #286090;
  color: #fff;
}

/* Estilos de tarjetas personalizadas */
.card-custom {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.card-custom .card-header {
  background-color: #004085;
  color: white;
  text-align: center;
  font-size: 1.25rem;
}

.card-custom .card-body {
  padding: 1rem;
  font-size: 1.2rem;
}

/* Estilos para formularios personalizados */
.form-custom {
  max-width: 500px;
  margin: 0 auto;
}

.form-custom .form-control {
  border-radius: 0.25rem;
  border: 1px solid #ccc;
}

.form-custom .form-control:focus {
  border-color: #337ab7;
  box-shadow: 0 0 5px rgba(51, 122, 183, 0.5);
}

.form-custom .btn-submit {
  background-color: #337ab7;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
}

.form-custom .btn-submit:hover {
  background-color: #286090;
}

/* Estilos para contenido dinámico generado */
.dynamic-content {
  text-align: center;
  margin: 1rem 0;
}

.dynamic-content h1, .dynamic-content h2, .dynamic-content h3 {
  color: #004085;
  font-weight: bold;
}

.dynamic-content p {
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}


/* Contenedor principal */
.detalle-usuario {
  margin: 20px auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Imagen del aspirante */
.foto-usuario {
  width: 120px;
  height: 140px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #ddd;
}

/* Tabla de datos */
.table {
  margin-top: 10px;
}

.table th, .table td {
  padding: 10px;
  text-align: left;
}

.table .bg-secondary {
  background-color: #6c757d !important;
}


/* Media Queries para responsividad adicional */
@media (max-width: 768px) {
  .container-fluid {
      padding: 0.5rem;
  }

  .form-custom {
      max-width: 100%;
  }

  .btn-custom {
      padding: 0.4rem 0.8rem;
      font-size: 0.9rem;
  }

    /* Título */
  .titulo {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .centered-content {
      flex-direction: column;
      padding: 1rem;
  }

  .dynamic-content h1 {
      font-size: 1.5rem;
  }

  .form-custom {
      padding: 0.5rem;
  }

    #divEncabezado {
      flex-direction: column;
      padding: 5px;
  }

  .menu-lateral {
      overflow-y: auto;
  }
}


/* Media queries para pantallas más pequeñas */
@media (max-width: 1024px) {
  .titulo {
    font-size: 1.1rem;
  }

  .card-header.bg-primary {
      font-size: 1rem;
      padding: 0.5rem;
  }

  .menu-lateral {
      font-size: 14px;
      height: 40px;
  }

  .titulo-tabla {
      font-size: 1rem;
  }

  #logoUASLP, #logoEntidad {
      height: 50px;
  }

  .boton-menu-superior {
      font-size: 0.8em;
      min-width: 120px;
  }

  body {
      font-size: 12px;
  }

  .titulo {
      font-size: 1rem;
  }

  .subtitulo {
      font-size: 0.9rem;
  }
}
