@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    overflow-x: hidden;
    width: 100vw;
}

*::-webkit-scrollbar {
    -webkit-appearance: none;
}
*::-webkit-scrollbar:vertical {
    width: 8px;
    background-color: #111;
}
*::-webkit-scrollbar-button:increment,.contenedor::-webkit-scrollbar-button {
    display: none;
}
*::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 20px;
    border: 1px solid#797979;
}
*::-webkit-scrollbar-track {
    border-radius: 10px;  
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

/* Hero */

.hero {
    width: 100%;
    min-height: 100vh;
    max-height: 200vh;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;

}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background: -webkit-linear-gradient(to right, #000000, #000000, #000000, #8c8c8c);
    background: linear-gradient(to right, #000000, #000000, #000000,#8c8c8c);
        background-size: cover;
    z-index: -1;
}

/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 40px;
}
.nav__title {
    font-weight: 300;
}
.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}
.nav__items {
    list-style: none;
}
.nav__links {
    color: #fff;
    text-decoration: none;
}
#Inicio {
    color: #ffffff5a;
}
.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}
.nav__img {
    display: block;
    width: 30px;
}
.nav__close {
    display: var(--show, none);
}

/* Hero container */

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    padding-bottom: 100px;
}

.hero__photos {
    width: 550px;
    margin: auto;
    overflow: hidden;
}
.hero__photos {
    margin-right: 100px;
}
.hero__photos figure {
    position: absolute;
    top: 0;
    left: 50px;
    width: 450px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.hero__photos > figure {
    position: relative;
    left: 0 !important;
}
.hero__photos img {
    display: block;
    width: 100%;
}
.hero__photos input {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px; /* just cover visible part */
    height: 100%;
    cursor: pointer;
    border: 0;
    padding: 0;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
    z-index: 100;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.hero__photos input:checked ~ figure {
    -webkit-transition: all 0.7s ease-in-out;
    -moz-transition: all 0.7s ease-in-out;
    -o-transition: all 0.7s ease-in-out;
    -ms-transition: all 0.7s ease-in-out;
    transition: all 0.7s ease-in-out;
    left: 450px;
}

.hero__texts {
    margin: auto;
}
.hero__title {
    font-size: 3rem;
    margin-bottom: 5px;
}
.hero__texts p {
    margin-bottom: 10px;
}
.cta {
    display: inline-block;
    background-color: #000000;
    justify-self: center;
    color: #ffffff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 5px;
    border: #ffffff 1px solid;
    font-weight: 600;
    transition: 1.5s;
}
.cta:hover {
    background-color: #fff;
    color: #000;
}

/* Services */

.service {
    display: grid;
    grid-template-columns: 50% 50%;
    grid-template-rows: 100%;
}
.services__photosImg img {
    height: 100%;
    width: 100%;
}
.services__photosTexts {
    max-width: 600px;
    margin: auto;
    padding: 50px;
}
.services h2 {
    font-size: 50px;
    margin-bottom: 10px;
}
.blackButton {
    display: inline-block;
    background-color: #fff;
    justify-self: center;
    color: #000;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 5px;
    border: #000 1px solid;
    transition: 1.5s;
    margin-top: 10px;
    font-weight: 600;
}
.blackButton:hover {
    background-color: #000;
    color: #fff;
}

/* Photos */

.photos {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 50px 150px;
}
.column {
    flex: 33%;
}
.photos img {
    width: 100%;
}

/* Buttons */

.buttons {
    width: 100%;
    display: grid;
}
.buttons__container {
    width: auto;
    margin: auto;
    margin-bottom: 60px;
}

/* Footer */

footer{
    background: #000;
    height: auto;
    width: 100vw;
    padding-top: 40px;
    color: #fff;
}
.footer-content{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}
.footer-content h3{
    font-size: 2.1rem;
    font-weight: 500;
    text-transform: capitalize;
    line-height: 3rem;
}
.footer-content p{
    max-width: 500px;
    margin: 10px auto;
    line-height: 28px;
    font-size: 16px;
    color: #cacdd2;
}
ul {
    padding-inline-start: 0px;
}
.socials{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 3rem 0;
}
.socials li{
    margin: 0 20px;
}
.socials a:hover i {
    color: #19b8b8;
}
.socials__img {
    width: 50px;
}
.f-menu {
    font-size: 14px;
}
.footer-bottom{
    background: #000;
    width: 100vw;
    padding: 20px;
    padding-bottom: 40px;
    text-align: center;
}
.footer-bottom p{
    float: left;
    font-size: 14px;
    word-spacing: 2px;
    text-transform: capitalize;
}
.footer-bottom span{
    text-transform: uppercase;
    opacity: .4;
    font-weight: 200;
}
.footer-menu{
    float: right;
}
.footer-menu ul{
    display: flex;
}
.footer-menu ul li{
    padding-right: 10px;
    display: block;
}
.footer-menu ul li a{
    color: #cfd2d6;
    text-decoration: none;
}
.footer-menu ul li a:hover{
    color: #27bcda;
}

/* MEDIA */

@media (max-width: 1300px) {
    
    .services h2 {
        font-size: 40px;
    }

}

@media (max-width: 1115px) {

    .hero__photos {
        width: 475px;
        margin-right: 40px;
    }
    .hero__photos figure {
        width: 375px;
    }
    .hero__photos input:checked ~ figure {
        left: 375px;
    }

}

@media (max-width: 1035px) {

    .hero__photos {
        width: 425px;
    }
    .hero__photos figure {
        width: 325px;
    }
    .hero__photos input:checked ~ figure {
        left: 325px;
    }

}

@media (max-width: 975px) {

    .hero__photos {
        width: 375px;
    }
    .hero__photos figure {
        width: 275px;
    }
    .hero__photos input:checked ~ figure {
        left: 275px;
    }

    .column {
        flex: 50%;
    }

}

@media (max-width: 950px) {
    
    .services__photosTexts {
        padding: 40px;
    }
    .services h2 {
        font-size: 30px;
    }

}

@media (max-width: 920px) {

    .hero__title {
        font-size: 2.5rem;
    }

}

@media (max-width: 860px) {

    .nav__menu{
        display: block;
    }
    .nav__link--menu{
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }
    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }
    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .hero::before {
        background: -webkit-linear-gradient(to right, #000000, #000000, #000000, #8c8c8c);
        background: linear-gradient(to right, #000000, #000000, #000000,#8c8c8c);
    }
    .hero__container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 5px;
    }
    .hero__texts {
        grid-row: 2 / 3;
        text-align: center;
    }
    .hero__photos {
        grid-row: 1 / 2;
        width: 500px;
        margin: auto;
        margin-bottom: 50px;
    }
    .hero__photos figure {
        width: 400px;
    }
    .hero__photos input:checked ~ figure {
        left: 400px;
    }

    .service {
        grid-template-columns: 100%;
        grid-template-rows: 1fr 1fr;
    }
    .services__photosImg {
        grid-row: 1;
    }
    .services__photosTexts {
        grid-row: 2 / 3;
    }

    .photos {
        padding: 0px 150px;
    }

}

@media (max-width: 800px) {

    .photos {
        padding: 0px 100px;
    }

}

@media (max-width: 700px) {

    .photos {
        padding: 0px 50px;
    }

}

@media (max-width: 630px) {

    .service {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .hero::before {
        background: -webkit-linear-gradient(to right, #000000, #3c3c3c);
        background: linear-gradient(to right, #000000,#3c3c3c);
    }
}

@media (max-width: 570px) {    

    .hero__photos {
        width: 450px;
    }
    .hero__photos figure {
        width: 350px;
    }
    .hero__photos input:checked ~ figure {
        left: 350px;
    }

}

@media (max-width: 515px) {    

    .hero__photos {
        width: 400px;
    }
    .hero__photos figure {
        width: 300px;
    }
    .hero__photos input:checked ~ figure {
        left: 300px;
    }

    .footer-content p {
        font-size: 14px;
        padding: 10px;
    }
    .footer-bottom {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .footer-menu {
        width: auto;
        margin: auto;
        margin-top: 10px;
    }

}

@media (max-width:500px) {

    .footer-menu ul{
        display: flex;
        margin-bottom: 20px;
    }

}

@media (max-width: 485px) {    

    .hero__photos {
        width: 350px;
    }
    .hero__photos figure {
        width: 250px;
    }
    .hero__photos input:checked ~ figure {
        left: 250px;
    }


    .buttons__container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
    .buttons__container button {
        margin: 10px auto;
    }

}

@media (max-width: 415px) {

    .photos {
        padding: 0px 25px;
    }

}

@media (max-width: 395px) {    

    .hero__photos {
        width: 325px;
    }
    .hero__photos figure {
        width: 225px;
    }
    .hero__photos input:checked ~ figure {
        left: 225px;
    }

    .socials {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 50px;
    }
    .socials li{
        margin: 0 0px;
    }

}

@media (max-width: 365px) {    

    .hero__photos {
        width: 300px;
    }
    .hero__photos figure {
        width: 200px;
    }
    .hero__photos input:checked ~ figure {
        left: 200px;
    }

}

@media (max-width: 335px) {    

    .hero__photos {
        width: 275px;
    }
    .hero__photos figure {
        width: 175px;
    }
    .hero__photos input:checked ~ figure {
        left: 175px;
    }

    .photos {
        padding: 0px 10px;
    }

}

@media (max-width: 315px) {    

    .hero__title {
        font-size: 2rem;
    }
    .hero__paragraph {
        font-size: 14px;
    }

}

@media (max-width: 305px) {    

    .hero__photos {
        width: 250px;
    }
    .hero__photos figure {
        width: 150px;
    }
    .hero__photos input:checked ~ figure {
        left: 150px;
    }

}

@media (max-width: 270px) {    

    .hero__photos {
        width: 225px;
    }
    .hero__photos figure {
        width: 125px;
    }
    .hero__photos input:checked ~ figure {
        left: 125px;
    }

}