﻿/*==================================
HEADER
==================================*/

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: .35s;
}

    .header.sticky {
        background: rgba(255,255,255,.82);
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }

/*==================================
CONTENEDOR
==================================*/

.header-row {
    display: grid;
    grid-template-columns: 180px 1fr 180px;
    align-items: center;
    gap: 30px;
    min-height: 110px;
}

/*==================================
LOGO
==================================*/

.logo img {
    width: 160px;
    height: auto;
}

/*==================================
MENÚ
==================================*/

.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 22px 45px;
    border-radius: 5px;
    box-shadow: 0 10px 35px rgba(0,0,0,.04);
}

    .menu a {
        color: #444;
        font-size: 18px;
        font-weight: 600;
    }

        .menu a:hover {
            color: #7fb03c;
        }

/*==================================
BANDERAS
==================================*/

.header-right {
    display: flex;
    justify-content: flex-end;
}

.flags {
    display: flex;
    gap: 10px;
}

    .flags img {
        width: 30px;
        height: auto;
        transition: .25s;
    }

        .flags img:hover {
            transform: scale(1.15);
        }

/*==================================
BOTÓN HAMBURGUESA
==================================*/

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: white;
    border-radius: 8px;
    font-size: 28px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,.12);
}

/*==================================
TABLETS
==================================*/

@media(max-width:991px) {

    .header-row {
        grid-template-columns: 150px auto;
        min-height: 90px;
    }

    .menu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        justify-self: end;
    }

    .menu {
        display: none;
        grid-column: 1 / 3;
        flex-direction: column;
        gap: 18px;
        margin-top: 15px;
        padding: 25px;
    }

    .header-right {
        display: none;
        grid-column: 1 / 3;
        justify-content: center;
        margin: 20px 0;
    }

    .header-row.mobile-open .menu {
        display: flex;
    }

    .header-row.mobile-open .header-right {
        display: flex;
    }
}

/*==================================
CELULARES
==================================*/

@media(max-width:576px) {

    .logo img {
        width: 120px;
    }

    .menu {
        padding: 20px;
    }

        .menu a {
            font-size: 20px;
        }

    .flags img {
        width: 24px;
    }
}
