/* ========================================================================= */
/* MENU DE NAVEGACIÓN - FLOW & MATCH (menu.css) Gamificado                   */
/* ========================================================================= */

.contenedor-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; position: relative; }
.contenedor-header.header-centrado { justify-content: center; }

/* ==========================================================================
  ANIMACIÓN DEL LOGO (ENCENDIDO Y PARPADEO TIPO NEÓN)
  ========================================================================== */
.contenedor-logo {
  opacity: 0;
  animation: neonFlickerTurnOn 1.5s forwards 0.1s, neonRandomFlicker 12s infinite 2s; 
}

@keyframes neonFlickerTurnOn {
  0%  { opacity: 0;  filter: drop-shadow(0 0 0px rgba(255, 215, 0, 0)); }
  10% { opacity: 1;  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8)); }
  15% { opacity: 0.1; filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.2)); }
  25% { opacity: 1;  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.9)); }
  30% { opacity: 0.3; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3)); }
  40% { opacity: 1;  filter: drop-shadow(0 0 25px rgba(255, 215, 0, 1)); }
  45% { opacity: 0.2; filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.2)); }
  60% { opacity: 1;  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8)); }
  65% { opacity: 0.5; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5)); }
  100% { opacity: 1;  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)); }
}

@keyframes neonRandomFlicker {
  0%, 28%, 32%, 73%, 77%, 100% { opacity: 1; filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.4)); }
  29% { opacity: 0.4; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.1)); }
  30% { opacity: 0.8; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }
  31% { opacity: 0.2; filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0)); }
  74% { opacity: 0.6; filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2)); }
  75% { opacity: 0.9; filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.3)); }
  76% { opacity: 0.3; filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.1)); }
}

/* ------------------------------------------------------------------------- */
/* NAVEGACIÓN ESCRITORIO (Efecto Píldora Gamificada)                         */
/* ------------------------------------------------------------------------- */
.lista-nav { display: flex; align-items: center; list-style: none; gap: 15px; margin: 0; padding: 0; }

.lista-nav > li > a:not(.btn-nav-login):not(.btn-nav-registro):not(.btn-panel-vip):not(.btn-nav-logout):not(.btn-campanita) {
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  white-space: nowrap;
  display: inline-block;
  border: 1px solid transparent;
}

.lista-nav > li > a:not(.btn-nav-login):not(.btn-nav-registro):not(.btn-panel-vip):not(.btn-nav-logout):not(.btn-campanita):hover {
  color: var(--color-primario);
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.15);
}

/* ------------------------------------------------------------------------- */
/* MEGA MENÚ INTERACTIVO (ESCRITORIO)                                        */
/* ------------------------------------------------------------------------- */
.item-mega { position: relative; }

.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(20px) scale(0.95);
  width: max-content; max-width: 850px; 
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px;
  padding: 20px; opacity: 0; visibility: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9); overflow: hidden; z-index: 100;
}

@media (min-width: 993px) {
  .item-mega:hover .mega-menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(10px) scale(1);
  }
}

.mega-linea-flow {
  position: absolute; top: 0; left: -100%; width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primario), #ff3366, transparent);
  animation: flowLight 2.5s infinite linear;
}

@keyframes flowLight { 0% { left: -100%; } 100% { left: 100%; } }

.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 15px; }

.mega-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 15px; 
  border-radius: 12px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
  text-decoration: none; border: 1px solid transparent;
}

.mega-item:hover {
  background: rgba(255, 51, 102, 0.05);
  border-color: rgba(255, 51, 102, 0.2);
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 51, 102, 0.1);
}

.mega-icon {
  font-size: 1.5rem; color: var(--color-primario); background: rgba(255, 51, 102, 0.1); 
  width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; 
  border-radius: 10px; flex-shrink: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mega-item:hover .mega-icon {
  transform: rotate(-10deg) scale(1.15);
  background: var(--color-primario);
  color: #000;
  box-shadow: 0 0 15px var(--color-primario);
}

.mega-info h4 { color: #fff; margin: 0 0 5px; font-size: 1.05rem; font-family: 'Montserrat', sans-serif; transition: 0.3s; }
.mega-item:hover .mega-info h4 { color: var(--color-primario); }
.mega-info p { color: #777; font-size: 0.8rem; line-height: 1.4; margin: 0; white-space: normal; }

/* ------------------------------------------------------------------------- */
/* ZONA DE BOTONES Y SEPARADOR                                               */
/* ------------------------------------------------------------------------- */
.li-separador { width: 1px; height: 25px; background: rgba(255, 255, 255, 0.1); margin: 0 5px; }
.nav-auth-buttons { display: flex; align-items: center; gap: 15px; }

/* Campanita */
.btn-campanita { position: relative; color: #fff !important; font-size: 1.3rem !important; display: flex; align-items: center; justify-content: center; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-campanita:hover { color: var(--color-dorado) !important; transform: scale(1.2) rotate(10deg); }
.badge-notif { position: absolute; top: -8px; right: -10px; background: var(--color-primario); color: #fff; font-size: 0.65rem; font-weight: 900; padding: 2px 6px; border-radius: 50px; border: 2px solid #0a1014; animation: pulse-bell 2s infinite; }
@keyframes pulse-bell { 0% { transform: scale(1); } 50% { transform: scale(1.15); box-shadow: 0 0 10px rgba(255,51,102,0.5); } 100% { transform: scale(1); } }

/* Logout */
.btn-nav-logout { color: #888 !important; font-size: 1.2rem !important; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-nav-logout:hover { color: #ff3333 !important; transform: scale(1.1); }

/* Login */
.btn-nav-login { border: 1px solid rgba(255, 255, 255, 0.3); padding: 8px 20px; border-radius: 50px; color: #fff !important; font-weight: 600 !important; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-nav-login:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; transform: translateY(-2px); }

/* Registro (Efecto Shine) */
.btn-nav-registro { background: var(--color-primario); color: #fff !important; padding: 9px 24px; border-radius: 50px; font-weight: 700 !important; box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; }
.btn-nav-registro::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent); transform: skewX(-20deg); transition: 0.5s; }
.btn-nav-registro:hover { background: #ff4d7d; transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5); }
.btn-nav-registro:hover::after { left: 150%; }

/* Panel VIP */
.btn-panel-vip { border: 1.5px solid #d4af37; padding: 9px 22px; border-radius: 50px; color: #d4af37 !important; font-weight: 700 !important; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-panel-vip:hover { background: #d4af37; color: #000 !important; box-shadow: 0 0 20px rgba(212, 175, 55, 0.6); transform: translateY(-2px); }

/* ------------------------------------------------------------------------- */
/* BOTÓN HAMBURGUESA (MÓVIL)                                                 */
/* ------------------------------------------------------------------------- */
.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; z-index: 2000; width: 40px; height: 40px; padding: 0; }
.menu-toggle .barra { width: 28px; height: 3px; background-color: var(--color-primario); border-radius: 10px; transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6); }
.menu-toggle.is-active .barra:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: #fff; }
.menu-toggle.is-active .barra:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.menu-toggle.is-active .barra:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: #fff; }

/* ------------------------------------------------------------------------- */
/* RESPONSIVE (MÓVIL GAMIFICADO)                                             */
/* ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .lista-nav { gap: 10px; }
  .lista-nav > li > a:not(.btn-nav-login):not(.btn-nav-registro):not(.btn-panel-vip):not(.btn-nav-logout):not(.btn-campanita) { padding: 8px 10px; font-size: 0.75rem; }
  .btn-nav-login, .btn-nav-registro { padding: 8px 15px; }
}

@media (max-width: 992px) {
  .menu-toggle { display: flex !important; }
  .li-separador { display: none; }

  .nav-principal {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100vh;
    background: rgba(10, 10, 10, 0.98); backdrop-filter: blur(15px); padding: 100px 30px;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); 
    box-shadow: -15px 0 40px rgba(0,0,0,0.7);
    border-left: 1px solid rgba(255, 215, 0, 0.1); /* Brillo lateral */
    z-index: 1500; display: block; overflow-y: auto;
  }
  .nav-principal.is-active { right: 0; box-shadow: -20px 0 50px rgba(0,0,0,0.9), inset 10px 0 30px rgba(255, 215, 0, 0.05); }

  .lista-nav { flex-direction: column; align-items: flex-start; gap: 15px; }
  
  .lista-nav > li { width: 100%; }
  .lista-nav > li > a:not(.btn-nav-login):not(.btn-nav-registro):not(.btn-panel-vip):not(.btn-nav-logout):not(.btn-campanita) { 
    font-size: 1.1rem; width: 100%; display: block; padding: 12px 15px; border-radius: 12px;
  }
  
  /* Efecto flecha al tocar en móvil */
  .lista-nav > li > a:not(.btn-nav-login):not(.btn-nav-registro):not(.btn-panel-vip):not(.btn-nav-logout):not(.btn-campanita):hover,
  .lista-nav > li > a:not(.btn-nav-login):not(.btn-nav-registro):not(.btn-panel-vip):not(.btn-nav-logout):not(.btn-campanita):active { 
    background: rgba(255,255,255,0.05); padding-left: 25px; color: var(--color-primario);
  }

  /* Mega Menú en Móvil (Acordeón) */
  .mega-menu {
    position: static; transform: none; width: 100%; max-width: 100%; min-width: 100%;
    display: none; opacity: 1; visibility: visible; background: transparent;
    border: none; padding: 10px 0 10px 15px; box-shadow: none;
  }
  .mega-menu.is-open { display: block; animation: slideDown 0.3s ease forwards; }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

  .mega-grid { grid-template-columns: 1fr; gap: 10px; }
  .mega-item { padding: 12px; border-left: 2px solid rgba(255,255,255,0.1); border-radius: 0 12px 12px 0; }
  .mega-item:hover { background: rgba(255,51,102,0.05); border-left-color: var(--color-primario); transform: translateX(5px); }
  .mega-icon { width: 35px; height: 35px; font-size: 1rem; }
  .mega-info h4 { font-size: 1rem; }
  .mega-linea-flow { display: none; }

  .enlace-mega i { transition: transform 0.3s ease; float: right; }
  .enlace-mega.is-open i { transform: rotate(180deg); color: var(--color-primario); }

  .nav-auth-buttons { flex-direction: row; flex-wrap: wrap; width: 100%; gap: 15px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
  .btn-nav-login, .btn-nav-registro, .btn-panel-vip { width: 100%; text-align: center; padding: 15px; font-size: 1rem !important; box-sizing: border-box; }
  .btn-campanita { justify-content: flex-start; margin-bottom: 10px; width: 100%; padding: 10px; background: rgba(255,255,255,0.05); border-radius: 12px; }
  .badge-notif { position: relative; top: auto; right: auto; margin-left: 10px; }
}