html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* ---- Design tokens ---- */
:root {
  --neon: #00ff41;
  --neon-dim: #00cc33;
  --dark: #050508;
  --card: #0d0d14;
  --surface: #111118;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem var(--dark), 0 0 0 0.25rem var(--neon);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  margin-bottom: 60px;
  background-color: var(--dark);
  color: #e0e0e0;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
  font-family: 'Orbitron', monospace;
}

/* Circuit board background */
.circuit-bg {
  background-color: var(--dark);
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(0, 255, 65, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.015) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* Scanline overlay */
.scanlines {
  position: relative;
}

.scanlines::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Neon text glow */
.neon-text {
  color: var(--neon);
  text-shadow:
    0 0 7px rgba(0, 255, 65, 0.9),
    0 0 14px rgba(0, 255, 65, 0.6),
    0 0 28px rgba(0, 255, 65, 0.3);
}

/* Neon border glow */
.neon-border {
  border-color: var(--neon);
  box-shadow:
    0 0 5px rgba(0, 255, 65, 0.5),
    0 0 15px rgba(0, 255, 65, 0.2),
    inset 0 0 5px rgba(0, 255, 65, 0.05);
}

/* Card with neon accent */
.card-neon {
  background-color: var(--card);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card-neon:hover {
  border-color: rgba(0, 255, 65, 0.6);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

/* Neon button */
.btn-neon {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon) !important;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-neon:hover {
  background: var(--neon);
  color: #000 !important;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Glowing divider line */
.neon-line {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 65, 0.5) 20%,
    var(--neon) 50%,
    rgba(0, 255, 65, 0.5) 80%,
    transparent
  );
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

/* Section heading with accent underline */
.section-heading {
  position: relative;
  display: inline-block;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.7);
}

/* Translucent panel for forms/text content on the dark background */
.form-panel {
  background: var(--card);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 12px;
  padding: 2rem;
}

/* Empty-state placeholder for lists with no content yet */
.empty-state {
  text-align: center;
  padding: 4.5rem 2rem;
  border: 1px dashed rgba(0, 255, 65, 0.25);
  border-radius: 12px;
  background-color: rgba(13, 13, 20, 0.4);
}

.empty-state-icon {
  font-size: 2.75rem;
  line-height: 1;
  opacity: 0.55;
  filter: grayscale(0.4);
  margin-bottom: 1.25rem;
}

.empty-state-message {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0;
}

.empty-state-hint {
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.6);
}

/* Input neon style */
.input-neon {
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.2);
  color: #e0e0e0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-neon:focus {
  outline: none;
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.1), 0 0 10px rgba(0, 255, 65, 0.1);
}

.input-neon::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

/* ---- V logo mark ---- */
.icon-v {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-image: url('/img/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.icon-v:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--neon)) drop-shadow(0 0 25px var(--neon));
}

/* ---- Navbar ---- */
.header-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

main {
    padding-top: 80px;
}

.navbar {
    box-shadow: none;
}

.navbar .nav-link {
    color: #9ca3af !important;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--neon) !important;
    text-shadow: 0 0 7px rgba(0, 255, 65, 0.6);
}

.navbar .dropdown-menu {
    background-color: var(--card);
    border: 1px solid rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.1);
}

.navbar .dropdown-item {
    color: #d1d5db !important;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: rgba(0, 255, 65, 0.08);
    color: var(--neon) !important;
}

.navbar-toggler {
    border-color: rgba(0, 255, 65, 0.4);
}

.navbar-toggler-icon {
    filter: invert(70%) sepia(60%) saturate(2000%) hue-rotate(80deg);
}

/* ---- Footer ---- */
footer.site-footer {
    background-color: var(--card);
    border-top: 1px solid rgba(0, 255, 65, 0.2);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    color: #9ca3af;
}

footer.site-footer h3 {
    color: var(--neon);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

footer.site-footer a {
    color: #9ca3af;
    font-size: 0.85rem;
    text-decoration: none;
}

footer.site-footer a:hover {
    color: var(--neon);
}

footer.site-footer .footer-bottom {
    font-size: 0.75rem;
    color: #6b7280;
}

h1 {
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(2rem, 5vw, 3.5rem);
}
