/* ============================================================
   Betcris Casino Lobby — CSS
   Todos los estilos están bajo .bcl-lobby para no interferir
   con los estilos del tema de WordPress.
   ============================================================ */

/* Variables y reset */
.bcl-lobby {
  --bg:       #061626;
  --bg-soft:  #0d2840;
  --card:     #14304f;
  --navy:     #173358;
  --text:     #f4f8ff;
  --muted:    #8ba6c9;
  --accent:   #da202c;
  --accent-2: #009fda;
  --teal:     #5eead4;
  --radius:   12px;

  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 85% -12%, rgba(0,159,218,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(218,32,44,.10) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  padding-bottom: 60px;

  /* Rompe el contenedor del tema y ocupa el ancho completo del viewport */
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  overflow-x: hidden;
}

.bcl-lobby * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Header ─────────────────────────────────────────────── */
.bcl-lobby .bcl-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 20;
}
.bcl-lobby .bcl-header-left { display: flex; align-items: center; gap: 22px; }
.bcl-lobby .bcl-logo { height: 28px; width: auto; display: block; }

.bcl-lobby .bcl-nav { display: flex; align-items: center; gap: 15px; }
.bcl-lobby .bcl-nav-link {
  color: var(--navy); font-weight: 700; font-size: 14px; text-decoration: none;
  white-space: nowrap; transition: color .15s;
}
.bcl-lobby .bcl-nav-link:hover { color: var(--accent-2); }
.bcl-lobby .bcl-nav-link.bcl-highlight { color: var(--accent); }

.bcl-lobby .bcl-header-right { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.bcl-lobby .bcl-login-row { display: flex; align-items: center; gap: 8px; }
.bcl-lobby .bcl-input {
  border: 1px solid #c2c9d6; border-radius: 6px; padding: 9px 11px;
  font-family: inherit; font-size: 14px; color: var(--navy); background: #fff; width: 126px;
}
.bcl-lobby .bcl-input::placeholder { color: #9aa6b8; }
.bcl-lobby .bcl-input:focus { outline: none; border-color: var(--accent-2); }

.bcl-lobby .bcl-btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 14px; font-family: inherit;
  padding: 9px 18px; border-radius: 6px; transition: filter .15s; white-space: nowrap;
}
.bcl-lobby .bcl-btn:hover { filter: brightness(1.08); }
.bcl-lobby .bcl-btn-entrar   { background: var(--navy);  color: #fff; }
.bcl-lobby .bcl-btn-registro { background: #00a535; color: #fff; }

.bcl-lobby .bcl-login-sub { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.bcl-lobby .bcl-forgot { color: var(--accent-2); text-decoration: none; }
.bcl-lobby .bcl-forgot:hover { text-decoration: underline; }
.bcl-lobby .bcl-lang { color: var(--navy); text-decoration: none; font-weight: 600; }


/* ── Loading overlay ─────────────────────────────────────── */
.bcl-lobby .bcl-loading-overlay {
  position: absolute;
  inset: 0;
  min-height: 80vh;
  z-index: 40;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity .4s ease;
}
.bcl-lobby .bcl-loading-overlay.bcl-fade-out {
  opacity: 0;
  pointer-events: none;
}
.bcl-lobby .bcl-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(0,159,218,.2);
  border-top-color: #009fda;
  border-radius: 50%;
  animation: bcl-spin .75s linear infinite;
}
@keyframes bcl-spin { to { transform: rotate(360deg); } }
.bcl-lobby .bcl-loading-text {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .5px;
}

/* ── Sections ────────────────────────────────────────────── */
.bcl-lobby .bcl-section { max-width: 1280px; margin: 38px auto 0; padding: 0 28px; }
.bcl-lobby .bcl-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px;
}
.bcl-lobby .bcl-section-head h2 {
  font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1;
  color: #fff; text-transform: uppercase;
}
.bcl-lobby .bcl-subtitle { color: var(--accent-2); font-size: 17px; font-weight: 600; margin-top: 4px; }
.bcl-lobby .bcl-count   { color: var(--muted); font-size: 13px; font-weight: 500; padding-bottom: 4px; }

/* ── Carousel ────────────────────────────────────────────── */
.bcl-lobby .bcl-carousel { position: relative; }
.bcl-lobby .bcl-track {
  display: flex; gap: 16px; overflow-x: auto;
  scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none;
}
.bcl-lobby .bcl-track::-webkit-scrollbar { display: none; }

.bcl-lobby .bcl-nav-btn {
  position: absolute; top: 50%; transform: translateY(-60%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.18); cursor: pointer;
  background: linear-gradient(145deg, #e8404b 0%, var(--accent) 55%, #b01722 100%);
  color: #fff; font-size: 26px; font-weight: 800; line-height: 1; padding-bottom: 3px;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(218,32,44,.5);
  z-index: 5; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.bcl-lobby .bcl-nav-btn:hover {
  transform: translateY(-60%) scale(1.14);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(218,32,44,.7);
}
.bcl-lobby .bcl-nav-btn:active { transform: translateY(-60%) scale(1.04); }
.bcl-lobby .bcl-nav-btn.bcl-prev { left: -16px; }
.bcl-lobby .bcl-nav-btn.bcl-next { right: -16px; }

/* ── Cards ───────────────────────────────────────────────── */
.bcl-lobby .bcl-card {
  flex: 0 0 160px; width: 160px;
  background: var(--card); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid rgba(255,255,255,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bcl-lobby .bcl-card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }

.bcl-lobby .bcl-thumb {
  position: relative; aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #232c47, #161c2e);
  display: grid; place-items: center; overflow: hidden;
}
.bcl-lobby .bcl-thumb img.bcl-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.bcl-lobby .bcl-thumb img.bcl-logo-img {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 82%; max-height: 64%; object-fit: contain; z-index: 2;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,.7)); pointer-events: none;
}
.bcl-lobby .bcl-placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 16px; gap: 8px;
}
.bcl-lobby .bcl-ph-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.bcl-lobby .bcl-ph-prov { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }

.bcl-lobby .bcl-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 4; }
.bcl-lobby .bcl-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 8px; border-radius: 999px; color: #fff;
  text-transform: uppercase; box-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.bcl-lobby .bcl-play-overlay {
  position: absolute; inset: 0; background: rgba(8,11,20,.55);
  display: grid; place-items: center; opacity: 0; transition: opacity .18s; z-index: 5;
}
.bcl-lobby .bcl-card:hover .bcl-play-overlay { opacity: 1; }
.bcl-lobby .bcl-play {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--accent-2); color: #fff;
  display: grid; place-items: center; font-size: 22px; padding-left: 3px;
  box-shadow: 0 0 18px rgba(255,255,255,.7), 0 6px 18px rgba(0,159,218,.5);
}

.bcl-lobby .bcl-card-body { padding: 10px 12px 12px; }
.bcl-lobby .bcl-card-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Grid ────────────────────────────────────────────────── */
.bcl-lobby .bcl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; padding: 6px 2px 4px;
}
.bcl-lobby .bcl-grid .bcl-card { flex: initial; width: auto; }

.bcl-lobby .bcl-load-more-wrap { text-align: center; margin-top: 26px; }
.bcl-lobby .bcl-load-more {
  background: transparent; color: #fff; cursor: pointer; font-family: inherit;
  font-weight: 700; font-size: 15px; padding: 12px 34px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25); transition: background .15s, border-color .15s;
}
.bcl-lobby .bcl-load-more:hover { background: rgba(255,255,255,.08); border-color: var(--accent-2); }

/* Table games y Slots: responsivo */
.bcl-lobby #bcl-sec-tablegames .bcl-grid,
.bcl-lobby #bcl-sec-slots .bcl-grid {
  grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.bcl-lobby #bcl-sec-tablegames .bcl-thumb,
.bcl-lobby #bcl-sec-slots .bcl-thumb { aspect-ratio: 4 / 5; }

@media (min-width: 560px) {
  .bcl-lobby #bcl-sec-tablegames .bcl-grid,
  .bcl-lobby #bcl-sec-slots .bcl-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 800px) {
  .bcl-lobby #bcl-sec-tablegames .bcl-grid,
  .bcl-lobby #bcl-sec-slots .bcl-grid { grid-template-columns: repeat(5, 1fr); }
  .bcl-lobby #bcl-sec-tablegames .bcl-thumb,
  .bcl-lobby #bcl-sec-slots .bcl-thumb { aspect-ratio: 8 / 5; }
}
@media (min-width: 1100px) {
  .bcl-lobby #bcl-sec-tablegames .bcl-grid,
  .bcl-lobby #bcl-sec-slots .bcl-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; }
}

/* Table games: banda oscura full-width */
.bcl-lobby .bcl-tablegames-band {
  max-width: none; margin: 44px 0 0; padding: 38px 0 40px;
  background-color: #03101d;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bcl-lobby .bcl-tablegames-band > .bcl-section-head,
.bcl-lobby .bcl-tablegames-band > .bcl-grid {
  max-width: 1280px; margin-left: auto; margin-right: auto;
  padding-left: 28px; padding-right: 28px;
}

/* ── Live Casino ─────────────────────────────────────────── */
.bcl-lobby #bcl-sec-live {
  max-width: none; margin: 0; padding: 44px 0 48px;
  position: relative;
  background-color: #081320;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.bcl-lobby #bcl-sec-live::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(72% 135% at 50% 58%, rgba(218,32,44,.22) 0%, transparent 60%);
}
.bcl-lobby #bcl-sec-live > .bcl-section-head,
.bcl-lobby #bcl-sec-live > .bcl-live-grid {
  position: relative; z-index: 1; padding-left: 32px; padding-right: 32px;
}
.bcl-lobby #bcl-sec-live > .bcl-section-head { justify-content: center; text-align: center; }

.bcl-lobby .bcl-live-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1024px) { .bcl-lobby .bcl-live-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  {
  .bcl-lobby .bcl-live-grid { grid-template-columns: 1fr; }
  .bcl-lobby #bcl-sec-live > .bcl-section-head,
  .bcl-lobby #bcl-sec-live > .bcl-live-grid { padding-left: 18px; padding-right: 18px; }
}

.bcl-lobby .bcl-live-card {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  aspect-ratio: 16 / 10; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 6px 20px rgba(0,0,0,.45);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bcl-lobby .bcl-live-card:hover {
  transform: translateY(-6px);
  border-color: rgba(218,32,44,.55);
  box-shadow: 0 16px 38px rgba(218,32,44,.32), 0 0 0 1px rgba(218,32,44,.4);
}
.bcl-lobby .bcl-live-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .35s ease;
}
.bcl-lobby .bcl-live-card:hover img { transform: scale(1.06); }
.bcl-lobby .bcl-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,22,38,.2) 0%, rgba(6,22,38,.55) 55%, rgba(6,22,38,.93) 100%);
}
.bcl-lobby .bcl-live-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  display: flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .6px;
  padding: 6px 12px; border-radius: 999px; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(218,32,44,.5);
}
.bcl-lobby .bcl-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff;
  animation: bcl-livepulse 1.3s infinite;
}
@keyframes bcl-livepulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,.65); }
  70%  { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.bcl-lobby .bcl-live-info { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3; }
.bcl-lobby .bcl-live-title { font-size: 19px; font-weight: 800; }
.bcl-lobby .bcl-live-card:hover .bcl-play-overlay { opacity: 1; }

/* ── Footer ──────────────────────────────────────────────── */
.bcl-lobby .bcl-footer { margin-top: 56px; }

.bcl-lobby .bcl-footer-sponsor { background: var(--navy); padding: 30px 28px; }
.bcl-lobby .bcl-sponsor-inner  { max-width: 1280px; margin: 0 auto; }
.bcl-lobby .bcl-sponsor-label {
  display: flex; align-items: center; gap: 18px;
  color: rgba(255,255,255,.75); font-size: 13px; letter-spacing: .5px; text-align: center;
}
.bcl-lobby .bcl-sponsor-label::before,
.bcl-lobby .bcl-sponsor-label::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.bcl-lobby .bcl-sponsor-box {
  border: 1px solid rgba(255,255,255,.28); border-radius: 16px;
  padding: 22px; display: flex; align-items: center; justify-content: center; gap: 60px; margin-top: 16px;
}
.bcl-lobby .bcl-sponsor-box img { height: 60px; width: auto; }
.bcl-lobby .bcl-sponsor-divider { width: 1px; height: 78px; background: rgba(255,255,255,.2); }

.bcl-lobby .bcl-footer-links { background: #0b2138; padding: 46px 28px; }
.bcl-lobby .bcl-footer-links-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.bcl-lobby .bcl-footer-col h4 {
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 18px;
}
.bcl-lobby .bcl-footer-col a {
  display: block; color: #b8c8de; font-size: 15px; text-decoration: none; margin-bottom: 14px;
  transition: color .15s;
}
.bcl-lobby .bcl-footer-col a:hover { color: #fff; }
.bcl-lobby .bcl-footer-text { color: #b8c8de; font-size: 15px; line-height: 1.5; margin-bottom: 16px; }
.bcl-lobby .bcl-footer-social { display: flex; gap: 16px; margin-bottom: 28px; }
.bcl-lobby .bcl-footer-social a { margin: 0; }
.bcl-lobby .bcl-footer-social svg { width: 22px; height: 22px; fill: #fff; display: block; transition: fill .15s; }
.bcl-lobby .bcl-footer-social a:hover svg { fill: var(--accent-2); }

.bcl-lobby .bcl-footer-legal { background: var(--bg); padding: 42px 28px 54px; text-align: center; }
.bcl-lobby .bcl-footer-legal-inner { max-width: 1040px; margin: 0 auto; }
.bcl-lobby .bcl-footer-badges { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 32px; }
.bcl-lobby .bcl-footer-badges img { height: 40px; width: auto; }
.bcl-lobby .bcl-footer-legal p { color: #b8c8de; font-size: 13px; line-height: 1.65; margin-bottom: 16px; }
.bcl-lobby .bcl-footer-legal a { color: var(--accent-2); text-decoration: none; }
.bcl-lobby .bcl-footer-legal a:hover { text-decoration: underline; }
.bcl-lobby .bcl-copyright { color: #8ba6c9; margin-top: 4px; }
.bcl-lobby .bcl-footer-divider { height: 1px; background: rgba(255,255,255,.12); max-width: 780px; margin: 36px auto; }
.bcl-lobby .bcl-footer-partners { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.bcl-lobby .bcl-footer-partners img { height: 34px; width: auto; opacity: .85; }

/* ── Modal (fuera de .bcl-lobby para que position:fixed funcione) ── */
.bcl-modal-overlay {
  position: fixed; inset: 0; z-index: 9999; padding: 20px;
  background: rgba(3,10,20,.74); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center;
}
.bcl-modal-overlay.open { display: flex; }
.bcl-modal {
  background: #fff; color: #173358; border-radius: 16px;
  width: 100%; max-width: 380px; padding: 36px 30px 30px; position: relative;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.55);
  animation: bcl-modalIn .22s ease;
}
@keyframes bcl-modalIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.bcl-modal-close {
  position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border: none; background: transparent; cursor: pointer; color: #8a93ad; font-size: 24px;
  line-height: 1; border-radius: 8px;
}
.bcl-modal-close:hover { background: #f1f1f1; color: #173358; }
.bcl-modal-logo { height: 30px; width: auto; margin: 0 auto 20px; display: block; }
.bcl-modal h3 { font-size: 20px; font-weight: 800; color: #173358; margin-bottom: 6px; font-family: "Inter", sans-serif; }
.bcl-modal-game { font-size: 14px; color: #6b7689; margin-bottom: 24px; min-height: 18px; }
.bcl-modal-btn {
  display: block; width: 100%; padding: 13px; border-radius: 8px;
  font-weight: 700; font-size: 15px; text-decoration: none; margin-top: 10px;
  font-family: "Inter", sans-serif; transition: filter .15s;
}
.bcl-modal-btn:hover { filter: brightness(1.08); }
.bcl-modal-login  { background: #173358; color: #fff; }
.bcl-modal-signup { background: #00a535; color: #fff; }
