.game-item{
  text-decoration: none;
  color: inherit;
}
/* ===============================
   VARIABLES
================================ */
:root{
  --searchW: 520px;
  --searchW-lg: 760px;
  --dropGap: 10px; /* 🔽 más compacto */
}

/* ===============================
   HEADER
================================ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  height: 79px;

  max-width: 1500px;
  margin-inline: auto;
  padding: 0 22px;
}

/* LOGO */
.header-logo img {
  height: 36px;
  transition: transform .25s ease;
 
  display: flex;
  align-items: center;
  transform: translateY(0px); /* probá 2px o 3px */
}


/* CENTER */
.header-center {
  display: flex;
  justify-content: center;
}

/* CONTACT */
.contact-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;

  transition: background .25s ease;
}
.contact-btn:hover { background: rgba(122,92,255,0.18); }
.contact-btn svg { width: 18px; height: 18px; fill: #fff; }

/* ===============================
   SEARCH WRAPPER
================================ */
.game-search-wrapper{
  position: relative;
  width: 100%;
  max-width: var(--searchW);
}

/* ===============================
   SEARCH BOX
================================ */
.search-box{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px; /* 🔽 */

  padding: 10px 16px; /* 🔽 */
  border-radius: 14px;

  background: #8645d127;
  border: 2px solid rgba(100, 33, 163, 0.473);

  transition: border-color .2s ease, background .2s ease;
}
.search-box:hover{ border-color: rgba(255,255,255,0.16); }
.search-box:focus-within{
  border-color: #7a5cff;
  background: rgba(18, 20, 34, 0.95);
}

.search-icon{
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.6);
  stroke-width: 2;
  fill: none;
}

.search-box input{
  flex: 1;
  background: none;
  border: none;
  outline: none;

  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.search-box input::placeholder{ color: rgba(255,255,255,0.45); }

/* ===============================
   DROPDOWN
================================ */
.games-dropdown{
  position: absolute;
  padding: 8px !important;
  padding-top: 15px !important;   /* antes 8 / 12 */
  padding-bottom: 15px !important;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 100%;
  max-width: var(--searchW);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 28, 0.98),
    rgba(10, 10, 18, 0.98)
  );
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1000;
}

.games-dropdown.active{
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ===============================
   GRID COMPACTA
================================ */
.games-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dropGap);
  gap: 10px !important; /* <-- CLAVE */
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* ===============================
   ITEM COMPACTO
================================ */
.game-item{
  height: 46px; /* 🔽 */
  display: flex;
  align-items: center;
  gap: 10px; /* 🔽 */

  padding: 0 12px; /* 🔽 */
  border-radius: 12px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);

  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
}

.game-item:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(140,120,255,0.35);
  transform: translateY(-1px);
}

/* ICONO MÁS CHICO */
.game-icon{
  width: 30px;   /* 🔽 */
  height: 30px;  /* 🔽 */
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;
  background: rgba(255,255,255,0.06);
}
.game-icon img{
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* TEXTO */
.game-item span{
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===============================
   PANTALLAS GRANDES
================================ */
@media (min-width: 1100px){
  .game-search-wrapper{ max-width: var(--searchW-lg); }
  .games-dropdown{ max-width: var(--searchW-lg); }
  .games-grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px; /* 🔽 */
  }
}
 
/* ===============================
   CONTACT DROPDOWN
================================ */

.contact-wrapper{
  position: relative;
}

/* DROPDOWN */
.contact-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  width: 180px;
  padding: 8px;
border: 2px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(13, 2, 26, 0.815),
    rgb(15, 0, 39)
  
  );

  

  backdrop-filter: blur(16px);

  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  z-index: 1000;
}

.contact-dropdown.active{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ITEM */
.contact-item{
  display: flex;
  align-items: center;
  gap: 10px;

  height: 42px;
  padding: 0 12px;
  border-radius: 10px;

  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);

  transition: background .2s ease, border-color .2s ease;
}

.contact-item + .contact-item{
  margin-top: 6px;
}

.contact-item:hover{
  background: rgba(255,255,255,0.08);
  border-color: rgba(140,120,255,0.35);
}

/* ICONO */
.contact-item img{
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}







/* ===============================
   GAME ITEM DESACTIVADO (SUTIL)
================================ */
.game-item.is-disabled {
  pointer-events: none;      /* 🔒 no clic */
  cursor: default;
  opacity: 0.5;              /* sutil, no muerto */
  filter: grayscale(100%);
}

.game-item.is-disabled .game-icon {
  background: rgba(255,255,255,0.03);
}

.game-item.is-disabled span {
  color: rgba(255,255,255,0.6);
}
.app-header {
  background: transparent;
  transition:
    background .25s ease,
    backdrop-filter .25s ease,
    border-color .25s ease;
}
 







.app-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  height: 84px;
  max-width: 1500px;
  margin-inline: auto;
  padding: 0 22px;

  background: transparent;
}

/* barra espejo */
.app-header::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 84px;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  pointer-events: none;
  z-index: -1;

  transition:
    background .25s ease,
    backdrop-filter .25s ease,
    box-shadow .25s ease;
}
 

 /* =========================================
   HOME → barra solo al scrollear
========================================= */

.app-header::before{
  content: "";
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 84px;

  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  pointer-events: none;
  z-index: -1;

  transition:
    background .25s ease,
    backdrop-filter .25s ease,
    box-shadow .25s ease;
}

body.header-scrolled .app-header::before{
  background: rgba(12, 7, 24, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
 

  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 6px 20px rgba(0,0,0,0.35);
}

/* =========================================
   PÁGINAS DE JUEGO → barra SIEMPRE visible
========================================= */
@media (max-width: 768px){
body.valorant-page .app-header::before,
body.lol-page .app-header::before,
body.cs2-page .app-header::before,
body.tft-page .app-header::before,
body.wow-page .app-header::before{
  background: rgba(12, 7, 24, 0.9);
  backdrop-filter: blur(14px) saturate(140%);
 

  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.04),
    0 6px 20px rgba(0,0,0,0.35);
}}



@media (max-width: 768px){

  /* achica VISUALMENTE la barra */
  .app-header::before{
    clip-path: inset(0 0 8px 0); /* 👈 recorta abajo */
  }

}



/* ==================================================
   HEADER MOBILE — FIX DEFINITIVO (NO ROMPE PC)
================================================== */
@media (max-width: 768px){

  /* Header full width */
  .app-header{
    max-width: none !important;
    width: 100% !important;
    height: 72px !important;
    padding: 0 14px !important;
  }
 @media (max-width: 768px){
  .search-box{
    display: none !important;
  }
}

  /* Logo centrado real */
  .header-left{
    position: absolute !important;
    left: 50% !important;
    top: 0 !important;
    transform: translateX(-50%) !important;

    height: 72px !important;
    display: flex !important;
    align-items: center !important;
    z-index: 1001 !important;
  }

  .header-logo img{
    height: 42px !important;
    transform: none !important;
  }

  /* Barra de iconos */
  .header-right{
    position: absolute !important;
    inset: 0 14px 0 14px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
 
  }

 

  .game-current-btn img{
    width: 18px;
    height: 18px;
  }

  /* Contacto */
  .contact-btn{
    width: 40px;
    height: 40px;
  }

  /* Dropdown juegos */
  .games-dropdown{
    left: 50% !important;
    transform: translateX(-50%) translateY(-6px) !important;
    width: calc(100vw - 24px) !important;
    max-width: none !important;
  }

  .games-dropdown.active{
    transform: translateX(-50%) translateY(0) !important;
  }
}










/* BOTÓN SELECTOR DE JUEGO */
#gameToggle{
  display: none; /* PC */
}

@media (max-width: 768px){
  #gameToggle{
    display: flex;
    align-items: center;
    justify-content: center;
 

    position: relative;
    z-index: 10002;
  }

  #gameToggle img{
    width: 18px;
    height: 18px;
  }
}

/* =========================================
   DROPDOWN JUEGOS — MOBILE FIX FINAL
========================================= */
/* =========================================
   GAMES DROPDOWN — MISMO QUE CONTACT (MOBILE)
========================================= */
@media (max-width: 768px){

  /* CONTENEDOR */
  .games-dropdown{
    position: fixed !important;

    top: 78px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: calc(100vw - 24px) !important;
    max-width: none !important;

    padding: 14px !important;

    border-radius: 18px !important;

    background: linear-gradient(
      180deg,
      rgba(9, 5, 37, 0.98),
      rgba(13, 1, 19, 0.98)
    ) !important;

    border: 1px solid rgba(140,120,255,0.22) !important;

    backdrop-filter: blur(16px) saturate(140%);
    

    box-shadow:
      0 20px 60px rgba(0,0,0,0.7),
      inset 0 0 0 1px rgba(255,255,255,0.04) !important;

    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease !important;

    z-index: 10050 !important;
  }

  .games-dropdown.active{
    opacity: 1;
    pointer-events: auto;
  }

  /* =====================================
     LISTA — RESET TOTAL
  ===================================== */

  .games-grid{
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  /* =====================================
     ITEM DE JUEGO — MISMO SISTEMA
  ===================================== */

  .game-item{
    height: 52px !important;
    padding: 0 14px !important;

    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    border-radius: 14px !important;

    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(140,120,255,0.18) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    transition:
      background .2s ease,
      border-color .2s ease,
      transform .15s ease;
  }

  .game-item:hover,
  .game-item:active{
    background: rgba(140,120,255,0.18) !important;
    border-color: rgba(160,140,255,0.45) !important;
    transform: translateY(-1px);
  }

  /* ICONO */
  .game-icon{
    width: 30px !important;
    height: 30px !important;

    border-radius: 8px !important;
    background: rgba(140,120,255,0.18) !important;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .game-icon img{
    width: 20px !important;
    height: 20px !important;
  }

  /* TEXTO */
  .game-item span{
    color: rgba(255,255,255,0.95) !important;
  }

  /* DESHABILITADO */
  .game-item.is-disabled{
    opacity: .45 !important;
    filter: grayscale(100%) !important;
    pointer-events: none !important;
  }
}





@media (max-width: 768px){

  .header-right{
    display: flex;
    align-items: center;
    gap: 12px;
  }

  /* BOTONES MOBILE — EL0KING STYLE */
  #gameToggle,
  .contact-btn{
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;

    display: grid;
    place-items: center;

    background: rgba(10, 14, 30, 0.75) !important;
    backdrop-filter: blur(12px);
  

    border: 1px solid rgba(255,255,255,0.12) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255,255,255,0.04),
      0 6px 18px rgba(0,0,0,0.45);

    padding: 0;
  }

  /* ICONOS */
  #gameToggle img{
    width: 20px;
    height: 20px;
    opacity: 0.95;
  }

  .contact-btn svg{
    width: 20px;
    height: 20px;
  }

  .contact-btn svg path{
    fill: none;
    stroke: #fff;
    stroke-width: 1.8;
    opacity: 0.95;
  }

  /* feedback táctil */
  #gameToggle:active,
  .contact-btn:active{
    transform: scale(0.94);
  }
}
/* =========================================
   MOBILE — SOLO CAMBIO DE COLOR (GAME SELECT)
========================================= */
@media (max-width: 768px){

  /* fondo del dropdown */
  .games-dropdown{
    background: linear-gradient(
      180deg,
      rgba(9, 5, 37, 0.98),
      rgba(13, 1, 19, 0.98)
    ) !important;

    border: 1px solid rgba(140,120,255,0.22) !important;

    box-shadow:
      0 20px 60px rgba(0,0,0,0.7),
      inset 0 0 0 1px rgba(255,255,255,0.04) !important;
  }

  /* cards de juego */
  .game-item{
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(140,120,255,0.18) !important;
  }

  .game-item:hover,
  .game-item:active{
    background: rgba(140,120,255,0.18) !important;
    border-color: rgba(160,140,255,0.45) !important;
  }

  /* icono del juego */
  .game-icon{
    background: rgba(140,120,255,0.18) !important;
  }

  /* texto */
  .game-item span{
    color: rgba(255,255,255,0.95) !important;
  }
}

 
/* ===============================
   ICON ITEM
=============================== */

 

/* HOVER */
.contact-item:hover{
  background: rgba(150,80,255,.18);
  box-shadow:
    0 0 18px rgba(150,80,255,.35),
    inset 0 0 0 1px rgba(180,120,255,.45);
  transform: translateY(-1px);
}







/* =========================================
   CONTACT DROPDOWN — IGUAL A GAMES (MOBILE)
========================================= */
@media (max-width: 768px){

  .contact-dropdown{
    position: fixed !important;

    /* 👇 MISMA POSICIÓN QUE GAMES */
    top: 78px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: calc(100vw - 24px) !important;
    max-width: none !important;

    padding: 14px !important;

    border-radius: 18px !important;

    background: linear-gradient(
      180deg,
      rgba(9, 5, 37, 0.98),
      rgba(13, 1, 19, 0.98)
    ) !important;

    border: 1px solid rgba(140,120,255,0.22) !important;

    backdrop-filter: blur(16px) saturate(140%);
    

    box-shadow:
      0 20px 60px rgba(0,0,0,0.7),
      inset 0 0 0 1px rgba(255,255,255,0.04) !important;

    opacity: 0;
    pointer-events: none;

    transition: opacity .25s ease !important;

    z-index: 10050 !important;
  }

  .contact-dropdown.active{
    opacity: 1;
    pointer-events: auto;
  }

  /* =====================================
     ITEMS — MISMO ESTILO QUE GAME ITEM
  ===================================== */

  .contact-item{
    height: 52px !important;
    padding: 0 14px !important;

    display: flex;
    align-items: center;
    gap: 12px;

    border-radius: 14px !important;

    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(140,120,255,0.18) !important;

    font-size: 14px !important;
    font-weight: 600;

    transition:
      background .2s ease,
      border-color .2s ease,
      transform .15s ease;
  }

  .contact-item + .contact-item{
    margin-top: 10px !important;
  }

  .contact-item:hover,
  .contact-item:active{
    background: rgba(140,120,255,0.18) !important;
    border-color: rgba(160,140,255,0.45) !important;
    transform: translateY(-1px);
  }

  /* ICONO */
  .contact-item img{
    width: 22px !important;
    height: 22px !important;
  }

  /* TEXTO */
  .contact-item span{
    color: rgba(255,255,255,0.95) !important;
  }
}







/* =========================================
   GAMES DROPDOWN — ESTILO UNIFICADO (PC + MOBILE)
========================================= */

.games-dropdown{
  background: linear-gradient(
    180deg,
    rgba(9, 5, 37, 0.98),
    rgba(13, 1, 19, 0.98)
  ) !important;

  border: 1px solid rgba(140,120,255,0.22) !important;

  backdrop-filter: blur(16px) saturate(140%);
  
  box-shadow:
    0 20px 60px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.04) !important;
}
.game-item{
  height: 52px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  gap: 12px;

  border-radius: 14px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(140,120,255,0.18);

  font-size: 14px;
  font-weight: 600;

  transition:
    background .2s ease,
    border-color .2s ease,
    transform .15s ease;
}
 /* BOTÓN AYUDA — GLASS */
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;

  border-radius: 12px;

  background: linear-gradient(
    180deg,
    rgba(164, 69, 241, 0.18),
    rgba(151, 60, 255, 0.08)
  );

  border: 2px solid rgba(162, 0, 255, 0.274);

 

  color: #e6d9ff;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
  
}
