* {
    box-sizing: border-box;
}

body, html {
    overflow-x: hidden;
}

body {
    --background-color1: ghostwhite;
    --font-color: ghostwhite;
    font-family: 'Montserrat', sans-serif;
    background-color: black;
}

body, div, span, label, h1, h2, h3, h4, input, p, b, i, li, ul, section, header, footer, form, fieldset, legend, a {
    margin: 0;
    padding: 0;
}



/* ----- HEADER SECTION ----- */

.header {
    width: 100%;
    background-color: transparent;
    padding: .5rem;
    position: fixed;
    top: 0;
    z-index: 100;
    transition: background-color 1s;
}

#checkbox {
    display: none;
}

.menu-toggle span {
    font-size: 3.5rem;
    color: var(--font-color);
    cursor: pointer;
}

.header__ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .8s ease-in-out, opacity .3s ease-in-out;
}

#checkbox:checked ~ .header__ul {
    max-height: 500px;
    opacity: 1;
    backdrop-filter: blur(5px);
}

.header__li {
    list-style: none;
    margin: .8rem 0;
}

.header__a {
    text-decoration: none;
    color: var(--font-color);
    font-size: 1.15rem
}

.checkbox-label__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    width: 5rem;
    max-width: 120px;
}

.header__a-logo {
    display: inline-block;
    width: fit-content;
}

.scrolled {
    background-color: #0007;
}



/* ----- HOME SECTION ----- */

.home-section {
    width: 100%;
    height: 110svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
}

.iphone {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -20;
    position: absolute;
    top: 0;
    left: 0;
    filter: blur(1px);
}

.bgdesktop {
    display: none;
}

.home__titles-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #fff8, transparent);
}

.home__titles {
    margin-top: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-title {
    overflow: hidden;
    width: min-content;
    padding: 5px 15px;
    align-self: center;
}

.home__h2 {
    font-size: 3rem;
    text-align: center;
    color: var(--font-color);
    text-shadow: 5px 5px 20px #000;
}

.home__h2-1 {
    animation: aparecer-texto1 1s both ease-in-out;
}

.home__h2-2 {
    animation: aparecer-texto2 1s .1s both ease-in-out
}

.home__h2-3 {
    animation: aparecer-texto1 1s both ease-in-out
}

@keyframes aparecer-texto1 {
    from {
        transform: translateX(-120%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes aparecer-texto2 {
    from {
        transform: translateY(110%);
    }

    to {
        transform: translateY(0);
    }
}

.home__paragraph-container {
    width: 80%;
    margin-top: 10%;
}

.home__paragraph {
    text-align: center;
    font-size: 1.1rem;
    color: var(--font-color);
    text-shadow: 5px 5px 20px #000;
    mix-blend-mode: luminosity;
    font-weight: bold;
    animation: aparecer 1.5s 1s both ease-in-out
}

@keyframes aparecer {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.bottom-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    justify-content: end;
    align-items: center;
    margin-bottom: 10svh
}

#bottom-icon {
    color: var(--font-color);
    font-size: 4rem;
    animation: temblar 1.5s .2s infinite ease-in-out;
}

.bottom-container {
    opacity: 1;
}

@keyframes temblar {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    80% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}



/* ----- MAIN SECTION ----- */

.main-section {
    width: 100%;
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 95%, rgba(0, 0, 0, 0) 100%);
}

.phones-section, .service-section {
    width: 100%;
    height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.service-titles, .phones-titles {
    width: 100%;
    text-align: center;
    margin-top: 35%;
    color: var(--font-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-title, .phones-title {
    font-size: 2.5rem;
    transform: translateY(200%) scale(.8);
    opacity: 0;
}

.service-paragraph, .phones-paragraph {
    max-width: 80%;
    margin-top: 10%;
    transform: translateY(150%) scale(.8);
    opacity: 0;
}

.video2, .video1 {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -20;
    filter: blur(4px) contrast(1.2) brightness(.3);
    opacity: .85;
    object-fit: cover;
}

.phones-images-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cellphone1, .broken-phone, .destornillador {
    width: 45%;
    max-width: 150px;
    transform: translateY(100px) scale(.7);
    opacity: 0;
}

.cheap-img {
    width: 35%;
    height: 35%;
    max-width: 100px;
    place-self: center;
    transform: translateY(100px) scale(.7);
    opacity: 0;
}

.phones-images-container {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 35%;
}



/* ----- GALLERY SECTION ----- */

.gallery-section {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.4rem;
    margin-top: 20%;
}

.gallery-wrapper-father {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2d2d2d;
    border-radius: 20px;
    opacity: 0;
    transform: translateY(100px) scale(.7);
}

.gallery-title {
    color: var(--font-color);
    margin: 2rem;
    opacity: 0;
    transform: translateY(100px) scale(.7);
}

.gallery-wrapper-son {
    width: 85%;
    margin: 1em 0;
    display: grid;
    height: 2200px;
    grid-template-columns: 1fr;
    place-items: center;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-container img {
    position: absolute;
    height: 90%;
    transition: opacity 0.5s ease-in-out;
}

.gallery-image.after {
    opacity: 0;
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-h2 {
    font-size: 3.5em;
    color: var(--font-color);
    text-wrap: wrap;
    margin-bottom: .2em;
    margin: 2rem 0;
}

.gallery-h2-1, .gallery-h2-2, .gallery-h2-3 {
    opacity: 0;
    transform: translateX(-110%) scale(.7);
}

.gallery-h2-container {
    margin: 3rem .2em;
    margin-bottom: 0;
}

.gallery-h3-container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(.8);
}

.gallery__ig-logo {
    width: 10%;
}

.gallery-h3 {
    color: var(--font-color);
    margin: 1rem;
    margin-top: 0;
    align-self: center;
}

.gallery-h3-a {
    color: inherit;
}



/* ----- UBICATION SECTION ----- */

.ubication-section {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 15% 0;
}

.ubication-title {
    font-size: 3rem;
    opacity: 0;
    transform: translateY(100px) scale(.7);
}

.ultimate-title-ubication {
    font-size: 2rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(100px) scale(.7);
}

.ubication-title, .ubication-paragraph, .ultimate-title-ubication {
    color: var(--font-color);
}

.ubication-container {
    width: 95%;
    background-color: #2d2d2d;
    border-radius: 15px;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: .8rem;
    opacity: 0;
    transform: translateY(100px) scale(.7);
}

.ubication-paragraph {
    font-size: 1rem;
    margin: 1rem;
    margin-top: 0;
}

.map-container {
    width: 85%;
    height: 300px;
    overflow: hidden;
    border-radius: 15px;
}



/* ----- CONTACT SECTION ----- */

.contact-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 8rem;
    margin-bottom: 3rem;
}

.contact-title {
    color: var(--font-color);
    font-size: 3rem;
    margin-bottom: 2rem;
}

.social-media-wrapper {
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #2d2d2d;
    border-radius: 20px;
    padding: 2rem 0;
}

.social-media-container {
    width: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1em;
    border-radius: 20px;
    background-color: #6b6b6b;
    position: relative;
}

.a_proof {
    display: inline-block;
    width: 100%;
    height: 100%;
    padding: 8% 0;
    color: var(--font-color);
    text-decoration: none;
}

.a-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.a-wrapper p {
    font-size: 1.2rem;
}

.logo {
    width: 15%;
    position: absolute;
    left: 10%;
}



/* ----- MEDIA QUERIES SEFCTION ----- */

@media screen and (min-width: 768px) {
    .phones-titles, .service-titles {
        max-width: 60%;
        margin-top: 15%;
    }

    .phones-images-container {
        margin-top: 5%;
    }

    .gallery-container {
        max-width: fit-content;
    }

    .gallery-wrapper-father {
        max-width: 65%;
    }

    .a-wrapper p {
        font-size: 2rem;
    }

    .social-media-wrapper {
        width: 70%;
    }

    .logo {
        width: 10%;
    }

    .a_proof {
        padding: 5% 0;
    }
}

@media screen and (min-width: 1024px) {
    .home__titles {
        margin-top: 14%;
    }

    .a-wrapper p {
        font-size: 1.25rem;
    }

    .a_proof {
        padding: 2.5% 0;
    }

    .logo, .gallery__ig-logo {
        width: 5%;
    }

    .ubication-container {
        width: 65%;
    }
}

@media screen and (min-width: 1200px) {
    .ubication-container {
        width: 50%;
    }

    .social-media-wrapper {
        width: 50%;
    }

    .social-media-container {
        margin: .8rem;
    }

    .gallery-wrapper-father {
        max-width: 45%;
    }

    .map-container {
        height: 400px;
    }

    .bgdesktop {
        display: block;
    }

    .bgmobile {
        display: none;
    }

    .home__titles-wrapper {
        background: none
    }
}

@media screen and (min-width: 1450px) {
    .home__h2 {
        font-size: 4rem;
    }

    .home__paragraph {
        font-size: 1.5rem;
    }

    .phones-title, .service-title {
        font-size: 3.5rem;
    }

    .phones-paragraph, .service-paragraph {
        font-size: 1.5rem;
    }
}