/* ==========================================================
   burger.css — Menú lateral hamburguesa GOV.CO / Revista Supersalud
   ----------------------------------------------------------
   - Compatible con Bootstrap 5
   - Usa IDs esperados: #sideMenu y #sideMenuOverlay
   - Incluye animación de deslizamiento y overlay oscuro
   - No afecta otros elementos del layout
   ========================================================== */

/* === BOTÓN DE HAMBURGUESA === */
.burger-btn {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1051; /* encima del overlay */
}

.burger-btn:hover,
.burger-btn:focus {
  background: rgba(255, 255, 255, 0.35);
  outline: none;
}

/* Icono de tres líneas iguales y centradas */
.burger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 14px;
}

.burger-icon span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
}

/* ==========================================================
   MENÚ LATERAL (#sideMenu)
   ========================================================== */
#sideMenu {
  position: fixed;
  top: 0;
  left: -300px;                /* oculto por defecto */
  width: 280px;
  height: 100vh;
  background-color: #002856;   /* azul institucional */
  color: white;
  z-index: 1050;
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.4);
}

#sideMenu.open {
  left: 0;                     /* aparece desde la izquierda */
}

/* ==========================================================
   CABECERA DEL MENÚ
   ========================================================== */
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.side-menu-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

#closeMenuBtn {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

#closeMenuBtn:hover {
  transform: rotate(90deg);
  color: #00b3a6; /* Aguamarina GOV.CO */
}

/* ==========================================================
   ENLACES DEL MENÚ
   ========================================================== */
#sideMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sideMenu ul li {
  margin: 0.75rem 0;
}

#sideMenu ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: block;
  transition: color 0.2s, transform 0.2s;
}

#sideMenu ul li a:hover,
#sideMenu ul li a:focus {
  color: #00b3a6; /* Aguamarina oscuro */
  transform: translateX(4px);
}

/* ==========================================================
   OVERLAY OSCURO (#sideMenuOverlay)
   ========================================================== */
#sideMenuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#sideMenuOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================
   TEXTO FECHA (en portada)
   ========================================================== */
.texto-fecha {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
}

@media (min-width: 768px) {
  .texto-fecha {
    font-size: 1.4rem;
  }
}

/* ==========================================================
   ALINEACIÓN DE LOGO Y NÚMERO (solo móviles)
   ========================================================== */
@media (max-width: 767.98px) {
  .revista-logo-edicion {
    align-items: flex-start !important;
  }

  .revista-logo-edicion img.logo-revista-img {
    display: block;
    margin-left: 0 !important;
  }

  .revista-logo-edicion .num-edicion {
    margin-left: 0 !important;
  }
}
