/* ==========================================================================
   MANUELBOT59 OSINT DATA CENTER — SENIOR VAULT & CYBER-INTEL UI (2026)
   Diseño táctico de alto nivel + Protección DOM Anti-Scraping
   ========================================================================== */

.osint-hub-hero {
  background: radial-gradient(circle at 18% 15%, rgba(0, 210, 106, 0.14) 0%, transparent 45%),
              radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
              linear-gradient(180deg, #070d18 0%, #0b1324 100%);
  padding: 64px 0 42px;
  border-bottom: 1px solid rgba(0, 210, 106, 0.2);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.osint-hub-hero .legal-disclaimer-tech {
  text-align: left;
}

.osint-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 210, 106, 0.12);
  border: 1px solid rgba(0, 210, 106, 0.35);
  color: #00d26a;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.osint-hub-title {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
  text-align: center;
}

.osint-hub-subtitle {
  max-width: 760px;
  margin: 0 auto 28px;
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.65;
  text-align: center;
}

/* Telemetría táctica */
.osint-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 0 auto 28px;
}

.osint-telemetry-card {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  backdrop-filter: blur(8px);
}

.osint-telemetry-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(0, 210, 106, 0.14);
  color: #00d26a;
  border: 1px solid rgba(0, 210, 106, 0.3);
}

.osint-telemetry-icon.cyan {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}

.osint-telemetry-icon.amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.osint-telemetry-val {
  display: block;
  font-family: 'Courier New', monospace;
  font-weight: 900;
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.15;
}

.osint-telemetry-lbl {
  display: block;
  font-size: 0.74rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* Barra de mando & buscador */
.osint-command-bar {
  max-width: 1100px;
  margin: 26px auto 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.osint-search-box {
  flex: 1 1 360px;
  position: relative;
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1.5px solid rgba(0, 210, 106, 0.38);
  border-radius: 12px;
  padding: 0 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.osint-search-box:focus-within {
  border-color: #00d26a;
  box-shadow: 0 0 0 3px rgba(0, 210, 106, 0.18), 0 10px 28px rgba(0, 0, 0, 0.45);
}

.osint-search-box .terminal-icon {
  color: #00d26a;
  font-size: 1rem;
  margin-right: 10px;
}

.osint-search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #f8fafc;
  font-size: 0.96rem;
  padding: 13px 8px 13px 0;
}

.osint-search-box input::placeholder {
  color: #64748b;
}

.osint-search-kbd {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
}

.osint-clear-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  display: none;
  font-size: 0.9rem;
}

.osint-clear-btn:hover {
  color: #ffffff;
}

.osint-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.osint-tool-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #e2e8f0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.osint-tool-btn:hover {
  border-color: #00d26a;
  color: #00d26a;
  background: rgba(0, 210, 106, 0.08);
}

.osint-tool-btn.active {
  background: #00d26a;
  color: #070d18;
  border-color: #00d26a;
}

.osint-tool-btn.fav-btn.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #070d18;
}

/* Filtros tácticos mejorados */
.osint-filters-panel {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
}

.osint-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.osint-filter-row + .osint-filter-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.osint-filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 100px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.osint-pill {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
}

.osint-pill:hover {
  border-color: rgba(0, 210, 106, 0.55);
  color: #ffffff;
}

.osint-pill.active {
  background: linear-gradient(135deg, #00d26a, #059669);
  border-color: #00d26a;
  color: #070d18;
  font-weight: 800;
}

.osint-pill-count {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: inherit;
}

/* Sección de Módulos (Bóveda) */
.osint-vault-section {
  background: #f1f5f9;
  padding: 40px 0 64px;
  min-height: 55vh;
}

.osint-status-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.osint-stats-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #00d26a;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 210, 106, 0.35);
}

.osint-shield-note {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.osint-shield-note i {
  color: #059669;
}

/* Tarjeta de Módulo */
.osint-vault-module {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.osint-vault-module.open {
  border-color: #1c3961;
  box-shadow: 0 10px 26px rgba(28, 57, 97, 0.12);
}

.osint-vault-module-head {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
  user-select: none;
  transition: background-color 0.16s ease;
}

.osint-vault-module-head:hover {
  background: #f8fafc;
}

.osint-vault-module.open .osint-vault-module-head {
  background: #1c3961;
  color: #ffffff;
}

.osint-mod-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.osint-mod-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 57, 97, 0.09);
  color: #1c3961;
  font-size: 1rem;
  flex-shrink: 0;
}

.osint-vault-module.open .osint-mod-icon {
  background: rgba(0, 210, 106, 0.18);
  color: #00d26a;
}

.osint-mod-title {
  font-weight: 800;
  font-size: 1.02rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.osint-vault-module.open .osint-mod-title {
  color: #ffffff;
}

.osint-mod-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.osint-mod-badge {
  font-family: 'Courier New', monospace;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e293b;
}

.osint-vault-module.open .osint-mod-badge {
  background: rgba(0, 210, 106, 0.22);
  color: #00ff88;
}

.osint-mod-country {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
}

.osint-vault-module.open .osint-mod-country {
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.osint-mod-chevron {
  transition: transform 0.22s ease;
  color: #64748b;
}

.osint-vault-module.open .osint-mod-chevron {
  transform: rotate(180deg);
  color: #00d26a;
}

.osint-vault-module-body {
  display: none;
  padding: 18px 20px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.osint-vault-module.open .osint-vault-module-body {
  display: block;
}

/* Grid & Lista de Recursos (sin <a href> anti-scraping) */
.osint-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.osint-vault-section.view-list .osint-vault-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.osint-vault-item {
  position: relative;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  padding: 14px 40px 14px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.osint-vault-item:hover,
.osint-vault-item:focus-visible {
  transform: translateY(-2px);
  border-color: #00d26a;
  box-shadow: 0 8px 20px rgba(0, 210, 106, 0.14);
  outline: none;
}

.osint-vault-section.view-list .osint-vault-item {
  padding: 10px 44px 10px 14px;
  align-items: center;
}

.osint-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #eff6ff;
  color: #1c3961;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.osint-vault-item:hover .osint-item-icon {
  background: #1c3961;
  color: #00d26a;
  border-color: #1c3961;
}

.osint-item-info {
  min-width: 0;
  flex: 1;
}

.osint-item-info h4 {
  margin: 0 0 4px;
  font-size: 0.93rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.osint-item-info p {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.42;
}

.osint-vault-section.view-list .osint-item-info p {
  margin-bottom: 0;
}

.osint-item-host {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 7px;
  border-radius: 5px;
}

.osint-fav-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

.osint-fav-toggle:hover {
  background: #fef3c7;
  color: #d97706;
}

.osint-fav-toggle.saved {
  color: #f59e0b;
  background: #fffbeb;
  border-color: #fde68a;
}

/* Loading & Empty States */
.osint-vault-loading,
.osint-vault-empty {
  text-align: center;
  padding: 48px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  color: #475569;
}

/* Toast táctico */
.osint-vault-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #00d26a;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  gap: 9px;
}

/* Nodos señuelo anti-scraping (ocultos visualmente y sin interferir con accesibilidad) */
.osint-hp-decoy {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .osint-telemetry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .osint-telemetry-grid {
    grid-template-columns: 1fr;
  }
  .osint-vault-grid {
    grid-template-columns: 1fr;
  }
  .osint-mod-country {
    display: none;
  }
}
