/* Paleta inspirada en HackerNoon: fondo casi negro y acento verde neón. */
[data-bs-theme="dark"] {
  --bs-body-bg: #101010;
  --bs-body-color: #f5f5f5;
  --bs-secondary-color: #9ca3af;
  --bs-emphasis-color: #ffffff;
  --bs-border-color: #454545;
  --bs-link-color: #00ff00;
  --bs-link-hover-color: #a2ef44;
  --bs-table-bg: transparent;
  color-scheme: dark;
}

[data-bs-theme="dark"] body {
  background-color: #101010 !important;
  color: #f5f5f5 !important;
}

[data-bs-theme="dark"] ::selection {
  background: #00ff00;
  color: #101010;
}

[data-bs-theme="dark"] .navbar {
  /* MkDocs aplica un degradado azul a .navbar.bg-primary en bootstrap.min.css */
  background-image: none !important;
  background-color: #000000 !important;
  border-bottom: 1px solid #2b2b2b;
}

[data-bs-theme="dark"] .navbar-brand {
  color: #ffffff !important;
  font-weight: 700;
}

[data-bs-theme="dark"] .nav-link {
  color: #f5f5f5 !important;
}

[data-bs-theme="dark"] .nav-link:hover,
[data-bs-theme="dark"] .nav-link.active {
  color: #00ff00 !important;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #212428;
  border-color: #454545;
}

[data-bs-theme="dark"] .dropdown-item {
  color: #f5f5f5;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: #2a2e33;
  color: #00ff00;
}

[data-bs-theme="dark"] a {
  color: #00ff00;
}

[data-bs-theme="dark"] a:hover {
  color: #a2ef44;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
  color: #ffffff;
}

[data-bs-theme="dark"] h2 {
  border-bottom: 1px solid #454545;
  padding-bottom: 0.35rem;
}

[data-bs-theme="dark"] h3 {
  color: #00ff00;
}

[data-bs-theme="dark"] strong {
  color: #f2c94c;
}

[data-bs-theme="dark"] em {
  color: #d2a8ff;
}

[data-bs-theme="dark"] code {
  color: #f5ec43;
  background-color: #212428;
}

[data-bs-theme="dark"] pre,
[data-bs-theme="dark"] pre code {
  background-color: #212428;
  color: #f5f5f5;
}

[data-bs-theme="dark"] pre {
  border: 1px solid #454545;
}

[data-bs-theme="dark"] blockquote {
  border-left-color: #00ff00;
  background-color: #212428;
  color: #f5f5f5;
}

/* Aviso de "Datos revisados" */
[data-bs-theme="dark"] .admonition.note {
  background-color: #212428;
  border-color: #00ff00;
  color: #f5f5f5;
}

[data-bs-theme="dark"] .admonition-title {
  background-color: #00ff00;
  color: #101010;
}

[data-bs-theme="dark"] hr {
  border-color: #454545;
  opacity: 1;
}

[data-bs-theme="dark"] table {
  color: #f5f5f5;
}

[data-bs-theme="dark"] th,
[data-bs-theme="dark"] td {
  border-color: #454545 !important;
}

[data-bs-theme="dark"] thead th {
  background-color: #212428;
}

[data-bs-theme="dark"] .toc .nav-link.active {
  color: #00ff00;
  border-left-color: #00ff00;
}

[data-bs-theme="dark"] footer,
[data-bs-theme="dark"] footer p {
  color: #9ca3af !important;
}

[data-bs-theme="dark"] footer a {
  color: #00ff00 !important;
}

[data-bs-theme="dark"] .modal-content {
  background-color: #212428;
  color: #f5f5f5;
  border-color: #454545;
}

[data-bs-theme="dark"] .form-control {
  background-color: #101010;
  color: #f5f5f5;
  border-color: #454545;
}

[data-bs-theme="dark"] .form-control:focus {
  background-color: #101010;
  color: #f5f5f5;
  border-color: #00ff00;
  box-shadow: 0 0 0 0.2rem rgba(0, 255, 0, 0.25);
}

/* Miniaturas de vídeo con borde verde */
[data-bs-theme="dark"] [role="main"] a[href*="youtube.com"] img,
[data-bs-theme="dark"] [role="main"] a[href*="youtu.be"] img {
  border: 1px solid #454545;
}
