/* ------------------- BASE ------------------- */
body {
    margin: 0;
    background-color: #0d0d0d;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #28a745;
}

/* ------------------- CONTAINER ------------------- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- HEADER ------------------- */
.bcgame-header {
    background-color: #1c1c1c;
    height: 70px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 36px;
    display: block;
}

.main-nav a {
    color: #fff;
    margin-right: 10px;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a:hover {
    color: #28a745;
}

.balance {
    color: #28a745;
    font-weight: bold;
}


/* ------------------- BOTONES ------------------- */
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-light {
    background-color: #28a745;
    color: #fff;
}

.btn-light:hover {
    background-color: #23903d;
}

.btn-outline {
    border: 1px solid #ccc;
    color: #fff;
    background-color: transparent;
}

.btn-outline:hover {
    border-color: #28a745;
    color: #28a745;
}

/* ------------------- HERO BANNER ------------------- */
.hero-banner img {
    width: 100%;
    display: block;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

/* ------------------- GAME SECTION ------------------- */
.game-section {
    padding: 40px 20px;
    text-align: center;
}

.game-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
    color: #fff;
}

.game-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.game-card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.5);
}

.game-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

/* ------------------- SIDEBAR MÓVIL ------------------- */
.sidebar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: #1c1c1c;
    z-index: 1000;
    padding: 10px 0;
    display: none;
    border-top: 1px solid #333;
}

.sidebar-menu {
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-menu li a {
    color: #fff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s;
}

.sidebar-menu li a img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
    .sidebar {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .bcgame-header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
        margin-top: 10px;
    }
}

/* ------------------- FOOTER ------------------- */
.bcgame-footer {
    background-color: #121212;
    padding: 30px 20px;
    margin-top: 40px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
    border-top: 1px solid #222;
}

.bcgame-footer a {
    color: #888;
    margin: 0 5px;
}

.bcgame-footer a:hover {
    color: #28a745;
}

.main-swiper {
    width: 100%;
    max-width: 1400px;
    height: 280px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;

}
.highlighted-games {
    padding: 30px 20px;
}

.highlighted-games h2 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.games-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.game-box {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    width: 160px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.game-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.game-box img {
    width: 100%;
    display: block;
}

.game-box span {
    display: block;
    padding: 10px;
    font-weight: bold;
    color: #ccc;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    color: #fff;
    font-size: 24px;
    border: none;
    margin-left: 10px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: #121212;
        padding: 20px;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
        transition: left 0.3s ease;
        z-index: 2000;
    }

    .mobile-menu-content {
        display: flex;
        flex-direction: column;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
    }

    .mobile-menu ul li {
        margin-bottom: 15px;
    }

    .mobile-menu ul li a {
        color: #fff;
        font-size: 16px;
        text-decoration: none;
    }

    .close-btn {
        font-size: 26px;
        background: none;
        border: none;
        color: #aaa;
        align-self: flex-end;
        margin-bottom: 20px;
    }

    body.menu-open .mobile-menu {
        left: 0;
    }
}

/* --- Menú lateral izquierdo (desktop) --- */
.sidebar-left {
    position: fixed;
    top: 80px; /* Ajusta según el alto de tu header */
    left: 0;
    width: 160px;
    height: calc(100vh - 80px);
    background: #121212;
    padding-top: 20px;
    z-index: 999;
    display: none;
}

.sidebar-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-left li {
    padding: 12px 20px;
}

.sidebar-left a {
    color: #aaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.sidebar-left a:hover {
    color: #28a745;
}

.sidebar-left img {
    width: 20px;
    height: 20px;
}

@media (min-width: 1025px) {
    .sidebar-left {
        display: block;
    }

    .main-content {
        margin-left: 20px; /* Deja espacio para el sidebar */
    }
}
.sidebar-left {
    position: fixed;
    top: 80px;
    left: 0;
    width: 160px;
    height: calc(100vh - 80px);
    background: #121212;
    z-index: 999;
    transition: width 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-left.collapsed {
    width: 60px;
}

/* Botón ☰ fijo arriba a la derecha del sidebar */
.toggle-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 10px 10px 0 0;
}

.toggle-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-btn:hover {
    background: #23903d;
}

.sidebar-left ul {
    list-style: none;
    padding: 20px 0 0 0;
    margin: 0;
}

.sidebar-left li {
    padding: 12px 2px;
}

.sidebar-left a {
    color: #aaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.sidebar-left img {
    width: 20px;
    height: 20px;
}

/* ✅ OCULTA los textos cuando está colapsado */
.sidebar-left.collapsed a span {
    display: none;
}

/* Alinea los íconos al centro cuando está colapsado */
.sidebar-left.collapsed a {
    justify-content: center;
}

/* Estilo de sidebar normal */
.sidebar-left {
    position: fixed;
    top: 80px;
    left: 0;
    width: 160px;
    height: calc(100vh - 80px);
    background: #121212;
    padding-top: 20px;
    z-index: 999;
    transition: width 0.3s;
    overflow: hidden;
}

/* Estilo cuando está colapsado */
.sidebar-left.collapsed {
    width: 60px;
}

/* Para que el contenido se ajuste automáticamente según el estado del sidebar */
@media (min-width: 1025px) {
    .main-content {
        transition: padding-left 0.3s;
        padding-left: 160px;
    }

    body.sidebar-collapsed .main-content {
        padding-left: 60px;
    }
}


/* Botón de menú plegable junto al logo */
.toggle-btn-header {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 20px;
    cursor: pointer;
    margin-right: 15px;
    transition: background 0.3s;
}

.toggle-btn-header:hover {
    background: #23903d;
}

/* Estilos para el menú lateral */
.sidebar-left {
    position: fixed;
    top: 70px;
    left: 0;
    width: 240px;
    height: calc(100vh - 70px);
    background: #1f1f1f;
    padding: 16px 10px;
    overflow-y: auto;
    transition: width 0.3s ease;
    z-index: 100;
}

.sidebar-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-left li {
    margin-bottom: -22px; /* Espaciado vertical entre ítems */
}

.sidebar-left li:last-child {
    margin-bottom: 0;
}

.sidebar-left li a {
    background: #2a2a2a;
    padding: 8px 12px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s;
    text-decoration: none;
}

.sidebar-left li a:hover {
    background: #28a745;
    color: #fff;
}

.sidebar-left li a img {
    background: #333;
    padding: 5px;
    border-radius: 6px;
    width: 22px;
    height: 22px;
}



/* Ajustes para el contenido principal */
@media (min-width: 1025px) {
    .main-content {
        padding-left: 260px;
        padding-right: 20px;
        padding-top: 20px;
    }

    body.sidebar-collapsed .main-content {
        padding-left: 80px;
    }
}

.main-swiper {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* header en moviles reajuste*/

/* Header: estilos generales */
.bcgame-header {
    background-color: #1c1c1c;
    height: 70px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #2a2a2a;
}

/* Alineación lateral */
.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Logo */
.logo img {
    height: 22px;
}

/* Botón ☰ */
.toggle-btn-header {
    width: 36px;
    height: 36px;
    background: #28a745;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Menú horizontal */
.main-nav {
    display: flex;
    gap: 12px;
}

.main-nav a {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

/* Ocultar menú horizontal en móviles */
@media (max-width: 991px) {
    .main-nav {
        display: none !important;
    }

    .header-right {
        gap: 6px;
    }

    .header-right .btn {
        padding: 4px 8px;
        font-size: 12px;
    }

    .balance {
        display: none;
    }
}
/* muenu no si si queda bien submenu*/


.has-submenu > .menu-link {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
}

.has-submenu > .menu-link .icon {
    width: 20px;
    margin-right: 12px;
}

.has-submenu > .menu-link span {
    flex-grow: 1; /* Hace que el texto ocupe el espacio intermedio */
}

.has-submenu > .menu-link .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
    margin-left: 84px;
    margin-right: 0;
	color: #28a745;
}
.has-submenu.open .arrow {
    transform: rotate(180deg);
}

/* Submenú */
.submenu {
    display: none;
    background: #2a2a2a;
    padding-left: 30px;
    border-radius: 0 0 12px 12px;
    margin-top: 4px;
}

.has-submenu.open .submenu {
    display: block;
}

.submenu li a {
    display: flex;
    align-items: center;
    color: #ccc;
    padding: 8px 0;
    font-size: 14px;
    text-decoration: none;
}

.submenu li a:hover {
    color: #28a745;
}

.submenu li a img {
    width: 16px;
    margin-right: 8px;
}





.sidebar-extra-menu {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}


.sidebar-extra-menu {
    list-style: none;
    padding-left: 0;
}

.sidebar-extra-menu li {
    margin-bottom: -24px;
}

.sidebar-extra-menu a {
    display: flex;
    align-items: center;
    background: #2a2a2a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-extra-menu a:hover {
    background: linear-gradient(90deg, #28a745, #1f8f40);
}

.sidebar-extra-menu .icon {
    width: 20px;
    text-align: center;
    margin-right: 12px;
}

.badge-extra {
    background: #ffc107;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    padding: 2px 6px;
    margin-left: auto;
}

.sidebar-app-promo {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 12px;
    margin-top: 20px;
    color: #fff;
}

/* plantilla de grip botones deportes bingo */

.category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.category-card {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    width: 250px;
    height: 140px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
    color: #fff;
    padding: 16px;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.category-card h4 {
    margin: 0;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 20px;
}
/* menu plegable en moviles completo */


/* Por defecto en móviles: sidebar oculto */
/* ===== MÓVILES: Drawer izquierdo ===== */

/* ===== MÓVIL: Drawer lateral ===== */
@media (max-width: 991px) {
    .sidebar-left {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: 70px;
        left: 0;
        width: 240px;
        height: calc(100vh - 70px);
        z-index: 2000;
        background: #1f1f1f;
        overflow-y: auto;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
    }

    body.menu-open .sidebar-left {
        transform: translateX(0);
        pointer-events: auto;
        opacity: 1;
        visibility: visible;
    }
}

/* ===== ESCRITORIO: Sidebar ocultable completamente ===== */
@media (min-width: 992px) {
    .sidebar-left {
        position: fixed;
        top: 70px;
        left: 0;
        width: 240px;
        height: calc(100vh - 70px);
        background: #1f1f1f;
        overflow-y: auto;
        transition: transform 0.3s ease, width 0.3s ease;
        z-index: 100;
    }

    .sidebar-left.collapsed {
        transform: translateX(-100%);
    }

    .main-content {
        padding-left: 240px;
        transition: padding-left 0.3s ease;
    }

    body.sidebar-collapsed .main-content {
        padding-left: 0;
    }

    /* Ocultar overlay en desktop */
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ===== OVERLAY para móviles ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
}

body.menu-open .mobile-menu-overlay {
    display: block;
}
