@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;700&display=swap');

:root {
    --primary-color: #009cff;
    --secondary-color: #0077b6;
    --light-color: #f3f3f3;
    --dark-color: rgb(0, 0, 0);
    --max-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {

    scroll-behavior: smooth;

}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.2;
    background: var(--light-color);
    overflow-x: hidden;
}

a {
    color: #333;
    text-decoration: var(--secondary-color);

}
.logo-mega{
    width: 20%;
}

.logo {
    width: 50%;
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: .55rem;
    line-height: 1.3;
}

.container {
    max-width: var(--max-width);
    margin: auto;
    padding: 0 1rem;
    overflow: hidden;
}
.container-title-empresa{
    width: 95%;
    text-align: center;
   
    margin: auto;
}

.btn {
    display: inline-block;
    border: none;
    background: var(--secondary-color);
    color: #fff;
    padding: 0.5rem 1.5rem;
}

.btn-card {
    display: inline-block;
    border: none;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    margin: 1rem;
    cursor: pointer;
}

.btn-card-reverse {
    display: inline-block;
    border: none;
    background-color: #fff;
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    margin: 1rem;
    cursor: pointer;
}

.btn-light {
    background: var(--light-color);
}

.btn-primary {
    background: var(--primary-color);
}

.btn-secondary {
    background: var(--secondary-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn:hover {
    opacity: 0.9;
}

.btn-card:hover {
    opacity: 0.9;
}

/*Navigation*/
#main-nav {
    background: #fff;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
}

#main-nav .container {
    display: grid;
    grid-template-columns: 6fr 2fr;
    padding: 1rem;
    align-items: center;
}

#main-nav .logo {
    width: 160px;
}

#main-nav ul {
    justify-self: end;
    display: flex;
    text-align: center;
}

#main-nav ul li a {
    padding: 0.20rem;
    font-weight: bold;
    
}
#main-nav ul li{
    width: 130px;
    padding: 0;
}

#main-nav ul li a:hover {
    color: var(--light-color);
    background-color: var(--secondary-color);
}

.nav-toggle {
    color: var(--primary-color);
    background: none;
    border: none;
    font-size: 30px;
    padding: 0 20px;
    line-height: 60px;

    display: none;
}

/*Hero*/
.container-slider{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.swiper{
    width: 100%;
    height: fit-content;
}
.swiper-slide img{
    width: 100%;
    height: 100%;
}
.swiper .swiper-button-prev, .swiper .swiper-button-next{
    color:#fff;
}
.swiper .swiper-pagination-bullet-active{
    background: #fff;
}

/*Section cards*/
section {
    text-align: center;
    margin: 2rem 1rem;
    scroll-margin-top: 100px;
 
   
}

section p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    
}

section h1 {
    font-size: 2.5rem;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-items: center;
    
}

.cards-container .cards img {
    width: 200px;
    height: 200px;
}

section .cards div p,
section .cards-reverse div p {
    font-size: 1.3rem;
    text-align: justify;
}

.cards,
.cards-reverse {
    display: flex;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    color: var(--dark-color);
    justify-content: center;
    align-items: center;

}


.cards ul li::before {
    content: "\2022";
    color: var(--secondary-color);
}

.cards-reverse ul li::before {
    content: "\2022";
    color: #fff;
}

.cards div,
.cards-reverse div {
    padding: 1rem;
}

.cards i {
    font-size: 100px;

    color: var(--secondary-color);
}
.cards .empresa_title{
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
}
#diseno_productos,
#caso_negocio,
#software_especializado,
#diseno_productos,
#unidad_soporte{
    scroll-margin-top: 100px;
}

article .cards,
article .cards-reverse {
    padding: 0 10px;
    margin-bottom: 40px;
}
.container .cards img,
article .cards img,
article .cards-reverse img {
    height: 250px;
    width: 250px;
    border-radius: 10px;
}

article .cards h2,
article .cards-reverse h2 {
    text-align: center;
}

article .cards,
article .cards-reverse {
    text-align: justify;
}

article .cards-reverse {
    flex-direction: row-reverse;
    background: var(--secondary-color);
    color: #fff;

}

.container-offer {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));*/
    grid-template-columns: repeat(4, 4fr);
    gap: 10px 10px;
    padding: 10px;
    

}


 .cards-offer {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    background-size: cover;
    transition: all 0.25s;
}

 .cards-offer:hover {
    transform: translateY(-15px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.cards-offer img {
    width: 250px;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.cards-offer i {
    font-size: 100px;
    color: var(--secondary-color);
    margin: 20px;
}

 .cards-offer p {
    text-align: center;
    margin: 10px;
    font-size: 1.2rem;
    color: black;
}

/*Hamburger*/
.hamburger {
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    z-index: 10;
    transition: all 0.25s;
    display: none;
}

.hamburger-top,
.hamburger-middle,
.hamburger-bottom {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    transform: rotate(0);
    transition: all 0.5s;
}

.hamburger-middle {
    transform: translateY(7px);
}

.hamburger-bottom {
    transform: translateY(14px);
}

.open .hamburger-top {
    transform: rotate(45deg) translateY(6px) translateX(6px);
}

.open .hamburger-middle {
    display: none;
}

.open .hamburger-bottom {
    transform: rotate(-45deg) translateY(6px) translateX(-6px);
}

/*Mobile Menu*/
.mobile-menu {
    position: fixed;
    top: 70px;
    right: 0;
    background-color: #fff;
    width: 60%;
    height: 100%;
    padding: 30px;
    box-shadow: inset 0 4px 3px -3px rgb(0 0 0 /10%), inset 0 4px 2px -2px rgb(0 0 0 /7%);
    transition: all 0.3s;
    z-index: 4;
    display:flex;
    flex-direction: column;
}

.mobile-menu ul {
    line-height: 3;
    border-bottom: #777 solid 1px;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 20px;
    margin: 10px 0;
}

.mobile-menu a:hover {
    color: var(--color-primary);
}

/*Contacto*/
#contacto {
    display: grid;
    align-items: center;
    justify-content: center;
   

}

.container-contact {
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contact-container{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

input {
    padding: 5px;
    display: block;
    width: 85%;
    height: 2rem;
    margin: 10px 0;
    border: 2px solid #0077b6;
    border-radius: 5px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    outline: none;
}

input:focus {
    border: 2px solid #009cff;
}

form textarea {
    display: block;
    width: 85%;
    height: 10rem;
    margin: 10px 0;
    border: 2px solid #0077b6;
    border-radius: 5px;
    -webkit-transition: 0.5s;
    transition: 0.5s;
    resize: none;
    outline: none;
    padding: 5px;
}

form textarea:focus {
    border: 2px solid #009cff;
}

.send {
    border: none;
    display: block;
    width: 85%;
    padding: 20px;
    cursor: pointer;
    background: #0077b6;
    color: #fff;
    margin-top: 10px;
}

.send:hover {
    opacity: 0.9;
}

#map {
    width: 500px;
    height: 400px;
    z-index: -2;
}

.form-map {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.scroll-top-btn {
    position: fixed;
    border: none;
    bottom: 1vh;
    right: calc(1em + 1vw);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    background-color: var(--primary-color);
    cursor: pointer;
    outline: 0;
    border: 0;
    transition: all 0.3s ease-out;
    color: #fff;
}

.hidden {
    visibility: hidden;
    opacity: 0;
}

.hiden {
    transform: translateX(100%);
}

.hide {
    transition: opacity 1s ease-out;
    opacity: 0;
    height: 0;
    overflow: hidden;    
}

.no-scroll {
    overflow: hidden;
}

.show {
    opacity: 1;
    height: auto;
    text-align: justify;
}

.form .h-captcha{
    width: 200px;
}

/*FOOTER*/
footer .container-footer {
    display: grid;
    grid-template-rows: 10rem;
    grid-template-columns: repeat(3, 1fr);
    padding: 1rem;
    text-align: center;
    background: #fff;
    color: #03045e;
    font-weight: bold;
    justify-items: center;
   align-items: center;
    /*color: var(--secondary-color);*/
}

footer .container-footer .logo {
    color: #03045e;
    /*color: var(--secondary-color);*/
    font-size: 1rem;
    font-weight: bold;
}

footer .container-footer img {
    width: 160px;
}

footer .rights {
    text-align: center;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 1rem 0;
    line-height: 1.6;
}

/*MEDIA QUERIES*/
@media (max-width: 35em) {
    .main-nav {
        position: fixed;
        inset: 0 0 0 30%;
    }
}

@media only screen and (max-width: 768px) {
 
    .hamburger {
        display: block;
    }

    #main-nav {
        height: 70px;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        background-color: var(--primary-color);
        color: #fff;
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        padding: 20px 0;

        height: calc(100% - 70px);
        overflow-y: auto;
        left: 100%;
        transition: left 0.3s;
    }

    #main-nav ul li {
        color: #fff;
        padding: 20px;

    }

    #main-nav ul li a {
        color: #fff;
        font-weight: bold;
    }

    #main-nav ul li a:hover,
    #main-nav .nav-menu-link_active {
        background: none;
        color: #0077b6;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu_visible {
        left: 0%;
    }

    .container-contact {
        width: 314px;
    }

    footer .container-footer {
        grid-template-columns: repeat(1, 2fr);
    }

    .cards-container {
        grid-template-columns: repeat(1, 2fr);
    }

    .container-offer {
        grid-template-columns: repeat(1, 2fr);
    }

    .cards-offer {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
    }

     article .cards-reverse {
        flex-direction: column;
    }
    .contact-container{
        grid-template-columns: repeat(1, 2fr);
    }

    #map {
        width: 314px;
    }

    .form-map {
        grid-template-columns: repeat(1, 2fr);
    }

    footer .logo {
        display: flex;
        flex-direction: column;
        margin: auto;
        margin-bottom: 40px;
    }


}