@media (max-width: 768px) {
    .nav {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-buttons {
        display: none;

        margin-left: 0;
        margin-top: 10px;
    }

    .presentation {
        font-size: 1.5rem;
        text-align: center;
    }

    h2{ text-align: center; }

    .block, .our-services {
        width: 90%;
        font-size: 1.5rem;
    }

    .card {
        width: 100%;
        margin: 10px 0;
    }
}

@media (min-width: 769px) {
    .nav {
        position: sticky;
        flex-direction: row;
        align-items: center;
    }

    .presentation {
        font-size: 2.25rem;
    }

    .block {
        width: 60%;
        font-size: 2rem;
    }

    .our-services{
        width: 80%;
        font-size: 2rem;
    }

    .card {
        width: 30%;
        margin: 0 20px;
    }
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Roboto, sans-serif;

    position: absolute
    ;
    background-color: white;
    color: #333;
    display: flex;
    flex-direction: column;
    
}

.hero{
    background: url('./assets/fondo.jpg') no-repeat center center/cover;
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;

    z-index: -1;
}

.fondo{
    background-color: white;
    padding-top: 100px;
}

.container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.showcase{
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: white;
    background: none;

}

.nav {
    top: 0; 
    width: 100%;

    background-color: white;
    border: 1px solid;

    padding: 20px;
    
    display: flex;
    z-index: 2;
}

.nav-text{
    font-size: 1.5rem;

    justify-self: left;
    margin-left: 20px;
}


.nav-buttons a{
    font-size: 1.25rem;

    border: none;
    background-color: transparent;
    color: hsl(0, 0%, 30%);

    margin-left: 20px;
    padding: 10px 20px;
    position: relative;
}

.nav-buttons a:hover{
    color: hsl(0, 0%, 0%);
    font-size: 1.4rem;
}

.nav-buttons a:after{
    content: "";
    position: absolute;
    background-color: black;
    height: 3px;
    width: 0;
    left: 50%;
    bottom: -10px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-buttons a:hover:after{
    width: 100%;
}


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

.presentation-text {
    letter-spacing: 10px;
    font-family: monospace;
    border-right: 5px solid;

    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    animation: 
        typing 2s,
        cursor .4s step-end infinite alternate;
}

@keyframes cursor{
    50% { border-color: transparent; }
}

@keyframes typing{
    from { width: 0 }
}

.presentation button{
    font-size: 1.5rem;
    color: white;

    background-color: #333;   
    border-radius: 15px;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
}

.block{
    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.our-services{
    margin: auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    
}

.card-container{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;

    margin: 20px auto;
    width: 100%;
}

.card{
    display: flex;
    flex-direction: column;
    align-items: center;

    border-radius: 15px;
    padding: 20px 30px;
    border: 1px solid #333;
    box-shadow: 5px 5px 10px grey;

    transition: all 0.3 ease;
}

.card li{
    line-height: 2;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 10px grey;
    z-index: 0;
}


.contact{
    width: 100%;
    padding: 100px 0 100px 0;

    background-color: #333;
    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.credits{
  color: hsl(0, 0%, 60%);
  text-align: right ;
  margin: 0 100px 0 0;
  font-size: 16px;
}
