/* === HEADER Sticky Base === */
/* 🔒 Oculta scrollbar en todos los navegadores pero mantiene el scroll funcional */

html, body {
  overflow-y: scroll;
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* Internet Explorer 10+ */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: transparent;
  border: none;
}
/* === HEADER Sticky Base === */ 
#main-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 50;
  background-color: #fff; /* Blanco */
  color: #000;
  transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
  border-bottom: 1px solid #e5e5e5;
}

.header-container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  transition: all 0.3s ease-in-out;
}

#main-header.is-scrolled {
  background-color: #f9f9f9;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
}

#main-header.is-scrolled .header-container {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* === ENLACES MENÚ DESKTOP === */
.desktop-nav-link {
  padding: 0.5rem 1rem;
  font-weight: 600;
  color: #212529;
  transition: color 0.2s, border-bottom 0.2s;
  border-bottom: 2px solid transparent;
}

.desktop-nav-link:hover {
  color: #000;
}

.desktop-nav-link[aria-current="page"] {
  color: #000;
  border-bottom: 2px solid #000; /* Subrayado negro para página activa */
}

/* === ENLACES MENÚ MÓVIL === */
.mobile-nav-link {
  display: block;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-link:hover {
  background-color: #f1f1f1;
  color: #000;
}

.mobile-nav-link[aria-current="page"] {
  background-color: #e6e6e6;
  color: #000;
}

/* === BOTÓN CERRAR SESIÓN === */
.mobile-nav-link-logout {
  display: block;
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #dc3545;
  transition: color 0.2s, background-color 0.2s;
}

.mobile-nav-link-logout:hover {
  background-color: #f8d7da;
  color: #b02a37;
}

/* === BOTÓN INICIAR SESIÓN === */
.mobile-nav-link-primary {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: white;
  background-color: #000;
  transition: background-color 0.2s;
}

.mobile-nav-link-primary:hover {
  background-color: #222;
}
