* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Para que el scrolleo en la one page sea suave */
  scroll-behavior: smooth;
}

/*Reglas Generales de CSS de toda la página*/
.btn-cancel {
  width: 120px;
  height: 40px;
  font-size: 16px;
  border-radius: 20px;
  display: inline-block;
  background-color: #FFFFFF;
  font-weight: 300;
  text-align: center;
  line-height: 25px;
  color: #000000;
  border: none;
  cursor: pointer;
}

.mdm2 {
  background-color: #000000;
}

body {
  font-family: 'Inter', sans-serif;
  color: #FFFFFF;
  line-height: 1.5;
}

h1 {
  font-size: 20px;
  font-weight: 300;
}

p {
  font-size: 14px;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Para prevenir que las imágenes "rompan" la página */
img {
  max-width: 100%;
}

main {
  margin: auto;
  background-color: black;
}

/*Header*/
header {
  background-color: #000000;
}

.logo_header {
  padding: 10px 0 0 10px;
  width: 50px;
  height: 50px
}

/*Section de productos */
.products {
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  height: auto;
}

.container_products_1 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

article {
  color: #FFFFFF;
  width: 300px;
  height: 150px;
  display: flex;
  align-items: center;
  border-radius: 15px;
  padding: 10px;
  margin: 10px 0;
  cursor: pointer;
  transition: transform .3s;
  box-shadow: 5px 5px 10px 0px rgba(50, 50, 50, 0.4);
}

.blue {
  background-color: #0148D3;
}

.black {
  background-color: #302F2F;
}

.img_products {
  width: 120px;
  height: 85px;
  object-fit: contain
}

.container_article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

article:hover {
  transform: scale(1.05);
}

.container_article h5 {
  font-size: 14px;
  font-weight: 300;
}

.container_article p {
  font-size: 10px;
  font-weight: 300;
  margin: 10px 0;
}

.btn_products {
  padding: 6px 14px;
  border: 1px solid #fff;
  border-radius: 20px;
  font-size: 13px;
  transition: 0.3s;
}

.btn_products:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.btn_products:active {
  background-color: #0091FF;
  border: 1px solid #0091FF;
  ;
}

/*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;
} */
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;
}

a.enlace_pixart {
  text-decoration: underline;
}

/*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;
}

.popup {
  border: 0.5px solid #c2c2c2;
  background-color: white;
  color: #000000;
  width: 300px;
  position: relative;
  border-radius: 16px;
  top: 0;
}

.open-popup {
  visibility: visible;
  top: 150px;
  transform: scale(1);
}

.popup h3 {
  background-color: #d6d6d6;
  color: black;
  height: 40px;
  width: 100%;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 10px 20px;
  line-height: 20px;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
}

.popup th,
.popup td {
  text-align: left;
  font-size: 10px;
  padding: 0.9375rem 0.5rem;
}

.popup th {
  padding-left: 10px 5px;
}

.popup td {
  padding: 0 10px;
}

.popup .btn-cancel {
  width: 90px;
  height: 25px;
  display: inline-block;
  background-color: #000000;
  font-size: 10px;
  font-weight: 300;
  border-radius: 7.5px;
  text-align: center;
  line-height: 25px;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
}

.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-bottom: 10px;
}

.popup table {
  display: flex;
  justify-content: space-around;
}

tbody,
td,
tfoot,
th,
thead,
tr {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
  width: 100%;
}

.popup table tbody tr {
  padding: 0.25rem 0.75rem;
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-nav {
  font-weight: 300;
}

.navbar-nav .nav-link {
  position: relative;
  color: rgb(63, 63, 63);
  transition: all 0.3s ease;
  font-weight: 400;
}

.navbar-nav .nav-link:hover {
  color: #000;
  font-size: 1.02rem;
  font-weight: 500;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

.navbar-nav .nav-link.active {
  color: #000;
  font-weight: 600;
}

.navbar-nav .nav-link.active::after {
  width: 100%;
}

@media (min-width: 720px) {
  .container_products_1 {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 750px;
    margin: auto;
  }

  .container_products_2 {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    width: 750px;
    height: 200px;
    margin: auto;
  }
}

@media (min-width: 1024px) {

  body {
    line-height: 1.2;
  }

  h1 {
    font-size: 50px;
  }

  .logo_header {
    padding: 10px 0 0 10px;
    width: 100px;
    height: 100px
  }

  .container_products_1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 950px;
    padding: 20px 0;
    margin: 25px 0;
  }

  article {
    width: 49%;
    height: 300px;
    border-radius: 28px;
    padding: 30px;
  }

  .container_products_2 {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 950px;
    height: 350px;
    padding: 20px 0;
    margin: 25px 0;
  }

  .container_article h5 {
    font-size: 32px;
  }

  .img-wrapper {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .img_products {
    width: 250px;
    height: 180px;
    object-fit: contain
  }

  .container_article p {
    font-size: 16px;
  }

  .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;
  }

  .popup h3 {
    height: 60px;
    line-height: 40px;
    font-size: 20px;
    font-weight: 500;
  }

  .popup th,
  .popup td {
    text-align: left;
    font-size: 15px;
    padding: 5px 15px;
  }

  .popup .btn-cancel {
    width: 180px;
    height: 40px;
    font-size: 16px;
    border-radius: 7.5px;
    margin: 1rem 0 0.5rem
  }

  .container_popup {
    width: 100%;
    position: absolute;
    top: -700px;
    display: flex;
    justify-content: center;
    transform: scale(0.1);
    visibility: hidden;
    visibility: visible;
    transition: transform 0.4s, top 0.4s;
  }

  .popup {
    width: 750px;
  }

  .open-popup {
    visibility: visible;
    top: 430px;
    transform: scale(1);
  }

  .popup table tbody tr {
    padding: 0.5rem 0.75rem;

  }
}

@media (min-width: 1440px) {

  .products {
    padding: 50px;
  }

  .container_products_1 {
    width: 1400px;
  }

  .container_products_2 {
    width: 1400px;
  }

  .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%;
  }

  .popup th,
  .popup td {
    text-align: left;
    font-size: 20px;
    padding: 5px 5px;
  }

  .popup {
    width: 900px;
  }

  .open-popup {
    visibility: visible;
    top: 310px;
    transform: scale(1);
  }
}

.products {
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
  text-align: center;
}

.products h1 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 2rem;
  line-height: 1.3;
  max-width: 1320px;

}

.container_products_1 {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1320px;
  margin: 0 auto;
}

/* Tarjeta producto */
.products article {
  flex: 1 1;
  max-width: 320px;
  min-height: 280px;
  background-color: #302f2f;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .3s;
}

.products article:hover {
  transform: translateY(-5px);
}

.products h2 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 500;
}

.img_products {
  width: 150px;
  height: auto;
  margin-bottom: 15px;
}

.container-information {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.container-tp p {
  font-size: 14px;
  color: #ccc;
}

.content-btns {
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .products h1 {
    font-size: 28px;
  }

  .products article {
    flex: 1 1 45%;
    max-width: 400px;
  }
}

@media (min-width: 1024px) {
  .products h1 {
    font-size: 36px;
  }

  .products article {
    flex: 1 1 30%;
    max-width: 420px;
  }
}

@media (min-width: 1440px) {
  .products h1 {
    font-size: 42px;
  }

  .container_products_1 {
    gap: 30px;
    max-width: 1320px;
  }

  .products article {
    max-width: 450px;
    min-height: 350px;
    padding: 30px;
  }

  .img_products {
    width: 200px;
  }

  .container-tp p {
    font-size: 16px;
  }

  .btn_products {
    font-size: 15px;
    padding: 8px 20px;
  }
}