
/* Barra lateral cerrada */
#sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 60px; /* cerrado */
  background: #fff;
  border-left: 1px solid #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: width 0.3s ease;
  z-index: 1000;
}

#sidebar .logo {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 30px 0;
  color: #111;
}

#toggle-container {
  display: flex;
  flex-direction: column;
  align-items: left;
  margin-top: 30px;
  position: relative;
}

#menu-toggle {
  margin-top: auto;
  margin-bottom: 20px;
  font-size: 1.5rem;
  color: #111;
  cursor: pointer;
}

#menu-toggle::before {
  content: "»"; /* icono abierto: flecha */
  font-size: 1.5rem;
  display: block;
}

#sidebar.open #menu-toggle::before {
  content: ">|"; /* icono cerrado: barra vertical */
  font-size: 1.5rem;
}
#logo {
  width: 40px;
  transition: transform 0.4s ease, width 0.4s ease;
  cursor: pointer;
}
#sidebar.open #logo {
  transform: rotate(90deg);
  width: 90px; /* horizontal al abrir */
}
#menu {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);

  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  flex-direction: row; /* lista a la derecha, línea a la izquierda */
  align-items: flex-start;
}

#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}

.menu-line {
  width: 1px;                 /* línea delgada */
  background: #111;           /* color de la línea */
  height: auto;               /* ajusta automáticamente si quieres */
  margin-left: 30px;          /* distancia entre lista y línea */
  height: 100%; /* usará la altura del nav flex container */
}

#menu ul li {
  margin: 20px 0;
   line-height: 1.8; /* ⬅️ esto ajusta el interlineado dentro del enlace si tu enlace ocupa varias líneas */
}

#menu ul li a {
  text-decoration: none;
  color: #111;
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 200;
   line-height: 1.8;
   cursor: pointer;
}

.menu-line {
  width: 1px;
  background: #111;
  height: 100%;
  margin-right: 50px; /* distancia de la lista */
}


#sidebar.open {
  width: 250px;
   background: rgba(255, 255, 255, 0.85);
   backdrop-filter: blur(10px);
}

#sidebar.open #menu {
  opacity: 1;
  pointer-events: auto;
}




.social-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
   justify-content: center;
  margin-top: 30px;

}

.social-icons {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 40px 0;
}

.icon {
  position: relative;
   display: inline-block;
  cursor: default;
}

.icon img {
  width: 32px;
  height: 32px;
   transition: transform 0.3s ease;
}

.tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

/* Hover (desktop) */
.icon:hover .tooltip {
  opacity: 1;
}

/* Click en móviles */
.icon:active .tooltip {
  opacity: 1;
}


