/*
 * Dacar Web / HEADER
 * Cabecera propia equivalente a la cabecera activa Astra + hooks.
 * Estado: desconectado. No se carga en produccion.
 */

.dacar-top-bar {
    align-items: center;
    background: #070A12;
    border-bottom: 1px solid #005BFF;
    color: #E5E7EB;
    display: flex;
    font-size: 12px;
    font-weight: 750;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.25;
    min-height: 34px;
    padding: 7px 18px;
    text-align: center;
}

.dacar-site-header {
    background: rgba(11, 15, 25, .97);
    border-bottom: 1px solid rgba(0, 91, 255, .22);
    color: #FFFFFF;
    position: sticky;
    top: 0;
    transition:
        background-color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        min-height .22s ease;
    z-index: 1000;
}

.dacar-header-scrolled .dacar-site-header {
    background: rgba(7, 10, 18, .94);
    border-bottom-color: rgba(0, 91, 255, .42);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .04);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.dacar-header-wrap {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    margin: 0 auto;
    max-width: 1320px;
    min-height: 74px;
    padding: 0 28px;
    transition: min-height .22s ease;
}

.dacar-header-scrolled .dacar-header-wrap {
    min-height: 64px;
}

.dacar-header-brand {
    color: #FFFFFF !important;
    display: inline-flex;
    font-size: clamp(28px, 3.1vw, 44px);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
}

.dacar-header-brand:hover,
.dacar-header-brand:focus-visible {
    color: #FFFFFF !important;
}

.dacar-header-nav {
    align-items: center;
    display: flex;
    gap: clamp(18px, 2.8vw, 42px);
    justify-content: center;
    min-width: 0;
}

.dacar-header-nav a {
    color: #A9B4C6 !important;
    display: inline-flex;
    font-size: clamp(15px, 1.25vw, 19px);
    font-weight: 800;
    line-height: 1;
    padding: 15px 0;
    position: relative;
    text-decoration: none !important;
    transition: color .18s ease;
    white-space: nowrap;
}

.dacar-header-nav a::after {
    background: #005BFF;
    bottom: 5px;
    content: "";
    height: 1px;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    transform: scaleX(.55);
    transform-origin: center;
    transition: opacity .18s ease, transform .18s ease;
}

.dacar-header-nav a:hover,
.dacar-header-nav a:focus-visible,
.dacar-header-nav a.is-active {
    color: #FFFFFF !important;
}

.dacar-header-nav a:hover::after,
.dacar-header-nav a:focus-visible::after,
.dacar-header-nav a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.dacar-header-actions {
    align-items: center;
    display: flex;
    gap: 12px;
}

.dacar-header-action {
    align-items: center;
    background: rgba(255, 255, 255, .03) !important;
    border: 1px solid rgba(169, 180, 198, .24);
    border-radius: 10px;
    color: #EAF1FF !important;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    min-width: 44px;
    position: relative;
    text-decoration: none !important;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
    width: 44px;
}

.dacar-header-scrolled .dacar-header-action {
    height: 38px;
    min-width: 38px;
    width: 38px;
}

.dacar-header-action:hover,
.dacar-header-action:focus-visible {
    background: rgba(0, 91, 255, .16) !important;
    border-color: rgba(0, 91, 255, .72);
    color: #FFFFFF !important;
}

.dacar-header-emoji {
    align-items: center;
    display: flex;
    filter: saturate(.78) brightness(1.02);
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
    font-size: 18px;
    height: 23px;
    justify-content: center;
    line-height: 1;
    opacity: .94;
    transform: translateY(-1px);
    width: 23px;
}

.dacar-header-action-account .dacar-header-emoji,
.dacar-header-action-cart .dacar-header-emoji {
    transform: translateY(-.5px);
}

.dacar-header-action-cart .dacar-header-emoji {
    font-size: 17px;
}

.dacar-cart-count {
    align-items: center;
    background: #0B6BFF;
    border-radius: 999px;
    color: #FFFFFF;
    display: flex;
    font-size: 11px;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    line-height: 20px;
    min-width: 20px;
    padding: 0 5px;
    position: absolute;
    right: -7px;
    top: -8px;
}

.dacar-header-toggle {
    align-items: center;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(169, 180, 198, .24);
    border-radius: 10px;
    color: #FFFFFF;
    cursor: pointer;
    display: none;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.dacar-header-toggle > span[aria-hidden="true"],
.dacar-header-toggle > span[aria-hidden="true"]::before,
.dacar-header-toggle > span[aria-hidden="true"]::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    transition: transform .18s ease, opacity .18s ease;
    width: 20px;
}

.dacar-header-toggle > span[aria-hidden="true"] {
    position: relative;
}

.dacar-header-toggle > span[aria-hidden="true"]::before,
.dacar-header-toggle > span[aria-hidden="true"]::after {
    left: 0;
    position: absolute;
}

.dacar-header-toggle > span[aria-hidden="true"]::before {
    top: -6px;
}

.dacar-header-toggle > span[aria-hidden="true"]::after {
    top: 6px;
}

.dacar-site-header.is-mobile-open .dacar-header-toggle > span[aria-hidden="true"] {
    background: transparent;
}

.dacar-site-header.is-mobile-open .dacar-header-toggle > span[aria-hidden="true"]::before {
    transform: translateY(6px) rotate(45deg);
}

.dacar-site-header.is-mobile-open .dacar-header-toggle > span[aria-hidden="true"]::after {
    transform: translateY(-6px) rotate(-45deg);
}

.dacar-header-mobile-panel {
    border-top: 1px solid rgba(148, 163, 184, .16);
    padding: 10px 18px 18px;
}

.dacar-header-mobile-nav {
    display: grid;
    gap: 2px;
}

.dacar-header-mobile-nav a {
    border-bottom: 1px solid rgba(148, 163, 184, .12);
    color: #CBD5E1 !important;
    font-size: 16px;
    font-weight: 800;
    min-height: 48px;
    padding: 15px 4px;
    text-decoration: none !important;
}

.dacar-header-mobile-nav a:hover,
.dacar-header-mobile-nav a:focus-visible,
.dacar-header-mobile-nav a.is-active {
    color: #FFFFFF !important;
}

.dacar-header-brand:focus-visible,
.dacar-header-nav a:focus-visible,
.dacar-header-action:focus-visible,
.dacar-header-toggle:focus-visible,
.dacar-header-mobile-nav a:focus-visible {
    border-radius: 8px;
    outline: 2px solid #005BFF;
    outline-offset: 4px;
}
