/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.google.com/share?selection.family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;
  
  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --white-color: hsl(0, 11%, 95%);
  --black-color: hsl(0, 6%, 90%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Kanit", sans-serif;
  --biggest-font-size: 2rem;
  --big-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 4rem;
    --big-font-size: 3rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
.main {
    overflow: hidden;
  }
  

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--black-color);
  color: var(--white-color);
  margin: 0; 
  padding: 0;
}





/*Particulas JS diseño*/
#particles-js{
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: -1;
}






/*Prueba de animacion*/

.animacion-zoom {
  opacity: 0;
  transform: scale(0.5);
  transition: all 1s ease-in-out;
}

.animacion-zoom.show {
  opacity: 1;
  transform: scale(1);
}




/*NAV-BAR O Barra de navegación*/

.nav {
    position: fixed;
    height: var(--header-height);
    display: flex;
    justify-content:space-around;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.692),rgba(0, 110, 255, 0.671)); /* Fondo oscuro opaco */
    width: 100%;
    transition: top 0.3s ease; /* Transición suave */
    z-index: 100;
    
  }
  
.nav__logo img{
  width: 120px;
  margin-top: 1px; 
}
     
  .nav__close, 
  .nav__toggle {
    display: flex;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Navigation for mobile devices */
  @media screen and (max-width: 1150px) {

    .nav{
      width: 110%;
      margin-left: -3%;
    }


    .nav__menu {
      position: fixed;
      left: -100%;
      top: 0;
      background-color: rgba(0, 110, 235, 0.315);
      width: 100%;
      height: 100%;
      padding: 6rem 3.5rem 4.5rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: left .4s;
      backdrop-filter: blur(5px); /*Para el efecto BLUR es necesario dejar el background con el RGBA y el color ya se modifica a gusto :3*/
    }
  
    .nav__item {
      transform: translateX(-150px);
      visibility: hidden;
      transition: transform .4s ease-out, visibility .4s;
    }
  
    .nav__item:nth-child(1) {
      transition-delay: .1s;
    }
    .nav__item:nth-child(2) {
      transition-delay: .2s;
    }
    .nav__item:nth-child(3) {
      transition-delay: .3s;
    }
    .nav__item:nth-child(4) {
      transition-delay: .4s;
    }
    .nav__item:nth-child(5) {
      transition-delay: .5s;
    }
  }
  
  .nav__list, 
  .nav__social {
    display: flex;
  }
  
  .nav__list {
    flex-direction: column;
    row-gap: 3rem;
  }
  
  .nav__link {
    position: relative;
    color: var(--white-color);
    font-size: var(--h1-font-size);
    font-weight: var(--font-semi-bold);
    display: inline-flex;
    align-items: center;
    transition: opacity .4s;
  }
  
  .nav__link i {
    font-size: 2rem;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s, visibility .4s;
  }
  
  .nav__link span {
    position: relative;
    transition: margin .4s;
  }
  
  .nav__link span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background-color: var(--white-color);
    transition: width .4s ease-out;
  }
  
  /* Animation link on hover */
  .nav__link:hover span {
    margin-left: 2.5rem;
  }
  
  .nav__link:hover i {
    opacity: 1;
    visibility: visible;
  }
  
  .nav__link:hover span::after {
    width: 100%;
  }
  
  /* Sibling fade animation */
  .nav__list:has(.nav__link:hover) .nav__link:not(:hover) {
    opacity: .4;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }
  
  .nav__social {
    column-gap: 1rem;
  }
  
  .nav__social-link {
    color: var(--white-color);
    font-size: 1.5rem;
    transition: transform .4s;
  }
  
  .nav__social-link:hover {
    transform: translateY(-.25rem);
  }
  
  /* Show menu */
  .show-menu {
    left: 0;
  }
  
  /* Animation link when displaying menu */
  .show-menu .nav__item {
    visibility: visible;
    transform: translateX(0);
  }

  .scroll-up {
    transform: translateY(0);
    transition: transform 0.3s ease-in-out;
}

.scroll-down {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}

  
  
  /* Show menu */
  
  .show-menu{
    right: 0;
  }

  ul {
    list-style: none;
  }
  
  a {
    text-decoration: none;
  }

  
  /*=============== BREAKPOINTS ===============*/
/* For large devices */
@media screen and (min-width: 1150px) {
    .container {
      margin-inline: auto;
    }
  
   
    .nav__toggle, 
    .nav__close {
      display: none;
    }
  
    .nav__link {
      font-size: var(--normal-font-size);
    }
  
    .nav__link i {
      font-size: 1.5rem;
    }
  
    .nav__list {
      flex-direction: row;
      column-gap: 3.5rem;
    }
  
    .nav__menu {
      display: flex;
      align-items: center;
      column-gap: 3.5rem;
    }
  }

  /*=============== BREAKPOINTS ===============*/
/* For medium devices */

@media screen and (min-width: 768px) {

    .nav__menu{
      width: 50%;
    }
    
  }
  
  
  /* For large devices */
  
  @media screen and (min-width: 1150px) {
  
    .nav{
      height: calc(var(--header-height) + 1rem);
    }
  
    .nav__toggle,
    .nav__close{
      display: none;
    }
  
    .nav__menu{
      width: initial;
    }
    .nav__list{
      flex-direction: row;
      column-gap: 4rem;
    }
  

  }

  
  
  
/* SECCIÓN C O N T A C T O / footer o pie de pagina */
/*.contacto{
    background:
        linear-gradient(rgb(48, 47, 47), rgba(0, 12, 103, 0.63)),
        url(../img/Fibra\ optica.jpg);
        background-size: cover;
        color: #fff;
        margin-top: 100px;
        padding: 80px 20px;
  }
  .contacto .contenedor-contacto{
    max-width: 1100px;
    margin: auto;
  }
  .contacto h2{
    text-align: center;
    padding-bottom: 30px;
  }
  .contacto .contenedor-contacto .fila{
    display: flex;
  }
  .contacto .contenedor-contacto .fila .col{
    width: 50%;
  }
  .contacto .contenedor-contacto .info{
    margin-bottom: 30px;
    border-left: 3px solid #8d8d8d;
    padding-left: 8px;
  }
  .contacto .contenedor-contacto .info p{
    color: #8d8d8d;
  }
  .contacto input, .contacto textarea{
    width: 100%;
    border: none;
    background-color: transparent;
    padding: 10px;
    border: 1px solid #8d8d8d ;
    margin-bottom: 20px;
    outline: none;
    color: #00aeff;
  }
  .contacto .btn{
    background-color: none;
    padding: 5px 40px;
    border: 2px solid;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(to right, #00a2ff, #2c2a2c);
  }


  .iso{
    align-items: center;   
    display: flex;
    flex-direction: column;
    margin: 0 10px;
  }

  .iso img{
    width: 100px;
    height: auto;
  }


  
  footer{
    background-color: #000;
    color: #fff;
    padding: 7px 0;
    font-size: 14px;
    text-align: center;
  }*/


  /*=====RESPONSIVE======*/

  @media screen and (max-width:600px) {

    

    .titulo-1{
      margin-top: 210px;
    }
  
    .parrafo-box{
      margin-top: 210px;
    }

    .cta{
      margin-left: 38%;
    }

}



@media (max-width: 500px) {
  header {
    padding: 1em;
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
  }
  header ul {
    flex-direction: column;
  }
  header li {
    width: min-content;
    margin-right: 0;
  }
  .card-info h1 {
    font-size: 3rem;
  }
}

/*=====Nuevo footer para la parte de inicio======*/

footer{
  width: 100%;
  background: linear-gradient(to right,#00093c, #152c3b);
  color: #fff;
  padding: 50px 0 30px;
  font-size: 13px;
  line-height: 20px;
}
.row{
  width: 85%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.col{
  flex-basis: 25%;
  padding: 10px;
}
.col:nth-child(2), .col:nth-child(3){
  flex-basis: 15%;
}
.footer_logo{ /*El general y la 45001*/
  width: 90px;
  position: relative;
  top: -23px;
  left: -18px;
}
/*individualizar logos ISO*/


.footer_logo:nth-child(1){ /*ISO 9001*/
  width: 262px;
  left: -65px;
}

.footer_logo:nth-child(2){ /*ISO 45001*/
  width: 20px;
  
}

.footer_logo:nth-child(3){ /*ISO 14001*/
  margin-left: 7px;
  width: 80px;
}

.footer_about-codigo{
    position: relative;
    top: -50px;
    margin-left: 2px;
    font-weight: 500;
}
  
.footer_about{
  position: relative;
  top: -23px;
}
.col h3{
  width: fit-content;
  margin-bottom: 40px;
  position: relative;
}
.footer_email{
  width: fit-content;
  border-bottom: 1px solid #34a1fa;
  margin: 20px 0;
}
.col ul li{
  list-style: none;
  margin-bottom: 12px;
}
.col ul li a{
  text-decoration: none;
  color: #fff;
}
.col form{
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1379ff;
  margin-bottom: 50px;
}
.col form .icon{
  font-size: 18px;
  margin-right: 10px;
}
.col form input{
  width: 100%;
  background: transparent;
  color: #ccc;
  border: 0;
  outline: none;
}
.col form button{
  background: transparent;
  border: 0;
  outline: none;
  cursor: pointer;
}
.col form button .icon_right{
  font-size: 16px;
  color: #ccc;
}
.col .social_icons .social_icon{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(to top,rgb(0, 102, 255), rgb(34, 34, 34));
  margin-right: 15px;
  padding: 5px;
  cursor: pointer;
}
hr{
  width: 90%;
  border: 0;
  border-bottom: 1px solid #ccc;
  margin: 20px auto;
}
footer .copyright{
  text-align: center;
}
.bottom_line{
  width: 100%;
  height: 5px;
  background: #767676;
  border-radius: 3px;
  position: absolute;
  top: 25px;
  left: 0;
  overflow: hidden;
}
.bottom_line span{
  width: 15px;
  height: 100%;
  background: #3572f6;
  border-radius: 3px;
  position: absolute;
  top: 0;
  left: 10px;
  animation: moveline 2s linear infinite;
}
@keyframes moveline{
  0%{
      left:-20px;
  }
  100%{
      left:100%;
  }
}

@media (max-width:500px){
  .bottom_line{
    margin-top: 20px;
  }
}

/*Diseño del main de la seccion de noticias*/


/* MAIN STYLES */
:root{
    --Soft-orange: hsl(219, 77%, 62%);
    --Soft-red: hsl(219, 91%, 42%);
        
    --Off-white: hsl(36, 100%, 99%);
    --Grayish-blue: hsl(233, 8%, 79%);
    --Dark-grayish-blue: hsl(236, 13%, 42%);
    --Very-dark-blue: hsl(240, 100%, 5%);
}
.contendor-news{
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 30px;
    grid-template-areas: "main main new"
                         "main main new"
                         "top-new top-new top-new";
}


main{
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap:20px;
    background: var(--Off-white);
}
main picture{
    height: 60%;
}

.image-web{
    width: 100%;
    height: 100%;
}

.main-container{
    height: 40%;
    display: flex;
    gap:30px;
    padding: 10px 20px;
}
.main-title{
    font-weight: 800;
    font-size: 35px;
    line-height: 1;
    color: var(--Very-dark-blue);
    width: 50%;
}
.main-info{
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.main-text{
    font-weight: 400;
    line-height: 1.5; /* Separa las lineas de texto */
    color: var(--Dark-grayish-blue);
}
.btn{
    border-style: none;
    color: var(--Off-white);
    text-transform: uppercase; /* Conveirte el texto en mayusculas*/
    letter-spacing: 3px; /* Separación de letras de cada palabra*/
    font-size: 11px;
    font-weight: 700;
    padding: auto 10px;
    background: var(--Soft-red);
    width: 50%;
    height: 25%;
    cursor: pointer;
}
.btn:hover{
    background: var(--Very-dark-blue);
}



/* NEWS STYLES*/


.news{
    grid-area: new;
    background: var(--Very-dark-blue);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
}
.news h2{
    font-size: 2rem;
    color: var(--Soft-orange);
}
.new{
    padding: 2rem 0;
}
.new:nth-child(3){
    border-top: 1px solid var(--Off-white);
    border-bottom: 1px solid var(--Off-white);
}
.new:nth-child(4){
    padding-bottom: 0;
}
.new-title{
    font-size: 1rem;
    color: var(--Off-white);
    margin-bottom: 10px;
    cursor: pointer;
}
.new-title:hover{
    color:var(--Soft-orange);
}
.new-text{
    font-weight: 400;
    color: var(--Grayish-blue);
}

.news-2 {
    padding: 20px;
    background-color: #03041f;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.news-2 h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.new-2 {
    margin-bottom: 20px;
}

.new-media {
    width: 80%;
    height: auto;
    border-radius: 8px;
    margin-left: 25px;
}

.new-media + .new-media {
    margin-top: 20px;
}

iframe.new-media {
    margin-left: 30px;
}





/* TOP NEW STYLE */
.top-news{
    grid-area: top-new;
    display: flex;
    width: 100%;
    gap:30px;
}
.top-new{
    display: flex;
    width: 33.33%;
    align-items: center;
    margin: 0;
} 
.top-image{
    height: 100px;
    width: 40%;
    object-fit: cover;
}
.top-info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 20px;
    gap: 6px;
}
.top-number{
    color: var(--Grayish-blue);
    font-weight: 700;
    font-size: 30px;
}
.top-title{
    color: var(--Very-dark-blue);
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
}
.top-title:hover{
    color: var(--Soft-red);
}
.top-text{
    font-weight: 400;
    line-height: 1.5;
    color: var(--Dark-grayish-blue);
}

@media (max-width: 800px) {
  
    
    .contendor-news, .main-container{
        display: flex;
        flex-direction: column;
    }
    .main-title, .main-info{
        width: 100%;
        gap:30px
    }
    .btn{
        padding: 14px 20px;
        margin-bottom: 30px;
    }
    .top-news{
        flex-direction: column;
        margin-top: 30px;
    }
    .top-image{
        height: 110px;
    }
    .top-new{
        width: 100%;
    }
}

@media (min-width: 801px){
    .backdrop, .mobile-menu{
        display: none;
    }
}

/*Diseño de la segunda parte del articulo de la noticia*/

/* main container left */
.segundo-arti a{
    padding: 15px 0;
    display: block;
    transition: all 0.5s;
}

.segundo-arti span{
    transition: padding-left 0.5s;
}

.segundo-arti a:hover span{
    padding-left: 5px;
}

.segundo-arti a:hover{
    color: #0044ff;
}


.main-container-left{
    padding: 30px 10px;
}

.main-container-left > h2{
    padding: 15px 0 15px 30px;
    color: black;
}

.main-container-left h3{
    padding: 10px 0;
    font-size: 18px;
    font-family: var(--heading);
    color: black;
}

.main-container-left p{
    font-size: 15px;
    font-weight: 300;
    color: black;
}

.main-container-left article{
    padding: 10px;
}

.container-top-left{
    padding: 15px 30px;
}

.container-bottom-left{
    background: #b9b9b944;
    margin: 15px 30px;
}

.container-bottom-left p{
    color: #000000;
}
.container-bottom-left img{
    width: 100%;
}

/*** main container right */

.main-container-right{
    padding: 30px 10px;
}

.main-container-right > h2{
    padding: 15px 0 15px 30px;
    color: #0044ff;
}

.main-container-right article{
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    padding: 15px 0;
    border-bottom: 1px solid #0052ce;
}

.main-container-right article:last-child{
    border-bottom: none;
}

.main-container-right img{
    width: 100px;
    height: 100px;
    align-self: center;
}

.main-container-right h4{
    text-align: center;
    text-transform: uppercase;
    font-weight: 300;
    font-size: 12px;
    align-self: center;
    color: #00093c;
}

.main-container-right article h2{
    font-size: 18px;
    padding: 10px 0;
    font-family: var(--heading);
    color: black;
}

.main-container-right article p{
    font-size: 15px;
    font-weight: 300;
    color: black;
}

.main-container-right article div{
    margin-right: 10px;
}

@media(min-width: 992px){
    .segundo-arti{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(min-width: 1080px){
    .segundo-arti{
        grid-template-columns: 1fr 2fr;
    }
}



/*Diseño del Slider para banner de noticias*/

 /*Slider de los trabajadores y del Ceo matrix telcom*/
 .center {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  z-index: -1;
}

.wrapper {
  display: flex;
  grid-gap: 1em;
  overflow: hidden;
  width: 55em;
  
}
.wrapper > .inner {
  display: flex;
  grid-gap: 1em;
  transition: all 1s ease-in-out;
}

.card-td {
  border-radius: 0.5em;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
  
}
.card-td > img {
  border-top-right-radius: inherit;
  border-top-left-radius: inherit;
  display: block;
  object-fit: cover;
  aspect-ratio: 10/9;
  width: 17.5em;
  
}
.card-td > .content {
  background: linear-gradient(to right, rgb(7, 7, 7), rgb(3, 107, 243));
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  padding: 1em;
  text-align: center;
}
.card-td > .content > h1, .card-td > .content > h3 {
  margin: 0.35em 0;
}
.card-td > .content > h1 {
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}
.card-td > .content > h3 {
  color: #ccc;
  font-size: 0.9rem;
  font-weight: 300;
}

.map {
  margin-top: 1em;
}
.map > button {
  all: unset;
  background: #072138;
  cursor: pointer;
  margin: 0 0.125em;
  position: relative;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border-radius: 100%;
  height: 1em;
  width: 1em;
}
.map > button.active:after {
  background: #fdfeff;
  content: "";
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  border-radius: 100%;
  height: 0.5em;
  width: 0.5em;
}

@media (max-width:500px){
    .center{
        display:none;
    }
}


