@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;500&display=swap');

:root {
    --white: #edf6f9;
    --black: #212529;
    --gray: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Mulish', sans-serif;
    scroll-behavior: smooth;
}

h1 {
    font-weight: 500;
}

h2,
h3 {
    font-weight: 200;
}

a {
    text-decoration: none;
}

section {
    min-height: 100vh;
    padding: 8rem 0;
}

section .card h3 {
    font-weight: 500;
}

section h2 {
    font-weight: 500;
    font-size: 3rem;
}

/* Navegacion */
#walnut-logo {
    width: 50px;
}

.navbar-brand {
    width: 10%;
}

#nav-links {
    justify-content: end;
    width: 100%;
}

/* Banner */
#banner {
    display: flex;
    justify-content: center;
    height: 100vh;
    background-image: url(../images/fondo.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#title-banner {
    margin: auto 0;
}

#title-banner h1 {
    font-size: 7rem;
}

/* Nosotros */
#nosotros {
    padding: 8rem;
}

#nosotros h3 {
    font-weight: 500;
    font-size: 2.5rem;
}

.about-us {
    width: 100%;
    justify-content: space-around;
    margin: 50px 0;
}

#nosotros .container-text {
    text-align: left;
    width: 30%;
    margin: auto 0;
}

#nosotros img {
    width: 20%;
    cursor: pointer;
}

#nosotros img:hover {
    transform: scale(1.2);
    transition: 0.5s;
}

#nosotros .container-fluid {
    flex-wrap: wrap
}

/* Servicios */
#servicios {
    color: var(--white);
    background-color: var(--black);
}

.cards {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    color: var(--black);
}

.cards h3 {
    font-weight: 500;
}

.card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    padding: 1rem;
    max-height: 100%;
    transform: translateY(101%);
    transition: transform 0.4s ease-in;
}

.card:hover .card-body {
    transform: translateY(0);
}

/* Proceso */
#process {
    padding: 0;
}

#process h2 {
    padding: 1em;
}

.carousel-caption h3 {
    font-weight: 500;
    font-size: 2.5rem;
}

/* Proyectos */
#proyectos ul {
    list-style: none;
    text-align: left;
    width: 60%;
    margin: 0 auto;
}

#proyectos ul li {
    display: flex;
    margin: 20px;
}

#proyectos ul li img {
    width: 30%;
    margin-right: 20px;
}

/* Contacto */
#contacto {
    background-image: url(https://cdn.pixabay.com/photo/2017/10/10/21/47/laptop-2838921_960_720.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

#contacto form {
    width: 50%;
    margin: 0 auto;
    background-color: var(--black);
    color: var(--white);
    padding: 3rem;
    border-radius: 20px;
}

#contacto form h3 {
    margin: 20px 0;
}

#contacto form input,
#contacto form textarea {
    width: 80%;
    margin: 20px 0;
    padding: 5px;
}

#contacto form #btnSend {
    background-color: var(--gray);
    width: 30%;
    padding: 0.5em 1em;
    border-radius: 15px;
    color: var(--white);
}

/* Footer */
#footer {
    text-align: center;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: var(--black);
    color: var(--white);
    padding: 3rem 0;
}

#footer a {
    color: var(--white);
}

#footer h3,
#footer i {
    color: var(--gray);
}

.logo-title,
.social-media {
    margin: 30px auto;
}

#footer .logo-title h3 {
    color: var(--white);
    margin: 0;
}

.logo-title p {
    color: var(--gray);
}

#footer .social-media i {
    font-size: 1.2rem;
    color: var(--white);
}

.copy {
    font-size: .8rem;
}

.icon-text i {
    margin-right: 10px;
}

/* Whats btn */
#contact-whats {
    position: fixed;
    background-color: #e63946;
    fill: #e63946;
    font-size: 3rem;
    border: none;
    border-radius: 100%;
    width: 70px;
    height: 70px;
    bottom: 5%;
    right: 2%;
}

#contact-whats i {
    color: white;
    margin-left: 20%;
}

/* Animaciones */
.fadeTop {
    opacity: 0;
    transform: translate(0, 10vh);
    transition: all 1s;
}

.fadeRight {
    opacity: 0;
    transform: translate(10vh, 0vh);
    transition: all 1s;
}

.fadeLeft {
    opacity: 0;
    transform: translate(-10vh, 0vh);
    transition: all 1s;
}

.fadeBottom {
    opacity: 0;
    transform: translate(0, -10vh);
    transition: all 1s;
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (max-width: 768px) {
    #title-banner h1 {
        font-size: 5rem;
    }

    section, #nosotros {
        padding: 2em;
    }

    #nosotros .container-text {
        width: 100%;
    }

    #nosotros img {
        width: 50%;
    }
    
    #nosotros #second-n {
        flex-direction: column-reverse;
    }

    #nosotros #second-n img {
        margin: 0 auto;
    }

    .cards, #proyectos {
        flex-wrap: wrap;
    }

    .card {
        width: 80%;
        margin-bottom: 50px;
    }

    .container {
        width: 80%;
    }

    #proyectos .container ul {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    #proyectos ul li img {
        width: 50%;
        margin-right: 20px;
    }

    #process {
        min-height: 0vh;
    }

    #contacto form {
        width: 90%;
    }

    #contacto form input,
    #contacto form textarea {
        width: 95%;
    }

    #contacto form #btnSend {
        width: 80%;
    }

    #footer {
        flex-wrap: wrap;
    }

    .f-col {
        width: 80%;
    }
}