/* Tarjeta corporativa de accesos rápidos en index */
.card-ops{max-width:760px}
.brand-logo-sm{height:40px}
/* Estilos para combobox híbridos con input-group */
.position-relative .input-group {
  position: relative;
}

.position-relative .dropdown-menu {
  max-height: 350px;
  overflow-y: auto;
  border: 2px solid #0082bb;
  border-radius: 0 0 8px 8px;
  border-top: none;
  display: none;
  position: absolute !important;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000 !important;
  background: white;
  width: 100% !important;
  margin: 0 !important;
  box-shadow: 0 8px 25px rgba(0, 130, 187, 0.15);
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.position-relative .dropdown-menu.show {
  display: block !important;
}

.position-relative .dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.position-relative .dropdown-item:hover {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  transform: translateX(2px);
}

.position-relative .dropdown-item:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: #fff;
  animation: slideInLeft 0.3s ease;
}

@keyframes slideInLeft {
  from { width: 0; }
  to { width: 3px; }
}

.position-relative .dropdown-item:last-child {
  border-bottom: none;
}

/* Estilos específicos para input de proyectos */
#ProyectoInput {
  border: 2px solid #0082bb;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 1.1rem;
  width: auto !important;
  min-width: 320px !important; /* Ancho mínimo garantizado */
  padding: 12px 16px;       /* Margen interno más equilibrado */
  left: 0% !important;
  transition: all 0.3s ease;
}

#ProyectoInput:focus {
  border-color: #009bd5;
  border-right: none !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
}

#btnMostrarTodosProyectos {
  border: 2px solid #0082bb;
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
  padding: 0 12px;
  min-height: 50px;
  height: 50px;
  min-width: 50px;
  margin-left: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#btnMostrarTodosProyectos:hover {
  background: linear-gradient(135deg, #006699 0%, #0082bb 100%);
  border-color: #006699;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 130, 187, 0.3);
}

/* Estilos específicos para input de contenedores */
#GabineteInput {
  border: 2px solid #0082bb;
  border-right: none !important;
  border-radius: 8px 0 0 8px !important;
  font-size: 1.1rem;
  width: auto !important;
  min-width: 320px !important; /* Ancho mínimo garantizado */
  padding: 20px 40px;
  margin-right: 0 !important;
  transition: all 0.3s ease;
}

#GabineteInput:focus {
  border-color: #009bd5;
  border-right: none !important;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
}

#btnMostrarTodosContenedores {
  border: 2px solid #0082bb;
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  border-radius: 0 8px 8px 0 !important;
  border-left: none !important;
  padding: 0 12px;
  min-height: 50px;
  height: 50px;
  min-width: 50px;
  margin-left: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#btnMostrarTodosContenedores:hover {
  background: linear-gradient(135deg, #006699 0%, #0082bb 100%);
  border-color: #006699;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 130, 187, 0.3);
}

/* Asegurar que los input-group-lg tengan el tamaño correcto y estén perfectamente unidos */
.input-group-lg .form-control {
  min-height: 50px;
  margin-right: 0 !important;
}

.input-group-lg .btn {
  min-height: 50px;
  margin-left: 0 !important;
}

.input-group {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important; /* Sin espacio entre elementos */
  justify-content: flex-start !important; /* Alinear a la izquierda */
  width: auto !important; /* No ocupar todo el ancho disponible */
  max-width: fit-content !important; /* Solo el ancho necesario */
}

.input-group > .form-control {
  margin-right: 0 !important;
  position: relative;
  z-index: 2;
  flex: 0 0 auto !important; /* No crecer, mantener tamaño específico */
  width: auto !important; /* Ancho automático basado en contenido */
  min-width: 200px !important; /* Ancho mínimo para usabilidad */
}

.input-group > .btn {
  margin-left: 0 !important;
  position: relative;
  z-index: 1;
  flex-shrink: 0; /* El botón mantiene su tamaño */
}

/* Contenedores para los comboboxes híbridos */
.position-relative {
  display: flex !important;
  justify-content: flex-start !important; /* Alinear a la izquierda */
  width: 100% !important; /* Ocupar todo el ancho del contenedor padre */
}

.position-relative .input-group {
  width: auto !important; /* El input-group solo ocupa lo necesario */
  max-width: none !important;
}

/* Estilos para la tarjeta de selección de proyecto - Colores Corporativos */
#tarjetaSeleccionProyecto .card {
  box-shadow: 0 8px 25px rgba(0,130,187,0.2);
  border-radius: 12px;
  border: 2px solid #0082bb;
  /* Antes: overflow:hidden; causaba que el dropdown #listaProyectos se recortara.
    Se elimina para permitir que el menú desplegable pueda salir del contenedor. */
  overflow: visible;
}

#tarjetaSeleccionProyecto .card-header {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%) !important;
  border: none;
  font-weight: 600;
  color: white !important;
}

#tarjetaSeleccionProyecto .card-header h4 {
  color: white !important;
}

#tarjetaSeleccionProyecto .card-header i {
  color: white !important;
}

#tarjetaSeleccionProyecto .alert-info {
  border-left: 4px solid #0082bb;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
  border-color: #0082bb;
}

#tarjetaSeleccionProyecto .dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
  border: 2px solid #0082bb;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,130,187,0.2);
  /* Asegurar que sobresalga sobre la tarjeta al desbordar */
  z-index: 2000;
}

#tarjetaSeleccionProyecto .dropdown-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

#tarjetaSeleccionProyecto .dropdown-item:hover {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  transform: translateX(5px);
}

#tarjetaSeleccionProyecto .dropdown-item:last-child {
  border-bottom: none;
}

/* Estilos corporativos para el input de búsqueda de proyectos */
#tarjetaSeleccionProyecto #ProyectoInput {
  padding: 12px 16px;
  border: 2px solid #0082bb;
  border-radius: 8px 0 0 8px;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

#tarjetaSeleccionProyecto #ProyectoInput:focus {
  border-color: #009bd5;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
  outline: 0;
}

/* Botón de dropdown corporativo */
#tarjetaSeleccionProyecto #btnMostrarTodosProyectos {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  border: 2px solid #0082bb;
  border-left: none;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

#tarjetaSeleccionProyecto #btnMostrarTodosProyectos:hover {
  background: linear-gradient(135deg, #006299 0%, #007bb3 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 130, 187, 0.3);
}

/* Botón continuar corporativo */
#tarjetaSeleccionProyecto #btnContinuar {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

#tarjetaSeleccionProyecto #btnContinuar:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1ea775 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

#tarjetaSeleccionProyecto #btnContinuar:disabled {
  background: #6c757d;
  opacity: 0.6;
}

/* Icono QR corporativo */
#tarjetaSeleccionProyecto .text-primary {
  color: #0082bb !important;
}

/* Label corporativo */
#tarjetaSeleccionProyecto .form-label {
  color: #0082bb;
  font-weight: 600;
}

#dropdownProyectos:hover {
  border-color: #009bd5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,130,187,0.2);
}

#btnContinuar {
  background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

#btnContinuar:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

#btnContinuar:disabled {
  background: #6c757d;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ancho mínimo de columnas de la tabla de componentes */
.tabla-componentes {
  width: 100% !important;
  min-width: 100% !important;
}
.tabla-componentes .col-numero {
  min-width: 50px;
}
.tabla-componentes .col-nombre {
  min-width: 150px;
}
.tabla-componentes .col-marca {
  min-width: 120px;
}
.tabla-componentes .col-cantidad {
  min-width: 100px;
}
.tabla-componentes .col-adjunto {
  min-width: 130px;
  text-align: center !important;
  vertical-align: middle !important;
}

/* Fondo blanco y centrado para la tabla de componentes */
.tabla-componentes {
  background: #fff !important;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.13);
}
.tabla-componentes th, .tabla-componentes td {
  background: #fff !important;
  vertical-align: middle !important;
  /* Restaurar estructura de tabla, sin display:block ni min-width */
  box-shadow: none !important;
  border-radius: 0 !important;
}
.tabla-componentes tbody tr:hover, .tabla-componentes tbody tr:focus, .tabla-componentes tbody tr:active {
  background: #f5f8ff !important;
}

/* Centrado del botón Ver PDF */
.tabla-componentes .btn-ver-pdf {
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.btn-warning {
    background-color: #0c54f0;
    border-color: #f0ad4e;
    color: #fff;
}

/* Ajuste para el iframe 3D y su contenedor */
#sketchfabEmbed .sketchfab-embed-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

#sketchfabIframe {
    width: 100% !important;
    max-width: 700px;
    height: 400px !important;
    min-height: 250px;
    display: block;
    margin: 0 auto;
}

/* Sombra para las tarjetas y animación de zoom */
.card {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transition: transform 0.25s cubic-bezier(.4,2,.6,1), box-shadow 0.25s;
    border-radius: 12px;
}

.card:hover,
.card:focus,
.card:active {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.22);
    z-index: 2;
}

/* Animación de zoom para filas de la tabla sin cortar la primera columna */
.table-responsive {
    overflow: visible !important;
    position: relative;
    z-index: 0;
}


.table,
.table-bordered,
.tabla-componentes {
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border-radius: 10px;
    transition: box-shadow 0.2s;
}


.table tbody tr {
    transition: transform 0.18s cubic-bezier(.4,2,.6,1), box-shadow 0.18s;
    position: relative;
    z-index: 1;
    background: #fff !important;
}

.table tbody tr:hover,
.table tbody tr:focus,
.table tbody tr:active {
    transform: scale(1.025);
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    z-index: 10;
    background: #f5f8ff !important;
}

/* Efecto de zoom en móvil al tocar la fila */
@media (hover: none) and (pointer: coarse) {
    .table tbody tr:active {
        transform: scale(1.025);
        box-shadow: 0 4px 16px rgba(0,0,0,0.13);
        z-index: 10;
        background: #f5f8ff;
    }
}

/* Efecto de zoom en móvil al tocar la tarjeta */
@media (hover: none) and (pointer: coarse) {
    .card:active {
        transform: scale(1.04);
        box-shadow: 0 8px 32px rgba(0,0,0,0.22);
        z-index: 2;
    }
}

/* Tabla responsiva: scroll horizontal en pantallas pequeñas */
@media (max-width: 991.98px) {
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .tabla-componentes {
        min-width: 600px;
        width: 100%;
    }
    .table thead,
    .table tbody,
    .table tr,
    .table th,
    .table td {
        white-space: nowrap;
    }
}

/* Opcional: mejora visual para scroll horizontal */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-track {
    background: #f5f5f5;
}
.btn-ver-3d {
    background: linear-gradient(to right, #0082bb, #009bd5); 
    color: #fff !important;
    border: none;
    font-weight: 600;
      }
   
      /* Botón Ver PDF: degradado rojo-gris */
      .btn-ver-pdf {
        background: linear-gradient(to right,  #0082bb, #009bd5 );
        color: #fff !important;
         border: none;
        font-weight: 600;
      }
 


    /* Barra de búsqueda responsive mejorada */
      #searchGabineteForm {
          display: flex;
    max-width: 350px;
    width: 100%;
    margin: 0;
    height: 100%;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: transparent;
    padding: 0;
    position: static;
      }
      #searchGabineteInput {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        min-width: 0;
        width: 100%;
        font-size: 1rem;
        box-shadow: none;
      }
      #searchGabineteBtn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        background: linear-gradient(to right, #0082bb, #009bd5);
        font-size: 1rem;
        min-width: 44px;
        padding-left: 14px;
        padding-right: 14px;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
      }
      #searchGabineteBtn .bi-search {
    color: #fff !important;
}
   @media (max-width: 767.98px) {
  #searchGabineteForm {
    max-width: 100%;
    flex-direction: row;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
  }

  #searchGabineteInput {
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    margin-left: 0; /* Elimina el desplazamiento negativo */
  }

  #searchGabineteBtn {
    font-size: 1rem;
    min-width: 44px;
            background: linear-gradient(to right, #0082bb, #009bd5);

    padding-left: 14px;
    padding-right: 14px;
  }
}

      .navbar .form-control {
        min-width: 0;
        max-width: 100%;
      }



/* Barra de búsqueda central igual a la del header pero con clases propias */

/* Barra de búsqueda central igual a la del header */
.search-center-form {
    display: flex;
    max-width: 350px;
    width: 100%;
    margin: 0% auto 0 auto;
    padding: 0;
    position: static;
    justify-content: center;
    align-items: center;
    border: 1.5px solid rgba(176,176,176,0.45);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: transparent;
}


.search-center-input {
    border: none;
    border-right: 1.5px solid rgba(176,176,176,0.45);
    border-radius: 10px 0 0 10px;
    min-width: 0;
    width: 100%;
    font-size: 1rem;
    box-shadow: none;
}

/* Botón de búsqueda central igual al de login */
.search-center-btn {
    border: none;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(to right, #0082bb, #009bd5);
    font-size: 1rem;
    min-width: 44px;
    padding-left: 14px;
    padding-right: 14px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    height: 44px;
    transition: box-shadow 0.2s, background 0.2s;
}
.search-center-btn .bi-search {
    color: #fff !important;
}
.search-center-btn:hover,
.search-center-btn:focus {
    background: rgba(0,0,0,0.08) !important;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.38);
}

@media (max-width: 767.98px) {
    .search-center-form {
        max-width: 100%;
        flex-direction: row;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
        margin-top: 24px;
        border-radius: 8px;
    }
    .search-center-input {
        min-width: 0;
        width: 100%;
        font-size: 1rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
        margin-left: 0;
        height: 38px;
        border-radius: 8px 0 0 8px;
    }
    .search-center-btn {
        font-size: 1rem;
        min-width: 44px;
        padding-left: 12px;
        padding-right: 12px;
        height: 38px; /* Igual que el input de búsqueda */
        border-radius: 0 8px 8px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

#searchGabineteFormBodyWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 100%;
    margin: 10% auto;
}
#searchGabineteFormBodyWrapper h5 {
    margin-bottom: 1.2rem;
    color: #0082bb;
}

.VerComponentes {
    background: linear-gradient(to right,  #0082bb, #009bd5 );
    color: #fff !important;
    border: none;
    font-weight: 600;
}
.EscanearQR {
    background: linear-gradient(to right,  #0082bb, #009bd5 );
    color: #fff !important;
    border: none;
    font-weight: 600;
}

/* Tabla de bitácoras */
#tablaBitacorasWrapper {
    display: none;
    margin-bottom: 1.5rem;
}
#tablaBitacorasWrapper h5 {
    color: #0082bb;
    font-weight: 600;
    margin-bottom: 1rem;
}
#tablaBitacoras {
    background: #fff;
    border-radius: 10px;
    font-size: 0.98rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
#tablaBitacoras th {
    background: linear-gradient(to right, #0082bb, #009bd5) !important;
    color: #fff !important;
    font-weight: 600;
    border: none;
}
#tablaBitacoras td {
    color: #222;
    border: none;
    background: #f8fafd;
}
#tablaBitacoras tr:nth-child(even) td {
    background: #eaf4fb;
}
@media (max-width: 767.98px) {
    #tablaBitacoras {
        font-size: 0.93rem;
    }
}
#bitacoraFeedback {
    display: none;
}

.logo-title-text {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .logo-title-link {
    justify-content: center !important;
    width: 100%;
  }
  .logo-title-text {
    font-size: 1.1rem !important;
    margin-left: 6px !important;
  }
  .logo {
    margin-left: 0 !important;
    margin-right: 8px !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
}

#userDropdown {
  display: none;
}

/* Botón de usuario (dropdown) completamente transparente en todos los estados */
#userDropdownBtn, #userDropdownBtn:focus, #userDropdownBtn:active, #userDropdownBtn:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18); /* Sombra sutil */
  color: inherit !important;
  outline: none;
  padding: 0 8px;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.2s;
  min-height: 40px; /* Más alto en desktop */
  height: 40px;
  line-height: 40px;
  font-size: 1.08rem;
}

@media (max-width: 767.98px) {
  #userDropdownBtn, #userDropdownBtn:focus, #userDropdownBtn:active, #userDropdownBtn:hover {
    min-height: 40px; /* Más alto en móvil */
    height: 40px;
    line-height: 40px;
    font-size: 1.13rem;
  }
}

/* Elimina cualquier borde o fondo de Bootstrap para el botón */
#userDropdownBtn:focus-visible {
  outline: 2px solid #0082bb;
  outline-offset: 2px;
}

/* Botón de iniciar sesión transparente, con sombra negra y más arriba */
#loginBtn {
  background: transparent !important;
  border: solid #b0b0b0 !important;;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.32);
  padding: 0 18px;
  margin-top: 8;
  margin-bottom: 0;
  transition: box-shadow 0.2s, background 0.2s;
  position: relative;
  z-index: 20;
  height: 38px;
  line-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
#loginBtn:hover, #loginBtn:focus, #loginBtn:active {
  background: rgba(0,0,0,0.08) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.38);
}
@media (max-width: 767.98px) {
  #loginBtn {
    margin-top: 1px !important; /* Sube el botón de login en móvil */
    font-size: 1.1rem;
    width: 90%;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    position: relative;
    top: -4px;
  }
}

/* Ajuste de alineación vertical para la barra de búsqueda y el botón de login */
.custom-navbar .col-12,
.custom-navbar .col-md-auto,
.custom-navbar .col-md,
.custom-navbar .col-md-auto.d-flex {
  align-items: center !important;
}

/* Cabeceras de tablas de componentes y bitácoras con degradado igual al header */
.table thead tr,
#tablaBitacoras thead tr {
    background: linear-gradient(to right, #0082bb, #009bd5) !important;
}
.table thead th,
#tablaBitacoras th {
    background: transparent !important;
    color: #fff !important;
    font-weight: 600;
    border: none;
}
#descripcionBitacora {
    min-width: 320px;
    width: 99%;
    max-width: 100%;
    resize: vertical;
    font-size: 1.08rem;
    margin: 0 0 0 0px; /* Alinea a la izquierda, separa del borde izquierdo */
    display: block;
    text-align: left;
}
@media (max-width: 767.98px) {
    #descripcionBitacora {
        min-width: 0;
        max-width: 100%;
        margin: 0 0 0 0;
    }
}
.btn-agregar-bitacora{
        background: linear-gradient(to right, #0082bb, #009bd5) !important;
        color: #fff !important;
}

.card.BitacoraTarjeta .card-header {
    background: linear-gradient(to right, #0082bb, #009bd5) !important;
    color: #fff !important;
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: none;
    font-size: 1.13rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Solo contorno gris, sin bordes redondeados */
#searchGabineteForm {
  border: 1.5px solid rgba(176,176,176,0.45);
  border-radius: 10px;
}
#searchGabineteInput {
  border: none;
  border-right: 1.5px solid rgba(176,176,176,0.45);
  border-radius: 10px 0 0 10px;
}
#searchGabineteBtn {
  border: none;
  border-radius: 0 10px 10px 0;
}
#loginBtn {
  border: 1.5px solid rgba(176,176,176,0.45) !important;
  border-radius: 10px !important;
}
@media (max-width: 767.98px) {
  #searchGabineteForm {
    border-radius: 8px;
  }
  #searchGabineteInput {
    border-radius: 8px 0 0 8px;
  }
  #searchGabineteBtn {
    border-radius: 0 8px 8px 0;
  }
  #loginBtn {
    border-radius: 8px !important;
  }
}

#searchGabineteBtn:hover, #searchGabineteBtn:focus {
  background: rgba(0,0,0,0.08) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.38);
}

/* =========================
   ESTILOS MEJORADOS PARA FORMULARIO NEWQR
   ========================= */

/* Paleta de colores del sitio */
:root {
  --primary-blue: #0082bb;
  --secondary-blue: #009bd5;
  --light-blue: #f5f8ff;
  --success-green: #28a745;
  --warning-orange: #f0ad4e;
  --danger-red: #dc3545;
  --dark-gray: #343a40;
  --light-gray: #f8f9fa;
  --white: #ffffff;
  --shadow-light: 0 2px 8px rgba(0,130,187,0.15);
  --shadow-medium: 0 4px 16px rgba(0,130,187,0.2);
  --shadow-heavy: 0 6px 24px rgba(0,130,187,0.25);
}

/* Card principal del formulario - Diseño Corporativo */
.formulario-newqr .card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* Estilos para tarjetas de PDF y Link 3D - Mismo tamaño */
.tarjeta-pdf, .tarjeta-link3d {
  min-height: 220px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.tarjeta-pdf .card, .tarjeta-link3d .card {
  min-height: 200px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tarjeta-pdf .card:hover, .tarjeta-link3d .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 130, 187, 0.15);
  border-color: #0082bb;
}

/* Contenedor del input del link 3D al 100% */
.tarjeta-link3d .input-group {
  width: 100% !important;
  display: flex !important;
}

.tarjeta-link3d .input-group .form-control {
  width: 100% !important;
  min-width: 100% !important;
  flex: 1 !important;
  border: 1px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s ease;
}

.tarjeta-link3d .input-group .form-control:focus {
  border-color: #0082bb;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
}

/* Asegurar que el contenido se distribuya uniformemente */
.tarjeta-pdf .card > *, .tarjeta-link3d .card > * {
  margin-bottom: 0.5rem !important;
}

/* Botones del checklist - Estilo corporativo mejorado */
#btnAgregarPDF, #btnAgregarLink3D {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: 1px solid #dc3545;
  color: white;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

#btnAgregarPDF:hover, #btnAgregarLink3D:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  border-color: #bd2130;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

#btnAgregarLink3D {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  border: 1px solid #0082bb;
  box-shadow: 0 2px 4px rgba(0, 130, 187, 0.2);
}

#btnAgregarLink3D:hover {
  background: linear-gradient(135deg, #006699 0%, #0082bb 100%);
  border-color: #006699;
  box-shadow: 0 4px 8px rgba(0, 130, 187, 0.3);
}

/* Botones de la tabla del checklist */
.btn-ver-adjunto, .btn-eliminar-adjunto {
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-ver-adjunto:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(23, 162, 184, 0.3);
}

/* Pantallas de carga - Estilo corporativo mejorado */
#pantallaCargaFormulario, #pantallaCargaComponentes {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border: 1px solid #dee2e6;
  animation: fadeInLoading 0.5s ease-in;
}

@keyframes fadeInLoading {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner corporativo mejorado */
#pantallaCargaFormulario .spinner-border,
#pantallaCargaComponentes .spinner-border {
  border: 4px solid rgba(0, 130, 187, 0.2);
  border-top: 4px solid #0082bb;
  animation: spinCorporate 1s linear infinite;
}

@keyframes spinCorporate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Texto de carga mejorado */
#pantallaCargaFormulario h5,
#pantallaCargaComponentes h6 {
  color: #0082bb;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Animaciones suaves para pantallas de carga */
.fade-in-out {
  animation: smoothFadeIn 0.4s ease-out;
}

.fade-in-out.hidden {
  animation: smoothFadeOut 0.3s ease-in;
}

@keyframes smoothFadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Tooltips corporativos para mejor UX */
[data-bs-toggle="tooltip"], 
.tooltip-trigger {
  position: relative;
  cursor: help;
}

.custom-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1050;
  box-shadow: 0 4px 12px rgba(0, 130, 187, 0.3);
}

.custom-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #0082bb;
}

[data-bs-toggle="tooltip"]:hover .custom-tooltip,
/* Tabla del checklist - Estilo moderno corporativo */
#tablaChecklist .table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: none;
}

#tablaChecklist .table-dark {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  border: none;
}

#tablaChecklist .table-dark th {
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

#tablaChecklist .table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f0f0f0;
}

#tablaChecklist .table tbody tr:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 130, 187, 0.1);
}

#tablaChecklist .table tbody tr:last-child {
  border-bottom: none;
}

#tablaChecklist .table tbody td {
  border: none;
  padding: 12px 16px;
  vertical-align: middle;
}

#tablaChecklist .badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Botones de acción principales - Estilo corporativo mejorado */
.btn-accion-final {
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-guardar {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-guardar:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-cancelar {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-cancelar:hover {
  background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-activar {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 130, 187, 0.3);
}

.btn-activar:hover {
  background: linear-gradient(135deg, #006699 0%, #0082bb 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 130, 187, 0.4);
}

/* Efecto ripple para botones principales */
.btn-accion-final::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-accion-final:active::after {
  width: 300px;
  height: 300px;
}

.tooltip-trigger:hover .custom-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

@keyframes smoothFadeOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
  }
}

#pantallaCargaFormulario p,
#pantallaCargaComponentes p {
  color: #6c757d;
  font-size: 0.9rem;
}

.btn-eliminar-adjunto:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(220, 53, 69, 0.3);
}

.tarjeta-pdf .card > *:last-child, .tarjeta-link3d .card > *:last-child {
  margin-bottom: 0 !important;
}

.formulario-newqr .card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Header del card - Estilo Corporativo con colores oficiales y altura reducida */
.formulario-newqr .card-header {
  background: linear-gradient(to right, #0082bb, #009bd5);
  border-bottom: none; /* Eliminar línea divisoria */
  padding: 0.75rem 1.5rem;
  padding-bottom: 0;
  position: relative;
}

.formulario-newqr .card-header h5 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem; /* Ligeramente reducido para header más compacto */
  margin: 0;
}

.formulario-newqr .card-header small {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem; /* Ligeramente más pequeño para mantener proporción */
}

/* Pestañas corporativas con efecto de integración perfecta y colores oficiales */
.formulario-newqr .nav-pills {
  border-bottom: none;
  margin-top: 0.75rem;
  margin-bottom: -1px; /* Importante: solapamiento con el contenido */
  background: none;
  gap: 0.25rem;
  position: relative;
  z-index: 2;
}

.formulario-newqr .nav-pills .nav-link {
  border: none;
  background: linear-gradient(to right, #0082bb, #009bd5);
  color: #fff;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  text-align: left;
}

.formulario-newqr .nav-pills .nav-link.active {
  background: #fff;
  color: #0082bb;
  font-weight: 600;
  z-index: 3;
  position: relative;
  box-shadow: 0 -2px 8px 0 rgba(0,0,0,0.03);
}

.formulario-newqr .nav-pills .nav-link .tab-content {
  display: block;
  line-height: 1.3;
}

.formulario-newqr .nav-pills .nav-link small {
  font-size: 0.75rem;
  opacity: 0.8;
  margin-top: 0.25rem;
}

.formulario-newqr .card-body {
  border-top: none !important;
  background: #fff;
  position: relative;
  z-index: 1;
}

/* Ajuste para que la pestaña activa tape cualquier borde superior */
.formulario-newqr .nav-pills .nav-link.active::after {
  display: none;
}

/* Efecto de fusión - la pestaña activa se conecta con el contenido */
.formulario-newqr .card-body {
  border-top: 1px solid #e5e7eb;
  position: relative;
  z-index: 1;
  background: #ffffff;
}

/* Asegurar que la pestaña activa tape el borde superior del contenido */
.formulario-newqr .nav-pills .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
  z-index: 4;
}

/* Ajustar el header para que las pestañas se integren mejor */
.formulario-newqr .card-header {
  background: linear-gradient(to right, #0082bb, #009bd5);
  border-bottom: none; /* Eliminar línea divisoria */
  padding: 0.75rem 1.5rem;
  padding-bottom: 0;
  position: relative;
}

.formulario-newqr .card-header h6 {
  color: #ffffff;
  font-weight: 600;
  margin: 0;
}

.formulario-newqr .card-header .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.formulario-newqr .card-header .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

/* Contenedor de pestañas dentro del header */
.formulario-newqr .card-header .nav-pills {
  margin-bottom: 0;
  margin-top: 0.75rem;
}

/* Botones de scroll de pestañas - Estilo corporativo transparente con colores oficiales */
.formulario-newqr .btn-scroll-tabs {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8); /* Blanco semi-transparente */
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.formulario-newqr .btn-scroll-tabs:hover {
  color: #ffffff;
}

/* Body del formulario - Estilo corporativo con integración perfecta de pestañas */
.formulario-newqr .card-body {
  padding: 1.5rem;
  background: #ffffff;
  border-top: none; /* Sin borde superior para perfecta integración con pestaña activa */
  position: relative;
  z-index: 1;
  margin-top: 0; /* Sin margen superior para perfecta integración */
}

/* Borde superior del card-body cuando no hay pestaña activa encima */
.formulario-newqr .card-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: #0082bb; /* Color corporativo principal */
  z-index: 0;
}

/* La pestaña activa oculta parte del borde superior */

/* Labels corporativos con colores oficiales */
.formulario-newqr .form-label {
  color: #0082bb; /* Color corporativo principal */
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.formulario-newqr .form-label i {
  margin-right: 0.5rem;
  color: #009bd5; /* Color corporativo secundario */
  font-size: 1rem;
}

/* Inputs corporativos con focus en colores oficiales */
.formulario-newqr .form-control {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.formulario-newqr .form-control:focus {
  border-color: #0082bb; /* Color corporativo principal */
  box-shadow: 0 0 0 3px rgba(0, 130, 187, 0.1);
  outline: none;
}

.formulario-newqr .form-control::placeholder {
  color: #9ca3af;
}

/* Botones corporativos con colores oficiales */
.formulario-newqr .btn {
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.formulario-newqr .btn-primary {
  background: linear-gradient(to right, #0082bb, #009bd5);
  border: none;
  color: #ffffff;
}

.formulario-newqr .btn-primary:hover {
  background: linear-gradient(to right, #006699, #0088cc);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 130, 187, 0.3);
}

.formulario-newqr .btn-success {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.formulario-newqr .btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

.formulario-newqr .btn-secondary {
  background-color: #6b7280;
  border-color: #6b7280;
  color: #ffffff;
}

.formulario-newqr .btn-secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
}

.formulario-newqr .btn-outline-primary {
  color: #0082bb;
  border-color: #0082bb;
  background-color: transparent;
}

.formulario-newqr .btn-outline-primary:hover {
  background: linear-gradient(to right, #0082bb, #009bd5);
  border-color: #0082bb;
  color: #ffffff;
}

/* Componentes dinámicos */
.formulario-newqr .componente-dinamico {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
}

.formulario-newqr .componente-dinamico:hover {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* Título del componente - más compacto */
.formulario-newqr .componente-titulo {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.formulario-newqr .componente-titulo .icono-componente {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.formulario-newqr .componente-titulo .texto-componente {
  font-size: 0.875rem;
}

/* Grid horizontal compacto para los campos */
.formulario-newqr .componente-fields-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.75rem;
  align-items: end;
}

/* Campo de búsqueda - ocupa la mayor parte del espacio */
.formulario-newqr .componente-search-container {
  min-width: 0;
}

.formulario-newqr .componente-search-container .form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.formulario-newqr .componente-search-container .form-control {
  font-size: 0.875rem;
  padding: 0.375rem 0.75rem;
  height: 2.25rem;
}

.formulario-newqr .componente-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.875rem;
  z-index: 10;
}

.formulario-newqr .componente-search-input {
  padding-left: 2.25rem !important;
}

/* Campo de cantidad - más compacto */
.formulario-newqr .componente-cantidad-container {
  width: 80px;
  flex-shrink: 0;
}

.formulario-newqr .componente-cantidad-container .form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.formulario-newqr .componente-cantidad-container .form-control {
  font-size: 0.875rem;
  padding: 0.375rem 0.5rem;
  height: 2.25rem;
  text-align: center;
}

/* Botón eliminar - más compacto */
.formulario-newqr .componente-eliminar-container {
  width: 36px;
  flex-shrink: 0;
}

.formulario-newqr .componente-eliminar-container .btnQuitarComponente {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 4px;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Input groups corporativos */
.formulario-newqr .input-group .form-control {
  border-right: none;
}

.formulario-newqr .input-group .btn {
  border-left: none;
  border-color: #d1d5db;
}

/* Botón de quitar componente */
.formulario-newqr .btnQuitarComponente {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #ef4444;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
}

.formulario-newqr .btnQuitarComponente:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: scale(1.05);
}

/* Mejoras adicionales para botones de quitar componente */
.formulario-newqr .componente-dinamico .btnQuitarComponente {
  flex-shrink: 0;
}

/* Estilos específicos para comboboxes en componentes dinámicos */
.formulario-newqr .componente-dinamico .custom-combobox {
  flex-grow: 1;
}

.formulario-newqr .componente-dinamico .d-flex {
  align-items: stretch;
}

/* Clase highlighted para navegación con teclado */
.formulario-newqr .custom-dropdown-item.highlighted {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: var(--primary-blue);
  font-weight: 500;
}

/* Footer del card - Estilo corporativo */
.formulario-newqr .card-footer {
  background: #f3f4f6; /* Gris muy claro corporativo */
  border-top: 1px solid #d1d5db; /* Gris claro corporativo */
  padding: 1rem 1.5rem;
  border-radius: 0 0 8px 8px;
}

.formulario-newqr .card-footer .btn + .btn {
  margin-left: 0.5rem;
}

/* Botón cambiar proyecto - estilo corporativo con colores oficiales */
.formulario-newqr .btn-warning {
  background: linear-gradient(to right, #0082bb, #009bd5); /* Colores corporativos */
  border: none;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.formulario-newqr .btn-warning:hover {
  background: linear-gradient(to right, #006699, #0088cc); /* Versión más oscura */
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 130, 187, 0.3);
}

/* Mejoras para los datalist */
.formulario-newqr datalist {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* Estilos para mensajes de estado */
.formulario-newqr .alert {
  border-radius: 6px;
  border: none;
  font-weight: 500;
}

.formulario-newqr .alert-success {
  background-color: #f0fdf4;
  color: #166534;
  border-left: 4px solid #22c55e;
}

.formulario-newqr .alert-danger {
  background-color: #fef2f2;
  color: #b91c1c;
  border-left: 4px solid #ef4444;
}

.formulario-newqr .alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

/* Animaciones mejoradas */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formulario-newqr .componente-dinamico {
  animation: slideInUp 0.4s ease-out;
}

/* Responsive mejoras */
@media (max-width: 768px) {
  .formulario-newqr .card-body {
    padding: 1.5rem;
  }
  
  .formulario-newqr .btn {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
  }
  
  .formulario-newqr .componente-dinamico {
    padding: 1rem;
  }
}

/* Efectos de glassmorphism para elementos especiales */
.formulario-newqr .glassmorphism {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Indicadores de estado */
.formulario-newqr .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.formulario-newqr .status-indicator.active {
  background: var(--success-green);
}

.formulario-newqr .status-indicator.pending {
  background: var(--warning-orange);
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Mejoras para datalist */
.formulario-newqr datalist {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
}

/* Estilos específicos para inputs y botones del formulario NewQR */
.formulario-newqr #GabineteInput {
  min-height: 48px;
  font-size: 1.1rem;
}

.formulario_newqr #btnAgregarComponente {
  font-weight: 600;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border: 1px solid #17a2b8;
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
  position: relative;
  overflow: hidden;
}

.formulario_newqr #btnAgregarComponente:hover {
  background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.formulario_newqr #btnAgregarComponente:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(23, 162, 184, 0.3);
}

/* Icono animado en el botón */
.formulario_newqr #btnAgregarComponente i {
  transition: transform 0.3s ease;
}

.formulario_newqr #btnAgregarComponente:hover i {
  transform: rotate(90deg);
}

.formulario-newqr .footer-logo {
  height: 40px;
  width: auto;
}

/* Estilos específicos para los componentes dinámicos */
.formulario-newqr .componente-dinamico .d-flex {
  gap: 0.5rem;
}

/* Mejoras adicionales para la experiencia visual */
.formulario-newqr {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f4f8 100%);
  padding: 2rem 0;
}

.formulario-newqr .container-fluid {
  max-width: 1200px;
}

/* Animación suave para la aparición del formulario */
.formulario-newqr.show {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mejoras para el modal de selección de proyecto */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
}

.modal-header.bg-info {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%) !important;
  border-radius: 16px 16px 0 0;
}

/* =========================
   COMBOBOXES PERSONALIZADOS
   ========================= */

/* Contenedor principal del combobox */
.formulario-newqr .custom-combobox {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.formulario-newqr .custom-combobox .form-control {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
  background: var(--white);
  position: relative;
  z-index: 1;
}

.formulario-newqr .custom-combobox .form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: none;
  z-index: 2;
}

.formulario-newqr .custom-combobox .btn-dropdown {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: none;
  background: linear-gradient(135deg, var(--light-gray) 0%, #e8ecf4 100%);
  color: var(--primary-blue);
  border-color: #e1e5f0;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.formulario-newqr .custom-combobox .btn-dropdown:hover {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  border-color: var(--primary-blue);
  z-index: 3;
}

.formulario-newqr .custom-combobox .btn-dropdown:focus {
  box-shadow: 0 0 0 0.2rem rgba(0,130,187,0.25);
  z-index: 3;
}

/* Lista desplegable personalizada */
.formulario-newqr .custom-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--primary-blue);
  border-radius: 12px;
  box-shadow: var(--shadow-heavy);
  max-height: 250px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 2px;
}

.formulario-newqr .custom-dropdown-menu.show {
  display: block;
  animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.formulario-newqr .custom-dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.formulario-newqr .custom-dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 10px 10px;
}

.formulario_newqr .custom-dropdown-item:first-child {
  border-radius: 10px 10px 0 0;
}

.formulario-newqr .custom-dropdown-item:hover {
  background: linear-gradient(135deg, var(--light-blue) 0%, #e8f4f8 100%);
  color: var(--primary-blue);
  transform: translateX(5px);
}

.formulario-newqr .custom-dropdown-item.selected {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  font-weight: 600;
}

.formulario-newqr .custom-dropdown-item .item-icon {
  color: var(--secondary-blue);
  font-size: 1.1rem;
}

.formulario-newqr .custom-dropdown-item.selected .item-icon {
  color: var(--white);
}

/* Estados del combobox */
.formulario-newqr .custom-combobox.is-open .btn-dropdown {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  border-color: var(--primary-blue);
}

.formulario-newqr .custom-combobox.is-open .form-control {
  border-color: var(--primary-blue);
  border-bottom-left-radius: 0;
}

/* Mensaje de "no hay resultados" */
.formulario-newqr .custom-dropdown-empty {
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
}

/* Scrollbar personalizado para el dropdown */
.formulario-newqr .custom-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.formulario-newqr .custom-dropdown-menu::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.formulario-newqr .custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 3px;
}

.formulario-newqr .custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-blue);
}

/* Responsive para comboboxes */
@media (max-width: 768px) {
  .formulario-newqr .custom-dropdown-menu {
    max-height: 200px;
  }
  
  .formulario-newqr .custom-dropdown-item {
    padding: 0.6rem 0.8rem;
  }
}

/* Input de cantidad pequeño junto al combobox de componente */
.formulario-newqr .input-cantidad-componente {
  width: 80px;
  max-width: 100px;
  min-width: 60px;
  margin-left: 0.5rem;
  border-radius: 8px;
  border: 2px solid #e1e5f0;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0,130,187,0.07);
  transition: border-color 0.2s;
}
.formulario-newqr .input-cantidad-componente:focus {
  border-color: #0082bb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 130, 187, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  outline: none;
}

/* ================================
   ESTILOS CORPORATIVOS ADICIONALES
   ================================ */

/* Tipografía corporativa */
.formulario-newqr {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.5;
  color: #1f2937;
}

.formulario_newqr h1, .formulario_newqr h2, .formulario_newqr h3, 
.formulario_newqr h4, .formulario_newqr h5, .formulario_newqr h6 {
  font-weight: 600;
  color: #1f2937;
  letter-spacing: -0.025em;
}

/* Mejoras de contraste para modo claro */
.formulario_newqr .form-control {
  color: #1f2937;
  background-color: #ffffff;
}

.formulario_newqr .form-control:focus {
  color: #1f2937;
}

/* Placeholders mejorados */
.formulario_newqr input::placeholder,
.formulario_newqr select::placeholder,
.formulario_newqr textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-style: italic;
}

/* Modo accordion para muchos componentes (opcional) */
.formulario_newqr.accordion-mode .componente-dinamico {
  border-radius: 8px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.formulario_newqr.accordion-mode .componente-dinamico .componente-titulo {
  cursor: pointer;
  background: #f8fafc;
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e8ecf4;
}

.formulario_newqr.accordion-mode .componente-dinamico.collapsed .componente-fields-grid {
  display: none;
}

/* Responsive mejorado */
@media (max-width: 768px) {
  /* Grid responsive - en móvil se vuelve vertical */
  .formulario-newqr .componente-fields-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .formulario-newqr .componente-cantidad-container {
    width: 100px;
  }
  
  .formulario-newqr .componente-eliminar-container {
    width: 100%;
    text-align: center;
  }
  
  .formulario-newqr .componente-eliminar-container .btnQuitarComponente {
    width: 100%;
    max-width: 120px;
  }
}

@media (max-width: 640px) {
  .formulario-newqr .componente-dinamico {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .formulario-newqr .componente-titulo {
    margin-bottom: 0.375rem;
  }
  
  .formulario-newqr .componente-titulo .icono-componente {
    margin-right: 0.375rem;
  }
  
  .formulario_newqr .resumen-componentes {
    position: static;
    margin-bottom: 1rem;
  }
  
  .formulario-newqr .componente-fields-grid {
    gap: 0.375rem;
  }
}

/* Estados de loading y feedback */
.formulario-newqr .componente-loading {
  opacity: 0.6;
  pointer-events: none;
  position: relative;
}

/* Resumen de componentes - Estilo corporativo mejorado */
.resumen-componentes {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border: 1px solid #0082bb;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 12px rgba(0, 130, 187, 0.15);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.resumen-componentes::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0082bb, #009bd5, #00e676);
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.resumen-titulo {
  color: #0082bb;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.resumen-titulo i {
  margin-right: 8px;
  font-size: 1.2rem;
}

.resumen-contador {
  color: #495057;
  font-size: 0.95rem;
  font-weight: 500;
}

.resumen-componentes:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 130, 187, 0.2);
}

.formulario-newqr .componente-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #0082bb;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Estados de focus mejorados para accesibilidad */
input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  outline: none;
  border-color: #0082bb;
  box-shadow: 0 0 0 0.2rem rgba(0, 130, 187, 0.25);
  transition: box-shadow 0.15s ease-in-out;
}

/* Estados de validación con colores corporativos */
.is-valid,
.was-validated .form-control:valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.is-invalid,
.was-validated .form-control:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Indicadores de estado activo */
.form-control[readonly] {
  background-color: #f8f9fa;
  opacity: 1;
  border-color: #e9ecef;
}

.form-control[disabled] {
  background-color: #e9ecef;
  opacity: 0.6;
  border-color: #dee2e6;
  cursor: not-allowed;
}

/* Campo de búsqueda de gabinete mejorado con ícono interno */
.formulario-newqr .gabinete-search-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.formulario-newqr .gabinete-search-container .form-label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0082bb;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  display: flex;
  align-items: center;
}

.formulario-newqr .gabinete-search-container .form-label i {
  margin-right: 0.75rem;
  color: #009bd5;
  font-size: 1.125rem;
}

.formulario-newqr #GabineteInput {
  height: 48px;
  padding: 0.75rem 3rem 0.75rem 0.75rem; /* Espacio para el botón de búsqueda */
  border: 1.5px solid #d1d5db;
  border-radius: 8px 0 0 8px;
  font-size: 1.1rem;
  font-family: 'Inter', 'Roboto', sans-serif;
  background: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.formulario-newqr #GabineteInput::placeholder {
  color: #9ca3af;
  font-style: italic;
}

.formulario-newqr #GabineteInput:focus {
  border-color: #0082bb;
  box-shadow: 0 0 0 3px rgba(0, 130, 187, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  outline: none;
}

.formulario-newqr #searchGabineteBtn {
  height: 48px;
  min-width: 48px;
  border: 1.5px solid #d1d5db;
  border-left: none;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e8ecf4 100%);
  color: #0082bb;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.formulario-newqr #searchGabineteBtn:hover {
  background: linear-gradient(135deg, #0082bb 0%, #009bd5 100%);
  color: #ffffff;
  border-color: #0082bb;
  box-shadow: 0 2px 6px rgba(0, 130, 187, 0.2);
}

.formulario-newqr #searchGabineteBtn:focus {
  box-shadow: 0 0 0 3px rgba(0, 130, 187, 0.1);
}

/* Mejoras para el input-group del gabinete */
.formulario-newqr .input-group-lg {
  box-shadow: 0 2px 8px rgba(0, 130, 187, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

/* --- AJUSTE DE HEADER Y PESTAÑAS --- */
.formulario-newqr .card-header {
  background: linear-gradient(to right, #0082bb, #009bd5);
  border-bottom: none; /* Eliminar línea divisoria */
  padding: 0.75rem 1.5rem;
  padding-bottom: 0;
  position: relative;
}

.formulario-newqr .nav-pills .nav-link {
  border: none;
  background: linear-gradient(to right, #0082bb, #009bd5);
  color: #fff;
  border-radius: 8px 8px 0 0;
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  text-align: left;
}

.formulario_newqr .btn-activar {
  display: none; /* Oculto por defecto */
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.formulario_newqr .btn-activar:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.formulario_newqr .btn-activar:active {
  transform: translateY(0);
}

.formulario_newqr .btn-activar:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Estilos para el checklist de adjuntos */
#tablaChecklist {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#tablaChecklist .table {
  margin-bottom: 0;
}

#tablaChecklist .table td {
  vertical-align: middle;
  padding: 1rem;
}

#tablaChecklist .badge {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}

#tablaChecklist .btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

#tablaChecklist .progress {
  height: 20px;
  border-radius: 10px;
  background-color: #e9ecef;
}

#tablaChecklist .progress-bar {
  border-radius: 10px;
  transition: width 0.3s ease;
}

/* Hover effects para botones del checklist */
#tablaChecklist .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animación para cambios de estado */
#tablaChecklist .badge {
  transition: all 0.3s ease;
}

/* Estilo para filas completadas */
#tablaChecklist tr.completed {
  background-color: #f8f9fa;
}

#tablaChecklist tr.completed td {
  opacity: 0.8;
}

/* Responsive para tabla checklist */
@media (max-width: 768px) {
  #tablaChecklist .table td {
    padding: 0.75rem 0.5rem;
  }
  
  #tablaChecklist .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
}

/* =========================
   ESTILOS PARA NEWQR.HTML
   ========================= */

/* Ocultar completamente el elemento de información del proyecto detalle */
#infoProyectoDetalleActivo {
  display: none !important;
}

/* Ocultar barra de scroll diagonal en el contenedor de tabs */
#tabsScrollContainer {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  white-space: nowrap;
  position: relative;
}

/* Asegurar que las pestañas se mantengan en línea pero sin scroll */
#tabsProyectosPendientes {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  scroll-behavior: smooth;
  transition: transform 0.3s ease;
}

/* Ocultar barras de scroll del navegador en todos los navegadores */
#tabsScrollContainer::-webkit-scrollbar {
  display: none;
}

#tabsScrollContainer {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

/* Mejorar el estilo de los botones de navegación de tabs */
.btn-scroll-tabs {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.btn-scroll-tabs:hover {
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

.btn-scroll-tabs:focus {
  box-shadow: none;
  outline: none;
}

/* Asegurar que el contenedor de tabs tenga la navegación por botones */
.tabs-container {
  position: relative;
}

.tabs-container .overflow-auto {
  overflow: hidden !important;
}

/* Estilo personalizado para las pestañas con colores corporativos */
#tabsProyectosPendientes .nav-link {
  background: linear-gradient(135deg, #0082bb 0%, #006ba3 50%, #004a73 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e9ecef !important; /* Texto gris claro */
  font-weight: 500;
  padding: 8px 16px;
  margin-right: 4px;
  border-radius: 8px 8px 0 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  transform: translateY(0);
}

/* Línea inferior animada */
#tabsProyectosPendientes .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff88, #00ccff);
  transition: width 0.4s ease;
}

/* Efecto hover para pestañas no activas */
#tabsProyectosPendientes .nav-link:hover {
  background: linear-gradient(135deg, #009bd5 0%, #0082bb 50%, #006ba3 100%);
  color: #ffffff !important; /* Texto blanco en hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 130, 187, 0.3);
}

#tabsProyectosPendientes .nav-link:hover::after {
  width: 100%;
}

/* Estilo para la pestaña activa */
#tabsProyectosPendientes .nav-link.active {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%) !important;
  color: #212529 !important; /* Texto negro para pestaña activa */
  border-color: #dee2e6;
  text-shadow: none;
  font-weight: 600;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

/* Estilo para el texto pequeño dentro de las pestañas */
#tabsProyectosPendientes .nav-link small {
  color: inherit;
  opacity: 0.85;
  font-size: 0.75rem;
}

/* Asegurar que el texto en pestañas activas sea negro */
#tabsProyectosPendientes .nav-link.active small {
  color: #495057 !important;
  opacity: 1;
}

/* Efecto de brillo sutil en pestañas no activas */
#tabsProyectosPendientes .nav-link:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

#tabsProyectosPendientes .nav-link:hover:before {
  left: 100%;
}

/* Estilo especial para la pestaña "Nuevo" con colores corporativos variantes */
#tabsProyectosPendientes .nav-link[data-tab-nuevo="1"] {
  background: linear-gradient(135deg, #009bd5 0%, #00bcd4 50%, #0082bb 100%);
  color: #ffffff !important;
}

#tabsProyectosPendientes .nav-link[data-tab-nuevo="1"]:hover {
  background: linear-gradient(135deg, #00bcd4 0%, #00d4e6 50%, #009bd5 100%);
}

#tabsProyectosPendientes .nav-link[data-tab-nuevo="1"].active {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%) !important;
  color: #212529 !important;
}