@import './reset.css';

.header,
.header__container {
    background-color: var(--background-color);
    width: 100%
}

.header__hamburger,
.header__item::before {
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0)
}

.header__image,
.whatsapp__icon {
    background-position: center;
    background-size: cover
}

.header__container {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    box-shadow: -1px 4px 43px 9px rgba(0, 0, 0, .5);
    -webkit-box-shadow: -1px 4px 43px 9px rgba(0, 0, 0, .5);
    -moz-box-shadow: -1px 4px 43px 9px rgba(0, 0, 0, .5);
    border-bottom: 3px solid var(--primary-color-1)
}

.header {
    max-height: 4rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between
}

.header__logo {
    width: 5.4rem;
    height: 2.4rem;
    margin: 1rem 1.5rem
}

.header__image {
    width: 5.4rem;
    height: 2.4rem;
    background-image: url(../images/img/logo-400.jpg)
}

.header__nav {
    height: 0;
    position: absolute;
    top: 4rem;
    width: 100%;
    text-align: center;
    overflow: hidden;
    -webkit-transition: height ease-in-out .6s;
    -o-transition: height ease-in-out .6s;
    transition: height ease-in-out .6s
}

.header__nav.is-active {
    height: 11.4rem;
    -webkit-transition: height ease-in-out .6s;
    -o-transition: height ease-in-out .6s;
    transition: height ease-in-out .6s
}

.header__menu {
    background-color: var(--primary-color1);
    border-top: 3px solid var(--primary-color-1)
}

.header__menu a {
    display: block;
    width: 100%;
    color: var(--text-color-white);
    font-family: var(--font-title);
    font-weight: 500;
    font-size: .7rem;
    text-transform: uppercase;
    padding: .9rem;
    border-bottom: 2px solid var(--secondary-color-1)
}

.header__hamburger {
    width: 2.3rem;
    height: 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin: 1rem 1.5rem;
    transform: rotate(0);
    -webkit-transition: all ease-in-out .6s;
    -o-transition: all ease-in-out .6s;
    transition: all ease-in-out .6s
}

.header__contact,
.no-js .header__hamburger {
    display: none
}

.header__theme {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 32px;
    width: 80px;
    border: 1px solid var(--primary-color0);
    border-radius: 20px;
    padding: 8px 8px;
    cursor: pointer;
    background-color: var(--theme-ligth-color);
}

.header__theme::after {
    content: '';
    position: absolute;
    left: 4px;
    width: 26px;
    height: 26px;
    background-color: var(--theme-dark-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: left 0.3s ease-in-out;
}

.header__theme.is-dark::after {
    left: calc(100% - 30px); 
}

.header__theme svg path{
    width: 1rem;
    margin: .5rem
}

.light_mode, .dark_mode path {
    fill: var(--theme-dark-color)
}

.header__item,
.header__item::before {
    -webkit-transition: all ease-in-out .6s;
    -o-transition: all ease-in-out .6s
}

.header__item {
    position: relative;
    width: 100%;
    height: .3rem;
    border-radius: 2px;
    margin: auto;
    background-color: var(--text-color-dark);
    transition: all ease-in-out .6s
}

.header__item::after,
.header__item::before {
    position: absolute;
    content: "";
    left: 0;
    width: 100%;
    height: inherit;
    border-radius: inherit;
    background-color: var(--text-color-dark)
}

.header__item::before {
    bottom: .8rem;
    transform: rotate(0);
    transition: all ease-in-out .6s
}

.header__item::after,
.header__nav.is-active+.header__hamburger {
    -webkit-transition: all ease-in-out .6s;
    -o-transition: all ease-in-out .6s
}

.header__item::after {
    top: .8rem;
    -webkit-transform: rotate(0);
    -ms-transform: rotate(0);
    transform: rotate(0);
    transition: all ease-in-out .6s
}

.header__nav.is-active+.header__hamburger {
    -webkit-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    transform: rotate(360deg);
    transition: all ease-in-out .6s
}

.header__nav.is-active+.header__hamburger .header__item::before {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    bottom: 0;
    -webkit-transition: all ease-in-out .6s;
    -o-transition: all ease-in-out .6s;
    transition: all ease-in-out .6s
}

.header__nav.is-active+.header__hamburger .header__item {
    background-color: transparent;
    -webkit-transition: all ease-in-out .6s;
    -o-transition: all ease-in-out .6s;
    transition: all ease-in-out .6s
}

.header__nav.is-active+.header__hamburger .header__item::after {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
    top: 0;
    -webkit-transition: all ease-in-out .6s;
    -o-transition: all ease-in-out .6s;
    transition: all ease-in-out .6s
}

.whatsapp__icon {
    position: fixed;
    right: 1.4rem;
    bottom: 6rem;
    z-index: 100;
    width: 5rem;
    height: 5rem;
    background-image: url(../images/icon/whatsappl.png);
    background-repeat: no-repeat
}

.whatsapp__icon.wobble {
    -webkit-animation-name: wobble;
    animation-name: wobble;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    animation-iteration-count: infinite
}

@-webkit-keyframes wobble {

    0%,
    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0)
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        -webkit-transform: translate3d(-10px, 0, 0);
        transform: translate3d(-10px, 0, 0)
    }

    20%,
    40%,
    60%,
    80% {
        -webkit-transform: translate3d(10px, 0, 0);
        transform: translate3d(10px, 0, 0)
    }
}

@keyframes wobble {

    0%,
    100% {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0)
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        -webkit-transform: translate3d(-10px, 0, 0);
        transform: translate3d(-10px, 0, 0)
    }

    20%,
    40%,
    60%,
    80% {
        -webkit-transform: translate3d(10px, 0, 0);
        transform: translate3d(10px, 0, 0)
    }
}

.no-js .main {
    width: 100%;
    margin-top: 15rem
}

.no-js .header__nav {
    height: auto
}

@media screen and (min-width:48rem) {

    .header__contact,
    .header__contact span {
        display: -webkit-box;
        display: -ms-flexbox
    }

    .header__contact {
        display: flex;
        font-family: var(--font-text)
    }

    .header__contact span {
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        margin: 0 1rem;
        color: var(--primary-color-1)
    }

    .header__contact .header__phone {
        font-size: calc(var(--size-text-mobile) - 3px)
    }

    .header__contact .header__email {
        font-size: calc(var(--size-text-mobile) - 2px)
    }

    .header__contact svg {
        width: 1rem;
        margin: .5rem
    }

    .header__contact svg path {
        fill: var(--primary-color-1)
    }

    .header__nav.is-active {
        height: 3.5rem
    }

    .header__menu {
        width: 100%;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between
    }

    .header__menu li {
        width: 25%
    }

    .header__menu li a {
        width: 100%;
        background-color: var(--primary-color1);
        border: 2px solid var(--secondary-color-1);
        border-top: 0
    }

    .no-js .main {
        margin-top: 6.8rem
    }
}

@media screen and (min-width:64rem) {

    .header__menu,
    .header__menu li a {
        background-color: var(--background-color)
    }

    .js .main,
    .no-js .main {
        margin-top: 5.5rem
    }

    .header {
        max-width: 1300px;
        margin: 0 auto
    }

    .header,
    .header .header__nav {
        max-height: 5.5rem;
        height: 100%
    }

    .header__image,
    .header__logo {
        width: 8.4rem;
        height: 3.4rem
    }

    .header__hamburger {
        display: none
    }

    .header__nav {
        width: 40%;
        min-height: 2rem;
        position: unset;
        margin-right: 1.4rem
    }

    .header__menu {
        border-top: none;
        height: 100%
    }

    .header__menu li a {
        border: none;
        color: var(--text-color-menu);
        padding: 0;
        font-size: .9rem;
        font-weight: 400;
        height: auto;
        line-height: 5.5rem
    }

    .header__menu .header__link:hover a {
        color: var(--secondary-color1);
        box-shadow: 0 -5px 0 0 var(--secondary-color1)inset;
        -webkit-box-shadow: 0 -5px 0 0 var(--secondary-color1)inset;
        -moz-box-shadow: 0 -5px 0 0 var(--secondary-color1)inset;
        -webkit-transition: linear .2s;
        -o-transition: linear .2s;
        transition: linear .2s
    }

    .header__menu .header__link.is-active a {
        color: var(--secondary-color1);
        box-shadow: 0 -5px 0 0 var(--secondary-color1)inset;
        -webkit-box-shadow: 0 -5px 0 0 var(--secondary-color1)inset;
        -moz-box-shadow: 0 -5px 0 0 var(--secondary-color1)inset
    }

    .whatsapp__icon {
        width: 100px;
        height: 100px
    }
}