:root {
  --color-font: rgb(0, 163, 238);
}

* {
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

.hamburger-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
    position: relative;
    color: inherit;
    line-height: 1;
}

header {
  position: fixed;
  width: 100%;
  display: flex;
  justify-items: center;
  align-content: center;
  margin-top: 1rem;
  z-index: 7;
}

.header-container {
  background-color: #ffffff;
  padding: 0.5rem;
  margin: 0 auto;
  width: fit-content;
  color: rgb(0, 0, 0);
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-menu a {
  text-decoration: none;
}


.menu-link {
  color: #000000;
}

.menu-link.active {
  color: #3498db !important; 
  font-weight: bold;
  position: relative;
}

.menu-link.active::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  background-color: #3498db;
  border-radius: 2px;
}

.menu-button {
  background-color: #3498db;
  color: rgb(255, 255, 255);
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

/*hOME*/
div.home {
  position: relative;
  display: flex;
  justify-content: space-around;
  margin-bottom: 5%;
  flex-wrap: wrap;
}

div.home_background {
  width: 100%;
}

div.home_background img {
  width: 100%;
}

div.home_txt {
  position: absolute;
  text-align: center;
  left: 50%;
  top: 80%;
  font-size: 20px;
  width: 50%;
}

div.home_txt h1 span {
  color: var(--color-font);
  margin-left: 30%;
}


div.servicios {
  position: relative;
  display: flex;
  justify-content: space-around;
  margin-bottom: 2%;
  flex-wrap: wrap;
}

div.servicios_titulo {
  position: absolute;
  color: var(--color-font);
  top: -5%;
}

div.servicios_background {
  width: 100%;
}

div.servicios_background img {
  width: 100%;
}

div.servicios_slogan {
  position: absolute;
  text-align: center;
  align-items: center;
  left: -1%;
  top: 35%;
  font-size: 25px;
}

div.servicios_slogan h2 span {
  color: var(--color-font);
  margin-left: 10%;
}

div.servicios_text {
  position: absolute;
  left: 5%;
  top: 50%;
  justify-content: center;
  font-size: 25px;
}

div.tec {
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

div.tec_slogan {
  position: absolute;
  text-align: center;
  align-items: center;
  top: 20%;
  color: #ffffff;
  font-size: 50px;
}

div.tec_background {
  position: relative;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  width: 100%;
  z-index: -4;
}

div.tec_background img {
  width: 100%;
}

div.telefono {
  position: absolute;
  left: 43%;
  top: 40%;
  width: 40%;
}

div.telefono img {
  height: 30%;
  width: 40%;
  flex-wrap: wrap;
}

/*textos tec*/
div.monitoreo {
  position: absolute;
  left: 10%;
  top: 45%;
  color: #fafafa;
  font-size: 15px;
}

div.icono_monitoreo {
  position: absolute;
  left: 30%;
  top: 45%;
  img {
    width: 95px;
  }
}

div.app {
  position: absolute;
  left: 5%;
  top: 60%;
  color: #fafafa;
}

div.icono_app {
  position: absolute;
  left: 30%;
  top: 60%;
  img {
    width: 95px;
  }
}

div.reporte {
  position: absolute;
  left: 5%;
  top: 75%;
  color: #fafafa;
}

div.icono_reporte {
  position: absolute;
  left: 30%;
  top: 75%;
  img {
    width: 95px;
  }
}

div.capacitacion {
  position: absolute;
  right: 10%;
  top: 45%;
  color: #fafafa;
}

div.icono_capacitacion {
  position: absolute;
  right: 30%;
  top: 45%;
  img {
    width: 95px;
  }
}

div.ia {
  position: absolute;
  right: 10%;
  top: 60%;
  color: #fafafa;
}

div.icono_ia {
  position: absolute;
  right: 30%;
  top: 60%;
  img {
    width: 95px;
  }
}

div.call {
  position: absolute;
  right: 10%;
  top: 75%;
  color: #fafafa;
}

div.icono_call {
  position: absolute;
  right: 30%;
  top: 75%;
  img {
    width: 95px;
  }
}

/*Footer*/
footer {
  background-color: #0f0f0f;
  color: #fff;
  padding: 20px 0 10px 0;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 20px 40px;
}

.footer-section {
  flex: 1;
  text-align: center;
}

.footer-section h5 img,
.footer-section h6 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #fff;
}

#mainMenu {
  list-style: none;
  padding: 0;
  margin: 0 0 0 150px;
  display: flex;
  gap: 2rem;
  align-items: center;
}

#mainMenu li {
  margin-bottom: 5px;
}

#mainMenu li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-section:nth-child(3) ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section:nth-child(3) li {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #ccc;
}

.footer-bottom p:first-child {
  margin-bottom: 5px;
}


@media (max-width: 992px) {
  header {
    margin-top: 0.5rem;
  }

  .header-container {
    width: 78%;
  }

  .main-menu {
    gap: 1.5rem;
  }

  .menu-button {
    font-size: 14px;
  }

  div.home_txt {
    left: 45%;
    top: 80%;
    font-size: 10px;
  }

  div.servicios_titulo {
    top: -8%;
  }

  div.servicios_slogan {
    left: -5%;
    top: 25%;
    font-size: 20px;
  }

  div.servicios_text {
    top: 60%;
    font-size: 20px;
  }

  div.tec_slogan {
    position: absolute;
    top: 15%;
    margin: 20px 0;
    color: #ffffff;
    font-size: 25px;
  }

  div.telefono {
    position: absolute;
    left: 30%;
    top: 40%;
    text-align: center;
  }

  div.telefono img {
    height: 50%;
    width: 50%;
    max-width: 300px;
  }

  div.monitoreo {
    position: absolute;
    color: #ffffff;
    font-size: 10px;
    text-align: center;
    left: 10%;
    top: 40%;
  }
  div.app {
    position: absolute;
    color: #ffffff;
    font-size: 10px;
    text-align: center;
    left: 5%;
    top: 60%;
  }
  div.reporte {
    position: absolute;
    left: 5%;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
    top: 75%;
  }

  div.icono_monitoreo {
    position: absolute;
    top: 40%;
    left: 32%;
    img {
      width: 40px;
    }
  }
  div.icono_app {
    position: absolute;
    left: 32%;
    top: 60%;
    img {
      width: 40px;
    }
  }

  div.icono_reporte {
    position: absolute;
    left: 32%;
    top: 75%;
    img {
      width: 40px;
    }
  }

  div.capacitacion {
    position: absolute;
    right: 10%;
    top: 40%;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
  }

  div.ia {
    position: absolute;
    right: 10%;
    top: 60%;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
  }
  div.call {
    position: absolute;
    right: 10%;
    top: 75%;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
  }

  div.icono_capacitacion {
    position: absolute;
    right: 30%;
    top: 40%;
    img {
      width: 40px;
    }
  }

  div.icono_ia {
    position: absolute;
    right: 30%;
    top: 60%;
    img {
      width: 40px;
    }
  }

  div.icono_call {
    position: absolute;
    right: 30%;
    top: 75%;
    img {
      width: 40px;
    }
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 20px;
  }

  #mainMenu {
    margin: 20px 0 0 0;
    justify-content: center;
  }

  .footer-section {
    width: 100%;
  }
}

@media (max-width: 768px) {
 
div.header-container {
        position: relative;
        background: none;
       
    }
    
    
    .hamburger-icon {
        display: block;
        position: absolute;
        left: -14%;
        top: 90%;
        transform: translateY(-50%);
        background: white;
        color: #000000;
    }
    
    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgb(255, 255, 255);
        flex-direction: column;
        justify-content: flex-start;
        padding: 70px 20px 20px;
        gap: 5px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 2px 0 15px rgb(0, 162, 255);
        overflow-y: auto;
        margin: 0;
    }
    
    .main-menu.menu-open {
      position: fixed;
        left: 0;

    }
    
   
    .hamburger-icon.menu-open {
        position: fixed;
        left: 33%;
        top: 20px;
        font-size: 32px;
        z-index: 1001;
        color: #000000;
    }
    

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .main-menu .menu-link {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: inherit;
        display: block;
        transition: background-color 0.2s;
    }
    
    .main-menu .menu-link:hover {
        background-color: #f5f5f5;
    }
    
    .main-menu .menu-link:last-child {
        border-bottom: none;
    }
    
    .main-menu .menu-button {
        margin-top: 20px;
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        cursor: pointer;
    }
    
    .main-menu,
    .main-menu * {
        pointer-events: auto !important;
    }


  div.home_txt {
    position: relative;
    left: 55%;
    top: -20%;
    font-size: 7px;
    width: 40%;
  }

  div.servicios_titulo {
    position: relative;
    top: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  div.servicios_slogan,
  div.servicios_text {
    position: relative;
    left: 0;
    top: 0;
    font-size: 18px;
    margin: 20px auto;
    text-align: center;
    width: 90%;
  }

  div.servicios_slogan h2 span {
    margin-left: 5%;
  }

  div.tec_slogan {
    position: absolute;
    top: 20%;
    margin: 20px 0;
    color: #ffffff;
    font-size: 20px;
  }

  div.telefono {
    position: absolute;
    left: 30%;
    top: 45%;
    margin: 20px auto;
    text-align: center;
  }

  div.telefono img {
    height: 50%;
    width: 40%;
    max-width: 300px;
  }

  div.monitoreo {
    position: absolute;
    color: #ffffff;
    font-size: 6px;
    text-align: center;
    left: 15%;
    top: 50%;
  }
  div.app {
    position: absolute;
    color: #ffffff;
    font-size: 6px;
    text-align: center;
    left: 12%;
    top: 65%;
  }
  div.reporte {
    position: absolute;
    left: 15%;
    text-align: center;
    color: #ffffff;
    font-size: 6px;
    top: 81%;
  }

  div.icono_monitoreo {
    position: absolute;
    top: 50%;
    left: 32%;
    img {
      width: 45px;
    }
  }
  div.icono_app {
    position: absolute;
    left: 32%;
    top: 65%;
    img {
      width: 45px;
    }
  }

  div.icono_reporte {
    position: absolute;
    left: 32%;
    top: 80%;
    img {
      width: 45px;
    }
  }

  div.capacitacion {
    position: absolute;
    right: 15%;
    top: 50%;
    text-align: center;
    color: #ffffff;
    font-size: 6px;
  }
  div.ia {
    position: absolute;
    right: 16%;
    top: 65%;
    text-align: center;
    color: #ffffff;
    font-size: 6px;
  }
  div.call {
    position: absolute;
    right: 15%;
    top: 80%;
    text-align: center;
    color: #ffffff;
    font-size: 6px;
  }

  div.icono_capacitacion {
    position: absolute;
    right: 30%;
    top: 50%;
    img {
      width: 40px;
    }
  }

  div.icono_ia {
    position: absolute;
    right: 30%;
    top: 65%;
    img {
      width: 40px;
    }
  }

  div.icono_call {
    position: absolute;
    right: 30%;
    top: 80%;
    img {
      width: 40px;
    }
  }

  .footer-section h5 img,
  .footer-section h6 {
    font-size: 16px;
  }

  #mainMenu li a {
    font-size: 13px;
  }

  .footer-section:nth-child(3) li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  
 div.header-container {
        position: relative;
        background: none;
       
    }    
    
    .hamburger-icon {
        display: block;
        position: absolute;
        left: -14%;
        top: 90%;
        transform: translateY(-50%);
        background: white;
        color: #000000;
    }
    
    /* Estado inicial del menú - OCULTO */
    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgb(255, 255, 255);
        flex-direction: column;
        justify-content: flex-start;
        padding: 70px 20px 20px;
        gap: 5px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        box-shadow: 2px 0 15px rgb(0, 162, 255);
        overflow-y: auto;
        margin: 0;
    }
    
   
    .main-menu.menu-open {
        left: 0;
    }
    
    .hamburger-icon.menu-open {
        position: fixed;
        left: 68%;
        top: 20px;
        font-size: 32px;
        z-index: 1001;
        color: #000000;
    }
    
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }
    
    .main-menu .menu-link {
        font-size: 16px;
        padding: 12px 16px;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: inherit;
        display: block;
        transition: background-color 0.2s;
    }
    
    .main-menu .menu-link:hover {
        background-color: #f5f5f5;
    }
    
    .main-menu .menu-link:last-child {
        border-bottom: none;
    }
    
    .main-menu .menu-button {
        margin-top: 20px;
        padding: 12px 20px;
        font-size: 14px;
        width: 100%;
        cursor: pointer;
    }
    
    .main-menu,
    .main-menu * {
        pointer-events: auto !important;
    }

  div.home_txt h1 {
    font-size: 1.5em;
  }

  div.servicios_slogan h2 {
    font-size: 1.3em;
  }

  div.tec_slogan {
    position: absolute;
    top: 10%;
    font-size: 15px;
    color: #f7f7f7;
  }

  div.telefono {
    position: absolute;
    left: 30%;
    top: 35%;
    margin: 20px auto;
    text-align: center;
  }

  div.telefono img {
    height: 50%;
    width: 40%;
    max-width: 300px;
  }

  div.monitoreo {
    position: absolute;
    color: #ffffff;
    font-size: 5px;
    text-align: center;
    left: 10%;
    top: 40%;
  }
  div.app {
    position: absolute;
    color: #ffffff;
    font-size: 5px;
    text-align: center;
    left: 5%;
    top: 60%;
  }
  div.reporte {
    position: absolute;
    left: 5%;
    text-align: center;
    color: #ffffff;
    font-size: 5px;
    top: 75%;
  }

  div.icono_monitoreo {
    position: absolute;
    top: 40%;
    left: 32%;
    img {
      width: 20px;
    }
  }
  div.icono_app {
    position: absolute;
    left: 32%;
    top: 60%;
    img {
      width: 20px;
    }
  }

  div.icono_reporte {
    position: absolute;
    left: 32%;
    top: 75%;
    img {
      width: 20px;
    }
  }

  div.capacitacion {
    position: absolute;
    right: 10%;
    top: 40%;
    text-align: center;
    color: #ffffff;
    font-size: 5px;
  }
  div.ia {
    position: absolute;
    right: 10%;
    top: 60%;
    text-align: center;
    color: #ffffff;
    font-size: 5px;
  }
  div.call {
    position: absolute;
    right: 10%;
    top: 75%;
    text-align: center;
    color: #ffffff;
    font-size: 5px;
  }

  div.icono_capacitacion {
    position: absolute;
    right: 30%;
    top: 40%;
    img {
      width: 20px;
    }
  }

  div.icono_ia {
    position: absolute;
    right: 30%;
    top: 60%;
    img {
      width: 20px;
    }
  }

  div.icono_call {
    position: absolute;
    right: 30%;
    top: 75%;
    img {
      width: 20px;
    }
  }

  .footer-content {
    padding: 15px;
  }

  .footer-section h5 img,
  .footer-section h6 {
    font-size: 14px;
  }
}
