/* ===== MOBILE NAVBAR STYLES ===== */

/* Mobile Navbar - Solo visible en móvil */
.mobile-navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 255, 136, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.mobile-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  height: 60px;
}

/* Mobile Logo */
.mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Nuevo logo oficial para móvil */
.mobile-logo-container {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 
    0 4px 16px rgba(255, 215, 0, 0.3),
    0 0 10px rgba(255, 215, 0, 0.2);
  flex-shrink: 0;
}

.mobile-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.mobile-logo-circle {
  position: relative;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mobile-chain-links {
  position: relative;
  width: 20px;
  height: 20px;
}

.mobile-chain-link {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  background: #00d4ff;
}

.mobile-chain-link-1 {
  top: 0;
  left: 0;
}

.mobile-chain-link-2 {
  bottom: 0;
  right: 0;
}

.mobile-chain-link-1::after,
.mobile-chain-link-2::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 2px;
  background: #00d4ff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mobile-chain-link-1::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-chain-link-2::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-logo-text {
  font-size: 10px;
  font-weight: 700;
  color: #000000;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-logo-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
  letter-spacing: 0.5px;
}

/* Logo del menú móvil */
.mobile-menu-logo-container {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 
    0 6px 20px rgba(255, 215, 0, 0.3),
    0 0 12px rgba(255, 215, 0, 0.2);
  flex-shrink: 0;
}

.mobile-menu-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* Mobile Hamburger Button */
.mobile-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.mobile-hamburger:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
  transform: scale(1.05);
}

.mobile-hamburger span {
  width: 18px;
  height: 2px;
  background: #00ff88;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu - Basic styles only, detailed styles in mobile-fixes.css */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 10000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  border: none;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
  right: 0;
}

/* Mobile Menu Header - Basic styles */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-logo-circle {
  position: relative;
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-chain-links {
  position: relative;
  width: 18px;
  height: 18px;
}

.mobile-menu-chain-link {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #00d4ff;
  border-radius: 50%;
  background: #00d4ff;
}

.mobile-menu-chain-link-1 {
  top: 0;
  left: 0;
}

.mobile-menu-chain-link-2 {
  bottom: 0;
  right: 0;
}

.mobile-menu-chain-link-1::after,
.mobile-menu-chain-link-2::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 2px;
  background: #00d4ff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu-chain-link-1::after {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-chain-link-2::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-logo-text {
  font-size: 9px;
  font-weight: 700;
  color: #000000;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu-logo-title {
  font-size: 1rem;
  font-weight: 700;
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.mobile-close {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Content */
.mobile-menu-content {
  padding: 1.5rem;
}

.mobile-menu-section {
  margin-bottom: 2rem;
}

.mobile-menu-title {
  color: #00ff88;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 255, 136, 0.2);
}

/* Mobile Menu Links */
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.mobile-menu-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  transition: left 0.5s ease;
}

.mobile-menu-link:hover::before {
  left: 100%;
}

.mobile-menu-link:hover {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.3);
  transform: translateX(5px);
}

.mobile-menu-link.active {
  background: rgba(0, 255, 136, 0.15);
  border-color: rgba(0, 255, 136, 0.5);
  color: #00ff88;
}

.mobile-menu-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.mobile-menu-link:hover .mobile-menu-icon {
  transform: scale(1.2);
}

/* Mobile Menu Actions */
.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.1);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-menu-action:hover {
  background: rgba(0, 255, 136, 0.2);
  border-color: rgba(0, 255, 136, 0.5);
  transform: translateX(5px);
}

.mobile-menu-action:last-child {
  background: linear-gradient(135deg, #00ff88, #ff00ff);
  border-color: transparent;
  color: #000;
}

.mobile-menu-action:last-child:hover {
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  transform: translateX(5px) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Responsive Design */
@media (min-width: 769px) {
  .mobile-navbar,
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-navbar {
    display: block;
  }
  
  /* Ocultar navbar desktop en móvil */
  .header {
    display: none !important;
  }
  
  /* Ajustar margen superior del contenido */
  main {
    margin-top: 60px;
  }
  
  .mobile-nav-container {
    padding: 0.75rem 1rem;
    height: 60px;
  }
  
  .mobile-logo-container {
    width: 40px;
    height: 40px;
  }
  
  .mobile-logo-img {
    width: 100%;
    height: 100%;
  }
  
  .mobile-brand-text {
    font-size: 1.2rem;
  }
  
  .mobile-brand-subtitle {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  .mobile-nav-container {
    padding: 0.5rem 0.8rem;
    height: 55px;
  }
  
  main {
    margin-top: 55px;
  }
  
  .mobile-logo-container {
    width: 35px;
    height: 35px;
  }
  
  .mobile-logo {
    gap: 0.5rem;
  }
  
  .mobile-brand-text {
    font-size: 1rem;
  }
  
  .mobile-brand-subtitle {
    font-size: 0.55rem;
  }
  
  .mobile-hamburger {
    width: 28px;
    height: 28px;
  }
  
  .mobile-hamburger span {
    height: 2px;
  }
  
  .mobile-menu-overlay {
    padding: 1rem;
  }
  
  .mobile-menu-content {
    padding: 1.5rem;
  }
  
  .mobile-menu-logo-container {
    width: 50px;
    height: 50px;
  }
  
  .mobile-menu-brand-text {
    font-size: 1.3rem;
  }
  
  .mobile-menu-link {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }
  
  .mobile-menu-action {
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .mobile-nav-container {
    padding: 0.4rem 0.5rem;
    height: 50px;
  }
  
  main {
    margin-top: 50px;
  }
  
  .mobile-logo-container {
    width: 30px;
    height: 30px;
  }
  
  .mobile-logo {
    gap: 0.4rem;
  }
  
  .mobile-brand-text {
    font-size: 0.9rem;
  }
  
  .mobile-brand-subtitle {
    font-size: 0.5rem;
  }
  
  .mobile-hamburger {
    width: 25px;
    height: 25px;
  }
  
  .mobile-menu-content {
    padding: 1rem;
  }
  
  .mobile-menu-link {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .mobile-menu-action {
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* Animaciones */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-link,
.mobile-menu-action {
  animation: slideInRight 0.5s ease forwards;
  opacity: 0;
  transform: translateX(30px);
}

.mobile-menu-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu-link:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu-link:nth-child(6) { animation-delay: 0.6s; }
.mobile-menu-link:nth-child(7) { animation-delay: 0.7s; }
.mobile-menu-link:nth-child(8) { animation-delay: 0.8s; }
.mobile-menu-link:nth-child(9) { animation-delay: 0.9s; }

.mobile-menu-action:nth-child(1) { animation-delay: 1.0s; }
.mobile-menu-action:nth-child(2) { animation-delay: 1.1s; }
