/* === MENÚ LATERAL CON EFECTO GLASS === */
:root {
  --color-primario: #2ecc71;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-shadow: rgba(0, 0, 0, 0.15);
  --texto-blanco: #ffffff;
}

/* Contenedor del menú */
.menu-lateral {
  position: fixed;
  right: -320px;
  top: 0;
  width: 300px;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid var(--glass-border);
  box-shadow: -5px 0 20px var(--glass-shadow);
  padding: 70px 25px 25px;
  color: var(--texto-blanco);
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.menu-lateral.visible {
  right: 0;
}

/* Botón flotante con efecto glass */
.boton-flotante {
  position: fixed;
  top: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background: rgba(46, 204, 113, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: white;
  font-size: 26px;
  cursor: pointer;
  z-index: 1100;
  transition: all 0.3s ease, opacity 0.2s ease;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.boton-flotante:hover {
  background: rgba(39, 174, 96, 0.8);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.boton-flotante.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
}

/* Botón cerrar */
.boton-cerrar {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.boton-cerrar:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Contenido del menú */
.menu-lateral h3 {
  font-size: 1.4rem;
  margin-bottom: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.menu-lateral ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lateral a {
  color: var(--texto-blanco);
  text-decoration: none;
  display: block;
  padding: 14px 18px;
  margin: 8px 0;
  border-radius: 8px;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
}

.menu-lateral a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(6px);
}

/* Overlay */
.overlay-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay-menu.visible {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-lateral {
    width: 85%;
    right: -85%;
  }
  
  .boton-flotante {
    width: 52px;
    height: 52px;
    font-size: 24px;
    top: 20px;
    right: 20px;
  }
}