:root {
    --header-height: 70px;
}
/* -------------HEADER-----------------*/

/* barra header */
.header-section {
    align-content: center;
    background: white;
    border-bottom: 2px solid var(--light);
    height: var(--header-height);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99;
}

/* HEADER - Active*/
.header-section.header-active {
    border-bottom: 2px solid var(--light);
background: white;
animation-name: fadeInDown;
-webkit-animation-name: fadeInDown;
-moz-animation-name: fadeInDown;
animation-duration: 1s;
-webkit-animation-duration: 1s;
-moz-animation-duration: 1s;
}

/* menu1*/
.header-wrapper {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: flex;
    padding: 0.5rem 1rem;
}

.header-wrapper .right {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-left: 1rem;
}

.header-wrapper .right label {
    margin: 0;
}

.header-wrapper .center {
    margin-left: auto;
}

.header-wrapper .logo {
    width: 150px;
}

.header-wrapper .logo img {
    max-height: calc(var(--header-height) - 10px);
    object-fit: contain;
}

.header-wrapper .menu li {
    padding: 0 1em 0 0;
    position: relative;
}

.header-wrapper .right a {
    display: none;
    gap: .5rem;
    color: var(--primary);
}

.header-wrapper .right a i {
    align-content: center;
}


/* Texto del menú */
.header-wrapper .menu li a {
color: var(--dark);
font-size: 16px;
text-transform: uppercase;
font-weight: 600;

}

/* Texto del menú :hover */
.header-wrapper .menu li a:hover {
color: var(--primary);

}

.selectLanguage {
    height: auto;
    border: none;
    color: var(--dark);
}

/*  ==========filter-area==========  */
.filter-area .filter-event-date-container {
    grid-area: filter-event-date-container;
    display: flex;
    justify-content: flex-end;
}
.filter-area .filters-container {
    grid-area: filters-container;
    display: none;
    justify-content: center;
    gap: .5em;
    align-items: center;
}
.filter-area .search-container {
    display: none;
    margin: auto;
}

.filter-area .filters-container.active {
    background-color: white;
    display: flex;
    height: calc(var(--header-height) - 2px);
    justify-content: center;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, -0%);
    width: 100%;
}

.filter-area .search-container.active {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.filter-area .search-container .close-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    cursor: pointer;
    display: none;
}

.filter-area .filters-container .close-icon {
    cursor: pointer;
    display: none;
}

.filter-area {
    display: flex;
    padding: 0;
    margin: 0;
    border: 0;
}

.filter-area .filter-event-date-container > label {
    align-self: center;
    font-weight: bold;
    margin: 0 .5rem 0 0;
}

.filter-area input {
    margin: 0;
    background-color: var(--light);
    border-radius: 6px;
    border-width: 0;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0px 0.5em;
    font-size: 14px;
    font-weight: bold;
    z-index: 9;
}

.filter-area input:hover {
    border: none;
    border-bottom: 2px solid #cbcbcb;
    box-shadow: none;
    background-color: var(--light);
}

.filter-area select,
.filter-event-date {
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    height: calc(1.5em + 0.75rem + 2px);
    width: auto;
    max-width: 12em;
    padding: 0px 0.5em;
    font-size: 14px;
    font-weight: bold;
}
.filter-area select > option[value="hide"] {
    display: none;
}

.filter-area .filter-icons {
    display: flex;
    font-size: 1.5rem;
    gap: 1rem;
}

.filter-area .filtrar,
.filter-area .buscar {
    cursor: pointer;
}

/* RESPONSIVE tablet */

@media (max-width: 991px){
    .header-wrapper {
        margin: 0.5rem 1rem;
        padding: 0;
        justify-content: space-between;
    }

    .header-wrapper .menu {
        display: initial;
        position: fixed;
        background: white;
        width: 100%;
        max-width: 100%;
        top: 0;
        left: 0;
        padding-left: 15px;
        height: 100vh;
        padding-top: 2rem;
        padding-bottom: 1rem;
        margin-top: 3.8rem;
    }

    .header-wrapper .menu.active {
        animation-name: fadeInLeft;
        -webkit-animation-name: fadeInLeft;
        -moz-animation-name: fadeInLeft;
        animation-duration: 1s;
        -webkit-animation-duration: 1s;
        -moz-animation-duration: 1s;
        display: block;
        background-color:white;
        z-index: 99;
    }

    .header-wrapper .menu li a {
        color: var(--dark);
        font-size: 16px;
        font-weight: 600;
        text-transform: uppercase;
    }

    .header-wrapper .menu li a:hover {
        color: var(--primary);

    }
}

/* RESPONSIVE Smartphone */

@media (max-width: 575px){

    /* menú  */
    .header-wrapper .logo {
        width: 10%;
    }
    .header-wrapper .logo a img {
        width: 150px;
        max-width: none;
    }

    .header-wrapper .menu {
        display: none;
        position: fixed;
        background: var(--light); /* fondo menú */
        width: 80%;
        max-width: 80%;
        top: 0;
        left: 0;
        padding-left: 15px;
        height: 100vh;              /* calc(100vh - 80px); */
        overflow-y: hidden;
        padding-top: 80px; /* subir menú */
        padding-bottom: 20px;
    }

    .header-wrapper .menu li a {
        color: var(--primary);
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
    }
}

@media (min-width: 576px) {
    .filter-area {
        display: flex;
        gap: .5em;
    }
}

@media (min-width: 768px) {
    .header-wrapper .filter-icons {
        display: flex;
    }
}

@media (min-width: 992px) {
    .header-wrapper .right a {
        display: flex;
    }
    .filter-area {
        display: flex;
        gap: .5em;
    }
    .filter-area .search-container {
        display: flex;
        min-width: 200px;
        margin: auto;
    }

    .filter-area .filters-container {
        display: flex;
    }

    .filter-area .filter-icons {
        display: none;
    }

    .header-wrapper .center {
        margin: auto;
    }
}
