@import "https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;700;900&display=swap";
@import url("../fonts/icomoon/style.css");
@import url("../fonts/Rockwell/stylesheet.css");

body.home main {
    display: flex;
    flex-direction: column;
}
body.home main .content-nav-inter {
    width: 100%;
}
  
body main {
    display: flex;
    flex-direction: column;
}

.boletines-home {
    width: 100%;
    margin-bottom: 5rem;
    ul {
        display: grid;
        grid-template-columns: [col-1] 49.2% [col-2] 25% [col-3] 25% [col-4];
        grid-template-rows: [fil-1] 25rem [fil-2] 25rem [fil-3];
        gap: 0.5rem;
        li {
            display: flex;
            flex-direction: column-reverse;
            overflow: hidden;
            position: relative;
            margin-bottom: 0;
            .moduleItemIntrotext {
                position: absolute;
                width: 100%;
                height: 100%;
                top: 0px;
                left: 0px;
                margin: auto;
                z-index: 1;
                overflow: hidden;
                &::before {
                    display: block;
                    background: rgb(0, 0, 0);
                    background: linear-gradient(8deg, rgb(0, 0, 0) 0%, rgba(255, 255, 255, 0) 100%);
                    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000",endColorstr="#ffffff",GradientType=1);
                    width: 100%;
                    height: 100%;
                    content: "";
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 2;
                }
                .moduleItemImage {
                    position: absolute;
                    display: block;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    bottom: 0;
                    left: 0;
                    right: 0;
                    margin: auto;
                }
            }
            .moduleItemTitle {
                display: flex;
                align-items: center;
                z-index: 2;
                padding: 0 2rem 2rem 2rem;
                color: #fff;
                font-size: 1.6rem;
                font-weight: 700;
                &::before {
                    content: "";
                    width: 5px;
                    height: 100%;
                    margin-right: 1rem;
                    display: block;
                    border-left: solid 5px #f09;
                }
            }
            &:first-child {
                grid-column: col-1/col-2;
                grid-row: fil-1/fil-3;
                .moduleItemTitle {
                    font-size: 2rem;
                }
            }
            &:nth-child(2) {
                grid-column: col-2/col-3;
                grid-row: fil-1/fil-2;
            }
            &:nth-child(3) {
                grid-column: col-3/col-4;
                grid-row: fil-1/fil-2;
            }
            &:nth-child(4) {
                grid-column: col-2/col-4;
                grid-row: fil-2/fil-3;
            }
        }
    }
}
@supports ((-o-object-fit: cover) or (object-fit: cover)) {
    body main .boletines-home ul li .moduleItemIntrotext .moduleItemImage img {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      -o-object-fit: cover;
         object-fit: cover;
      -o-object-position: center center;
         object-position: center center;
    }
}
/*-----------*/
main {
    .sector1 {
        margin-bottom: 5rem;
        h2 {
            display: block;
            width: 74%;
            color: #4B575E;
            padding-bottom: 1rem;
            margin-bottom: 2rem;
            border-bottom: solid 1px #f09;
        }
        .contenido-sector1 {
            display: flex;
            article {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
                width: 75%;
                gap: 1rem;
                a {
                    span {
                        display: block;
                        font-size: 1.3rem;
                        font-style: italic;
                    }
                }
            }
            aside {
                display: block;
                width: 25%;
                margin-left: 1rem;
                position:relative;
                z-index:95;
                .botonera_aside {
                    display: flex;
                    flex-direction: column;
                    li {
                        display: flex;
                        a {
                            padding: 1rem;
                            display: flex;
                            align-items: center;
                            padding: 2rem;
                            margin-bottom: 1rem;
                            color: #fff;
                            font-family: "rockwellbold";
                            width: 100%;
                            background-color: #AD2B7B;
                        }
                    }
                }
            }  
        }
    }
    .sector2 {
        display: flex;
        width: 100%;
        margin-bottom: 5rem;
        .contenido-sector2 {
            background-color: #D8D7D4;
            width: 75%;
            padding: 2rem;
            h2 {
                display: block;
                width: 100%;
                color: #4B575E;
                padding-bottom: 1rem;
                margin-bottom: 2rem;
                border-bottom: solid 1px #f09;
            }
            ul {
                display: flex;
                flex-wrap: wrap;
                li {
                    width: 48%;
                    margin: 1%;
                    position: relative;
                    overflow: hidden;
                    a {
                        color: #4B575E;
                        font-size: 1.5rem;
                        font-weight: 600;
                        span {
                            display: block;
                            color: #4B575E;
                            font-size: 1rem;
                            font-style: italic;
                        }
                    }
                }
            }
        }
        aside {
            display: block;
            width: 25%;
            margin-left: 1rem;
            background-color: #EDECEC;
            padding: 2rem 1rem 1rem 1rem;
            h2 {
                display: block;
                width: 100%;
                color: #4B575E;
                padding-bottom: 1rem;
                margin-bottom: 2rem;
                border-bottom: solid 1px #f09;
            }
        }
    }
    .sector3, .sector-general, .full-colm {
        display: flex;
        width: 100%;
        margin-bottom: 5rem;
        .contenido-sector3, .contenido-sector-general {
            display: flex;
            flex-wrap: wrap;
            width: 75%;
            h2 {
                display: block;
                width: 100%;
                color: #4B575E;
                padding-bottom: 1rem;
                margin-bottom: 2rem;
                border-bottom: solid 1px #f09;
            }
            ul {
                display: flex;
                flex-wrap: wrap;
                li {
                    width: 98%;
                    margin: 0 1% 5rem 1%;
                    position: relative;
                    a {
                        color: #4B575E;
                        font-size: 1.3rem;
                        h3 {
                            font-size: 1.5rem;
                            font-family: 'Raleway', sans-serif;
                        }
                    }
                }
            }
        }
        aside {
            display: block;
            width: 25%;
            margin-left: 1rem;
            background-color: #EDECEC;
            padding: 2rem 1rem 1rem 1rem;
            h2 {
                display: block;
                width: 100%;
                color: #4B575E;
                padding-bottom: 1rem;
                margin-bottom: 2rem;
                border-bottom: solid 1px #f09;
            }
        }
        &.colm1-aside {
            h2 {
                border-bottom: none;
                &::after {
                    content: "";
                    display: block;
                    position: absolute;
                    width: 5rem;
                    height: 0.5rem;
                    bottom: 0;
                    left: 0;
                    background-color: #652C90;
                }
            }
        }
        &.full-colm {
            display: flex;
            width: 100%;
        }
    }
    .contenedor-nav-colm {
        display: grid;
        width: 100%;
        grid-template-columns: [col-cero] 1fr [col-uno] 4fr [col-dos];
        gap: 1rem;
        grid-auto-rows: minmax(2rem, auto);
        h2 {
            grid-column: col-cero/col-dos;
        }
        .menu {
            grid-column: col-cero/col-uno;
            grid-row: 2/3;
            background-color: #EDECEC;
            padding: 2rem 0 2rem 2rem;
            ul {
                li {
                    width: auto;
                    color: #4B575E;
                    font-weight: 900;
                    a {
                        display: block;
                        color: #4B575E;
                        padding: 0.5rem 0 0.5rem 1rem;
                        margin: 0.5 0;
                        border-bottom: solid 1px rgb(223, 223, 225);
                    }
                    ul {
                        margin-left: 1.5rem;
                        li {
                            font-weight: 400;
                            a {
                                display: block;
                                color: #4B575E;
                                padding: 0.5rem 0 0.5rem 1rem;
                                margin: 0.5 0;
                                border-bottom: solid 1px rgb(223, 223, 225);
                            }
                        }
                    }
                }
            }
        }
        .contenido-nav-colm {
            grid-column: col-uno/col-dos;
            grid-row: 2/3;
        }
    }
}
@media screen and (max-width: 768px) { 
    .boletines-home { 
        ul {
            grid-template-columns: [col-1] 100% [col-2];
            grid-template-rows: [fil-1] 20rem [fil-2] 20rem [fil-3] 20rem [fil-4] 20rem [fil-5];
             li {
                &:first-child {
                    grid-column: col-1/col-2;
                    grid-row: fil-1/fil-2;
                    .moduleItemTitle {
                        font-size: 1.6rem;
                    }
                }
                &:nth-child(2) {
                    grid-column: col-1/col-2;
                    grid-row: fil-2/fil-3;
                }
                &:nth-child(3) {
                    grid-column: col-1/col-2;
                    grid-row: fil-3/fil-4;
                }
                &:nth-child(4) {
                    grid-column: col-1/col-2;
                    grid-row: fil-4/fil-5;
                }
             }
        }
    }
    /*-----------*/
    main {
        .sector1 {
            h2 {
                width: 100%;
                &:after {
                    left: 0;
                }
            }
            .contenido-sector1 {
                display: block;
                padding: 1rem;
                article {
                    width: 100%;
                    margin-bottom: 2rem;
                }
                aside {
                    width: 100%;
                    margin-left: 0;
                }
            }
        }
        .sector2 {
            display: block;
            .contenido-sector2 {
                width: 100%;
                padding: 1rem;
                ul {
                    li {
                        width: 98%;
                    }
                }
            }
            aside {
                width: 100%;
                margin-left: 0;
                h2 {
                    &:after {
                        left: 0;
                    }
                }
            }
        }
        .sector3, .sector-general  {
            display: block;
            .contenido-sector3, .contenido-sector-general  {
                width: 100%;
                padding: 1rem;
                ul {
                    li {
                        width: 98%;
                    }
                }
            }
            aside {
                width: 100%;
                margin-left: 0;
                h2 {
                    &:after {
                        left: 0;
                    }
                }
            }
        }
        .contenedor-nav-colm {
            display: grid;
            width: 100%;
            grid-template-columns: 1fr;
            gap: 0;
            grid-auto-rows: auto;
            padding: 1rem;
            h2 {
                grid-column: col-cero/col-dos;

            }
            .menu {
                grid-column: col-uno/col-dos;
                grid-row: auto;
                margin-bottom: 2rem;
            }
            .contenido-nav-colm {
                grid-column: col-uno/col-dos;
                grid-row: auto;
            }
        }
    }
}