/* Bucaya · página Juegos (usa home.css como base) — /wp-content/themes/hello-theme-child-natekla/bucaya-tenzio/juegos.css */

body.page-id-184 { background: var(--bcy-navy-0); }

/* Aire entre títulos y textos (el reset .bh p / .bh h2 lo anulaba) */
.bh.bg h2.bh-h2 { margin-top: 16px; }
.bh.bg p.bh-sub { margin-top: 18px; }
.bh.bg h1.bh-h1 { margin-top: 26px; }
.bh.bg p.bh-lead { margin-top: 24px; }
.bh.bg .bh-end p.bh-lead { margin-inline: auto; }
.bh.bg .bh-end h2.bh-h2 { margin-inline: auto; }
.bh.bg h1.bh-h1 em { display: block; }

/* ---------------- HERO: pantalla del local ---------------- */
.bh.bg .bg-hero { padding-bottom: clamp(60px, 8vw, 100px); }
.bg-screen { position: relative; width: min(900px, 100%); margin-top: 58px; }
.bg-tv { position: relative; padding: 11px; border-radius: 24px; background: #060a22; box-shadow: 0 0 0 2px #1b2a66, 0 -10px 80px rgba(0, 120, 255, 0.35), 0 40px 90px rgba(0, 0, 20, 0.55); }
.bh .bg-tv img { width: 100%; border-radius: 15px; }
.bg-screen .bg-tv img { aspect-ratio: 16 / 10; object-fit: cover; }
.bg-float--a { left: -46px; top: 18%; animation-delay: -1s; }
.bg-float--b { right: -46px; bottom: 16%; animation-delay: -4s; }
.bg-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: rgba(91, 208, 255, 0.2); color: #5bd0ff; }
.bg-ico svg { width: 19px; height: 19px; }

/* ---------------- CÓMO FUNCIONA: cuatro pasos ---------------- */
.bh .bg-steps { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bh .bg-steps .bh-step { padding-inline: 22px; }
.bh .bg-steps h3 { font-size: 20px; }
.bg-mobile { position: relative; width: 44px; height: 76px; border-radius: 12px; background: #fff; animation: bg-shake 2.400s ease-in-out infinite; }
.bg-mobile i { position: absolute; inset: 5px; border-radius: 8px; background: linear-gradient(160deg, #2f86ff, #0a4fe0); }
.bg-mobile::before, .bg-mobile::after { content: ''; position: absolute; top: 20px; width: 9px; height: 34px; border: 2px solid #5bd0ff; border-radius: 50%; }
.bg-mobile::before { left: -17px; border-color: transparent transparent transparent #5bd0ff; }
.bg-mobile::after { right: -17px; border-color: transparent #5bd0ff transparent transparent; }
@keyframes bg-shake { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-13deg); } 70% { transform: rotate(12deg); } 78% { transform: rotate(-9deg); } 86% { transform: rotate(6deg); } }
.bg-podium { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.bg-podium i { display: grid; place-items: start center; width: 26px; padding-top: 6px; border-radius: 7px 7px 3px 3px; font: 800 14px/1 var(--bcy-font-head); font-style: normal; color: #1b1500; background: #d9e0f0; height: 46px; }
.bg-podium i:nth-child(2) { height: 68px; background: linear-gradient(180deg, #ffd45a, #f5a800); box-shadow: 0 0 30px rgba(245, 168, 0, 0.55); }
.bg-podium i:nth-child(3) { height: 34px; background: #d89b65; }

/* ---------------- LOS JUEGOS ---------------- */
.bg-list .bh-head { margin-bottom: 34px; }
.bg-nav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bh .bg-nav a { display: block; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; transition: opacity 0.8s var(--bcy-ease), transform 0.5s var(--bcy-ease), border-color 0.3s, box-shadow 0.4s; }
.bh .bg-nav a:hover { transform: translateY(-6px); border-color: #5b8dff; box-shadow: 0 24px 50px rgba(0, 92, 255, 0.3); }
.bh .bg-nav a:focus-visible { outline: 2px solid #5b8dff; outline-offset: 3px; }
.bh .bg-nav img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bg-nav span { display: block; padding: 12px 14px; font: 700 14px/1.3 var(--bcy-font-head); letter-spacing: -0.02em; }

.bg-game { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(30px, 4.5vw, 66px); align-items: center; margin-top: clamp(64px, 8vw, 110px); scroll-margin-top: 110px; }
.bg-game--r { grid-template-columns: 1fr 1.35fr; }
.bg-game--r .bg-game__media { order: 2; }
.bg-game__media { margin: 0; min-width: 0; }
.bg-game__media figcaption { margin-top: 14px; font: 500 13px/1.5 var(--bcy-font-body); color: #8e9cca; text-align: center; }
/* Elementor fuerza width/max-width a todo <video> */
.bh .bg-tv video.bg-video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 15px; background: #05081f; }
.bg-num { display: inline-block; font: 800 12.500px/1 var(--bcy-font-body); letter-spacing: 0.13em; color: #7fb0ff; }
.bh .bg-game__txt h3 { margin-top: 14px; font-size: clamp(25px, 2.700vw, 36px); line-height: 1.16; font-weight: 600; color: #fff; text-wrap: balance; }
.bh .bg-game__txt p { margin-top: 16px; font-size: 16.500px; line-height: 1.65; color: #aebbe6; }
.bh .bg-ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.bh .bg-ul li { position: relative; margin: 0; padding: 12px 16px 12px 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font: 600 15px/1.5 var(--bcy-font-body); color: #e3eaff; }
.bg-ul li::before { content: ''; position: absolute; left: 16px; top: 13px; width: 20px; height: 20px; border-radius: 7px; background: var(--bcy-electric); }
.bg-ul li::after { content: ''; position: absolute; left: 23px; top: 17px; width: 4px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------------- CONTROL ---------------- */
.bh .bh-tools .bh-tool h3 { color: var(--bcy-ink); }

/* ---------------- QUÉ NECESITAS ---------------- */
.bg-need__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.bh .bg-need__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bh .bg-need__list li { display: flex; align-items: center; gap: 22px; margin: 0; padding: 22px 26px 22px 22px; border-radius: 22px; background: var(--bcy-paper); border: 1px solid #dfe8fb; }
.bg-need__list i { display: grid; place-items: center; flex: 0 0 auto; width: 62px; height: 62px; border-radius: 19px; color: #fff; background: radial-gradient(circle at 30% 20%, #1c3fb8, #04134f 80%); box-shadow: 0 14px 28px rgba(6, 27, 120, 0.25); }
.bg-need__list i svg { width: 30px; height: 30px; }
.bh .bg-need__list h3 { font-size: 20px; line-height: 1.25; color: var(--bcy-ink); }
.bh .bg-need__list p { margin-top: 6px; font-size: 15.500px; line-height: 1.6; }

/* ---------------- BARES ---------------- */
.bg-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: min(760px, 100%); margin: 40px auto 0; }
.bh .bg-bars a { display: block; overflow: hidden; border-radius: 22px; text-align: left; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; transition: transform 0.5s var(--bcy-ease), box-shadow 0.5s, border-color 0.3s; }
.bh .bg-bars a:hover { transform: translateY(-8px); border-color: #5b8dff; box-shadow: 0 30px 60px rgba(0, 0, 20, 0.5); }
.bh .bg-bars a:focus-visible { outline: 2px solid #5b8dff; outline-offset: 3px; }
.bh .bg-bars img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bg-bars span { display: block; padding: 16px 20px 18px; }
.bg-bars b { display: block; font: 700 19px/1.2 var(--bcy-font-head); letter-spacing: -0.02em; }
.bg-bars b::after { content: ' ↗'; color: #5b8dff; }
.bg-bars small { display: block; margin-top: 5px; font: 500 13.500px/1.4 var(--bcy-font-body); color: #a9bcf0; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1080px) {
  .bh .bg-steps { grid-template-columns: 1fr 1fr; }
  .bg-game, .bg-game--r, .bg-need__grid { grid-template-columns: 1fr; }
  .bg-game--r .bg-game__media { order: 0; }
  .bg-nav { grid-template-columns: repeat(3, 1fr); }
  .bg-float--a { left: -6px; top: -22px; }
  .bg-float--b { right: -6px; bottom: -24px; }
}
@media (max-width: 720px) {
  .bh .bg-steps { grid-template-columns: 1fr; }
  .bg-nav { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bg-tv { padding: 6px; border-radius: 16px; }
  .bh .bg-tv img, .bh .bg-tv video.bg-video { border-radius: 11px; }
  .bg-screen { margin-top: 46px; }
  .bh .bg-float--b { display: none; }
  .bh .bg-need__list li { gap: 16px; padding: 18px; }
  .bg-need__list i { width: 50px; height: 50px; border-radius: 15px; }
  .bg-need__list i svg { width: 25px; height: 25px; }
  .bg-bars { grid-template-columns: 1fr; margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .bg-mobile { animation: none; } }
