
:root{color-scheme:dark}
html{scroll-behavior:smooth}
body.bga-theme{margin:0!important;background:#05070b!important;color:#f7f9fc!important}
body.bga-theme.admin-bar .bga-global-header{top:32px}
.bga-page{
  --bg:#05070b;--panel:#0b1018;--panel2:#101722;--border:#1c2736;
  --cyan:#17e2f4;--pink:#f01bdf;--violet:#7c5cff;--green:#55ef9b;--yellow:#ffd45c;
  --text:#f7f9fc;--muted:#96a2b5;
  min-height:100vh;background:var(--bg);color:var(--text);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif
}
.bga-page *{box-sizing:border-box}
.bga-page a{text-decoration:none}
.bga-global-header{
  position:sticky;top:0;z-index:9998;background:rgba(5,7,11,.92);
  border-bottom:1px solid rgba(255,255,255,.07);backdrop-filter:blur(15px)
}
.bga-header-inner{width:min(1320px,calc(100% - 40px));height:74px;margin:auto;display:grid;grid-template-columns:1fr auto;align-items:center;gap:30px}
.bga-brand{display:inline-flex;align-items:center;gap:10px;color:#fff!important;font-size:20px;font-weight:900}
.bga-brand strong{background:linear-gradient(90deg,var(--cyan),var(--violet),var(--pink));-webkit-background-clip:text;background-clip:text;color:transparent}
.bga-brand-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,var(--cyan),#25f2ba);box-shadow:0 0 24px rgba(23,226,244,.2)}
.bga-menu,.bga-footer-menu{list-style:none!important;margin:0!important;padding:0!important;display:flex;gap:25px}
.bga-menu a{color:#a9b3c2!important;font-size:14px;font-weight:700}.bga-menu a:hover{color:#fff!important}
.bga-menu-toggle{display:none;border:1px solid #273346;background:#0d131d;color:#fff;border-radius:10px;padding:8px 11px;font-size:20px}
.bga-global-footer{border-top:1px solid #141d28;background:#06080c;padding:52px 0 25px}
.bga-footer-inner{width:min(1240px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:1.3fr .7fr 1fr;gap:55px}
.bga-footer-brand p{max-width:390px;color:var(--muted);line-height:1.65}
.bga-footer-links{display:flex;flex-direction:column;gap:9px}.bga-footer-links h3{margin:0 0 6px;font-size:13px;color:#fff}
.bga-footer-links>a,.bga-footer-menu a{color:#8996a9!important;font-size:13px}.bga-footer-links>a:hover,.bga-footer-menu a:hover{color:var(--cyan)!important}
.bga-footer-menu{display:flex;flex-direction:column;gap:9px}
.bga-footer-bottom{width:min(1240px,calc(100% - 40px));margin:35px auto 0;padding-top:18px;border-top:1px solid #141d28;display:flex;justify-content:space-between;gap:20px;color:#647084;font-size:11px}
.bga-standard-content{width:min(980px,calc(100% - 40px));margin:0 auto;padding:70px 0 90px}
.bga-page-title{margin-bottom:28px}.bga-page-title h1{margin:7px 0 0;font-size:44px}.bga-eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:950;color:var(--cyan)}
.bga-page-body{background:#0b1018;border:1px solid #1c2736;border-radius:22px;padding:34px;color:#c5ceda;line-height:1.75}
.bga-page-body h2,.bga-page-body h3{color:#fff}.bga-page-body a{color:var(--cyan)!important}
.bga-game-content{width:min(1500px,calc(100% - 28px));margin:auto;padding:26px 0 55px}
.bga-game-body-wrap{background:transparent!important;border:0!important;padding:0!important}
.bga-cookie{
  position:fixed;z-index:10000;left:24px;right:24px;bottom:22px;max-width:980px;margin:auto;
  display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;padding:18px 20px;
  background:#0b111a;border:1px solid #28364a;border-radius:17px;box-shadow:0 20px 70px rgba(0,0,0,.45)
}
.bga-cookie[hidden]{display:none!important}.bga-cookie strong{color:#fff}.bga-cookie p{margin:5px 0;color:#a6b1c0;font-size:12px;line-height:1.45}.bga-cookie a{color:var(--cyan)!important;font-size:12px}
.bga-cookie-actions{display:flex;gap:8px}.bga-cookie button{border:1px solid #2a374a;background:#111824;color:#dce3ed;padding:10px 13px;border-radius:10px;font-weight:850;cursor:pointer}.bga-cookie .bga-cookie-accept{background:var(--cyan);color:#001014;border-color:var(--cyan)}
@media(max-width:850px){
 body.bga-theme.admin-bar .bga-global-header{top:46px}
 .bga-header-inner{grid-template-columns:1fr auto}
 .bga-menu-toggle{display:block}
 .bga-global-nav{position:absolute;left:15px;right:15px;top:70px;background:#0a0f17;border:1px solid #202c3d;border-radius:14px;padding:14px;display:none}
 .bga-global-nav.open{display:block}.bga-menu{flex-direction:column;gap:6px}.bga-menu a{display:block;padding:10px}
 .bga-footer-inner{grid-template-columns:1fr}.bga-footer-bottom{flex-direction:column}
 .bga-cookie{grid-template-columns:1fr;left:12px;right:12px}.bga-cookie-actions{justify-content:flex-end}
}

/* v1.2 formularios legales/contacto */
.bga-contact-wrap{max-width:100%;margin:0 auto}
.bga-contact-form{display:flex;flex-direction:column;gap:22px}
.bga-contact-form label{display:flex;flex-direction:column;gap:8px;color:#e7edf5;font-weight:750;font-size:14px}
.bga-contact-form label>span{color:#8491a4;font-weight:500}
.bga-contact-form input[type="text"],.bga-contact-form input[type="email"],.bga-contact-form textarea{
 width:100%;background:#080d14!important;color:#f7f9fc!important;border:1px solid #26364a!important;border-radius:10px!important;padding:14px 15px!important;font:inherit!important;box-shadow:none!important
}
.bga-contact-form textarea{resize:vertical;min-height:230px}
.bga-contact-form input:focus,.bga-contact-form textarea:focus{outline:2px solid #17e2f4!important;border-color:#17e2f4!important}
.bga-contact-consent{display:grid!important;grid-template-columns:auto 1fr!important;align-items:start!important;gap:10px!important;font-size:12px!important;color:#9aa7b8!important}
.bga-contact-consent input{margin-top:3px}.bga-contact-consent a{color:#17e2f4!important}
.bga-contact-form button{align-self:flex-start;background:linear-gradient(90deg,#17e2f4,#7c5cff);color:#041017;border:0;border-radius:11px;padding:12px 22px;font-weight:900;cursor:pointer}
.bga-contact-success{margin-bottom:22px;padding:14px 16px;border-radius:11px;background:#0d352d;border:1px solid #267765;color:#77f3ce}
.bga-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
/* selects en páginas de juego: nunca texto blanco sobre fondo blanco */
.bga-game-page select{background:#0d1622!important;color:#f7f9fc!important;-webkit-text-fill-color:#f7f9fc!important;border-color:#314258!important}
.bga-game-page select option{background:#fff!important;color:#111827!important;-webkit-text-fill-color:#111827!important}

/* v1.4 - selector global de idioma */
.bga-header-tools{display:flex;align-items:center;gap:10px}
.bga-lang-label{display:flex;align-items:center}
.bga-language-switcher{
  min-width:128px;background:#0c1420!important;color:#eef5ff!important;
  border:1px solid #2a3b52!important;border-radius:10px!important;
  padding:8px 10px!important;font-size:12px!important;font-weight:800!important;
}
.bga-language-switcher option{background:#fff!important;color:#111827!important}
.bga-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html[dir="rtl"] .bga-global-nav,html[dir="rtl"] .bga-page-body,html[dir="rtl"] .bga-home-main{text-align:right}

/* v1.4 - publicidad */
.bga-game-ad-layout{
  width:min(1580px,calc(100% - 24px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(120px,180px) minmax(0,1fr) minmax(120px,180px);
  gap:150px;
  align-items:start;
}
.bga-game-center{min-width:0}
.bga-ad-rail{padding-top:120px;min-width:0}
.bga-ad-slot{width:100%;text-align:center;overflow:hidden}
.bga-ad-label{font-size:11px;color:#7e8ba0;margin:0 0 7px;letter-spacing:.02em}
.bga-ad-rail .bga-ad-slot{min-height:420px}
.bga-home-ad-section{padding:42px 0}
.bga-home-ad-section .bga-ad-slot{max-width:1000px;min-height:90px;margin:0 auto}
.bga-mobile-ad{display:none;margin-top:170px;margin-bottom:20px}
@media(max-width:1450px){
  .bga-game-ad-layout{grid-template-columns:120px minmax(0,1fr) 120px;gap:150px}
}
@media(max-width:1180px){
  .bga-game-ad-layout{display:block;width:min(1080px,calc(100% - 24px))}
  .bga-ad-rail{display:none}
  .bga-mobile-ad{display:block}
}
@media(max-width:760px){
  .bga-language-switcher{min-width:72px;max-width:92px}
  .bga-lang-label{display:none}
  .bga-mobile-ad{margin-top:160px}
}

/* v1.5 - idioma integrado dentro de la barra del menú */
.bga-global-nav{display:flex!important;align-items:center!important;gap:18px!important}
.bga-global-nav .bga-header-tools-menu{display:flex!important;align-items:center!important;gap:7px!important;margin-left:4px!important}
.bga-global-nav .bga-language-switcher{
  min-width:118px!important;max-width:136px!important;height:36px!important;
  padding:6px 9px!important;border-radius:9px!important;
}
.bga-global-nav .bga-lang-label{font-size:15px!important}
@media(max-width:900px){
  .bga-global-nav .bga-header-tools-menu{width:100%;margin:8px 0 0!important;padding-top:8px;border-top:1px solid #1e2a3a}
  .bga-global-nav .bga-language-switcher{min-width:150px!important;max-width:180px!important}
}

.bga-game-clean-layout{
  width:min(1180px,calc(100% - 24px));
  margin:0 auto;
}
.bga-game-clean-layout .bga-game-center{
  width:100%;
  min-width:0;
}


/* =========================================================
   v1.7 - MENU MÓVIL NORMAL / COLAPSABLE
   ========================================================= */

/* Escritorio */
.bga-header-inner{
  position:relative;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  align-items:center!important;
}
.bga-global-nav{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:18px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  border-radius:0!important;
}
.bga-menu{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:25px!important;
}
.bga-menu-toggle{
  display:none!important;
}
.bga-global-nav .bga-header-tools-menu{
  display:flex!important;
  width:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
}

/* Móvil: solo logo + hamburguesa. El panel aparece únicamente al tocar ☰ */
@media (max-width:900px){
  .bga-header-inner{
    width:calc(100% - 30px)!important;
    height:72px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:12px!important;
  }

  .bga-brand{
    min-width:0!important;
    font-size:18px!important;
  }
  .bga-brand-icon{
    width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;
  }

  .bga-menu-toggle{
    display:grid!important;
    place-items:center!important;
    position:relative!important;
    z-index:10002!important;
    width:44px!important;
    height:44px!important;
    padding:0!important;
    margin:0!important;
    cursor:pointer!important;
  }

  .bga-global-nav{
    display:none!important;
    position:absolute!important;
    z-index:10001!important;
    top:calc(100% + 8px)!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-height:calc(100vh - 95px)!important;
    overflow-y:auto!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:12px!important;
    background:#0a0f17!important;
    border:1px solid #202c3d!important;
    border-radius:14px!important;
    box-shadow:0 18px 55px rgba(0,0,0,.45)!important;
  }

  .bga-global-nav.open{
    display:flex!important;
  }

  .bga-menu{
    display:flex!important;
    width:100%!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:2px!important;
  }

  .bga-menu li{
    width:100%!important;
    margin:0!important;
  }

  .bga-menu a{
    display:block!important;
    width:100%!important;
    padding:11px 12px!important;
    border-radius:9px!important;
    font-size:14px!important;
  }
  .bga-menu a:hover,
  .bga-menu a:focus{
    background:#111a27!important;
  }

  .bga-global-nav .bga-header-tools-menu{
    display:flex!important;
    width:100%!important;
    justify-content:flex-start!important;
    margin:4px 0 0!important;
    padding:12px 4px 2px!important;
    border-top:1px solid #1e2a3a!important;
  }

  .bga-global-nav .bga-language-switcher{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:42px!important;
  }

  .bga-global-nav .bga-lang-label{
    display:flex!important;
    flex:0 0 auto!important;
  }
}

/* Teléfonos pequeños */
@media (max-width:480px){
  .bga-header-inner{
    width:calc(100% - 24px)!important;
  }
  .bga-global-nav{
    top:calc(100% + 6px)!important;
  }
}
