body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e6e5e3;
    color: black;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.titulo-pagina h1 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.controles-tabla {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.search-bar {
  flex-grow: 1;
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  background: white;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  margin-left: 0.5rem;
  color: #64748b;
}

.filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 0.6rem;
  border-radius: 8px;
  cursor: pointer;
}

.btn-primary {
  background: #2563eb;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.tabla-principal {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto; /* Permite scroll horizontal en móviles */
}

.tabla-proyectos {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 800px;
}

.tabla-proyectos th {
  background: #fcfcfc;
  padding: 1rem;
  font-size: 0.75rem;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.tabla-proyectos td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  vertical-align: middle;
}

.colaboradores {
  display: flex;
  align-items: center;
}

.avatar {
  width: 28px;
  height: 28px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  margin-right: -10px;
  border: 2px solid white;
  font-weight: bold;
}

.restantes {
  font-size: 11px;
  color: #64748b;
  margin-left: 15px;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 10px;
}

.conteo {
  margin-left: 8px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.status {
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.activo { background: #dbeafe; color: #1e40af; }
.completo { background: #dcfce7; color: #166534; }
.pendiente { background: #fef9c3; color: #854d0e; }
.cancelado { background: #fee2e2; color: #991b1b; }

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  font-size: 1.1rem;
  filter: grayscale(1);
  transition: filter 0.2s;
}

.action-btn:hover {
  filter: grayscale(0);
}