body {
    background: url(/assets/backgrounds/back-home.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    /* Fondo oscuro principal */
    color: #e0e0e0;
    /* Color de texto claro */
    font-family: 'Inter', sans-serif;
    margin: 0;
    display: flex;
    /* Usar flexbox para el layout principal (sidebar + content) */
    min-height: 100vh;
    /* Asegura que ocupe toda la altura de la ventana */
    overflow-x: hidden;
    /* Evitar scroll horizontal */
}

/* Sidebar - Barra de navegación lateral */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.099);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    /* Sombra a la derecha */
    position: sticky;
    /* Sidebar pegajoso */
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.sidebar .navbar-brand {
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    text-align: center;
    /* Centrar el logo */
}

.sidebar .nav-link {
    color: #ffffff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;

    align-items: center;
    margin-bottom: 2px;
}

.sidebar .nav-link i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(0, 0, 0, 0.37);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    color: #ffffff;
}

/* Contenido principal */
.main-content {
    flex-grow: 1;
    /* Ocupa el espacio restante */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    margin-bottom: 60px;
}

/* Top Bar - Barra superior (Búsqueda, Perfil, etc.) */
.top-bar {
    background: rgba(255, 255, 255, 0.099);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: sticky;
    /* ¡Cambiado de 'fixed' a 'sticky'! */
    top: 0;
    /* Se pegará a 0px de la parte superior de su contenedor padre (`.main-content`) */
    z-index: 999;
}


.top-bar .top-icons .btn {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.3rem;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.top-bar .top-icons .btn:hover {
    color: #000000;
}

/* Banner principal (Juego destacado o Artículo principal) */
.hero-banner {
    background-image: url('https://placehold.co/1200x500/2a2a4a/e0e0e0?text=Juego+Destacado');
    /* Imagen de fondo para el banner */
    background-size: cover;
    background-position: center;
    height: 450px;
    /* Altura del banner */
    border-radius: 15px;
    /* Bordes redondeados */
    display: flex;
    align-items: flex-end;
    /* Alinear contenido abajo */
    padding: 2rem;
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    /* Para que el contenido no se salga de los bordes redondeados */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    /* Degradado oscuro en la parte inferior */
    z-index: 0;
}

.hero-banner-content {
    position: relative;
    z-index: 1;
    /* Asegura que el contenido esté sobre el degradado */
    color: #fff;
    max-width: 60%;
    /* Ancho del texto */
}

.hero-banner-content .game-tags span {
    background-color: rgba(0, 0, 0, 0.407);
    /* Fondo para las etiquetas */
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    font-weight: 600;
}

.hero-banner-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-banner-content p {
    font-size: 1.1rem;
    color: #c0c0c0;
    margin-bottom: 1.5rem;
}

.hero-banner-buttons .btn {
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.05rem;
    margin-right: 1rem;
    transition: transform 0.2s ease;
}

.hero-banner-buttons .btn:hover {
    transform: translateY(-3px);
}

.btn-primary-custom {
    background-color: #8a2be2;
    border-color: #8a2be2;
}

.btn-primary-custom:hover {
    background-color: #a052ee;
    border-color: #a052ee;
}

.btn-outline-light-custom {
    background: rgba(255, 255, 255, 0.2);
    /* Fondo blanco con 20% de opacidad */
    backdrop-filter: blur(10px);
    /* Desenfoque del contenido detrás */
    -webkit-backdrop-filter: blur(10px);
    /* Para compatibilidad con Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    /* Borde blanco sutil */
    border-radius: 15px;
    /* Bordes redondeados */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Sombra suave */
    padding: 20px;
    color: white;
    /* Color de texto para contrastar */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    /* Sombra de texto sutil */
}

.btn-outline-light-custom:hover {
    background-color: rgba(177, 177, 177, 0.1);
    color: #fff;
    border-color: #fff;
}

/* Sección de Resultados del Día */
.daily-results-section {
    width: 300px;
    background: rgba(255, 255, 255, 0.099);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    /* Evitar que se encoja */
    /* margin-left: 1.5rem; */
    /* Margen a la izquierda del contenido principal */
    height: fit-content;
    /* Ajustar altura al contenido */
}

.daily-results-section h5 {
    color: #000000cf;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.match-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Para espaciar equipos y resultado */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.match-item:last-child {
    border-bottom: none;
}

.match-item .teams-info {
    flex-grow: 1;
    margin-right: 0.5rem;
}

.match-item .teams-info strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.match-item .teams-info small {
    color: #c0c0c0;
    /* Hora o tipo de torneo */
}

.match-item .score {
    font-weight: 700;
    color: #8a2be2;
    /* Color de acento para el score */
    font-size: 1.1rem;
}


/* Sección de juegos "Actual Games" y "Partidos de la Ronda Jugada" */
.games-section {
    background: rgba(255, 255, 255, 0.099);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.games-section h3 {
    color: #000000;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.games-section .arrow-buttons .btn {
    background: none;
    border: 1px solid #8a2be2;
    color: #8a2be2;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.games-section .arrow-buttons .btn:hover {
    background-color: #8a2be2;
    color: #fff;
}

.game-card {
    /* background-color: #0f0f0f18; */
    /* Fondo oscuro para las tarjetas de juego */
    border: none;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    /* Para el precio */
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.game-card img {
    height: 180px;
    /* Altura fija para las imágenes de juego */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.game-card .card-body {
    position: absolute;
    padding: 1rem;
}

.card-title {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 600;
    white-space: nowrap;
    /* Evitar que el título se rompa en varias líneas */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Añadir puntos suspensivos si el texto es muy largo */
}

.game-card .price-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(138, 43, 226, 0.8);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.played-round-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.played-round-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
    border: 2px solid #8a2be2;
    /* Borde para la imagen del juego */
}

.played-round-info strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.played-round-info .score-info {
    color: #c0c0c0;
    font-size: 0.9rem;
}

/* Sección de descuentos */
.discount-banner {
    background: url(/assets/backgrounds/sorteo-xf.webp);
    /* Fondo violeta para el descuento */
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    margin-top: 2rem;
    /* Margen superior para separarlo */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.discount-banner h4 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.discount-banner p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.discount-banner .btn-light-custom {
    background-color: #fff;
    color: #8a2be2;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.discount-banner .btn-light-custom:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}


/* Layout principal: Contenido central con sidebar de resultados/partidos */
.central-content-area {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    /* Espacio entre el contenido principal y la sección de amigos */
}

.main-content-left {
    flex-grow: 1;
    /* Permite que esta sección ocupe el espacio restante */
}

/* Media queries para responsividad */
@media (max-width: 992px) {


    .main-content {
        padding: 1rem;
    }

    .top-bar {
        flex-wrap: wrap;
        /* Permite que los elementos se envuelvan */
        justify-content: center;
        text-align: center;
    }

    .hero-banner {
        height: 350px;
    }

    .hero-banner-content {
        max-width: 90%;
        text-align: center;
    }

    .hero-banner-content h2 {
        font-size: 2.5rem;
    }

    .hero-banner-content p {
        font-size: 1rem;
    }

    .hero-banner-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-banner-buttons .btn {
        margin-right: 0;
        width: 100%;
    }

    .central-content-area {
        flex-direction: column;
        /* Apilar las secciones en pantallas pequeñas */
    }

    .daily-results-section {
        width: 100%;
        /* Ocupar todo el ancho */
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 280px;
        padding: 1.5rem;
    }

    .hero-banner-content h2 {
        font-size: 2rem;
    }

    .hero-banner-content p {
        font-size: 0.9rem;
    }

    .games-section .arrow-buttons {
        display: none;
        /* Ocultar botones de flecha en móviles */
    }

    .discount-banner h4 {
        font-size: 1.5rem;
    }

    .discount-banner p {
        font-size: 0.9rem;
    }
}

.exo-style {
    color: #ffffff;
    background-image: linear-gradient(180deg, #ffffff 48%, #D7D1EB 60%, #ffffff 84%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900 !important;
    font-family: "Exo 2";
}


@media (max-width: 991.98px) {

    /* Bootstrap 'md' breakpoint is < 992px */
    .sidebar {
        background: rgba(255, 225, 0, 0.869);
        backdrop-filter: blur(15px) saturate(180%);
        -webkit-backdrop-filter: blur(15px) saturate(180%);
        width: 100%;
        /* Ocupa todo el ancho */
        height: auto;
        /* Altura automática */
        position: fixed;
        /* Fija en la pantalla */
        bottom: 0;
        /* En la parte inferior */
        left: 0;
        /* Alineada a la izquierda */
        top: auto;
        /* Elimina el 'top: 0' para que no interfiera */
        flex-direction: row;
        /* Elementos en fila */
        justify-content: space-around;
        /* Espacia los elementos */
        padding: 0.5rem 1rem;
        /* Padding reducido */
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        /* Borde superior */
        border-left: none;
        /* Elimina borde lateral si existiera */
        border-right: none;
        /* Elimina borde lateral si existiera */
        z-index: 1030;
        /* Asegura que esté por encima del contenido (como la navbar de Bootstrap) */
        overflow-y: hidden;
        /* Evita scroll vertical en la barra inferior */
        display: flex;
        /* Asegura que se muestre */

    }

    .sidebar .navbar-brand {
        display: none;
        /* Oculta el logo en la barra inferior */
    }

    .sidebar .nav-link {
        flex-direction: column;
        /* Icono y texto apilados */
        padding: 0.5rem 0.5rem;
        /* Padding ajustado */
        font-size: 0.8rem;
        /* Tamaño de fuente más pequeño */
        text-align: center;
        /* Centrar texto */
    }

    .sidebar .nav-link i {
        margin-right: 0;
        /* Elimina margen lateral del icono */
        margin-bottom: 5px;
        /* Pequeño margen inferior para separar del texto */
        font-size: 1.2rem;
        /* Tamaño del icono ajustado */
    }

    .sidebar .nav-link span {
        display: block;
        /* Muestra el texto */
    }

    /* Ajuste para el body para evitar que el contenido quede oculto detrás de la sidebar fija */
    body {
        padding-bottom: 60px;
        /* Ajusta este valor según la altura de tu sidebar inferior */
    }

}

/* La media query que ya tenías para ocultar la sidebar en pantallas más pequeñas (sm) */
@media (max-width: 767.98px) {

    /* Bootstrap 'sm' breakpoint is < 768px */
    .sidebar {
        display: flex;
        /* Asegura que la sidebar se muestre como barra inferior en sm también */
        /* Puedes ajustar propiedades específicas para sm si quieres un diseño diferente */
    }
}


.imgIcon {
    width: 35px;
    height: 35px;
    filter: grayscale(100%) brightness(200%) contrast(100%);
}

.trunk {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;

    @media (max-width: 991.98px) {
        width: 90%;
    }
}

.iconContainer {


    @media (max-width: 991.98px) {
        width: 65px;
    }
}



/* banner inscripcion */
.banner-promo-section {
    background: rgba(1, 24, 202, 0.728);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(25, 9, 148, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: rgba(255, 255, 255, 0.887);
    padding: 3rem 0;
    text-align: center;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 2rem;

    .banner-image {
        position: absolute;
        top: 0;
        left: 0;
        max-width: 400px;
        z-index: 1;
        transform: rotate(352deg);
    }

    .banner-content {
        position: relative;
        z-index: 2;
    }

    .timer {
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 1rem;
    }

    h4 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .btn {
        padding: 0.8rem 1.8rem;
        font-weight: 600;
        border-radius: 50px;
        font-size: 1.05rem;
        margin-right: 1rem;
        transition: transform 0.2s ease;
    }

    .btn-warning-custom {
        background-color: #ffd30e;
        color: #000000;
        border: none;
        padding: 0.8rem 2rem;
        border-radius: 50px;
        font-weight: 600;
        transition: background-color 0.3s ease, transform 0.3s ease;

        &:hover {
            background-color: #f0f0f0;
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        }

    }



    .stars {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        z-index: 2;
        pointer-events: none;
    }

    .star {
        position: absolute;
        width: 2px;
        height: 2px;
        background: white;
        border-radius: 50%;
        opacity: 0.8;
        animation: twinkle 2s infinite ease-in-out;
    }

    @keyframes twinkle {

        0%,
        100% {
            opacity: 0.2;
            transform: scale(1);
        }

        50% {
            opacity: 1;
            transform: scale(1.5);
        }
    }

}