/* Estilos para h1 y h2 */
h1, h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 100;
    margin-top: 0.3rem;
    margin-bottom: 0px;
}
h1 {
    font-size: 2rem;
}
body {
    background-color: #e2ecf9;
    padding: 1rem;
}
/* Estilos para el resto del contenido */
body, p, a, input, button {
    font-family: 'Raleway', sans-serif; 
    font-weight: 400;
}
/* Estilo para cambiar el color del botón activo a amarillo */
.nav-pills .nav-link {
    color: #fff;
}
.nav-pills .nav-link.active {
    background-color: #ffc107;
    color: #000;
}
.ocultar {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mostrar {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
.img-nuevo {
    width: 8rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.img-cerrar {
    width: 8rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.grayscale-hover:hover {
    filter: grayscale(100%);
    transform: scale(1.1);
}
.menu_sistema {
    background-color: #0f0f0f;
    border-bottom: solid 1px #424242;
}
.fullscreen-btn {
    width: 3rem;
    height: 3rem;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    padding: 0;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
    display: block;
    cursor: pointer;
}

.fullscreen-btn:hover {
    filter: grayscale(100%);
    transform: scale(1.1);
}
.cursor {
    cursor: pointer;
}
.list-group>.cursor:hover {
    background-color: #ffc107;
    color: #000;
}
.categoria h3 {
    margin-bottom: 0.5rem; /* Reduce el margen inferior entre el título y el select */
}

.categoria {
    margin-bottom: 1.5rem; /* Añade espacio entre las categorías */
}
.alto {
    height: 5rem;
}
.toast {
    margin-bottom: 10px; /* Añade espacio entre cada mensaje */
}
.verEquipo {
    cursor: pointer;
}
.verEquipo:hover {
    background-color: #198754;
    color: #ffffff;
}
#VerRescatista {
    border: solid thin #999;
    padding: 1rem 1rem;
    border-radius: 15px;
}
#VerRescatista h3 {
    background-color: #878787;
    text-align: center;
    padding: .5rem .2rem;
    color: #333;
    font-size: 1.3rem;
}
#VerRescatista p {
    margin-top: 0;
    margin-bottom: .5rem;
    border-bottom: solid thin #5c5c5c;
    padding-bottom: .5rem;
}
/* Nuevos */
.img-home {
    width: 100%;
    max-width: 20rem;
    margin: 1rem auto;
    display: block;
}
.img-home-app {
    width: 100%;
    max-width: 12rem;
    margin: 0 auto;
    display: block;
}
.img-home-logo {
    width: 100%;
    max-width: 14rem;
    margin: 0 auto;
    display: block;
}
/* Estilo para el formulario */
.form-agregar,.form-sesion {
  max-width: 400px; /* Ancho máximo del formulario */
}
.card-body .bg-badge-1 {
    background-color: #FFA500;
}
.card-body .bg-badge-2 {
    background-color: #5e9ef9;
}
.card-body .bg-badge-3 {
    background-color: #008000;
}
.card-body .bg-badge-4 {
    background-color: #17d244;
}
.card-body .bg-badge-5 {
    background-color: #FF0000;
}
.card-body .bg-badge-6 {
    background-color: #6f00ff;
}
.div_escuela_botones {
  display: flex; /* Organiza los elementos en línea horizontal */
  gap: 10px; /* Espaciado entre los botones */
  justify-content: center; /* Centra los botones horizontalmente */
  align-items: center; /* Alinea los elementos verticalmente */
    padding: .5rem 0;
}
.div_escuela_botones img {
  width: 40px; /* Ancho de la imagen */
  height: 40px; /* Alto de la imagen */
  object-fit: cover; /* Asegura que la imagen se ajuste correctamente */
  cursor: pointer; /* Cambia el cursor al pasar sobre la imagen */
}
.div_escuela_acciones {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.header_h1 {
    font-size: 2rem;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 100;
    margin-top: 0.3rem;
    margin-bottom: 0px;
}

/* panel derecho del psicólogo */
.psico-form-panel {
  padding: 18px 18px 24px 18px;
}

/* cada grupo input */
.psico-form-panel .form-control,
.psico-form-panel .form-select {
  margin-bottom: 0.65rem;     /* separación entre inputs */
  min-height: 44px;           /* más altos */
  border-radius: 10px;        /* más suaves */
  font-size: 0.95rem;
}

/* etiqueta "Sesión 0" y similares */
.psico-form-panel small,
.psico-form-panel label {
  margin-bottom: 0.35rem;
}

/* los 2 botones de hasta abajo */
.psico-form-panel .btn {
  min-height: 46px;
  font-weight: 500;
  border-radius: 10px;
}

/* si tienes 2 columnas en la misma fila (costo / edad) */
.psico-form-panel .row .col {
  margin-bottom: 0.65rem;
}

/* que no se pegue al borde en pantallas grandes */
@media (min-width: 992px) {
  .psico-form-panel {
    padding-left: 28px;
  }
}
.card-paciente {
  border: 1px solid #fff;
  border-radius: 12px;
  padding: 20px 14px;
  margin: 20px 0;
  background-color: #f4f8fd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);  /* 👈 sombra suave */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* efecto al pasar el mouse */
.card-paciente:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}
.logo img {
    width: 160px;
}

.topbar-luna {
  position: sticky;
  top: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 16px;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 5px;
}

/* para que no pegue al borde */
.topbar-luna-left,
.topbar-luna-center,
.topbar-luna-right {
  display: flex;
  align-items: center;
}

.topbar-luna-left {
  font-weight: 600;
  color: #222;
}

.topbar-luna-center {
  flex: 1;
  justify-content: center;
  color: #555;
  text-align: center;
}

.topbar-luna-right {
  justify-content: flex-end;
}

.topbar-luna-user {
  white-space: nowrap;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* top bar central */
#uidInfo,#psicoSeleccionadoInfo {
  background: rgba(255,255,255,.85);
  padding: .45rem .85rem;
  border-radius: 12px;
}

/* inputs buscadores */
#buscaPsico,
#searchPac {
  background: #fff;
  border-radius: 12px !important;
}

@media (max-width: 991px) {
  .card-col-left {
    min-height: auto;
  }
  #listaPacientes {
    max-height: 50vh;
  }
}
/* Fondo con blur + overlay */
#div_cargar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px); /* Desenfoque del fondo */
    background-color: rgba(0, 0, 0, 0.2); /* Ligero oscurecimiento */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Rueda giratoria */
.loading {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;         /* Color base del borde */
    border-top: 6px solid #0a6ea3;      /* Color del spinner (animado) */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación de giro */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Sacudida del modal cuando hay error */
.modal-error-shake {
  animation: modal-shake 0.35s ease;
}

@keyframes modal-shake {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(-8px); }
  40%  { transform: translateX(8px); }
  60%  { transform: translateX(-6px); }
  80%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

/* Mensaje de error en la parte baja del modal */
#ncMsg {
  min-height: 1.2rem;
  font-size: 0.85rem;
}

#ncMsg.text-error {
  color: #dc3545;   /* rojo tipo Bootstrap */
  font-weight: 600;
}
/* Lista compacta de "Pacientes de hoy" */
.cita-hoy-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background-color: #f5f7fb;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.cita-hoy-hora {
  font-weight: 600;
  min-width: 3.5rem;  /* ej. "09:00" */
}

.cita-hoy-info {
  flex: 1;
  min-width: 0;
}

.cita-hoy-nombre {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cita-hoy-detalle {
  font-size: 0.8rem;
  color: #6c757d;
}

.cita-hoy-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}

.cita-hoy-actions .btn {
  padding: 2px 8px;
  font-size: 0.75rem;
}
