* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Para que el scrolleo en la one page sea suave */
    scroll-behavior: smooth;
}

.content {
    padding: 0 1rem;
    /*  border: 2px solid blue; */
}

.content h1 {
    color: #ffffff;
}

/*Reglas Generales de CSS de toda la página*/
.mdm2 {
    background-color: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    color: #FFFFFF;
    line-height: 1.5;
}

h1 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    font-size: 0.7rem;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Para prevenir que las imágenes "rompan" la página */
img {
    max-width: 100%;
}

main {
    background-color: #ffffff;
    min-height: 75vh;
}

/*Section de productos */
.products {
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
}

.container_products_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* border: 2px solid rgba(255, 255, 255, 0.89); */
    margin: 3rem 0 2rem 0;
}

article {
    color: #FFFFFF;
    /* width: 19rem; */
    width: 96%;
    border-radius: 1rem;
    padding: 1rem;
    margin: 2rem 0;
    cursor: pointer;
    transition: transform .3s;
}

.product {
    position: relative;
}

.product h2 {
    font-size: 1.4rem;
}

.blue {
    background-color: #0148D3;
}

.black {
    background-color: #302F2F;
}

.img_products {
    width: 65%;
    margin: 0.5rem auto 0.5rem auto;
    height: fit-content;
}

.content-btns {
    display: flex;
    justify-content: space-between;
}

.container_column {
    display: flex;
    flex-direction: column;
}

article:hover {
    transform: scale(1.05);
}

.btn_products {
    width: 4rem;
    height: 2rem;
    display: inline-block;
    border: 1px solid #FFFFFF;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 0.5rem;
    text-align: center;
    line-height: 2rem;
    margin-top: 0.5rem;
}

.btn_buy {
    right: 1rem;
    background-color: #003593;
    border: #003593;
}

.btn_products:active,
.btn_products:hover {
    background-color: #e0e0e0;
    border: 2px solid white;
    color: black;
}

/*Section MDM*/

.mdm {
    background-color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.container_mdm {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.container_mdm h2 {
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
    font-size: 30px;
}

.container_mdm h5 {
    text-align: center;
    font-weight: 300;
    font-size: 14px;
    padding: 25px 0;
}

.mdm img {
    width: 60%;
    /* height: 110px; */
}

/*Section Factory*/

.factory {
    background-color: #0F0F0F;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.factory h2 {
    font-size: 20px;
    font-weight: 300;
    text-align: center;
    line-height: 1.2;
}

.container_factory {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container_factory img {
    padding: 35px 0;
    width: 60%;
}

.container_factory h5 {
    font-size: 16px;
    font-weight: 300;
    text-align: center;
}

/*News*/

.news {
    background-color: #0F0F0F;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.carousel_news {
    background-color: #002E5D;
    width: 100%;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card_new {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.slider_element h5 {
    margin-top: 15px;
}

.slider_element p {
    text-align: center;
    padding: 10px;
    font-size: 12px;
    font-weight: 400;
    width: 80%;
    margin: 0 auto;
}

.slider_element img {
    width: 75px;
    height: 75px;
    margin: 0 auto;
}

.slider {
    display: -webkit-inline-box;
    height: 400px;
    width: 100%;
    text-align: center;
    transition: all 0.4s ease;
}

.slider_element {
    display: flex;
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

.btns-carousel {
    display: flex;
    justify-content: space-between;
    width: 120px;
    margin-top: 10px;
}

.btn_carousel {
    width: 55px;
    height: 55px;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    background: url();
}

.btn_carousel:hover {
    border: 1px solid #FFFFFF;
}

.btn_carousel:active {
    opacity: 0.5;
}

.btn_carousel i {
    color: #FFFFFF;
    font-size: 20px;
}

.carousel_news .img_card {
    display: none;
}

.blue_light {
    background-color: #0082E4;
    ;
}

.blue_dark {
    background-color: #010024;
}

/*popup*/

.container_popup {
    width: 100%;
    position: absolute;
    top: -700px;
    display: flex;
    justify-content: center;
    transform: scale(0.1);
    visibility: hidden;
    transition: transform 0.4s, top 0.4s;
    /* border: 1px solid red; */
}

.popup {
    border: 1px solid black;
    background-color: #FFFFFF;
    color: #000000;
    width: 90%;
    max-width: 540px;
    position: relative;
    border-radius: 1rem;
    top: 0;
}

.open-popup {
    visibility: visible;
    top: 40%;
    transform: scale(1);
}

.popup h3 {
    background-color: #000000;
    color: #FFFFFF;
    height: 3rem;
    width: 100%;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    padding: 1rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.popup td {
    text-align: left;
    font-size: 0.8rem;
    padding: 0.5rem 1rem 0.5rem 0;
}

.popup th {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    text-align: left;
}

.popup .btn-cancel {
    width: 5rem;
    height: 2rem;
    display: inline-block;
    background-color: #000000;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 1rem;
    text-align: center;
    color: #FFFFFF;
    border: none;
    cursor: pointer;
}

.popup .btn-cancel:active {
    background-color: #302F2F;
    border: 1px solid #000000;
}

.popup .btn-cancel:hover {
    opacity: 0.5;
}

.btn-popup {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.container-tp p {
    font-size: 0.9rem;
    margin-top: 1rem;
}

@media screen and (min-width: 500px) {
    .card-product {
        flex-direction: row-reverse;
    }

    .img_products {
        width: 40%;
    }

    p {
        font-size: 1rem;
    }

    .container-tp {
        padding: 1.5rem 0;
        padding-right: 2rem;
    }

    .container-tp p {
        font-size: 1rem;
    }

    .btn_products {
        font-size: 1rem;
        width: 6rem;
    }

    .content-btns {
        padding-right: 2rem;
    }

    .product h2 {
        font-size: 1.6rem;
    }
}


@media screen and (min-width: 576px) {
    .content {
        max-width: 540px;
        padding: 0;
    }
}

@media screen and (min-width: 768px) {
    .content {
        max-width: 720px;
    }

    h1 {
        font-size: 2.5rem;
    }

    article {
        width: 80%;
    }

    p {
        font-size: 1.3rem;
    }

    .btn_products {
        font-size: 1.2rem;
    }

    .popup td,
    .popup th {
        font-size: 1rem;
    }

    .popup .btn-cancel {
        font-size: 1rem;
    }

    .container-information {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .content-btns {
        margin-bottom: 0.5rem;
    }

    .container-tp p {
        font-size: 1.4rem;
    }
}

@media screen and (min-width: 992px) {
    .content {
        max-width: 960px;
    }

    .container_products_1 {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    article {
        width: 33%;
        margin: 0 1rem;
    }

    p {
        font-size: 0.9rem;
    }

    .card-product {
        flex-direction: column;
    }

    .container-tp {
        padding-right: 0;
        height: 10rem;
        display: flex;
        align-items: center;
    }

    .container-tp p {
        margin: 0;
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .product h2 {
        font-size: 1.4rem;
    }

    .img_products {
        width: 70%;
    }

    .btn_products {
        font-size: 1rem;
    }

    .content-btns {
        padding-right: 0;
    }
}

@media (min-width: 1024px) {
    .popup {
        width: 40rem;
    }

    .mdm {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .container_mdm {
        width: 45%;
    }

    .container_mdm h2 {
        font-size: 50px;
        text-align: left;
    }

    .container_mdm h5 {
        font-size: 25px;
        text-align: left;
    }

    .mdm img {
        width: 500px;
        height: 400px;
    }

    .factory h2 {
        font-size: 40px;
        text-align: left;
    }

    .container_factory {
        margin: 20px 0;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: space-between;
    }

    .container_factory img {
        width: 650px;
        height: 500px;
    }

    .container_factory h5 {
        width: 45%;
        font-size: 23px;
        text-align: left;
        padding-right: 20px;
    }

    .slider {
        height: 500px;
    }

    .carousel_news {
        flex-direction: row;
        overflow: hidden;
        justify-content: space-between;
        height: 600px;
    }

    .carousel_news .img_card {
        display: block;
        width: 50%;
        height: 700px;
        z-index: 1;
    }

    .card_new {
        width: 50%;
    }

    .card_new img {
        width: 140px;
        height: 140px;
    }

    .btn_carousel {
        width: 70px;
        height: 70px;
    }

    .btn_carousel img {
        width: 50px;
        height: 35px;
    }

    .card_new {
        justify-content: space-evenly;
    }

    .card_new h5 {
        font-size: 24px;
    }

    .card_new p {
        font-size: 20px;
    }

    .btns-carousel {
        width: 160px;
    }

    .carousel_news {
        height: 700px;
    }

    .open-popup {
        top: 30%;
    }
}

@media screen and (min-width: 1200px) {
    .content {
        max-width: 1140px;
    }

    p {
        font-size: 1rem;
    }
}

@media screen and (min-width: 1400px) {
    .content {
        max-width: 1320px;
    }

    .card-product {
        flex-direction: row-reverse;
    }

    .container-tp {
        padding-right: 0.8rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    p {
        font-size: 1.2rem;
    }

    .img_products {
        width: 10rem;
        height: 10rem;
    }

    .btn_products {
        font-size: 1rem;
    }
}

@media (min-width: 1440px) {
    .container_mdm h5 {
        font-size: 28px;
    }

    .mdm {
        padding: 50px;
    }

    .mdm img {
        width: 700px;
        height: 370px;
    }

    .factory {
        padding: 50px;
    }

    .factory h2 {
        font-size: 50px;
    }

    .container_factory h5 {
        width: 45%;
        font-size: 30px;
        padding-right: 50px;
    }

    .container_factory img {
        width: 750px;
    }

    .news {
        padding: 50px;
    }

    .carousel_news .img_card {
        width: 60%;
    }

    .card_new {
        width: 40%;
    }
}