:root {
  --fondo: #0D1117;
  --texto: #9ba3b4;
  --texto-encabezado: #e9eaeb;
  --acento-primario: #0078d4;
  --acento-secundario: #0069b9;
  --texto-enlace: #4daafc;
  --boton-primario: #005ea2;
  --boton-primario-hover: #004b81;
  --boton-secundario: rgba(255,255,255,0.1);
  --boton-secundario-hover: rgba(255,255,255,0.15);
  --boton-tercero: #0b416f;
  --boton-tercero-hover: #093358;
  --borde-header: rgba(255,255,255,0.12);
  --fondo-header: rgba(13, 17, 23, 0.95);
  --fondo-overlay: rgba(0,0,0,0.5);
  --card-background: rgba(255, 255, 255, 0.04);
  --card-hover-background: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-border-active: rgba(255, 255, 255, 0.2);
}
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--borde-header);
  background-color: var(--fondo-header);
  backdrop-filter: blur(8px);
  transition: position 0.3s ease;
}

.header.fixed {
  position: fixed;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.navbar {
  display: flex;
  justify-content: center;
  height: 64px;
}

.logo {
  width: 6%;
  border-radius: 6px;
}

.logo img {
  width: 100%;
  object-fit: cover;
}

.nav-links {
  display: none;
  margin-left: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
      display: flex;
      margin-left: 0;
  }
}

.nav-links a {
  color: var(--texto);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--texto-encabezado);
  transition: all 0.3s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%;
  left: 0;
}

.nav-links a:hover {
  color: var(--texto-encabezado);
}

.menu-button {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--texto-encabezado);
  cursor: pointer;
  padding: 0.5rem;
  display: block;
  z-index: 100;
}

@media (min-width: 768px) {
  .menu-button {
      display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--fondo);
  padding: 5rem 2rem;
  transition: right 0.3s ease-in-out;
  z-index: 40;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  color: var(--texto);
  text-decoration: none;
  padding: 1rem;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  margin: 0.5rem 0;
}

.mobile-menu a:hover {
  color: var(--texto-encabezado);
  background: rgba(255,255,255,0.1);
  transform: translateX(10px);
  border-radius: 8px;
}

.mobile-menu a i {
  margin-right: 1rem;
  width: 24px;
}
.menu-icon {
  transition: transform 0.3s ease;
}

.menu-icon.active {
  transform: rotate(180deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--fondo-overlay);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 30;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar {
  display: flex;
  justify-content: center;
  height: 64px;
}