/* ==== BOTÓN DE MENÚ HAMBURGUESA ==== */
.menu-icon {
  position: fixed;
  top: 1rem;
  left: 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1100;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 0.5rem;
  border-radius: 10px;
  transition: background 0.3s, left 0.3s;

  /* Borde blanco agregado */
  border: 2px solid white;
}

.menu-icon:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


/* Mueve el icono al abrir el menú */
body.sidebar-open .menu-icon {
  left: 260px; /* Igual al ancho del sidebar */
}

/* Evita que el body haga scroll cuando el menú está abierto */
body.sidebar-open {
  overflow: hidden;
}

/* ==== CONTENEDOR DEL MENÚ LATERAL ==== */
.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  background: #021075;
  padding: 2rem 1rem 3.5rem;
  transition: left 0.3s ease;
  z-index: 1050;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar.open {
  left: 0;
}

/* ==== IMAGEN SUPERIOR EN EL MENÚ ==== */
.sidebar-header-image {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==== ENLACES DEL MENÚ ==== */
.sidebar a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: 0.6rem 0;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  font-weight: 500;
  font-size: 0.9rem;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Enlace activo */
.sidebar a.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
}

/* ==== FOOTER DEL MENÚ ==== */
.sidebar-footer {
  margin-top: auto;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  padding: 0.5rem 0;
  user-select: none;
}

/* ==== OVERLAY OSCURO DETRÁS DEL MENÚ ==== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ==== ICONOS REDES SOCIALES ==== */
.station-info {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.station-info i,
.station-info svg {
  width: 2rem;
  height: 2rem;
  font-size: 2rem;
  color: #fff;
  vertical-align: middle;
  display: inline-block;
  transition: color 0.3s;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.station-info a:hover i,
.station-info a:hover svg {
  color: #00ffd5;
}
