/*
.cont-matsprimas {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    grid-template-areas: 
        "header header header"
        "sidebar widget-1 widget-1"
        "footer footer footer";
}
*/

.cont-matsprimas {
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-template-areas:
        "header header header"
        "sidebar widget-1 widget-1"
        "sidebar widget-2 widget-2"
        "widget-3 widget-3 widget-3"
        "footer footer footer";
}

.cont-matsprimas>div, .cont-matsprimas .header, .cont-matsprimas .sidebar, .cont-matsprimas .matprimas-footer {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

.cont-matsprimas .header {
    display: none;
    grid-area: header;
    background: #12203E;
    color: #fff;
}

.cont-matsprimas .sidebar {
    grid-column: 3 / 4;
    background-color: black;
    color: var(--nav-verde-brand);
    text-align: left;
    display: flex;
    align-items: flex-start;
    /*justify-content: center;*/
    min-height: 100px;
    grid-area: sidebar;
    min-width: 250px;
}

/*
.cont-matsprimas .widget-1 {
    background: white;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.cont-matsprimas .widget-1 {
    grid-area: widget-1;
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: row;
    flex-wrap: wrap;
} 
*/

.cont-matsprimas .widget-1, .cont-matsprimas .widget-2, .cont-matsprimas .widget-3 {
    background: white;
    color: #fff;
    text-align: center;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.cont-matsprimas .widget-1, .cont-matsprimas .widget-2, .cont-matsprimas .widget-3 {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.cont-matsprimas .widget-1 {
    grid-area: widget-1;
}

.cont-matsprimas .widget-2 {
    grid-area: widget-2;
}

.cont-matsprimas .widget-3 {
    grid-area: widget-3;
}

.cont-matsprimas .matprimas-footer {
    background: #12203E;
    color: #fff;
    grid-area: footer;
}

.cont-matsprimas .sidebar a,
.cont-matsprimas .sidebar .card-part2 a {
    text-decoration: none;
    color: white;
    margin: 0px;
    padding: 4px;
}

.cont-matsprimas .sidebar a:hover,
.cont-matsprimas .sidebar .card-part2 a {
    /*color: white;
    background-color: chocolate;*/
    color: #25de1f;
}

/*
.cont-matsprimas .widget-1 .card-prod {
    margin: 10px;
    max-width: 180px;
    height: auto;
}
*/

.cont-matsprimas .widget-1 .card-prod, .cont-matsprimas .widget-2 .card-prod {
    margin: 10px;
    max-width: 180px;
    height: auto;
}

@media screen and (max-width:1022px) {
    .cont-matsprimas .widget-1 .card-prod, .cont-matsprimas .widget-2 .card-prod {
        margin: 10px;
        max-width: 250px;
        height: auto;
    }
}
/*
@media screen and (max-width:1022px) {
    .cont-matsprimas .widget-1 .card-prod {
        margin: 10px;
        max-width: 250px;
        height: auto;
    }
}
*/

@media screen and (max-width:992px) {
    .cont-matsprimas .widget-1 .card-prod {
        margin: 10px;
        max-width: 250px;
        height: auto;
    }
}

/*
@media screen and (max-width:992px) {
    .cont-matsprimas {
        grid-template-areas: "header header header"
            "sidebar sidebar sidebar"
            "widget-1 widget-1 widget-1"
            "footer footer footer";
    }

    .cont-matsprimas .widget-1 {
        justify-content: space-around;
        min-width: 225px;
    }

    .cont-matsprimas .sidebar {
        display: none;
    }

    .cont-matsprimas .header {
        display: flex;
        grid-area: header;
        background: #12203E;
        color: #fff;
        overflow: hidden;
    }
}
*/

@media screen and (max-width:992px) {
    .cont-matsprimas {
        grid-template-areas: 
            "header header header"
            "widget-1 widget-1 widget-1"
            "widget-2 widget-2 widget-2"
            "widget-3 widget-3 widget-3"
            "footer footer footer";
    }

    .cont-matsprimas .widget-1, .cont-matsprimas .widget-2, .cont-matsprimas .widget-3, .cont-matsprimas .footer {
        justify-content: center;
        min-width: 280px;
    }

    .cont-matsprimas .header {
        min-width: 280px;
    }

    .cont-matsprimas .sidebar {
        display: none;
    }

    .cont-matsprimas .header {
        display: flex;
        background: #12203E;
        color: #fff;
        grid-area: header;
        overflow: hidden;
    }

    .cont-matsprimas .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
    }
}





.cont-matsprimas .nav31 .dropdown-menu {
    background: #12203E;
}

.cont-matsprimas .nav31 .dropdown-item {
    color: white;
}

.cont-matsprimas .nav31 .dropdown-item:hover {
    color: white;
    background: chocolate;
}

.cont-matsprimas .nav31 .navbar-brand {
    font-weight: 550;
    font-size: 1.2rem;
    color: var(--nav-verde-brand);
}

.cont-matsprimas .card-header {
    background-color: #1c5daf;
    color: white;
}

/*
.cont-matsprimas .widget-1 a {
    text-decoration: none;
}

.cont-matsprimas .widget-1 a:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.cont-matsprimas .card-header:hover {
    background: chocolate;
}
*/

.cont-matsprimas .widget-1 a, .cont-matsprimas .widget-2 a {
    text-decoration: none;
}

.cont-matsprimas .widget-1 a:hover, .cont-matsprimas .widget-2 a:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.cont-matsprimas .card:hover .card-header {
    /* background: chocolate; */
    background-color: black;
}

.cont-matsprimas .inner {
    overflow: hidden;
}

.cont-matsprimas .inner img {
    transition: all 1.5s ease;
}

.cont-matsprimas .inner:hover img {
    transform: scale(1.1);
}

.cont-matsprimas .matprimas-footer h5 {
    margin-bottom: 0;
}

.matprimas-footer .card-nuevos {
    display: flex;
    display: -ms-flexbox;
    display: -webkit-flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: start;
}

.matprimas-footer .card-nuevos a {
    display: flex;
    align-items: center;
    margin: 5px;
    padding: 5px;
    overflow: hidden;
}

.matprimas-footer .elem-inner:hover h6 {
    color: #1c5fad;
    text-decoration: none;
}

.matprimas-footer .card-nuevos a:hover {
    text-decoration: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

@media screen and (max-width:922px) {
    .matprimas-footer .card-nuevos {
        justify-content: center;
    }
}