/* --- 1. BARRA SUPERIOR Y MÉTRICAS DE HARDWARE (MÁXIMO BRILLO Y GROSOR) --- */
header,
header *,
#information-widgets,
#information-widgets *,
[class*="widget"],
[class*="widget"] * {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  fill: #ffffff !important;
  stroke: #ffffff !important;
  opacity: 1 !important;
  --tw-text-opacity: 1 !important;
  font-weight: 700 !important; /* Aumenta el grosor para resaltar el texto pequeño */
  filter: none !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
}

/* Buscador e ícono de búsqueda */
header input,
header input::placeholder {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Apilar widgets de los nodos verticalmente */
header > div > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.25rem !important;
  background-color: transparent !important;
}

/* --- 2. TÍTULOS DE CATEGORÍAS (BLANCO PURO DE MÁXIMO CONTRASTE) --- */
h1, h1 *,
h2, h2 *,
h3, h3 *,
h4, h4 *,
.services-group > div:first-child,
.services-group > div:first-child *,
div[class*="services-group"] > div:first-child,
div[class*="services-group"] > div:first-child *,
div[class*="group-title"],
div[class*="group-title"] * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  --tw-text-opacity: 1 !important;
  filter: none !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

/* --- 3. TARJETAS 100% OPACAS CON BORDE AZUL MARINO NEÓN --- */
.service-card,
.dark .service-card,
html.dark .service-card,
div[class*="service-card"] {
  background-color: #080410 !important;
  background-image: none !important;
  opacity: 1 !important;
  border: 1.5px solid #0066ff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 102, 255, 0.4) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.service-card * {
  background-color: transparent !important;
}

/* --- 4. TEXTOS DENTRO DE LAS TARJETAS --- */
.service-name, .service-title-text, .service-description, p.service-description {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
  --tw-text-opacity: 1 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9) !important;
}

/* --- 5. HOVER AZUL ELÉCTRICO BRILLANTE --- */
.service-card:hover, .dark .service-card:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.8) !important;
  transform: translateY(-2px);
}

/* --- 6. FORZAR ÍCONOS OSCUROS A BLANCO (Vaultwarden, Portainer, Tailscale) --- */
.service-icon img[src*="vaultwarden"],
.service-icon img[src*="portainer"],
.service-icon img[src*="tailscale"],
main img[src*="vaultwarden"],
main img[src*="portainer"],
main img[src*="tailscale"] {
  filter: brightness(0) invert(1) !important;
}
