
/* ======== BARRA DE BÚSQUEDA GLOBAL - MEJORADA ======== */
.barra-busqueda-global-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

.barra-busqueda-global-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.barra-busqueda-global-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  z-index: 3;
  pointer-events: none;
  transition: color 0.3s ease;
}

.barra-busqueda-global-input {
  width: 100%;
  padding: 0.85rem 1.2rem 0.85rem 3rem;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 1rem;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  color: #333;
  font-family: inherit;
  z-index: 2;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.barra-busqueda-global-input::placeholder {
  color: #999;
  font-weight: 400;
  transition: color 0.3s ease;
}

.barra-busqueda-global-input:hover {
  border-color: #d0d7de;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.barra-busqueda-global-input:focus {
  outline: none;
  border-color: #861542;
  box-shadow: 0 4px 16px rgba(134, 21, 66, 0.2);
  padding-left: 3.2rem;
}

.barra-busqueda-global-input:focus + .barra-busqueda-global-icon {
  color: #861542;
}

.barra-busqueda-global-input:focus::placeholder {
  color: #bbb;
}

/* Estados para resultados */
.buscador-resultados-global {
  max-width: 500px;
  width: 100%;
  text-align: left;
  color: #861542;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 25px 0;
  padding: 12px 20px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(134, 21, 66, 0.2);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  z-index: 1;
  position: relative;
  animation: fadeIn 0.3s ease-out;
  line-height: 1.5;
}

/* Botón de limpiar mejorado */
.buscador-clear-global {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #999;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
}

.barra-busqueda-global-input:not(:placeholder-shown) ~ .buscador-clear-global {
  opacity: 1;
  visibility: visible;
}

.buscador-clear-global:hover {
  color: #861542;
  background: rgba(134, 21, 66, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.buscador-clear-global:active {
  transform: translateY(-50%) scale(0.95);
}

/* Efecto de enfoque para el contenedor cuando el input está enfocado */
.barra-busqueda-global-wrapper:focus-within {
  transform: translateY(-1px);
}

/* Animación suave para la aparición */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .barra-busqueda-global-input {
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    font-size: 0.95rem;
  }
  
  .barra-busqueda-global-icon {
    left: 16px;
  }
  
  .buscador-resultados-global {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
  
  .buscador-clear-global {
    right: 14px;
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 480px) {
  .barra-busqueda-global-wrapper {
    max-width: 100%;
  }
  
  .barra-busqueda-global-input {
    padding: 0.7rem 0.9rem 0.7rem 2.5rem;
  }
  
  .barra-busqueda-global-icon {
    left: 14px;
  }
}

/* ======== ERROR GLOBAL ======== */
.error-global {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ff0019; 
  font-size: 0.9rem;
  margin-top: 4px;
  font-weight: 500;
  position: relative;
  z-index: 2;
  min-height: 1.2rem;
}

.error-icon-global {
  color: #ff0019;
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

/*======== TITULO GLOBAL ========*/
.titulo-global {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: #343a40;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  position: relative;
}
/*======== PROYECTOS, TAREAS VACIOS ========*/
.empty-state-global {
  padding: 50px;
  background-color: #f0f4f8;
  border-radius: 16px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  z-index: 3;
  position: relative;
}

.empty-state-global:hover {
  transform: translateY(-4px);
}

.empty-icon-global {
  font-size: 60px;
  color: #a0aebf;
  margin-bottom: 20px;
}

.empty-title-global {
  font-size: 26px;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 10px;
}

.empty-text-global {
  font-size: 18px;
  color: #718096;
  max-width: 400px;
}
/*======== CONTENEDOR PADRE ========*/
.contenedor-global{
  width: 100%;
  max-width: 900px;
  margin: 0.3rem auto; 
}
