@font-face {
  font-family: "Montreux Grotesk";
  src: url("/fonts/MontreuxGrotesk-Bold.otf") format("opentype");
  font-weight: bold;
}

@font-face {
  font-family: "Montreux Grotesk";
  src: url("/fonts/MontreuxGrotesk-Light.otf") format("opentype");
  font-weight: 300; /* Light */
}

@font-face {
  font-family: "Montreux Grotesk";
  src: url("/fonts/MontreuxGrotesk-Regular.otf") format("opentype");
  font-weight: normal;
}

html,
body {
  height: 100%; /* Asegura que el html y body ocupen toda la altura de la ventana */
  margin: 0;
  padding: 0;
  overflow-y: auto; /* Permite desplazamiento vertical solo si es necesario */
}

body {
  font-family: "Montreux Grotesk", sans-serif;
  font-size: 16px; /* Tamaño base para móviles */
  background-color: #303947; /*  #FFFAF6; #fffcf2; #f7f8f7; */
  line-height: 1.6;
  color: #111827;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%; /* Asegura que el contenedor use el 100% del ancho en pantallas pequeñas */
  max-width: 720px; /* Establece un ancho máximo de 720px para pantallas más grandes */
}

.main {
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  background-color: #fff2e8;
  min-height: calc(100vh - 100px);
}

h1 {
  font-size: 32px; /* Tamaño para móviles */
  font-weight: bold; /* Usará Montreux Grotesk Bold */
}

h2 {
  font-size: 18px;
}

.logo-max-width {
  max-width: 250px; /* Ajusta este valor al ancho máximo que desees */
}

p.light {
  font-weight: 300; /* Usará Montreux Grotesk Light */
}

p {
  font-weight: normal; /* Usará Montreux Grotesk Regular */
}

.mt-section {
  margin-top: 40px;
}

.mb-section {
  margin-bottom: 40px;
}

.smaller {
  font-size: 16px;
}

.gray-color {
  color: #89908b;
}

.btn-yellow,
.btn-white {
  transition: border-bottom-width 0.3s ease; /* Transición suave del borde inferior */
  padding: 1rem 1.5rem;
}

.btn-yellow,
.btn-yellow:hover,
.btn-yellow:active,
.btn-yellow:focus,
.btn-white,
.btn-white:hover,
.btn-white:active,
.btn-white:focus {
  border-radius: 6px;
  border: 1px #303947 solid;
}

.btn-yellow,
.btn-yellow:hover,
.btn-yellow:active,
.btn-yellow:focus {
  background-color: #f9d532 !important;
}

.btn-yellow:hover,
.btn-white:hover {
  border-bottom-width: 7px; /* Aumenta el grosor del borde inferior */
}

.btn-white,
.btn-white:hover,
.btn-white:active,
.btn-white:focus {
  background-color: #ffffff !important;
}

button.full,
.button.full {
  width: 100%;
}

button,
.button {
  background: #eff1ef;
  color: #181b19;
  transition: background 2s ease;
  display: inline-block;
  width: auto;
  text-decoration: none !important;
  text-transform: none;
  white-space: nowrap;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  border: 0px;
}

a {
  color: blue;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.06em;
}

.custom-progress-bar {
  background-color: #212529 !important; /* Cambia 'black' por cualquier código de color que prefieras */
}

.custom-spinner .spinner-border {
  color: #212529; /* Cambia esto a cualquier color que prefieras */
}

/* Estilo para los mensajes de error */
.parsley-errors-list {
  color: #f00; /* Rojo para mensajes de error */
  font-size: 0.9em; /* Tamaño del texto */
  margin: 2px 0 5px; /* Espaciado alrededor del mensaje */
  padding-left: 10px; /* Espaciado interno para alinear con el formulario */
}

/* Estilo para los campos con error */
.parsley-error,
#alertPlaceholder {
  border-color: #f00 !important; /* Borde rojo para campos con error */
  background-color: #ffecec !important; /* Fondo ligeramente rojo */
}

/* Asegurar que los contenedores de radio tengan el mismo estilo de error */
.parsley-error .form-control {
  border-color: #f00 !important; /* Borde rojo para campos con error */
  background-color: #ffecec !important; /* Fondo ligeramente rojo */
}

.form-floating > label {
  color: gray;
}

.form-radius-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.red {
  color: #f00;
}

.text-error {
  font-size: 0.9em;
}

.big-pad {
  padding: 1rem 1.5rem;
}

#errorVerificacion:before {
  content: "• "; /* Este es el punto que se mostrará antes del texto */
  color: inherit; /* Hereda el color del texto del elemento */
}

/* Ajustar el tamaño del texto en los encabezados */
table th {
  font-size: 14px; /* Tamaño de texto más pequeño */
  text-align: center; /* Centrar el texto */
  padding: 10px; /* Espaciado interno */
}

/* Asegurar que las celdas de encabezado y contenido tengan el mismo ancho fijo */
.masAfin,
.menosAfin {
  width: 32px; /* Ajusta este valor según necesites */
  height: 32px; /* Ajusta este valor según necesites */

  align-items: center;
  justify-content: center;
  padding: 0; /* Para asegurar que no haya padding extra */
}

.masAfin img,
.menosAfin img {
  width: 24px;
  height: 24px;
}

#modal_image {
  width: 250px;
  height: 250px;
}

th.col-2 {
  width: 70px; /* Ajusta el ancho para que sea consistente con el contenido */
}

th {
  font-size: 0.875rem; /* Tamaño de letra más pequeño para los encabezados */
  text-align: center; /* Centra el texto en los encabezados */
}

/*navbar*/

.navbar {
  background-color: transparent;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.nav-item {
  margin: 0 10px;
}

.navbar-toggler {
  border: none;
}

/*gestor */

.list-group-item-action {
  cursor: pointer;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}

.selected {
  background-color: #d1ecf1;
  font-weight: bold;
}

#detailsContainer {
  min-height: 200px;
  background-color: #f8f9fa;
}

#evaluadosList {
  font-size: 14px;
}

#evaluadosList .list-group-item {
  font-size: 14px;
}
#detailsContainer {
  font-size: 14px;
}
.selected-row {
  background-color: #d3e9ff !important; /* Un color azul claro */
}

.table-mpd {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  color: #212529;
  font-size: 14px;
}

.table-mpd thead th {
  font-weight: bold;
  border-bottom: 2px solid #dee2e6;
  background-color: #f8f9fa;
  text-align: center;
  padding: 0.75rem;
  vertical-align: bottom;
}

.table-mpd tbody td {
  padding: 0.75rem;
  vertical-align: top;
  border-bottom: 1px solid #dee2e6;
  text-align: center;
}

.table-mpd tbody tr {
  background-color: #ffffff; /* Fondo blanco para las filas */
}

.table-mpd tbody tr.highlighted-row {
  background-color: #d3e9ff !important; /* Fondo azul para la fila enfocada */
}

.table-mpd tbody tr:hover {
  background-color: #f1f1f1; /* Un ligero gris al pasar el mouse, opcional */
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid #e9ecef;
  padding: 0 1rem 0.5rem; /* mismo padding lateral que el workspace */
  width: 100%; /* ocupa todo el ancho disponible */
  box-sizing: border-box;
}
.btn-ghost {
  position: relative;
  border: 0;
  background: transparent;
  color: #6c757d;
  font-weight: 600;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  transition: color 0.2s;
}
/* Hover: solo cambia color texto y aparece subrayado negro */
.btn-ghost:hover {
  color: #000;
}
.btn-ghost:hover::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -4px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}
/* Estado activo en verde */
.btn-ghost.primary {
  color: #22c55e;
}
.btn-ghost.primary::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: -4px;
  height: 3px;
  background: #22c55e;
  border-radius: 2px;
}
#evaluadosList tr:focus,
#evaluadosList tr:focus-visible {
  outline: none !important;
  box-shadow: none !important; /* por si algún tema lo agrega */
}

.table-mpd tbody tr.highlighted-row:hover {
  background-color: #d3e9ff !important; /* Celeste cuando está seleccionada */
}

.table-mpd tbody tr:hover {
  background-color: white; /* Sin fondo gris */
}

/* Solo aplica hover gris cuando estamos usando el mouse */
body.using-mouse .table-mpd tbody tr:hover {
  background-color: #fff;
}

/* Si está activa (celeste), que mantenga el celeste en hover */
.table-mpd tbody tr.highlighted-row:hover {
  background-color: #d3e9ff !important;
}

#loadingOverlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1050; /* Un z-index alto para que esté por encima de todo */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Estilos para tablets y escritorio */
@media (min-width: 768px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 42px; /* Tamaño para tablets y escritorio */
  }

  h2 {
    font-size: 22px;
  }

  .logo-max-width {
    max-width: 300px; /* Ajusta este valor al ancho máximo que desees */
  }

  .mt-section {
    margin-top: 56px;
  }

  .mb-section {
    margin-bottom: 56px;
  }
}

@media (max-width: 400px) {
  a {
    font-size: 14px;
  }

  body {
    font-size: 14px; /* Tamaño base para móviles */
  }

  th.col-2 {
    width: 50px; /* Ajusta el ancho para que sea consistente con el contenido */
  }

  th {
    font-size: 11px !important; /* Tamaño de letra más pequeño para los encabezados */
    text-align: center; /* Centra el texto en los encabezados */
  }
  .form-control {
    font-size: 14px;
  }

  .smaller {
    font-size: 12px;
  }
}
