/* Header Market Styles */

.has-children a {
    position: relative;
    text-decoration: none;
    color: inherit;
}

.has-children:hover .menu-kaltex {
    color: #6B5094;
}

.has-children:hover .nuevo-label {
    color: #ffffff;
}

.has-children a .nuevo-label {
    position: absolute;
    top: 5px;
    right: 10px;
    color: #ff3a3a;
    font-size: 0.8em;
    transform: scaleY(1.1);
    padding: 1px 3px;
    border-radius: 3px;
    display: inline-block;
}

.has-children a .menu-kaltex {
    color: #00A442;
}

.header-market-wrap {
    background: #1f2530;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-market-main {
    display: grid;
    grid-template-columns: 200px minmax(180px, auto) minmax(280px, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
}

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

.header-market-logo img {
    height: auto;
    width: 100%;
    max-width: 200px;
    object-fit: contain;
}

.header-market-promo {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-market-promo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.header-market-promo-link i {
    color: #ffffff;
    font-size: 13px;
}

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

.header-market-actions .header-lan-curr {
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-market-quick-links {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header-market-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.header-market-quick-link i {
    color: #ffffff;
    font-size: 13px;
}

.header-market-link {
    color: #ffffff !important;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.header-market-subnav {
    background: #2a3342;
    padding: 8px 14px;
}

.header-market-subnav .site-main-menu > ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0;
    justify-content: center;
}

.header-market-subnav .site-main-menu > ul > li > a {
    color: #ffffff !important;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 24px;
    padding: 4px 20px;
    border-radius: 6px;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.header-market-subnav .site-main-menu > ul > li > a .menu-text {
    position: relative;
}

.header-market-subnav .site-main-menu > ul > li > a .menu-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #f15a29;
    transition: width 0.22s ease;
}

.header-market-subnav .site-main-menu > ul > li > a i {
    margin-left: 6px;
    transition: transform 0.22s ease;
}

.header-market-subnav .site-main-menu > ul > li:hover > a,
.header-market-subnav .site-main-menu > ul > li > a:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
    transform: translateY(-1px);
}

.header-market-subnav .site-main-menu > ul > li:hover > a .menu-text::after,
.header-market-subnav .site-main-menu > ul > li > a:focus-visible .menu-text::after {
    width: 100%;
}

.header-market-subnav .site-main-menu > ul > li:hover > a i,
.header-market-subnav .site-main-menu > ul > li > a:focus-visible i {
    transform: translateY(1px);
}

.header-market-subnav .site-main-menu > ul > li {
    position: relative;
}

.header-market-subnav #tabla-kaltex,
.header-market-subnav #venta-telas,
.header-market-subnav #venta-de-telas {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
}

.header-market-subnav #tipos-de-tela {
    width: min(750px, calc(100vw - 16px)) !important;
    left: -275% !important;
    right: auto !important;
    transform: none !important;
}

.header-market-subnav #tipos-de-tela {
    width: min(1050px, calc(100vw - 24px)) !important;
    max-height: min(500px, calc(100vh - 140px));
    overflow-y: auto;
}

.header-market-subnav #venta-telas,
.header-market-subnav #venta-de-telas {
    width: min(430px, calc(100vw - 24px)) !important;
    height: auto !important;
    max-height: min(420px, calc(100vh - 140px));
    overflow-y: auto;
}

.header-market-subnav #venta-telas > li,
.header-market-subnav #venta-de-telas > li {
    flex: 1 0 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    padding: 0 18px !important;
}

.header-market-subnav #tabla-kaltex {
    width: min(420px, calc(100vw - 24px)) !important;
    max-height: min(260px, calc(100vh - 140px));
    overflow-y: auto;
}

.header-global-search {
    position: relative;
    width: 90%;
    margin: 0 auto;
    min-width: 0;
}

.header-global-search-form {
    display: flex;
    align-items: center;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    height: 42px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-global-search-form.active,
.header-global-search-form:focus-within {
    border-color: #f15a29;
    box-shadow: 0 0 0 2px rgba(241, 90, 41, 0.2);
}

.header-global-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #382E59;
    background: #ffffff;
    padding: 10px 12px;
}

.header-global-search-button {
    border: none;
    background: #f15a29;
    color: #ffffff;
    width: 46px;
    height: 100%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
}

.header-global-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.header-global-search-results.show {
    display: block;
}

.header-global-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    color: #382E59 !important;
    font-size: 13px;
    border-bottom: 1px solid #f2f2f2;
    background: #ffffff;
}

.header-global-search-item-title {
    min-width: 0;
    flex: 1 1 auto;
}

.header-global-search-item-badge {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    border: 1px solid #f2f2f2;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f8f5ff;
    color: #382E59;
}

.header-global-search-item:link,
.header-global-search-item:visited,
.header-global-search-item:active {
    color: #382E59 !important;
}

.header-global-search-item:last-child {
    border-bottom: none;
}

.header-global-search-item:hover,
.header-global-search-item.keyboard-selected {
    background: #f8f5ff;
    color: #382E59 !important;
    text-decoration: none;
}

.header-global-search-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #382E59 !important;
    background: #ffffff;
}

@media (max-width: 767.98px) {
    .mobile-market-wrap {
        background: #1f2530;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .mobile-market-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        position: relative;
        z-index: 3;
        background-color: #1f2530;
    }

    .mobile-market-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-market-menu-btn {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: #2a3342;
        border: none;
        padding: 0;
        cursor: pointer;
        flex-shrink: 0;
        position: relative;
        transition: background 0.3s ease;
    }

    .mobile-market-menu-btn:hover {
        background: #343d4f;
    }

    .hamburger-line {
        width: 18px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease;
        display: block;
        position: absolute;
    }

    .hamburger-line:nth-child(1) {
        top: 9px;
    }

    .hamburger-line:nth-child(2) {
        top: 16px;
    }

    .hamburger-line:nth-child(3) {
        top: 23px;
    }

    .mobile-market-menu-btn.active .hamburger-line:nth-child(1) {
        top: 16px;
        transform: rotate(45deg);
    }

    .mobile-market-menu-btn.active .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }

    .mobile-market-menu-btn.active .hamburger-line:nth-child(3) {
        top: 16px;
        transform: rotate(-45deg);
    }

    .mobile-market-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none !important;
    }

    .mobile-market-logo img {
        width: auto;
        max-width: 138px;
        height: 30px;
        object-fit: contain;
    }

    .mobile-market-actions {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-market-store-shortcut {
        display: inline-flex;
        align-items: center;
        border: 0;
        background: transparent;
        color: #ffffff;
        font-size: 14px;
        font-weight: 600;
        line-height: 1;
        padding: 0;
        white-space: nowrap;
        max-width: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateX(8px);
        pointer-events: none;
        transition: max-width 0.28s ease, opacity 0.22s ease, transform 0.28s ease, margin-right 0.28s ease;
    }

    .mobile-market-wrap.is-scrolled-down .mobile-market-store-shortcut {
        max-width: 140px;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
        padding: 10px;
    }

    .mobile-market-actions .header-lan-curr {
        margin: 0;
    }

    .mobile-market-actions .header-lan-curr img {
        width: 21px;
        height: 21px;
        border-radius: 50%;
        object-fit: cover;
    }

    .mobile-market-search {
        position: relative;
        z-index: 3;
        background: #1f2530;
    }

    .mobile-market-search .header-global-search-form {
        height: 42px;
        border-radius: 10px;
    }

    .mobile-market-search .header-global-search-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .mobile-header-search-button {
        width: 48px;
    }

    .mobile-market-subnav {
        position: relative;
        z-index: 1;
        padding-top: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
        padding-bottom: 10px;
        background-color: #2a3342;
        max-height: 54px;
        opacity: 1;
        overflow: hidden;
        transform: translateY(0);
        will-change: transform, opacity, max-height, margin-top;
        transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            max-height 0.36s ease,
            margin-top 0.42s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.1s ease;
    }

    .mobile-market-wrap.is-scrolled-down .mobile-market-subnav {
        max-height: 0;
        opacity: 0;
        transform: translateY(-54px);
        pointer-events: none;
        margin-top: -54px;
    }

    .mobile-market-subnav-link {
        color: #ffffff;
        font-size: 14px;
        line-height: 1.5;
        text-decoration: none;
        padding-bottom: 6px;
        border-bottom: 2px solid transparent;
        opacity: 0.95;
    }

    .mobile-market-subnav-link:hover,
    .mobile-market-subnav-link:focus {
        color: #ffffff;
        text-decoration: none;
        opacity: 1;
    }

    .mobile-market-subnav-link.is-active {
        border-bottom-color: #f15a29;
        opacity: 1;
    }

    .header-global-search {
        width: 100%;
        padding: 0px 12px 10px 12px;
    }
}

/* Media queries */
@media (min-width: 768px) and (max-width: 1080px) {
    .header-market-logo img {
        max-width: 140px;
    }

    .header-market-main {
        grid-template-columns: 128px minmax(24px, 120px) minmax(220px, 1fr) max-content;
        gap: 10px;
        padding: 8px 10px;
    }

    .header-market-promo-link {
        font-size: 12px;
        gap: 4px;
    }

    .header-market-subnav {
        padding: 8px 10px;
    }

    .header-market-subnav .site-main-menu > ul {
        gap: 10px;
    }

    .header-market-link {
        font-size: 12px;
    }

    .header-market-actions {
        gap: 10px;
        justify-self: end;
    }

    .header-market-quick-links {
        gap: 8px;
    }

    .header-market-quick-link {
        font-size: 12px;
        gap: 4px;
    }

    .header-market-promo-link {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 180px;
    }

    .header-market-promo-link span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-market-quick-link span {
        display: none;
    }

    .header-market-subnav #tipos-de-tela,
    .header-market-subnav #tabla-kaltex,
    .header-market-subnav #venta-telas,
    .header-market-subnav #venta-de-telas {
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100vw - 16px) !important;
    }

    .header-market-subnav #tipos-de-tela {
        width: min(750px, calc(100vw - 16px)) !important;
        left: -150% !important;
        right: auto !important;
        transform: none !important;
    }

    .header-market-subnav #tipos-de-tela > li {
        flex: 1 0 33.333% !important;
        max-width: 33.333% !important;
        border-right: 1px solid #E7E7E7;
        padding: 0 10px 0 16px !important;
    }

    .header-market-subnav #venta-telas,
    .header-market-subnav #venta-de-telas {
        width: min(390px, calc(100vw - 16px)) !important;
    }

    .header-market-subnav #tabla-kaltex {
        width: min(420px, calc(100vw - 16px)) !important;
    }
}

@media (min-width: 768px) and (max-width: 860px) {
    .header-market-promo-link span {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1092px) {
    .header-market-promo-link span {
        display: none;
    }

    .header-market-main {
        grid-template-columns: 128px 24px minmax(220px, 1fr) max-content;
        gap: 10px;
    }

    .header-market-promo-link {
        max-width: 24px;
        overflow: hidden;
    }
}

.mobile-menu {
    background: #1f2530;
}

.mobile-menu .col-12 {
    padding-left: 10px;
    padding-right: 10px;
}

.mobile-menu-list {
    margin-bottom: 0;
}

.mobile-menu-list > li > a,
.mobile-menu-list .labels {
    display: block;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    padding: 12px 8px;
}

.mobile-menu-list > li > a:hover,
.mobile-menu-list .labels:hover {
    color: #f15a29;
    text-decoration: none;
}

.mobile-menu-list .style-1 {
    margin: 2px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.mobile-menu .accordion .card,
.mobile-menu .accordions {
    background: transparent !important;
}

.mobile-menu .accordion .card-body {
    background: transparent !important;
    padding: 0 0 6px;
}

.accordions .containers {
    position: relative;
    border-radius: 8px;
}

.accordions .labels {
    position: relative;
    cursor: pointer;
    padding-right: 26px;
}

.accordions .labels::before {
    content: '\f054';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #b6bfd0;
    position: absolute;
    top: 50%;
    right: 8px;
    font-size: 13px;
    transform: translateY(-50%);
    line-height: 1;
}

.accordions .contents {
    position: relative;
    height: 0;
    font-size: 15px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    transition: 0.35s ease;
}

.accordions .contents ul {
    padding: 0 8px 12px 18px;
    margin: 0;
}

.accordions .contents li {
    margin-bottom: 7px;
}

.accordions .contents li:last-child {
    margin-bottom: 0;
}

.accordions .contents li a {
    color: rgba(255, 255, 255, 0.86) !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.35;
}

.accordions .contents li a:hover {
    color: #f15a29 !important;
}

.accordions .containers.actives .contents {
    height: auto;
}

.accordions .containers.actives .labels::before {
    content: '\f078';
    color: #f15a29;
}

.labels[data-toggle="collapse"].is-open::before {
    content: '\f078';
    color: #f15a29;
}

.mobile-menu .cta-phone {
    margin-top: 14px;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-menu p.color-white.mt-4 {
    margin-top: 18px !important;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px;
}

.mobile-menu .social {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-size: 16px !important;
    margin-right: 8px !important;
}

.mobile-menu .social:last-child {
    margin-right: 0 !important;
}
