/* ==========================================
   TOP BAR
========================================== */

.top-bar{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:36px;
    background:var(--primary);
    color:#fff;
    z-index:1001;
}

.top-bar-content{
    max-width:1400px;
    height:100%;
    margin:auto;
    padding:0 5%;
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:32px;
    font-size:14px;
    font-weight:500;
}

.top-bar-content a,
.top-bar-content span{
    display:flex;
    align-items:center;
    gap:8px;
    color:#fff;
    text-decoration:none;
    white-space:nowrap;
}

.top-bar-content i{
    color:var(--accent);
}

/* ==========================================
   HEADER
========================================== */

.header{
    position:fixed;
    top:36px;
    left:0;
    width:100%;
    height:104px;
    background:#fff;
    z-index:1000;
    padding:0 5%;
    border-bottom:1px solid #E5E7EB;
    box-shadow:0 8px 25px rgba(0,0,0,.06);
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    column-gap:28px;
}

.main-nav{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:24px;
    width:max-content;
}

.main-nav a{
    position:relative;
    color:var(--primary);
    font-size:16px;
    font-weight:700;
    transition:.3s;
    text-decoration:none;
    white-space:nowrap;
}

.main-nav a:hover{
    color:var(--accent);
}

.main-nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:2px;
    background:var(--accent);
    transition:.3s;
}

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

.header-logo{
    display:flex;
    justify-content:center;
    align-items:center;
}

.header-logo img{
    height:86px;
    width:auto;
    max-width:390px;
    object-fit:contain;
}

.header-actions{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:14px;
}

.search-btn{
    width:54px;
    height:54px;
    border:none;
    background:#F5F7FA;
    border-radius:50%;
    cursor:pointer;
    transition:.3s;
}

.search-btn:hover{
    background:#E9EEF5;
}

.search-btn i{
    color:var(--primary);
    font-size:19px;
}

.header-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:205px;
    height:54px;
    background:var(--accent);
    color:white !important;
    border-radius:12px;
    font-size:15px;
    font-weight:900;
    text-transform:uppercase;
    box-shadow:0 10px 25px rgba(249,115,22,.28);
    transition:.3s;
    text-decoration:none;
}

.header-btn:hover{
    transform:translateY(-2px);
    background:#fb8c31;
}

.correo-mobile{
    display:none;
}

@media(max-width:1200px){
    .header{
        height:96px;
        column-gap:18px;
    }

    .main-nav{
        gap:18px;
    }

    .main-nav a{
        font-size:14px;
    }

    .header-logo img{
        height:76px;
        max-width:330px;
    }

    .header-btn{
        min-width:165px;
        height:48px;
        font-size:13px;
    }

    .search-btn{
        width:48px;
        height:48px;
    }
}

@media(max-width:992px){
    .top-bar{
        height:auto;
        min-height:36px;
        padding:6px 4%;
    }

    .top-bar-content{
        justify-content:center;
        flex-wrap:wrap;
        gap:14px;
        font-size:12px;
        padding:0;
    }

    .header{
        top:42px;
        height:auto;
        min-height:132px;
        grid-template-columns:1fr;
        row-gap:10px;
        padding:12px 5%;
    }

    .header-logo{
        order:1;
    }

    .header-logo img{
        height:62px;
        max-width:280px;
        transform:scale(1.18);
    }

    .main-nav{
        order:2;
        justify-content:center;
        flex-wrap:wrap;
        width:100%;
        gap:22px;
    }

    .header-actions{
        display:none;
    }
}

@media(max-width:768px){
    .top-bar{
        padding:6px 4%;
    }

    .top-bar-content{
        gap:14px;
        font-size:11px;
        line-height:1.3;
    }

    .top-location{
        display:none !important;
    }

    .correo-desktop{
        display:none;
    }

    .correo-mobile{
        display:inline;
    }

    .top-bar-content a{
        display:flex;
        align-items:center;
        gap:5px;
        color:white;
        white-space:nowrap;
    }

    .top-bar-content i{
        color:var(--accent);
        font-size:11px;
    }

    .header{
        top:42px;
        min-height:118px;
        padding:10px 5% 12px;
        row-gap:8px;
    }

    .header-logo img{
        height:54px;
        max-width:250px;
        transform:scale(1.2);
    }

    .main-nav{
        gap:20px;
    }

    .main-nav a{
        font-size:12px;
        font-weight:800;
    }
}

@media(max-width:480px){
    .top-bar-content{
        gap:10px;
        font-size:10px;
    }

    .header{
        top:42px;
        min-height:112px;
    }

    .header-logo img{
        height:50px;
        max-width:230px;
    }

    .main-nav{
        gap:16px;
    }

    .main-nav a{
        font-size:11px;
    }
}