section.news {
    div.hero-background {
        height: 45vh;
        width: 100dvw;
        background-position: center center !important;
    }

    section.module-filter {
        max-width: 98rem;
        padding: 0 0 4rem 0;
        margin: 0 auto;

        div.grid {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 3rem 2rem;
            flex-direction: row;
            flex-wrap: wrap;
            border-top: 1px solid #929d9e;
            border-bottom: 1px solid #929d9e;

            .icon {
                svg {
                    width: 40px;
                }
            }
        }
    }

    h2.no-news {
        text-align: center;
        font-family: 'Roboto', sans-serif;
    }

    section.general-event-info {
        padding: 8rem 2rem;
        max-width: 98rem;
        margin: 0 auto;
        position: relative;

        p:first-child {
            margin: 0;
        }

        h1 {
            text-align: start;
        }

        h1::after {
            left: 0;
            margin-left: 0;
        }

        p {
            margin-bottom: 2rem;
        }

        p:last-child {
            margin: 0;
            display: flex;
            justify-content: center;

            a {
                font-size: 1.4rem;
                padding: 1rem 2.2em;
                display: inline-block;
                border-radius: 3rem;
                background-color: #db0f80;
                border: 2px solid #db0f80;
                font-weight: 700;
                color: #fff;
                margin-bottom: 2rem;
            }

            a:hover {
                background-color: transparent;
                color: #db0f80;
            }
        }
    }

    section.ul-wrapper {
        background-image: url(https://davinci.edu.ar/images/layout/backgrounds/module-background-gray-big.png);
        background-color: #f3f3f3;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
        padding: 8rem 2rem;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;

        ul {
            max-width: 122rem;
            margin: 0 auto;
            margin-bottom: 6rem;
            padding: 0 2rem;

            li {
                box-shadow: 0 14px 28px 0 rgba(0, 0, 0, .1);
                background-color: #fff;
                transition: all .1s ease-out;
                margin-bottom: 2rem;
                border-radius: 18px;
                display: flex;
                justify-content: center;
                
                a {
                    display: flex;
                    justify-content: center;
                    width: 100%;

                    aside {
                        position: relative;
                        flex: 1 1 50%;
                        overflow: hidden;
                        margin: 0;

                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                            border-top-left-radius: 18px;
                            border-bottom-left-radius: 18px;
                        }

                        p:nth-child(2) {
                            font-family: "Montserrat", sans-serif;
                            padding: .6rem .8rem;
                            margin: 1rem;
                            background-color: #fff;
                            position: absolute;
                            top: 0;
                            left: 0;
                            font-weight: 700;
                            line-height: 1.2rem;
                            color: #000;
                        }
                    }

                    article {
                        padding: 3.5rem 4rem;
                        flex: 1 1 50%;

                        h2 {
                            font-size: 2.6rem;
                            font-family: "Montserrat", sans-serif;
                            font-weight: 800;
                            margin-bottom: 1rem;
                            color: #000;
                        }

                        p:first-of-type {
                            color: #000;
                            font-weight: 700;
                            margin-bottom: 2rem;
                        }

                        p:nth-child(3) {
                            margin: 0;
                        }

                        p {
                            line-height: 1.2em;
                            font-size: 1.6rem;
                            color: #4a5565;
                        }

                        button {
                            margin-top: 2rem;
                            margin-bottom: 0;
                            font-size: 1.4rem;
                            padding: 1rem 2.2em;
                            display: inline-block;
                            border-radius: 3rem;
                            background-color: #db0f80;
                            border: 2px solid #db0f80;
                            font-weight: 700;
                            color: #fff;
                            line-height: 1.15;
                            font-family: "Roboto", sans-serif;
                        }

                        button:hover {
                            background-color: transparent;
                            color: #db0f80;
                        }
                    }
                }
            }
        }

        li:hover {
            box-shadow: 0 5px 36px 0 rgba(0, 0, 0, .3);
            transform: scale(1.04);
            cursor: pointer;
        }
    }

    section.module-tags {
        padding: 8rem 0;
        background-color: #222427;

        section.container {
            padding: 0 2rem;
            max-width: 122rem;
            margin: 0 auto;

            h2 {
                font-size: 2.6rem;
                color: #fff;
                font-family: "Montserrat", sans-serif;
                margin-top: 2rem;
                margin-bottom: 1rem;
                font-weight: 800;
                line-height: 1.1em;
            }

            ul {
                padding-left: 4rem;
                margin-bottom: 3rem;

                li {
                    display: inline-block;
                    box-sizing: inherit;
                    margin: 1.5rem .5rem;
                    margin-left: 0;
                    
                    a {
                        padding: 1.5rem 2.2em;
                        color: #fff;
                        font-family: "Roboto", sans-serif;
                        background-color: rgba(0, 0, 0, 0);
                        font-size: 1.4rem;
                        border-radius: 3rem;
                        border: 2px solid #fff;
                        font-weight: 700;
                        cursor: pointer;
                        line-height: 1.15;

                        &:hover {
                            color: #000;
                            background-color: #fff;
                        }
                    }
                }
            }
        }
    }

    section.module-paginator {
        margin: 0 auto;
        display: flex;
        ul {
            display: flex;
            text-align: center;
            justify-content: center;

            li {
                border-radius: 50%;
                border: .5px solid #929d9e;
                list-style: none;
                line-height: 4.4rem;
                width: 4.4rem;
                height: 4.4rem;
                text-align: center;
                vertical-align: middle;
                font-weight: 700;
                margin: 0 .5rem;
                box-shadow: none;
                background-color: transparent;
                font-family: "Montserrat", sans-serif;
                font-weight: 800;
                font-size: 1.4rem;

                &:hover {
                    box-shadow: none;
                    transform: none;
                }
                a {
                    color: #000;
                    display: inline-block;
                    width: 100%;
                    height: 100%;
                }
            }

            li.active {
                background-color: #0e95f8;
                color: #fff;
            }

            li.hide {
                display: none;
            }
        }
    }
}

@media screen and (min-width: 768px) {
    .module-paginator ul li.active {
        border-radius: 50%;
        border: 1px solid #929d9e;
    }

    .module-paginator ul li a {
        border: 1px solid #929d9e;
        border-radius: 50%;
    }

    .module-filter {
        div.grid {
            .item {
                flex-direction: row;
                flex-wrap: nowrap;
                flex: 0 0 60%;
                text-align: left;
                font-weight: 700;
                line-height: 1.2em;
            }
        }
    }
}

@media screen and (min-width: 992px) {
    section.module-filter {
        div.grid {
            .item {
                flex: 0 0 69%;
                padding: 0;
            }
        }
    }
}

@media screen and (max-width: 991px) {
    section.news {
        section.ul-wrapper {
            ul {
                padding: 0;

                li {

                    a {
                        flex-direction: column;

                        aside {
                            img {
                                border-top-right-radius: 18px;
                                border-bottom-left-radius: 0;
                            }
                        }

                    }
                }
            }
        }
    }
}

@media screen and (max-width: 767px) {
    section.news {
        div.hero-background {
            height: 250px;
        }

        section {
            padding: 6rem 2rem;
        }
    }
}

@media screen and (min-width: 768px) {
    .module-filter {
        .grid {
            .item {
                flex: 0 0 59%;
                padding: 0;

                p {
                    font-size: 2.6rem;
                }
            }
        }
    }
}

/* ============================================
   SIDEBAR LATERAL DE CATEGORÍAS
   ============================================ */

/* Overlay oscuro de fondo */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .1);
    z-index: 10000;
    display: none;
}

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

/* Sidebar lateral */
.labels-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 90vw;
    height: 100vh;
    max-width: 400px;
    background-color: #222427;
    z-index: 10001;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    display: none;
}

.labels-sidebar.active {
    display: block;
}

/* Header del sidebar */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
}

.sidebar-header h2 {
    color: #0ce8ab;
    font-family: "Montserrat", sans-serif;
    font-weight: 900;
    font-size: 22px;
    margin: 0;
    line-height: 3.4rem;
}

.close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sidebar svg {
    width: 20px;
    height: 20px;
}

/* Contenido del sidebar */
.sidebar-content {
    padding: 1rem 1rem 1rem 4rem;
}

.sidebar-content ul {
    list-style: disc;
    padding: 0 2rem;
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.sidebar-content ul li {
    margin-bottom: 0;
    padding: 4px;
    min-height: 33px;
}

.sidebar-content ul li:last-child {
    border-bottom: none;
}

.sidebar-content ul li a {
    display: block;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    position: relative;
}

/* Estilo del botón de filtro (cambiar a button en lugar de a) */
.icon-filter {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-filter:hover svg path {
    fill: #2719fc;
}

/* Responsive para móviles */
@media screen and (max-width: 480px) {
    .labels-sidebar {
        max-width: 85%;
        right: -85%;
    }

    .sidebar-header h2 {
        font-size: 2.2rem;
    }

    .sidebar-content ul li a {
        font-size: 1.4rem;
    }
}