/* Ajustar Select2 a Bootstrap 5 */
.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container {
    width: 100% !important;
}


.btn-outline-primary.active {
    background-color: #0d6efd;
    color: white;
}

/* Subir foto */
.custom-file-input {
    display: none;
    /* Oculta el input real */
}



.custom-file-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.custom-file-label:hover {
    background-color: #0056b3;
}

.custom-file-label i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.file-name {
    margin-top: 5px;
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

/* Estilo para subir foto 13-Marzo-2025*/
/* Contenedor general */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6); /* fondo gris oscuro translúcido */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 99999; /* 🔥 prioridad máxima */
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease;
}

/* Mostrar el loader */
.loader-container.active {
  visibility: visible;
  opacity: 1;
}

/* Spinner circular */
.spinner {
  width: 100px;
  height: 100px;
  border: 12px solid #f3f3f3;
  border-top: 12px solid #007bff;
  border-radius: 50%;
  animation: girar 1s linear infinite;
}

/* Texto debajo del spinner */
.loader-text {
  margin-top: 20px;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

/* Animación de giro */
@keyframes girar {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
