* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face { /*font family para el logo del header*/
    font-family: 'PermanentMarker-Regular';
    src: url('../fonts/PermanentMarker-Regular.ttf') format('truetype');
    font-display: swap;
}

/*--HEADER--------------------------------------------------------------*/

.header-hero {
    width: 100%;
    height: 100vh;
    background: #000046;
    background: -webkit-linear-gradient(hsla(193, 78%, 49%, 0.692), hsla(240, 100%, 14%, 0.692));
    background: linear-gradient(hsla(193, 78%, 49%, 0.623), hsla(240, 100%, 14%, 0.623)), url(../portada.jpg) center no-repeat;
    background-size: cover;
    clip-path: circle(250vh at 50% -150vh);
}

.hamburger-menu {
    width: 35px;
    height: 30px;
    position: fixed;
    top: 3rem;
    left: 3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.line {
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: all .8s;
}

    /* para el efecto del menu hamburger*/

    .change .linea-1 {
        transform: rotateZ(-405deg) translate(-8px, 6px);
    }

    .change .linea-2 {
        opacity: 0;
    }

    .change .linea-3 {
        transform: rotateZ(405deg) translate(-8px, -6px);
    }

    /* para el efecto del menu hamburger*/

.header-hero h1 a {
    color: #fff;
    font-size: 2rem;
    font-family: 'PermanentMarker-Regular';
    font-weight: 300;
    position: fixed;
    top: 2.3rem;
    right: 3rem;
    cursor: pointer;
    text-decoration: none;
    z-index: 3;
}

.header-hero h1 span {
    display: none;
}

.header-hero h2 {
    color: white;
    font-family: Impact, 'Arial Narrow Bold', sans-serif;
    font-weight: 300;
    font-size: 7rem;
    letter-spacing: .1rem;
    text-align: center;
    position: absolute;
    top: 16rem;
    z-index: 1;
    margin: auto;
    padding: auto;
    animation: show linear 5s;
}

    /*Para que aparezca el header-hero h2 desde 0*/

    @keyframes show {
        0% {
            opacity: 0;
        }

        25% {
            opacity: 0;
        }

        50% {
            opacity: 0.25;
        }

        75% {
            opacity: 0.75;
        }

        100% {
            opacity: 1;
        }
    }

    /*Para que aparezca el header-hero h2 desde 0*/

.navbar {
    width: 19rem;
    height: 100%;
    background: #000046;
    position: fixed;
    top: 0;
    left: -20rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 30% 60% 0;
    transition: left .8s;
    z-index: 2;
}

.change {
    left: 0;
}

.nav-list {
    text-align: left;
}

.nav-item {
    list-style: none;
    margin: 1.6rem;
}

.nav-link {
    text-decoration: none;
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.2rem 0;
}

.nav-link::before, .nav-link::after {
    content: "";
    width: 100%;
    height: 2px;
    background-color: #D60F1D;
    position: absolute;
    left: 0;  
    transform: scaleX(0);
    transition: transform .5s;
}

.nav-link::after {
    bottom: 0;
    transform-origin: left;
}

.nav-link::before {
    top: 0;
    transform-origin: right;
}

.nav-link:hover::before, .nav-link:hover::after,
.nav-link:focus::before, .nav-link:focus::after {
    transform: scaleX(1);
}

@media only screen and (min-width: 767px) and (max-width: 991px) {
    
    .header-hero h1 span {
        display: inline-block;
    }

    .header-hero h2 {
        width: 100%;
        font-size: 8rem;
    }

    .navbar {
        width: 25rem;
        left: -25rem;
    }

    .change {
        left: 0;
    }
}

@media only screen and (min-width: 992px) {

    .hamburger-menu {
        left: 6rem;
    }

    .header-hero h1 span {
        display: inline-block;
    }

    .header-hero h1 a {
        top: 1.4rem;
        right: 6rem;
        font-size: 3rem;
    }

    .header-hero h2 {
        width: 100%;
        font-size: 10rem;
    }

    .navbar {
        width: 30rem;
        left: -30rem;
        border-radius: 0;
    }

    .change {
        left: 0;
    }
}

/*--HEADER--------------------------------------------------------------*/