/* Menú lateral - Overlay desde la derecha */
.sidebar-menu {
  position: fixed !important;
  top: 0 !important;
  right: -520px;
  width: 520px;
  height: 100vh !important;
  background: #900c00;
  z-index: 10001 !important;
  transition: right 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-menu.menu-open {
  right: 0;
}

.sidebar-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-menu-overlay.overlay-visible {
  opacity: 1;
  visibility: visible;
}

.menu-content {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 30px 20px;
}

.menu-frame-62 {
  padding: 10px;
  width: 100%;
  height: 100%;
  position: relative;
}

.menu-rectangle-8 {
  background: #900c00;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.menu-close {
  width: 33px;
  height: 33px;
  position: absolute;
  right: 30px;
  top: 30px;
  cursor: pointer;
  z-index: 10;
}

.menu-close .rectangle-6 {
  background: #fef8cf;
  border-radius: 15px;
  width: 40px;
  height: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-close .rectangle-7 {
  background: #fef8cf;
  border-radius: 15px;
  width: 40px;
  height: 8px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center;
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-links {
  position: relative;
  z-index: 2;
  top: 128px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
  width: 100%;
  padding: 0;
  margin: 0;
  margin-bottom: 0;
}

.menu-link-item {
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 20px;
  text-decoration: none;
  display: block;
}

.menu-link-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  width: calc(100% + 40px);
  height: 2px;
  background: rgba(255, 255, 255, 0.5);
}

.menu-link-item:hover {
  opacity: 0.8;
  text-decoration: none;
}

.menu-link-text {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: "Nunito-Regular", sans-serif;
  font-size: 28px;
  font-weight: 400;
}

.menu-social {
  position: relative;
  margin-top: 250px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.menu-social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.menu-social-item:hover {
  opacity: 0.8;
}

.menu-social-icon {
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-social-item .white {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-social-item .group-20 {
  width: 56.29%;
  height: 56.29%;
  position: absolute;
  right: 21.21%;
  left: 22.5%;
  bottom: 21.21%;
  top: 22.5%;
  overflow: visible;
}

.menu-social-item .vector {
  width: 100%;
  height: 100%;
  position: absolute;
  right: 0%;
  left: 0%;
  bottom: 0%;
  top: 0%;
  overflow: visible;
}

.menu-social-text {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-family: "Nunito-Regular", sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.menu-decorations {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.menu-vector {
  position: absolute;
  opacity: 0.3;
}

/* Forzar color #C82F21 en todas las ramas del menú */
.menu-vector-1,
.menu-vector-2,
.menu-vector-3 {
  /* Filtro para asegurar color #C82F21 (rojo) */
  filter: brightness(0) saturate(100%) invert(20%) sepia(95%) saturate(5000%) hue-rotate(350deg) brightness(0.78) contrast(1.2);
}

.menu-esfera {
  position: absolute;
  opacity: 0.5;
  left: -50px;
  bottom: 200px;
}

.menu-deco-2 {
  position: absolute;
  opacity: 0.3;
  right: -100px;
  top: -50px;
}

/* ============================================
   Estilos responsive para móviles
   ============================================ */
@media (max-width: 768px) {
  .sidebar-menu {
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    right: -100% !important;
    height: 100vh !important;
    z-index: 10001 !important;
    background: #900c00 !important;
  }

  .sidebar-menu.menu-open {
    right: 0 !important;
  }

  .sidebar-menu-overlay {
    z-index: 10000 !important;
  }

  .menu-content {
    padding: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .menu-close {
    right: 20px !important;
    top: 24px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .sidebar-menu .menu-close .rectangle-6,
  .sidebar-menu .menu-close .rectangle-7 {
    width: 24px !important;
    height: 3px !important;
    border-radius: 2px !important;
    top: 50% !important;
    transform-origin: center !important;
    position: absolute !important;
  }

  .sidebar-menu .menu-close .rectangle-6 {
    left: 48% !important;
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  .sidebar-menu .menu-close .rectangle-7 {
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  .menu-links {
    top: 80px !important;
    gap: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .menu-link-item {
    padding-bottom: 16px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .menu-link-item:not(:last-child)::after {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .menu-link-text {
    font-size: 22px !important;
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }

  .menu-social {
    position: relative !important;
    bottom: auto !important;
    top: 50px !important;
    margin-top: 100px !important;
    gap: 40px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    left: auto !important;
    transform: none !important;
  }

  .menu-social-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .menu-social-item .white {
    width: 36px !important;
    height: 36px !important;
  }

  .menu-social-text {
    font-size: 14px !important;
  }
}

