/*=============== 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, 100%, 100%);
  --black-color: hsl(0, 3%, 29%);

  /*========== 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%;
    }

    .bottom_line{
      margin-top: 20px;
    }

}



@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 o contenedor del contacto*/


/* Container for the main content */
.container-contacto {
    width: 80%;
    margin: 50px auto;
}

/* Styling for main heading */
.container-contacto h1 {
    color: #ffffff;
    text-align: center;
    font-size: 50px;
    font-weight: 800;
    margin-bottom: 10px;
}

/* Styling for paragraph text */
.container-contacto p {
    color: #ffffff;
    text-align: center;
    font-size: 25px;
    margin-bottom: 40px;
}

/* Styling for contact box container */
.contact-box {
    background: #706d6d;
    display: flex;
    border-radius: 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.788)),
     url(../img/Portada\ del\ portafolio.png);
     background-position: center center;
     background-repeat: no-repeat;
     background-size: cover;
     background-position: top right;
}

/* Styling for left container inside the contact box */
.container-left {
    flex-basis: 60%;
    padding: 40px 60px;
}

/* Styling for right container inside the contact box */
.container-right {
    flex-basis: 40%;
    padding: 40px 60px;
    background: hsl(207, 95%, 55%);
    color: #ffffff;
    border-radius: 0px 20px 20px 0px;
}

/* Styling for heading inside left container */
.container-left h3 {
    font-size: 25px;
    color: #f8f8f8;
    margin-bottom: 20px;
}

/* Styling for heading inside right container */
.container-right h3 {
    font-size: 25px;
    color: #ffffff;
    margin-bottom: 20px;
}

/* Styling for input rows */
.input-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

/* Styling for input groups inside input rows */
.input-row .input-group {
    flex-basis: 45%;
}

/* Styling for input fields */
input {
    width: 95%;
    border: none;
    color: #353535;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    font-family: "Plus Jakarta Sans", sans-serif;
} 

/* Styling for textareas */
textarea {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    padding: 10px;
    box-sizing: border-box;
}

/* Styling for labels */
label {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    display: block;
    color: #e9dede;
}

/* Styling for buttons */
button {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 600;
    font-size: 15px;
    background: #000000;
    border: none;
    outline: none;
    color: #fff;
    width: 20%;
    height: 40px;
    border-radius: 25px;
    margin-top: 20px;
    transition: all 0.5s ease 0s;
    box-shadow: 0px 5px 10px 0px #0000003a;
    cursor: pointer;
}

/* Hover styling for buttons */
button:hover {
    color: #fff;
    background: hsl(207, 97%, 35%);
    box-shadow: 0px 5px 10px 0px hsla(207, 97%, 35%, 0.431);
}

/* Styling for table cells */
tr td:first-child {
    font-size: 20px;
    font-weight: 600;
    padding-right: 20px;
}

tr td {
    padding-top: 20px;
}

/* Styling for iframes */
iframe {
    width: 100%;
    border: none;
    border-radius: 10px;
    outline: none;
    margin-top: 30px;
}

/* CSS for larger screens (laptop) */
@media only screen and (min-width: 1367px) {
    .container-contacto {
        width: 70%;
    }

    .container-contacto h1 {
        font-size: 50px;
    }

    .container-contacto p {
        font-size: 25px;
    }

    .container-left,
    .container-right {
        padding: 40px;
    }

    .input-row .input-group {
        flex-basis: 48%;
    }

    button {
        width: 30%;
    }
}

/* CSS for larger screens (laptop) */
@media only screen and (max-width: 1366px) {
    .container-contacto {
        width: 70%;
    }

    .container-contacto h1 {
        font-size: 45px;
    }

    .container-contacto p {
        font-size: 22px;
    }

    .container-left,
    .container-right {
        padding: 40px;
    }

    input {
        width: 90%;
    }

    .input-row .input-group {
        flex-basis: 48%;
    }

    button {
        width: 60%;
    }
}

/* CSS for medium-sized screens (tablet) */
@media only screen and (max-width: 1024px) {

    .contact-box {
        flex-direction: column;
    }

    .container-contacto {
        width: 80%;
    }

    .container-contacto h1 {
        font-size: 40px;
    }

    .container-contacto p {
        font-size: 22px;
    }

    .container-left,
    .container-right {
        padding: 30px;
    }

    .input-row {
        flex-wrap: wrap;
    }

    .input-row .input-group {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    button {
        width: 25%;
    }
}

/* CSS for smaller screens (mobile) */
@media (max-width:500px){
  .container-left h3{
    text-align: center;
  }

  .container-right h3{
    text-align: center;
  }
}


@media only screen and (max-width: 767px) {
    .container-contacto {
        width: 90%;
    }

    .container-contacto h1 {
        font-size: 40px;
    }

    .container-contacto p {
        font-size: 18px;
    }

    .container-left,
    .container-right {
        padding: 20px;
    }

    .input-row {
        flex-direction: column; /* Stack input rows vertically */
    }

    .input-row .input-group {
        flex-basis: 100%;
        margin-bottom: 15px;
    }

    input,
    textarea {
        padding: 8px;
    }

    button {
        width: 60%;
    }

    tr td:first-child {
        font-size: 15px;
        font-weight: 600;
        padding-right: 10px;
    }
}