/* service-website
  001 - generales
  002 - nabbar
*/

/* 001 - generales */

html {
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;    
    font-weight: 500;
    font-style: normal;
    scroll-behavior: smooth;
}
    
*,
*::after,
*::before {
   box-sizing: inherit;
}
    
body {
   margin: 0;
   padding: 0;
   overflow-x: hidden;
}

/* CONTAINER GENERAL */
.nav_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 2rem;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* LOGO */
.nav_logo img {
  height: 70px;
}

/* ENLACES DESKTOP */
.nav_links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav_links li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav_links li a:hover {
  color: #0077cc;
}

/* BOTÓN HAMBURGUESA */
.nav_toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.nav_bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* MENÚ MÓVIL */
.nav_mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  padding: 1rem 2rem;
  transform: translateY(-150%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  pointer-events: none;
}

.nav_mobile.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav_mobile_links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav_mobile_links li a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  font-weight: 500;
}

/* ANIMACIÓN BOTÓN HAMBURGUESA ACTIVO */
.nav_toggle.active .nav_bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav_toggle.active .nav_bar:nth-child(2) {
  opacity: 0;
}

.nav_toggle.active .nav_bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav_links {
    display: none;
  }

  .nav_toggle {
    display: flex;
  }
}

/* header */
.carousel{
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}

.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 3.5rem;
    font-weight: bold;
    line-height: 1;
}
.carousel .list .item .topic{
    color: #064fad;
    text-shadow: 1px 1px 1px #fff;
}

.carousel .list .item .content .des{
    font-size: 1.5rem;
}

.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons a{
    border: none;
    background-color: #eee;
    font-family: Poppins;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
}
.carousel .list .item .buttons a:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
    text-align: center;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}


/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/* Scroll Animation */
.scroll_animate {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}
.scroll_animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nosotros */
.nosotros_container {
  display: flex;
  flex-wrap: wrap;
  padding: 4rem 2rem;
  background-color: #f8f8f8;
}
.nosotros_content {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.nosotros_texto {
  flex: 1 1 400px;
}
.nosotros_imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Valores */
.valores_container {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}
.valores_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.valores_item {
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Productos */
.productos_container {
  padding: 4rem 2rem;
  background-color: #f8f8f8;
}
.productos_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.productos_item {
  background: #fff;
  padding: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.productos_item:hover {
  transform: translateY(-5px);
}

/* Aplicaciones */
.aplicaciones_container {
  padding: 4rem 2rem;
  background: #fff;
}
.aplicaciones_flex {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
}
.aplicaciones_item {
  flex: 1 1 250px;
  background: #f0f0f0;
  padding: 1.5rem;
  border-radius: 8px;
}

/* Contacto */
.contacto_container {
  text-align: center;
  background-color: #0d2d75;
  color: #fff;
  padding: 4rem 2rem;
  flex-direction: column;
}
.contacto_btn {
  margin-top: 1rem;
  display: inline-block;
  background-color: #ffffff;
  color: #0d2d75;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}
.contacto_btn:hover {
  background-color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .nosotros_content {
    flex-direction: column;
  }
}


/* From Uiverse.io by Lokesh1379 */ 
.parent {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 800;
    width: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.child {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform-style: preserve-3d;
  transition: all 0.5s ease-in-out;
  border-radius: 50%;
  margin: 0 5px;
}

.child:hover {
  background-color: white;
  background-position: -100px 100px, -100px 100px;
  transform: rotate3d(0.5, 1, 0, 30deg);
  transform: perspective(180px) rotateX(60deg) translateY(2px);
  box-shadow: 0px 10px 10px rgb(1, 49, 182);
}

button {
  border: none;
  background-color: transparent;
  font-size: 20px;
}

.button:hover {
  width: inherit;
  height: inherit;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate3d(0px, 0px, 15px) perspective(180px) rotateX(-35deg) translateY(2px);
  border-radius: 50%;
}

.btn-1 .fa-brands{
    color: #65cf0e;
    font-size: 1.5rem;
}

.btn-2 .fa-brands{
    color: #e709d5;
    font-size: 1.5rem;
}

.btn-3 .fa-brands{
    color: #0b58b1;
    font-size: 1.5rem;
}

.btn-4 .fa-brands{
    color: #28c5ec;
    font-size: 1.5rem;
}

/*contacto*/

.contact-container{
   display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(90deg, #e2e2e2, #c9d6ff);
}

.container{
    position: relative;
    width: 850px;
    height: 550px;
    background: #fff;
    margin: 20px;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
}

    .container h1{
        font-size: 36px;
        margin: -10px 0;
    }

    .container p{
        font-size: 14.5px;
        margin: 15px 0;
    }

form{ width: 100%; }

.form-box{
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    color: #333;
    text-align: center;
    padding: 40px;
    z-index: 1;
    transition: .6s ease-in-out 1.2s, visibility 0s 1s;
}

    .container.active .form-box{ right: 50%; }

    .form-box.register{ visibility: hidden; }
        .container.active .form-box.register{ visibility: visible; }

.input-box{
    position: relative;
    margin: 30px 0;
}

    .input-box input, textarea{
        width: 100%;
        padding: 13px 50px 13px 20px;
        background: #eee;
        border-radius: 8px;
        border: none;
        outline: none;
        font-size: 16px;
        color: #333;
        font-weight: 500;
    }

    textarea{
      resize: none;
    }

        .input-box input::placeholder{
            color: #888;
            font-weight: 400;
        }
    
    .input-box i{
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
    }

.forgot-link{ margin: -15px 0 15px; }
    .forgot-link a{
        font-size: 14.5px;
        color: #333;
    }

.img_mercado{
  width: 150px;
}

.btn{
    width: 100%;
    height: 48px;
    background: #7494ec;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

.social-icons{
    display: flex;
    justify-content: center;
}

    .social-icons a{
        display: inline-flex;
        padding: 10px;
        border: 2px solid #ccc;
        border-radius: 8px;
        font-size: 24px;
        color: #333;
        margin: 0 8px;
    }

.toggle-box{
    position: absolute;
    width: 100%;
    height: 100%;
}

    .toggle-box::before{
        content: '';
        position: absolute;
        left: -250%;
        width: 300%;
        height: 100%;
        background: #7494ec;
        /* border: 2px solid red; */
        border-radius: 150px;
        z-index: 2;
        transition: 1.8s ease-in-out;
    }

        .container.active .toggle-box::before{ left: 50%; }

.toggle-panel{
    position: absolute;
    width: 50%;
    height: 100%;
    /* background: seagreen; */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    transition: .6s ease-in-out;
}

    .toggle-panel.toggle-left{ 
        left: 0;
        transition-delay: 1.2s; 
    }
        .container.active .toggle-panel.toggle-left{
            left: -50%;
            transition-delay: .6s;
        }

    .toggle-panel.toggle-right{ 
        right: -50%;
        transition-delay: .6s;
    }
        .container.active .toggle-panel.toggle-right{
            right: 0;
            transition-delay: 1.2s;
        }

    .toggle-panel p{ margin-bottom: 20px; }

    .toggle-panel .btn{
        width: 160px;
        height: 46px;
        background: transparent;
        border: 2px solid #fff;
        box-shadow: none;
    }

@media screen and (max-width: 650px){
    .container{ height: calc(100vh - 40px); }

    .form-box{
        bottom: 0;
        width: 100%;
        height: 70%;
    }

        .container.active .form-box{
            right: 0;
            bottom: 30%;
        }

    .toggle-box::before{
        left: 0;
        top: -270%;
        width: 100%;
        height: 300%;
        border-radius: 20vw;
    }

        .container.active .toggle-box::before{
            left: 0;
            top: 70%;
        }

        .container.active .toggle-panel.toggle-left{
            left: 0;
            top: -30%;
        }

    .toggle-panel{ 
        width: 100%;
        height: 30%;
    }
        .toggle-panel.toggle-left{ top: 0; }
        .toggle-panel.toggle-right{
            right: 0;
            bottom: -30%;
        }

            .container.active .toggle-panel.toggle-right{ bottom: 0; }
}

@media screen and (max-width: 400px){
    .form-box { padding: 20px; }

    .toggle-panel h1{font-size: 30px; }
}

/* ENCABEZADO */
.productos_header {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #f0f0f0;
}
.productos_header h1 {
  font-size: 2.5rem;
  color: #0d2d75;
}
.productos_header p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  color: #444;
}

/* PRODUCTO ITEM */
.producto_item {
  padding: 3rem 2rem;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
}
.producto_contenido {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}
.producto_texto {
  flex: 1 1 400px;
}
.producto_texto h2 {
  color: #0d2d75;
  margin-bottom: 1rem;
}
.producto_texto ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}
.producto_imagen {
  flex: 1 1 300px;
  text-align: center;
}
.producto_imagen img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.img_taquete{
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

/* VIDEOS */
.producto_videos {
  padding: 3rem 2rem;
  background-color: #f8f8f8;
  text-align: center;
}
.producto_videos h2 {
  color: #0d2d75;
  margin-bottom: 2rem;
}
.producto_videos_grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.video_item video {
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .producto_contenido {
    flex-direction: column;
    text-align: center;
  }
  .producto_texto ul {
    text-align: left;
  }
}



.lead_container {
  background: white;
  padding: 30px;
  max-width: 500px;
  margin: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.lead_title {
  color: #2c3e50;
}
.lead_text {
  font-size: 18px;
  margin-bottom: 20px;
}
.lead_success {
  color: green;
  font-weight: bold;
}
.lead_error {
  color: red;
  font-weight: bold;
}
.lead_btn {
  display: inline-block;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  background: #007BFF;
  border-radius: 5px;
  font-size: 16px;
  margin-top: 20px;
}
.lead_btn:hover {
  background: #0056b3;
}


@media (max-width:690px){
  .carousel .list .item .topic{
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1;
}

.carousel .list .item .content{
    position: absolute;
    top: 5%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 0;
}

}