
/* ====================================
   AVANCELED - BARRA PROMOCIONAL MODERNA
==================================== */

.top-header {
    background: #087f76;
    width: 100%;
    min-height: 50px;
    padding: 10px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.top-header .discount-message {
    display: flex;
    align-items: center;
}

.top-header .registro-promocion {
    margin: 0;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.4;
}

.top-header .registro-promocion a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.top-header .registro-promocion a:hover {
    text-decoration: underline;
}

.top-header .discount-code {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.top-header #discount-code {
    width: 145px;
    height: 36px;
    padding: 0 12px;
    margin: 0;

    background: #ffffff;
    color: #222222;
    border: none;
    border-radius: 8px;

    text-align: center;
    font-size: 13px;
    font-weight: 700;

    position: relative;
    z-index: auto;
}

.top-header #copy-discount-button {
    background: #ff9600;
    color: #171717;

    min-width: 100px;
    height: 36px;
    padding: 0 14px;

    border: none;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 700;
    cursor: pointer;

    transition: background-color .2s ease;
}

.top-header #copy-discount-button:hover {
    background: #ffb13c;
}

.top-header a:focus-visible,
.top-header button:focus-visible,
.top-header input:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* RESPONSIVE */

@media (max-width: 767px) {

    .top-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .top-header .registro-promocion {
        font-size: 13px;
        text-align: center;
    }

    .top-header .registro-promocion a {
        font-size: 15px;
    }

    .top-header #discount-code {
        width: 125px;
    }

    .top-header #copy-discount-button {
        min-width: 85px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-header #copy-discount-button {
        transition: none;
    }
}


/* =====================================
   AVANCELED - CABECERA MODERNA
   FASE 2 - DESKTOP
===================================== */

@media (min-width: 1200px) {

    /* Cabecera principal */
    .main-header {
        background: #ffffff;
        padding: 18px 0;
    }

    .main-header > .container {
        max-width: 1540px;
        width: 96%;
    }

    .box-main-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 22px;
    }

    /* Logo */
    .logo-header {
        display: block;
        flex: 0 1 280px;
        margin-right: 0;
    }

    .logo-header img {
        display: block;
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    /* Buscador */
    .box-main-header > .box-search-header {
        flex: 1 1 420px;
        min-width: 0;
        max-width: 530px;
        margin: 0;
    }

    .box-main-header > .box-search-header
    .asl_w_container {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Iconos y enlaces */
    .box-links-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        flex: 0 1 auto;
        min-width: 0;
    }

    .link-header {
        color: #333333;
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .link-header:hover {
        color: #f59300;
    }

    .box-links-header .item-link-header-first a i {
        color: #333333;
        font-size: 24px;
    }

    /* Carrito */
    .item-link-header-cart .badge-cart {
        background: #ff9600;
        color: #ffffff;
        border-radius: 50%;
    }
}

