/* ============================================================================
   VARIABLES Y COLORES - Design System
   ============================================================================ */

/* Propiedad CSS animable para el punto de luz */
@property --punto-luz {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

:root {
    /* PALETA BASE (Global Tokens) */
    --base-Turquoise-light: #43ecf8;
    --base-Turquoise-main: #00CDDB;
    --base-Turquoise-dark: #118e97;
    
    --base-sky-light: #c5f2f5;
    --base-sky-main: #A4F0F5;
    --base-sky-dark: #74d6dd;

    /* Neutros */
    --base-white: #f9ffff;
    --base-gray-200: #E5E5E5; 
    --base-gray-400: #C4C4C4; 
    --base-gray-600: #707070; 
    --base-ink-light: #4b5468;
    --base-ink: #373E4E;       
    --base-ink-dark: #232833;  

    /* Colores Vibrantes */
    --base-gold: #FFCC00;
    --base-platunum: #16E995;    
    --base-ruby: #FF0051;      
    --base-purple: #440098;
    --base-lavender: #AC80E2;
    --base-orange: #F36D1A;    
    --base-green: #11BA25;     
    --base-red-ui: #ef4444;    

    /* Colores transparentes */
    --base-gray-alpha: rgba(249, 255, 255, 0.6);

    /* LAYOUT DIMENSIONS */
    --sidebar-width-expanded: 224px;
    --sidebar-width-collapsed: 64px;

    /* TOKENS SEMÁNTICOS (Light Mode) */
    --bg-base: var(--base-white);
    --bg-surface: var(--base-gray-200);
    --bg-surface-hover: var(--base-gray-400);
    --bg-pill-dark: var(--base-ink-dark);

    --text-main: var(--base-ink);
    --text-muted: var(--base-gray-600);
    --text-inverse: var(--base-white);
    --text-inverse-muted: var(--base-gray-200);

    --primary: var(--base-Turquoise-main);
    --primary-hover: var(--base-Turquoise-light);
    --primary-active: var(--base-Turquoise-dark);
    
    --secondary: var(--base-sky-main);
    --secondary-hover: var(--base-sky-light);
    --secondary-active: var(--base-sky-dark);

    --border-color: var(--base-ink);
    --border-primary: var(--primary);
    --border-sky: var(--base-sky-dark);

    --state-success: var(--base-green);
    --state-warning: var(--base-orange);
    --state-danger: var(--base-red-ui);
    
    --badge-legendary: var(--base-gold);
    --badge-mythic: var(--base-ruby);
    --badge-epic: var(--base-purple);
    --badge-rare: var(--base-lavender);

    /* Utilities */
    --transition: 0.3s ease-in-out;
    --transition-fast: 0.1s ease-in-out;
    
    /* Shadow System */
    --shadow-sidebar: 2px -2px 16px rgba(0, 0, 0, 0.3);
    --shadow-sharp: 8px 8px 0 var(--base-purple);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    /* Line Height System */
    --line-height-tight: 1;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;
    
    /* Border Radius System */
    --border-radius-xs: 6px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius: 16px;
    --border-radius-full: 50%;
    --border-radius-pill: 999px;
    --border-radius-alt-1: 16px 0 16px 0;
    --border-radius-alt-2: 0 8px 0 8px;
    --border-radius-alt-3: 0 0 0 12px;
    --border-radius-alt-4: 16px 0 0 0;
    --border-radius-alt-5: 0 0 16px 0;
    --border-radius-alt-6: 0 16px 16px 16px;
}

[data-bs-theme="dark"] {
    --bg-base: var(--base-ink-dark);
    --bg-surface: var(--base-ink);
    --bg-surface-hover: var(--base-ink-light);
    --text-main: var(--base-white);
    --text-muted: var(--base-gray-400);
    --text-inverse: var(--base-ink-dark);
    --border-color: var(--base-gray-600);
}

/* ============================================================================
   RESET Y ESTILOS BASE
   ============================================================================ */

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

body, html, h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-family: "Jura", sans-serif;
    font-size: 16px;
    line-height: var(--line-height-relaxed);
    margin: 0;
    padding: 0;
}

h3 {
    font-size: 2rem;
}

a{
    text-decoration: none;
}

button {
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
}

p{
    margin-bottom: 0;
}

/* ============================================================================
   SIDEBAR - Navegación lateral fija (Componente Principal)
   ============================================================================ */
#sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: var(--sidebar-width-expanded);
    display: flex;
    flex-direction: column;
    transition: width var(--transition);
    z-index: 1000;
    overflow: visible;
    box-shadow: var(--shadow-sidebar);
    background-color: var(--bg-base);
    /* Logo */
    > div {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 12px;
        min-height: 70px;
        width: 100%;
        transition: all var(--transition);

        .sidebar-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-main);
            cursor: pointer;
            transition: all var(--transition);
            flex: 1;

            &:visited {
                color: var(--text-main);
            }

            svg {
                fill: var(--primary);
                width: 2.2rem;
                height: 2.2rem;
                flex-shrink: 0;
            }
        }
    }

    svg {
        fill: var(--primary);
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .logo-text {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--text-main);
            letter-spacing: 0.05em;
            white-space: nowrap;
            transition: opacity var(--transition);

            span {
                color: var(--primary);
                font-size: 1.5rem;
                font-weight: 800;
            }
        }

    nav {
        flex: 1;
        padding: 16px 8px;
        space-y: 4px;
        overflow-y: auto;
    }

    /* Estados del sidebar */
    &.collapsed {
        width: var(--sidebar-width-collapsed);


        .logo-text {
            display: none;
        }

        > div {
            justify-content: center;
            padding: 12px;
        }

        .nav-label,
        .logo-text {
            display: none;
        }

        .sidebar-item {
            justify-content: center;
            width: auto;
            span{
                display: none;
            }
        }

        .sidebar-footer button:not(:first-child) {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 4px auto;
        }

        .sidebar-footer .sidebar-item {
            width: 40px;
            padding: 10px;
        }
    }
}

/* Item de navegación - Enlaces y botones */
.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    color: var(--text-main);
    background-color: var(--bg-base);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    margin-bottom: 4px;
    text-decoration: none;

    /* Reset estilos heredados de <a> */
    &:visited {
        color: var(--text-main);
    }

    i {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }

    span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    &:hover {
        background: linear-gradient(90deg, rgba(67, 236, 248, 1) 0%, rgba(67, 236, 248, 0.3) var(--punto-luz), rgba(67, 236, 248, 0) 100%);
        color: var(--text-main);
        animation: pulso-fill 0.6s ease-in-out forwards;
    }

    &.active {
        color: var(--text-main);
        border-left: 4px solid var(--base-Turquoise-dark);
        background: linear-gradient(90deg, rgba(0, 205, 219, 1) 0%, rgba(0, 205, 219, 0.6) var(--punto-luz), rgba(0, 205, 219, 0) 100%);
        animation: pulso-luz-invertido 4s infinite alternate ease-in-out;
    }
}

/* Gradient animation for active sidebar items */
@keyframes pulso-luz {
    0% {
        --punto-luz: 15%;
    }
    100% {
        --punto-luz: 85%;
    }
}

/* Fill animation for sidebar items on hover */
@keyframes pulso-fill {
    0% {
        --punto-luz: 0%;
    }
    100% {
        --punto-luz: 100%;
    }
}

/* Gradient animation for active sidebar items - left to right */
@keyframes pulso-luz-invertido {
    0% {
        --punto-luz: 85%;
    }
    100% {
        --punto-luz: 15%;
    }
}

.sidebar-search {
    padding: 12px 8px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;

    div:first-child {
        width: 100%;
        position: relative;
        display: flex;
        align-items: center;

        i {
            position: absolute;
            left: 12px;
            color: var(--text-inverse);
            pointer-events: none;
        }

        input {
            width: 100%;
            padding: 8px 12px 8px 36px;
            border: none;
            border-radius: var(--border-radius);
            background-color: var(--bg-pill-dark);
            font-size: 0.75rem;
            color: var(--text-inverse);
            transition: all var(--transition);

            &::placeholder {
                color: var(--text-inverse-muted);
            }
        }
    }
    div:last-child{
        width: 100%;
        background-color: var(--bg-pill-dark);
        border-radius: var(--border-radius);
        #sidebar-dropdown{
            width: 80%;
            padding: 8px 16px 8px 0;
            margin-left: 10%;
            border: none;
            outline: none;
            font-size: 0.75rem;
            color: var(--text-inverse);
            transition: all var(--transition);
            background-color: var(--bg-pill-dark);
            border-radius: var(--border-radius);

        }
    }

}

#sidebar.collapsed .sidebar-search {

    .search-input{
        font-size: 0rem;
        padding: 17px 2px;
    }
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.sidebar-footer-guest,
.sidebar-footer-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    a{
        width: 100%;
        font-size: 0.75rem;
        display: flex;
        justify-content: center;
        text-align: center;
    }
}

#sidebar.collapsed .sidebar-footer-guest a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    margin: 4px auto;
    padding: 0;
    align-items: center;
    font-size: 0;

    &:last-child {
        display: none;
    }
}

#sidebar.collapsed .sidebar-footer-auth {
    div:first-child {
        display: none;
    }

    .user-profile {
        justify-content: center;
        padding: 8px;

        img {
            margin-right: 0;
        }

        p {
            display: none;
        }

        a {
            display: none;
        }
    }
}

.sidebar-footer-auth{
    div:first-child div{
        height: 10px;
        border-radius: var(--border-radius-pill);
        background-color: var(--base-gray-400);
        div{
            width: 30px;
            background-color: var(--primary);
        }
    }

    .user-profile {
        display: flex;
        align-items: center;
        gap: 0;
        padding: 8px;
        img{
            width: 32px;
            height: 32px;
            border-radius: var(--border-radius-pill);
            flex-shrink: 0;
            margin-right: 10px;
        }
        p {
            margin: 0;
            font-size: 1rem;
        }
        a{
            color: var(--text-main);
            margin-left: auto;
            font-size: 1.25rem;
            width: 32px;
            height: 32px;
        }

        a:hover{
            color: var(--base-ink-dark);
            
        }
    }
}

/* ============================================================================
   FOOTER 
   ============================================================================ */
    #footer{
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--base-white);
        font-size: 0.75rem;
        padding: 20px 40px;
        margin: 0 -24px 0 -24px;
        width: calc(100% + 48px);
        background-color: var(--primary-active);
        border-top: 4px solid var(--base-white);
        box-shadow: var(--shadow-sidebar);
        
        
        a{
            color: var(--base-white);
            text-decoration: none;

            &:hover{
                text-decoration: underline;
            }
        }

        div:first-child{
            width: 15%;
            display: flex;
            gap: 8px;
            font-size: 1.25rem;
            a{
                transition: var(--transition);
                transform: translateY(0px);
                scale: 1;
                &:hover{
                    transition: var(--transition);
                    transform: translateY(-2px);
                    scale: 1.05;
                }
            }
        }

        div:last-child{
            width: 75%;
            text-align: center;
        }
    }


/* ============================================================================
   LAYOUT PRINCIPAL - Main content y page wrapper
   ============================================================================ */

.main-content {
    margin-left: var(--sidebar-width-expanded);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width-expanded));

    &.sidebar-collapsed {
        margin-left: var(--sidebar-width-collapsed);
        width: calc(100% - var(--sidebar-width-collapsed));
    }
}

#home {
    flex: 1;
    padding: 12px 24px 0 24px;
    min-height: 100vh;
    margin: 0;
    width: 100%;
    transition: var(--transition);
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Toggle button mobile */
.btn-toggle-sidebar {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    border: none;
    background-color: var(--primary);
    color: var(--text-inverse);
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 1.25rem;
    line-height: var(--line-height-tight);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
        background-color: var(--primary-hover);
        transform: scale(1.05);
    }
}

/* Header móvil - Solo en dispositivos pequeños */
.mobile-header {
    display: none;
}

.mobile-nav-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--primary);
    border-bottom: 2px solid var(--base-white);
    box-shadow: var(--shadow-md);
    z-index: 998;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Collapse button desktop */
.btn-collapse-sidebar {
    display: none;
    position: absolute;
    top: 16px;
    right: -32px;
    background-color: var(--bg-pill-dark);
    border: none;
    color: var(--text-inverse);
    width: 48px;
    height: 48px;
    cursor: pointer;
    padding: 0;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition);
    font-size: 1.5rem;
    line-height: var(--line-height-tight);
    align-items: center;
    justify-content: center;
    z-index: 1001;

    &:hover {
        color: var(--primary);
        border-color: var(--primary);
        transform: scale(1.1);
    }

    i {
        transition: transform var(--transition);
    }

    #sidebar.collapsed & i {
        transform: rotate(180deg);
    }
}

/* Overlay para sidebar mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999;
    opacity: 0;
    transition: opacity var(--transition);
    cursor: pointer;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================================================
   SECCIONES DE CONTENIDO
   ============================================================================ */
.section-A {
    margin-bottom: 40px;
    background-color: var(--section-color, var(--primary));
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    flex-direction: column;

    .section-buttons {
        display: flex;
        align-items: center;
        gap: 20px;
        box-sizing: border-box;
        h2{
            font-size: 1.4rem;
            margin: 0;
        }
        div{
            gap: 8px;
            background-color: var(--bg-base);
            border-radius: var(--border-radius-alt-1);
            outline: 4px solid var(--bg-base);
            .btn-dark:nth-child(1) {
                border-radius: var(--border-radius-alt-4);
            }
            .btn-dark:nth-child(2) {
                border-radius: 0;
            }
            .btn-dark:nth-child(3) {
                border-radius: var(--border-radius-alt-5);
            }
        }
    }

    .card-content {
        flex: 1;
        padding: 24px;
    }

    .section-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid var(--border-sky);
        padding: 10px 0 0 0;
        .section-dots {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 auto;
            .dot {
                width: 8px;
                height: 8px;
                border-radius: var(--border-radius-full);
                border: none;
                background-color: var(--base-sky-dark);
                cursor: pointer;
                transition: all var(--transition);
                &:hover {
                    background-color: var(--base-sky-light);
                    transform: scale(1.1);
                }
                &.active {
                    background-color: white;
                    transform: scale(1.3);
                }
            }
        }
        .btn-dark {
            outline: 4px solid var(--bg-base);
            border-radius: var(--border-radius-alt-1);
        }
    }

}

.section-B {
    margin-bottom: 40px;
    background-color: var(--section-color, var(--primary));
    border-radius: var(--border-radius);
    color: white;
    display: flex;
    flex-direction: column;

    .section-buttons {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        gap: 20px;

        h2 {
            color: var(--text-main);
            font-size: 1.4rem;
            margin: 0;
            border: 1px solid var(--base-ink-dark);
            background-color: var(--bg-base);
            border-radius: var(--border-radius-alt-1);
            outline: 4px solid var(--bg-base);
            padding: 4px 16px;
        }
    }

    .card-content {
        flex: 1;
        padding: 24px;
    }

    .section-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-top: 1px solid var(--border-sky);
        padding: 10px 0 0 0;

        .section-dots {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin: 0 auto;

            .dot {
                width: 8px;
                height: 8px;
                border-radius: var(--border-radius-full);
                border: none;
                background-color: var(--base-sky-dark);
                cursor: pointer;
                transition: all var(--transition);

                &:hover {
                    background-color: var(--base-sky-light);
                    transform: scale(1.1);
                }

                &.active {
                    background-color: white;
                    transform: scale(1.3);
                }
            }
        }

        .btn-dark {
            outline: 4px solid var(--bg-base);
            border-radius: var(--border-radius-alt-1);
        }
    }
}

.section-C{
    background-color: red;
 /* Aquí va para las siguientes paginas, los que tienen componente header aparte */
}

.section-hero {
    position: relative;
    display: flex;
    align-items: stretch; 
    gap: 2rem;
    padding: 2rem;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    color: var(--text-inverse, #fff);

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url('https://picsum.photos/1000/') center/cover;
        filter: blur(10px);
        z-index: 0;
    }

    &::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 0;
    }

    > div {
        position: relative;
        z-index: 1;
    }

    .hero-image-wrapper {
        flex: 0 0 400px;
        height: 350px; 

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-md);
            box-shadow: var(--shadow-lg);
        }
    }

    .hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between; 
        min-height: 100%;

        h1 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem; 
        }

        p {
            font-size: 1rem;
            line-height: var(--line-height-normal);
            margin: 0; 
        }

        .hero-tags-group {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .hero-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .hero-platforms-icons,
        .hero-os-icons {
            display: flex;
            gap: 0.5rem;

            .platform-icon,
            .os-icon {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                width: 24px;
                height: 24px;
                color: inherit;
                font-size: 1rem;
                transition: transform var(--transition, 0.3s ease);
                background: none;
                border: none;
                padding: 0;
                text-decoration: none;

                &:hover {
                    transform: scale(1.15);
                }
            }

            .os-icon {
                cursor: default;

                &:hover {
                    transform: scale(1.15);
                }
            }
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;

            .btn-b {
                flex: 1;
                min-width: 150px;
            }
        }
    }


    @media (max-width: 1024px) {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem;

        > div:first-child {
            width: 300px;
            height: 280px;
        }
    }

    @media (max-width: 768px) {
        padding: 1rem;
        margin-bottom: 40px;
        gap: 1rem;
        flex-direction: column;

        > div:first-child {
            width: 100%;
            max-width: 300px;
            height: 250px;
        }

        > div:last-child {
            h1 {
                font-size: 1.75rem;
            }

            > p {
                font-size: 0.9rem;
            }

            > div:last-child {
                flex-direction: column;

                .btn {
                    width: 100%;
                    min-width: auto;
                }
            }
        }
    }
}

.section-hero-gamefile {
    margin-bottom: 20px;

    &>div:first-child{
        display: flex;
        justify-content: space-between;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://picsum.photos/1000/') center/cover;
        margin-bottom: 80px;
        padding: 0 60px;
        border-radius: var(--border-radius);

        &>img:first-child, .info{
            position: relative;
            top: 60px;
        }

        .info{
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
    }
    &>div:last-child{
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid var(--border-color);
        padding: 0;

        h2, p{
            font-size: 2rem;
            margin: 0;
        }
    }

    @media (max-width: 1024px) {
        &>div:first-child{
            padding: 0 40px;
            margin-bottom: 60px;

            &>img:first-child, .info{
                top: 40px;
            }
        }

        &>div:last-child{
            h2, p{
                font-size: 1.5rem;
            }
        }
    }

    @media (max-width: 768px) {
        margin-bottom: 16px;

        &>div:first-child{
            flex-direction: column;
            align-items: center;
            gap: 5px;
            padding: 12px 24px 0 24px;
            margin-bottom: 40px;

            &>img:first-child{
                width: 100%;
                max-width: 250px;
                height: 300px;
                object-fit: cover;
                border-radius: var(--border-radius);
                top: 0;
            }

            .info{
                width: 100%;
                gap: 32px;
            }
        }

        &>div:last-child{
            flex-direction: column;
            gap: 12px;

            h2, p{
                font-size: 1.2rem;
                text-align: center;
            }
        }
    }

    @media (max-width: 480px) {
        margin-bottom: 12px;

        &>div:first-child{
            padding: 0 16px;
            margin-bottom: 30px;
            gap: 16px;

            &>img:first-child{
                max-width: 200px;
                height: 250px;
            }

            .info{
                gap: 12px;
            }
        }

        &>div:last-child{
            h2, p{
                font-size: 1rem;
            }
        }
    }
}

.section-info {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    

    .buttons-set{
        display: flex;
        gap: 12px;
    }

    .data{
        display: flex;
        background-color: var(--primary);
        padding: 15px;
        border-radius: var(--border-radius-alt-6);
        gap: 12px;

        >div:first-child {
            display: flex;
            flex-direction: column;
            gap: 12px;
            background-color: var(--bg-pill-dark);
            color: var(--text-inverse);
            padding: 16px;
            border-radius: var(--border-radius);

            .rating{
                border: 2px solid var(--border-color);
                padding: 5px 40px;
                border-radius: var(--border-radius);
                display: flex;
                flex-direction: column;
                width: 250px;
                span:last-child{
                    display: flex;
                    justify-content: space-around;
                }
            }
        }

        >div:last-child{
            width: 75%;
        }
    }

}

/* ============================================================================
   COMPONENTES GLOBALES - Cards
   ============================================================================ */
    .card-game{
        padding: 4px;
        border-radius: var(--border-radius-md);
        color: var(--text-main);
        background-color: var(--bg-surface);
        cursor: pointer;
        transition: all var(--transition);
        position: relative;
        outline: 0px solid transparent;
        >div:first-child{
            position: absolute;
            display: flex;
            justify-content: flex-end;
            top: 4px;
            right: 4px;
            z-index: 10;
            span{
                border: none;
                color: var(--base-white);
                background-color: var(--base-purple);
                border-radius: var(--border-radius-alt-2);
                padding: 5px 10px;
            }
        }
        img{
            width: 100%;
            height: 150px;
            object-fit: cover;
            object-position: center;
            height: auto;
            border-radius: var(--border-radius-sm);
            margin-bottom: 46px;
        }

        >div:last-child{
            display: flex;
            flex-direction: column;
            position: absolute;
            bottom: 4px;
            gap: 8px;
            width: 100%;
            left: 0;
            box-sizing: border-box;
            padding: 0 4px;
            >div:first-child{
                display: flex;
                padding: 0 4px;
                gap: 4px;
                font-size: 0.625rem;
                font-weight: 800;
                white-space: nowrap;
                overflow: hidden;
                .bi-star-fill{
                    color: var(--base-Turquoise-main);
                    margin-right: 4px;
                }
            }
            >div:last-child{
                display: flex;
                flex: 1;
                gap: 4px;
                overflow: hidden;
                max-height: 42px;

                img{
                    border-radius: var(--border-radius-xs);
                    width: 42px;
                    height: 42px;
                    flex-shrink: 0;
                }
                h5{
                    align-items: center;
                    font-size: 1rem;
                    margin: 0;
                    display: -webkit-box;
                    -webkit-line-clamp: 2;
                    -webkit-box-orient: vertical;
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
            }
        }

                &:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sharp);
            outline: 4px solid var(--base-purple);
            
        }
    }

    .card-dev{
        padding: 4px;
        border-radius: var(--border-radius-md);
        color: var(--text-main);
        background-color: var(--bg-surface);
        cursor: pointer;
        transition: all var(--transition);
        position: relative;
        outline: 0px solid transparent;
        >div:first-child{
            position: absolute;
            display: flex;
            justify-content: flex-end;
            top: 4px;
            right: 4px;
               z-index: 10;
            span{
                border: none;
                color: var(--base-white);
                background-color: var(--base-purple);
                border-radius: var(--border-radius-alt-2);
                padding: 5px 10px;
            }
        }
        img{
            width: 100%;
            height: 200px;
            object-fit: cover;
            object-position: center;
            border-radius: var(--border-radius-sm);
            margin-bottom: 46px;
        }

        >div:last-child{
            display: flex;
            flex-direction: column;
            position: absolute;
            bottom: 4px;
            gap: 8px;
            width: 100%;
            left: 0;
            box-sizing: border-box;
            padding: 0 4px;
            >div:first-child{
                display: flex;
                justify-content: center;
                background-color: var(--base-gray-alpha);
                margin: 0 4px;
                border-radius: var(--border-radius-pill);
                gap: 4px;
                font-size: 0.625rem;
                font-weight: 800;
            }
            >div:last-child{
                flex: 1;
                gap: 4px;
                overflow: hidden;
                max-height: 42px;
                h5{
                    align-items: center;
                    font-size: 1rem;
                    font-weight: 900;
                    margin: 0;
                    white-space: nowrap; 
                    overflow: hidden;
                    text-overflow: ellipsis;
                }
                p{
                    font-size: 0.85rem;
                }
            }
        }

                &:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-sharp);
            outline: 4px solid var(--base-purple);
            
        }
    }

    .card-upcoming {
        position: relative;
        padding: 0;
        border-radius: var(--border-radius-md);
        color: var(--text-main);
        background-color: var(--bg-base);
        cursor: pointer;
        transition: all var(--transition);
        overflow: hidden;
        min-height: 160px;
        display: flex;
        border: 4px solid var(--bg-base);

        &:hover {
            > img {
                transition: all var(--transition);
                filter: brightness(0.25) 
                blur(0.25px);
            }
        }

        > img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
            opacity: 0.75;
        }

        > div {
            position: relative;
            z-index: 1;
            flex: 1;
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 8px;

            > span:first-child {
                font-size: 0.75rem;
                font-weight: 600;
                background-color: var(--bg-base);
                padding: 5px 10px 5px 20px;
                position: absolute;
                right: 0;
                border-radius: var(--border-radius-alt-3);
            }

            > div {
                display: flex;
                justify-content: center;
                gap: 8px;
                margin-top: 36px;

                > div {
                    width: 80px;
                    height: 80px;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    background-color: var(--base-gray-alpha);
                    padding: 8px 12px;
                    border-radius: var(--border-radius-xs);

                    > span:first-child {
                        font-size: 1.75rem;
                        font-weight: 700;
                    }

                    > span:last-child {
                        font-size: 0.75rem;
                        font-weight: bold;
                        text-transform: uppercase;
                    }
                }
            }

            > p {
                font-size: 1rem;
                font-weight: 600;
                text-align: center;
                margin: 0;
                padding: 5px 0;
                background-color: var(--bg-base);
            }
        }
    }

    .news-card {
        display: flex;
        flex-direction: column;
        padding: 4px;
        border-radius: var(--border-radius-md);
        background-color: var(--bg-surface);
        cursor: pointer;
        transition: all var(--transition);
        overflow: hidden;
        height: 100%;
        outline: 0px solid transparent;

        &:hover {
            transform: translateY(-2px);
            outline: 4px solid var(--base-purple);
            box-shadow: var(--shadow-sharp);
        }

        > div {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 12px;
            flex: 1;

            > h4 {
                margin: 0;
                font-size: 1rem;
                font-weight: 600;
                color: var(--text-main);
                display: -webkit-box;
                -webkit-line-clamp: 3;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            > div {
                display: flex;
                gap: 6px;
                flex-wrap: wrap;
            }

            > p {
                margin: 0;
                font-size: 0.85rem;
                color: var(--text-muted);
            }
        }

        > img {
            width: 100%;
            object-fit: cover;
            border-radius: var(--border-radius-md);
        }
    }

    .news-list {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
        background-color: var(--primary);
        border-radius: var(--border-radius-pill);
        padding: 5px 50px 5px 20px;
        gap: 10px;

        div{
            width: 100%;
        }

        img:first-child{
            width: 75px;
            height: 75px;
            border-radius: var(--border-radius-full);
        }

        img:nth-child(2){
            width: 125px;
            height: 75px;
            border-radius: var(--border-radius-sm);
        }

        p:last-child{
            background-color: var(--secondary);
            padding: 5px;
            margin-bottom: 0;
            border-radius: var(--border-radius-sm);
        }

    }

    .community-card {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 12px;
        border-radius: var(--border-radius-md);
        background-color: var(--bg-surface);
        transition: all var(--transition);
        height: 100%;
        outline: 0px solid transparent;

        &:hover {
                transform: translateY(-2px);
                box-shadow: var(--shadow-sharp);
                outline: 4px solid var(--base-purple);
            }

        > a:first-child {
            display: flex;
            align-items: center;
            justify-content: space-between;
            text-decoration: none;
            color: var(--text-main);
            transition: all var(--transition);
            padding: 0 12px;
            gap: 8px;

            > h4 {
                margin: 0;
                font-size: 1rem;
                font-weight: 600;
                color: inherit;
            }

            > i {
                color: var(--primary);
                font-size: 1.2rem;
            }
        }

        > div:last-child {
            display: flex;
            flex-direction: column;

            > a {
            gap: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                display: flex;
                gap: 8px;
                padding: 8px 0;
                border-bottom: 1px solid var(--bg-surface-hover);
                text-decoration: none;
                color: var(--text-main);
                transition: all var(--transition);
                border-left: 0px solid var(--primary-active);

                &:last-child {
                    border-bottom: none;
                }

                &:hover {
                    background: linear-gradient(90deg, rgba(0, 205, 219, 1) 0%, rgba(0, 205, 219, 0.3) 50%, rgba(0, 205, 219, 0) 100%);
                    animation: pulso-fill 0.6s ease-in-out forwards;
                    border-left: 3px solid var(--primary-active);
                    padding-left: calc(8px - 3px);

                    > span {
                        border: 2px solid white;
                    }
                }

                > span {
                    width: 36px;
                    height: 36px;
                    border-radius: var(--border-radius-full);
                    background-color: var(--primary);
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    color: white;
                    font-weight: bold;
                    font-size: 0.9rem;
                    flex-shrink: 0;
                }

                > div {
                    display: flex;
                    flex-direction: column;
                    gap: 2px;

                    > p:first-child {
                        margin: 0;
                        font-size: 0.9rem;
                        font-weight: 600;
                        color: var(--text-main);
                    }

                    > p:last-child {
                        margin: 0;
                        font-size: 0.8rem;
                        color: var(--text-muted);
                    }
                }
            }
        }
    }
/* ============================================================================
   COMPONENTES GLOBALES - Botones
   ============================================================================ */

/* Componentes - Botón Base */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;

    &:hover {
        scale: 1.05;
    }

    &:active {
        scale: 0.95;
    }
}

/* Componentes - Botón con efecto traslación */
.btn-b {
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    text-decoration: none;

    &:hover {
        transform: translateY(-2px);
        scale: 1.05;
        box-shadow: var(--shadow-mg);
    }

    &:active {
        transform: translateY(0px);
        scale: 1;
    }
}

/* Componentes - Botón Primario */
.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);

    &:hover {
        background-color: var(--primary-hover);
    }

    &:active {
        background-color: var(--primary-active) !important;
    }
}

/* Componentes - Botón Dark */
.btn-dark {
    background-color: var(--bg-pill-dark);
    color: var(--text-inverse);

    h1, h2, h3, h4, h5, h6 {
        color: inherit;
    }

    &:hover {
        background-color: var(--base-ink-light);
        color: var(--base-white);
    }
    &:active{
        background-color: var(--base-ink-dark);
    }
}

.btn-half-corner {
    background-color: var(--primary-hover);
    color: var(--text-inverse);
    padding: 5px 10px;
    border-radius: var(--border-radius-pill);
    transition: all var(--transition);

    &:hover {
        background-color: var(--primary-active);
        color: var(--base-white);
    }
    &:active{
        background-color: var(--primary);
        border-radius: var(--border-radius-alt-1);
    }
}

.btn-selector {
    background-color: var(--secondary);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition);

    &:hover {
        background-color: var(--secondary-hover);
    }
    &:active{
        background-color: var(--secondary-active)!important;
    }
}

/* States para hero text */
.hero-text-content {
    .btn-outline-primary {
        border-color: var(--text-inverse);
        color: var(--text-inverse);

        &:hover {
            background-color: rgba(249, 255, 255, 0.1);
        }
    }
}

/* ============================================================================
   COMPONENTES GLOBALES - Tags y Badges
   ============================================================================ */
.card-tag{
    font-size: 0.6rem;
    font-weight: bold;
    color: var(--text-main);
    background-color: var(--base-white);
    border-radius: var(--border-radius-pill);
    padding: 2px 8px;
}

.card-tag-inverse{
    font-size: 0.6rem;
    font-weight: bold;
    background-color: var(--primary);
    border-radius: var(--border-radius-pill);
    padding: 2px 8px;
}

.tag-inverse{
    font-size: 1rem;
    color: var(--base-white);
    background-color: var(--primary);
    border-radius: var(--border-radius-pill);

    &:hover{
        color: var(--base-white);
        background-color: var(--primary);
        border-radius: var(--border-radius-pill);
        scale: 1;
    }

    &:active{
        color: var(--base-white)!important;
        background-color: var(--primary)!important;
        border-radius: var(--border-radius-pill);
        scale: 1;
    }
}


/* ============================================================================
   COMPONENTES GLOBALES - Inputs y Formularios
   ============================================================================ */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
.form-control {
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius-pill);
    background-color: var(--base-white);
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
    outline: none;

    &::placeholder {
        color: var(--text-muted);
    }

    &:hover {
        background-color: var(--base-gray-200);
    }

    &:focus {
        background-color: var(--base-sky-light);
    }

    &:active {
        background-color: var(--base-sky-main);
    }
}

/* Estado deshabilitado */
input:disabled,
.form-control:disabled {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Select dropdowns */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    padding-right: 32px;
}

/* Select Dark (similar a btn-dark) */
select.select-dark {
    padding: 12px 16px;
    border: none;
    border-radius: var(--border-radius);
    background-color: var(--bg-pill-dark);
    color: var(--text-inverse);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 150px;

    &:hover {
        background-color: var(--base-ink-light);
        color: var(--base-white);
    }

    &:focus {
        background-color: var(--base-ink-light);
        color: var(--base-white);
    }

    &:active {
        background-color: var(--base-ink-dark);
    }

    option {
        background-color: var(--bg-pill-dark);
        color: var(--text-inverse);
    }
}

/* Select para btn-selector */
select.btn-selector {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--secondary) !important;
    color: var(--text-main) !important;
}

select.btn-selector:hover,
select.btn-selector:focus,
select.btn-selector:active {
    background-color: var(--secondary) !important;
    color: var(--text-main) !important;
}

/* ============================================================================
   CABECERA DE VIDEOJUEGOS - Header con Gradiente de Colores
   ============================================================================ */

.header-games {
    height: 200px;
    background-color: var(--bg-base);
    border-bottom: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: var(--spacing-lg, 20px);
    padding-left: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    margin-left: var(--sidebar-width-expanded);
    width: calc(100% - var(--sidebar-width-expanded));
    box-sizing: border-box;
    transition: var(--transition);

    &.sidebar-collapsed {
        margin-left: var(--sidebar-width-collapsed);
        width: calc(100% - var(--sidebar-width-collapsed));
    }
}

.header-games-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 128px;
    font-weight: 900;
    margin: 0;
    color: transparent;
    background: conic-gradient(
        from 90deg,
        rgb(255, 0, 0) 0%,
        rgb(0, 255, 0) 38.942%,
        rgb(0, 60, 255) 79.327%,
        rgb(255, 0, 0) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .header-games {
        height: 150px;
        padding: 16px;
        margin-left: var(--sidebar-width-expanded);
        width: calc(100% - var(--sidebar-width-expanded));

        &.sidebar-collapsed {
            margin-left: var(--sidebar-width-collapsed);
            width: calc(100% - var(--sidebar-width-collapsed));
        }
    }
    
    .header-games-title {
        font-size: 80px;
    }
}

@media (max-width: 768px) {
    .header-games {
        height: 120px;
        padding: 12px;
        margin-left: 0;
        width: 100%;

        &.sidebar-collapsed {
            margin-left: 0;
            width: 100%;
        }
    }
    
    .header-games-title {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .header-games {
        height: 100px;
        padding: 10px;
        margin-left: 0;
        width: 100%;

        &.sidebar-collapsed {
            margin-left: 0;
            width: 100%;
        }
    }
    
    .header-games-title {
        font-size: 48px;
    }
}

/* ============================================================================
   SEARCH GRID - Sección de Juegos y Filtros
   ============================================================================ */

.search-grid {
    display: flex;
    gap: 24px;
    padding: 0;
    margin-bottom: 32px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.search-grid-games {
    flex: 0 0 calc(75% - 12px);
    padding: 24px;
    background-color: var(--primary);
    border-radius: 16px;
    overflow: visible;
    min-width: 0;
}

.search-grid-news {
    flex: 0 0 calc(75% - 12px);
    padding: 24px;
    overflow: visible;
    min-width: 0;
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.games-grid > div {
    flex: 0 0 calc(33.333% - 8px);
}

.search-grid-filters {
    flex: 0 0 calc(25% - 12px);
    background-color: var(--base-Turquoise-main);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.filters-container {
    width: 100%;
}

/* Bootstrap Grid Overrides */
.row {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}

.container {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

#home .container {
    max-width: 100%;
    width: 100%;
}

@media (max-width: 1024px) {
    .search-grid {
        gap: 16px;
    }

    .search-grid-games {
        flex: 1;
    }

    .games-grid > div {
        flex: 0 0 calc(50% - 8px);
    }

    .search-grid-filters {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .search-grid {
        flex-direction: column;
        gap: 16px;
    }

    .search-grid-games,
    .search-grid-filters {
        flex: 0 0 100%;
    }

    .games-grid > div {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-base: var(--base-ink-dark);
        --bg-surface: var(--base-ink);
        --bg-surface-hover: var(--base-ink-light);
        --text-main: var(--base-white);
        --text-muted: var(--base-gray-400);
        --text-inverse: var(--base-ink-dark);
        --border-color: var(--base-gray-600);
    }
}

/* ============================================================================
   DUAL RANGE SLIDER STYLES
   ============================================================================ */

.drange {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 100%;
  height: 40px;
  margin: 5px 0 10px 0;

  input[type="range"] {
    position: absolute;
    width: 100%;
    pointer-events: none;
    z-index: 5;
    appearance: none;
    background: none;

    &::-webkit-slider-thumb {
      pointer-events: all;
      appearance: none;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 0;
      background: url('../src/svg/Btn-slider.svg') center/contain no-repeat;
      cursor: pointer;
      z-index: 0;
      margin-top: -17px;
    }

    &::-moz-range-thumb {
      pointer-events: all;
      width: 40px;
      height: 40px;
      border: 0;
      border-radius: 0;
      background: url('../src/svg/Btn-slider.svg') center/contain no-repeat;
      cursor: pointer;
      z-index: 2;
    }

    &:focus {
      outline: none;
    }

    &::-webkit-slider-runnable-track {
      height: 6px;
    }

    &::-moz-range-track {
      height: 6px;
    }
  }

  /* Rotación 180deg para el segundo tirador */
  .drange-max {
    &::-webkit-slider-thumb {
      transform: rotate(180deg);
    }

    &::-moz-range-thumb {
      transform: rotate(180deg);
    }
  }

  .drange-track {
    position: absolute;
    height: 6px;
    background: linear-gradient(to right, var(--base-white) 0%, var(--base-white) 0%, var(--base-sky-main) 0%, var(--base-sky-main) 100%, var(--base-white) 100%, var(--base-white) 100%);
    border-radius: 3px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
  }

  .drange-values {
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;

    .dmin,
    .dmax,
    .drange-separator {
      display: inline;
    }

    .dmin {
      margin-right: 4px;
    }

    .dmax {
      margin-left: 4px;
    }
  }

  .drange-suffix {
    display: none;
  }
}

/* ============================================================================
   RESPONSIVE DESIGN - Media queries para dispositivos
   ============================================================================ */

@media (max-width: 768px) {
    .btn-toggle-sidebar {
        display: flex !important;
        position: fixed;
        top: 10px;
        left: 12px;
        z-index: 1002;
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        background-color: transparent;
        color: var(--text-inverse);
        border: none;

        &:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
    }

    .mobile-nav-header {
        display: flex !important;
    }

    .mobile-nav-header::after {
        content: 'SynkroNET';
        color: var(--text-inverse);
        font-size: 1.25rem;
        font-weight: 800;
        letter-spacing: 0.05em;
        flex: 1;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-collapse-sidebar {
        display: none !important;
    }

    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        max-height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        width: var(--sidebar-width-expanded);
        transition: transform var(--transition);
        box-shadow: var(--shadow-sidebar);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    #sidebar.active ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 0;
    }

    #home {
        padding: 0 12px 12px 12px;
        margin-top: 0;
        padding-top: 60px;
    }

    /* Ajustes para secciones */
    .section-hero {
        padding: 1rem;
        margin: 0 0 24px 0;
        

        .hero-image-wrapper {
            flex: 0 0 100%;
            max-width: 100%;
            height: 240px;
        }

        .hero-content {
            display: flex;
            gap: 8px;
            h1 {
                font-size: 1.5rem;
            }

            p {
                font-size: 0.9rem;
            }

            .hero-actions {
                gap: 0.75rem;
                
                .btn {
                    min-width: 120px;
                    font-size: 0.9rem;
                    padding: 8px 12px;
                }
            }
        }
    }

    .section-A,
    .section-B {
        margin-bottom: 24px;
        border-radius: var(--border-radius-sm);

        .section-buttons {
            flex-direction: column;
            gap: 12px;
            align-items: flex-start;

            h2 {
                font-size: 1.2rem;
                padding: 0px 12px;
            }

            div {
                width: 100%;
                display: flex;
                flex-direction: column;
            }
        }

        .card-content {
            padding: 12px;
        }
    }

    .card-game,
    .card-dev,
    .news-card,
    .community-card {
        border-radius: var(--border-radius-sm);
    }

    #footer {
        margin: 0 -12px -12px -12px;
        width: calc(100% + 24px);
        padding: 16px 12px;
        flex-direction: column;
        gap: 16px;

        div:first-child {
            width: 100%;
            text-align: center;
            justify-content: center;
        }

        div:last-child {
            width: 100%;
            text-align: center;
        }

        font-size: 0.7rem;
    }
}

@media (min-width: 769px) {
    .btn-collapse-sidebar {
        display: flex;
    }

    .btn-toggle-sidebar {
        display: none !important;
    }

    .sidebar-overlay {
        display: none !important;
    }

    .mobile-nav-header {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .btn{
        &:hover{
            scale:1.025
        }
    }

    .btn-toggle-sidebar {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        top: 12px;
        left: 12px;
    }

    #sidebar {
        width: 90vw;
        max-width: 280px;
    }

    .main-content {
        padding-top: 50px;
    }

    #home {
        padding: 0 8px 8px 8px;
        margin-top: -50px;
        padding-top: 62px;
    }

    .section-hero {
        padding: 0.75rem;
        
        .hero-image-wrapper {
            height: 200px;
        }

        .hero-content {
            h1 {
                font-size: 1.25rem;
            }

            p {
                font-size: 0.8rem;
            }

            .hero-actions {
                gap: 0.5rem;
                
                .btn {
                    min-width: auto;
                    font-size: 0.8rem;
                    padding: 6px 10px;
                    flex: 1;
                }
            }
        }
    }

    .card-game img,
    .card-dev img {
        height: 120px;
        margin-bottom: 40px;
    }

    .section-A,
    .section-B {
        .section-buttons {
            h2 {
                font-size: 1rem;
            }

            div {
                .btn-dark {
                    font-size: 0.75rem;
                    padding: 4px 8px;
                }
            }
        }
    }

    #footer {
        font-size: 0.65rem;


        div:first-child {
            font-size: 1rem;
        }
    }
}