/* ============================================
   CURSOR HEADER STYLES
   Estilos específicos para el header
   Prefijo: cursorheader_
   ============================================ */

/* Reset y contenedor principal */
.cursorheader-wrapper {
    width: 100%;
    background: #ffffff;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: block !important; /* Asegurar que siempre sea visible */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Forzar que todos los elementos hijos no tengan bordes naranjas */
.cursorheader-wrapper * {
    border-color: transparent !important;
}

/* Específicamente eliminar bordes naranjas/salmon que puedan venir del template */
.cursorheader-wrapper,
.cursorheader-wrapper *,
.cursorheader-wrapper.page-header,
.cursorheader-wrapper.header-style-15 {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    outline: none !important;
}

/* Eliminar cualquier pseudo-elemento que pueda tener bordes */
.cursorheader-wrapper::before,
.cursorheader-wrapper::after,
.cursorheader-wrapper.page-header::before,
.cursorheader-wrapper.page-header::after,
.cursorheader-wrapper.header-style-15::before,
.cursorheader-wrapper.header-style-15::after {
    display: none !important;
    content: none !important;
    border: none !important;
}

/* Eliminar cualquier borde que pueda venir de .page-header o .header-style-15 */
.cursorheader-wrapper.page-header,
.cursorheader-wrapper.header-style-15,
.page-header.cursorheader-wrapper,
.header-style-15.cursorheader-wrapper,
header.cursorheader-wrapper,
header.page-header.cursorheader-wrapper,
header.header-style-15.cursorheader-wrapper {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

/* Eliminar bordes que puedan venir de clases del template como theme-border2 */
.cursorheader-wrapper.theme-border,
.cursorheader-wrapper.theme-border2,
.cursorheader-wrapper.page-header.theme-border,
.cursorheader-wrapper.page-header.theme-border2 {
    border: none !important;
    border-color: transparent !important;
}

.cursorheader-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px 20px;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ============================================
   FILA 1: Toggle | Logo | Usuario | Shopping Cart
   ============================================ */
.cursorheader-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap;
}

/* ============================================
   FILA 2: Buscador | Eventos (Mobile/Tablet) o Info Cliente (Desktop)
   ============================================ */
.cursorheader-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: nowrap;
}

/* Fila 2 específica para información del cliente en desktop */
.cursorheader-row-client-info {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.cursorheader-client-info-fullwidth {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
    font-size: 15px;
}

.cursorheader-client-info-fullwidth .cursorheader-client-code-inline,
.cursorheader-client-info-fullwidth .cursorheader-client-name-inline {
    font-size: 15px;
}

/* Fila 2 para buscador en mobile/tablet - ocultar en desktop */
.cursorheader-row-search-mobile {
    display: none;
}

.cursorheader-col-toggle {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.cursorheader-toggle-btn {
    width: 44px;
    height: 44px;
    border: 2px solid #ebebeb;
    border-radius: 8px;
    background: #f8f9fa;
    color: #1d1d1d;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.cursorheader-toggle-btn:hover {
    background: #ff8c42;
    border-color: #ff8c42;
    color: #ffffff;
    transform: scale(1.05);
}

.cursorheader-col-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.cursorheader-col-logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Buscador en fila 1 (Desktop) */
.cursorheader-row1 .cursorheader-col-search.cursorheader-search-desktop {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: 550px;
    display: flex;
    align-items: center;
}

/* Buscador en fila 2 (Mobile/Tablet) */
.cursorheader-row2 .cursorheader-col-search {
    flex: 1 1 auto;
    min-width: 250px;
    max-width: none;
    display: flex;
    align-items: center;
}

/* Ocultar info del cliente en móvil (ya está en los iconos) */
.cursorheader-client-info-mobile {
    display: none;
}

.cursorheader-col-events {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursorheader-col-events img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

.cursorheader-col-user-icons {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.cursorheader-icons-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cursorheader-user-icon,
.cursorheader-cart-icon {
    font-size: 22px;
    color: #1d1d1d;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8f9fa;
}

.cursorheader-user-icon:hover,
.cursorheader-cart-icon:hover {
    color: #ff8c42;
    background: #fff8f0;
}

/* Contenedor del carrito con subtotal */
.cursorheader-cart-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cursorheader-cart-subtotal {
    font-size: 13px;
    font-weight: 600;
    color: #1d1d1d;
    white-space: nowrap;
    min-width: 50px;
    text-align: left;
}

/* Estilos para el buscador */
.cursorheader-search-container {
    display: flex;
    width: 100%;
    align-items: stretch;
    border: 1px solid #d0d0d0 !important;
    border-color: #d0d0d0 !important;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: none;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.cursorheader-search-container:focus,
.cursorheader-search-container:focus-within {
    border: 1px solid #d0d0d0 !important;
    border-color: #d0d0d0 !important;
    box-shadow: none;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.cursorheader-search-select {
    padding: 12px 35px 12px 12px;
    border: none;
    border-right: 1px solid #d0d0d0;
    background: #f8f9fa;
    font-size: 14px;
    color: #1d1d1d;
    cursor: pointer;
    outline: none;
    width: 20%;
    min-width: 140px;
    max-width: 200px;
    flex: 0 0 auto;
    height: auto;
    min-height: 44px;
    line-height: 1.5;
    vertical-align: middle;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 16px;
    box-sizing: border-box;
    box-shadow: none;
}

.cursorheader-search-select option {
    padding: 8px 12px;
    line-height: 1.5;
    white-space: normal;
}

.cursorheader-search-input {
    flex: 1 1 auto;
    width: 60%;
    padding: 10px 15px;
    border: none;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    font-size: 14px;
    outline: none;
    color: #1d1d1d;
    box-shadow: none;
    background: #ffffff;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.cursorheader-search-input::placeholder {
    color: #a0a0a0;
}

.cursorheader-search-input:focus {
    border: none;
    outline: none;
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    background: #ffffff;
}

.cursorheader-search-input::-webkit-search-decoration,
.cursorheader-search-input::-webkit-search-cancel-button,
.cursorheader-search-input::-webkit-search-results-button,
.cursorheader-search-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

.cursorheader-search-btn {
    padding: 10px 20px;
    border: none;
    background: #ff8c42;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    min-width: 50px;
    box-shadow: none;
    outline: none;
}

.cursorheader-search-btn:hover {
    background: #ff7519;
}

/* Información del cliente debajo de los iconos */
.cursorheader-client-info-inline {
    text-align: right;
    line-height: 1.4;
}

.cursorheader-client-code-inline {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ff8c42;
    margin-bottom: 2px;
}

.cursorheader-client-name-inline {
    font-size: 0.75rem;
    color: #707070;
    text-transform: uppercase;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   FILA 3: Menú completo (centrado)
   ============================================ */
.cursorheader-row3 {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* Sticky del menú al hacer scroll */
.cursorheader-row3.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 12px 20px;
    margin: 0;
    animation: slideDown 0.3s ease-out;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
}

/* Espaciador izquierdo para balancear y centrar el menú */
.cursorheader-spacer-left {
    display: none;
    flex-shrink: 0;
    width: 0;
    order: 1;
}

.cursorheader-row3.sticky .cursorheader-spacer-left {
    display: block !important;
    width: 200px; /* Mismo ancho aproximado que los iconos para balancear */
    flex-shrink: 0;
    order: 1;
}

/* Iconos en modo sticky - lado derecho */
.cursorheader-icons-sticky {
    display: none;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    width: 200px; /* Ancho fijo para balancear */
    order: 3;
}

.cursorheader-row3.sticky .cursorheader-icons-sticky {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    order: 3;
}

.cursorheader-row3.sticky .cursorheader-nav {
    flex: 1 1 auto;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    min-width: 0;
    order: 2;
}

/* Animación para el menú sticky */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Asegurar que los dropdowns estén por encima cuando el menú está sticky */
.cursorheader-row3.sticky .cursorheader-nav-dropdown {
    z-index: 1000;
}

.cursorheader-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.cursorheader-nav-item {
    position: relative;
}

.cursorheader-nav-item.cursorheader-nav-parent::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: -50px;
    right: -50px;
    height: 15px;
    background: transparent;
    z-index: 1001;
}

.cursorheader-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    color: #1d1d1d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cursorheader-nav-link:hover {
    background: #f8f9fa;
    color: #ff8c42;
}

.cursorheader-nav-link i {
    font-size: 14px;
}

/* Dropdown menus */
.cursorheader-nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-width: 800px;
    max-width: 1200px;
    width: 90vw;
    padding: 30px 35px;
    display: none;
    z-index: 1000;
    margin-top: 5px;
    padding-top: 15px;
}

.cursorheader-nav-item:hover .cursorheader-nav-dropdown,
.cursorheader-nav-dropdown:hover {
    display: block;
}

/* Crear un puente invisible más grande para evitar que se cierre */
.cursorheader-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -50px;
    right: -50px;
    height: 15px;
    background: transparent;
    z-index: 999;
}

.cursorheader-dropdown-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1d;
    margin-bottom: 18px;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #ebebeb;
}


.cursorheader-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 18px;
}

.cursorheader-dropdown-item {
    padding: 10px 15px;
    color: #1d1d1d;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cursorheader-dropdown-item:hover {
    background: #f8f9fa;
    color: #ff8c42;
    transform: translateX(3px);
}

/* Banner "Despacho a todo chile" */
.cursorheader-banner {
    width: 100%;
    background: linear-gradient(135deg, #ff7519 0%, #ff8c42 100%);
    padding: 10px 0;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.cursorheader-banner i {
    margin-left: 8px;
}

/* ============================================
   OCULTAR MobileStickyMenu - Componente antiguo
   ============================================ */
.MobileStickyMenu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* También ocultar el botón toggle antiguo si existe */
.MobileMenuToggleUnique {
    display: none !important;
}

/* ============================================
   RESPONSIVE: TABLET (md) - 768px a 1024px
   Aplicar mismos estilos que 1024x824
   ============================================ */
@media (max-width: 1024px) and (min-width: 768px) {
    /* Ocultar buscador en fila 1 en tablet */
    .cursorheader-row1 .cursorheader-col-search.cursorheader-search-desktop {
        display: none !important;
    }
    
    /* Ocultar eventos en fila 1 en tablet */
    .cursorheader-col-events.cursorheader-events-desktop {
        display: none !important;
    }
    
    /* Mostrar buscador en fila 2 móvil */
    .cursorheader-row-search-mobile {
        display: flex !important;
    }
    
    /* Mostrar info del cliente en los iconos en tablet */
    .cursorheader-client-info-mobile {
        display: block !important;
    }
    
    /* Ocultar fila de info del cliente en tablet (ya está en los iconos) */
    .cursorheader-row-client-info {
        display: none !important;
    }
    /* Resetear cualquier estilo previo que pueda interferir */
    .cursorheader-row2 .cursorheader-search-container select,
    .cursorheader-row2 .cursorheader-search-container input,
    .cursorheader-row2 .cursorheader-search-container button {
        border-color: #d0d0d0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
    }
    
    /* ELIMINAR TODO PADDING Y MARGIN EN 768px */
    .cursorheader-container {
        padding: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Asegurar que el wrapper también no tenga padding */
    .cursorheader-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Asegurar que .page-header no tenga padding ni margin */
    .page-header.cursorheader-wrapper,
    header.page-header.cursorheader-wrapper,
    .page-header.cursorheader-wrapper.page-header,
    .cursorheader-wrapper.page-header.header-style-15,
    header.cursorheader-wrapper.page-header.header-style-15 {
        padding: 0 !important;
        margin: 0 !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Asegurar que cualquier contenedor padre no tenga padding */
    .cursorheader-wrapper .header-middle,
    .cursorheader-wrapper .header-panel-container,
    .cursorheader-wrapper .header-panel-row,
    .page-header .header-middle,
    .page-header .header-panel-container,
    .page-header .header-panel-row {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    
    /* Si hay un contenedor padre, también eliminarlo */
    .container .cursorheader-wrapper,
    .container-fluid .cursorheader-wrapper,
    .page-wrapper .cursorheader-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Fila 1: Logo e iconos - igual que 1024x824 */
    .cursorheader-row1 {
        gap: 20px;
        flex-wrap: nowrap;
        padding: 15px 20px;
    }
    
    .cursorheader-col-toggle {
        flex: 0 0 auto;
    }
    
    .cursorheader-col-logo {
        flex: 0 0 auto;
        justify-content: flex-start;
    }
    
    .cursorheader-col-logo img {
        max-height: 60px;
    }
    
    .cursorheader-col-user-icons {
        flex: 0 0 auto;
        gap: 8px;
        align-items: flex-end;
    }
    
    .cursorheader-user-icon,
    .cursorheader-cart-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .cursorheader-client-code-inline {
        font-size: 0.85rem;
    }
    
    .cursorheader-client-name-inline {
        font-size: 0.75rem;
        max-width: 220px;
    }
    
    /* Fila 2: Buscador y eventos - igual que 1024x824 */
    .cursorheader-row2 {
        gap: 20px;
        flex-wrap: nowrap;
        margin-bottom: 15px;
        padding: 0 20px;
    }
    
    .cursorheader-row2 .cursorheader-col-search {
        flex: 1 1 auto;
        min-width: 300px;
        max-width: 600px;
    }
    
    /* Asegurar que el contenedor del buscador mantenga el diseño */
    /* Sobreescribir cualquier estilo que pueda estar aplicado */
    .cursorheader-row2 .cursorheader-search-container,
    .cursorheader-row2 div.cursorheader-search-container {
        display: flex !important;
        width: 100% !important;
        align-items: stretch !important;
        border: 1px solid #d0d0d0 !important;
        border-color: #d0d0d0 !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Asegurar que los elementos dentro del contenedor no tengan bordes propios */
    .cursorheader-row2 .cursorheader-search-container * {
        box-sizing: border-box !important;
    }
    
    /* Asegurar estilos del selector en tablet - igual que desktop */
    /* Sobreescribir cualquier clase que pueda estar aplicada */
    .cursorheader-row2 .cursorheader-search-select,
    .cursorheader-row2 select.cursorheader-search-select,
    .cursorheader-row2 .cursorheader-search-select.CatSelect_EstiloUnico,
    .cursorheader-row2 select.cursorheader-search-select.CatSelect_EstiloUnico {
        padding: 12px 35px 12px 12px !important;
        border: none !important;
        border-right: 1px solid #d0d0d0 !important;
        border-top: none !important;
        border-bottom: none !important;
        border-left: none !important;
        background: #f8f9fa !important;
        background-color: #f8f9fa !important;
        font-size: 14px !important;
        color: #1d1d1d !important;
        cursor: pointer !important;
        outline: none !important;
        width: 20% !important;
        min-width: 140px !important;
        max-width: 200px !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: 44px !important;
        line-height: 1.5 !important;
        vertical-align: middle !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
        background-position: right 10px center !important;
        background-repeat: no-repeat !important;
        background-size: 16px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        border-radius: 0 !important;
    }
    
    .cursorheader-row2 .cursorheader-search-select option {
        padding: 8px 12px !important;
        line-height: 1.5 !important;
        white-space: normal !important;
    }
    
    /* Asegurar estilos del input en tablet - igual que desktop */
    /* Sobreescribir cualquier clase que pueda estar aplicada */
    .cursorheader-row2 .cursorheader-search-input,
    .cursorheader-row2 input.cursorheader-search-input,
    .cursorheader-row2 .cursorheader-search-input.CatInput_EstiloUnico,
    .cursorheader-row2 input.cursorheader-search-input.CatInput_EstiloUnico {
        flex: 1 1 auto !important;
        width: 60% !important;
        padding: 10px 15px !important;
        border: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
        font-size: 14px !important;
        outline: none !important;
        color: #1d1d1d !important;
        box-shadow: none !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
        border-radius: 0 !important;
    }
    
    .cursorheader-row2 .cursorheader-search-input::placeholder,
    .cursorheader-row2 input.cursorheader-search-input::placeholder,
    .cursorheader-row2 .cursorheader-search-input.CatInput_EstiloUnico::placeholder {
        color: #a0a0a0 !important;
    }
    
    .cursorheader-row2 .cursorheader-search-input:focus,
    .cursorheader-row2 input.cursorheader-search-input:focus,
    .cursorheader-row2 .cursorheader-search-input.CatInput_EstiloUnico:focus {
        border: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
        border-bottom: none !important;
        outline: none !important;
        box-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        background: #ffffff !important;
        background-color: #ffffff !important;
        border-radius: 0 !important;
    }
    
    /* Asegurar estilos del botón de búsqueda */
    /* Sobreescribir cualquier estilo que pueda estar aplicado */
    .cursorheader-row2 .cursorheader-search-btn,
    .cursorheader-row2 button.cursorheader-search-btn {
        flex: 0 0 auto !important;
        padding: 0 18px !important;
        border: none !important;
        border-radius: 0 !important;
        background: #ff8c42 !important;
        background-color: #ff8c42 !important;
        color: #ffffff !important;
        cursor: pointer !important;
        font-size: 16px !important;
        transition: all 0.3s ease !important;
        box-shadow: none !important;
        outline: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
        height: auto !important;
        min-height: 44px !important;
    }
    
    .cursorheader-row2 .cursorheader-search-btn:hover {
         background: #ff7519 !important;
    }
    
    .cursorheader-row2 .cursorheader-search-btn:active {
         background: #ff6600 !important;
    }
    
    .cursorheader-col-events {
        flex: 0 0 auto;
    }
    
    .cursorheader-col-events img {
        max-height: 50px;
    }
    
    /* Fila 3: Menú - ocultar en pantallas menores a 768px */
    .cursorheader-row3 {
        display: none !important;
    }
    
    .cursorheader-banner {
        font-size: 14px;
        padding: 10px 0;
    }
}

/* ============================================
   RESPONSIVE: TABLET LARGE (lg) - mayor a 1024px (DESKTOP)
   ============================================ */
@media (min-width: 1025px) {
    .cursorheader-container {
        padding: 15px 20px;
    }
    
    /* Fila 1 (Desktop): Toggle | Logo | Buscador | Logo Eventos | Iconos Usuario/Carrito */
    .cursorheader-row1 {
        gap: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .cursorheader-col-toggle {
        flex: 0 0 auto;
    }
    
    .cursorheader-col-logo {
        flex: 0 0 auto;
    }
    
    .cursorheader-col-logo img {
        max-height: 60px;
    }
    
    /* Buscador en fila 1 (Desktop) */
    .cursorheader-row1 .cursorheader-col-search.cursorheader-search-desktop {
        flex: 1 1 auto;
        min-width: 250px;
        max-width: 550px;
        display: flex !important;
    }
    
    /* Asegurar borde en el contenedor del buscador en desktop */
    .cursorheader-search-container,
    .cursorheader-row1 .cursorheader-search-container {
        border: 1px solid #d0d0d0 !important;
        border-color: #d0d0d0 !important;
    }
    
    .cursorheader-search-select {
        width: 20%;
        min-width: 140px;
        max-width: 200px;
    }
    
    .cursorheader-search-input {
        width: 60%;
    }
    
    .cursorheader-col-events.cursorheader-events-desktop {
        flex: 0 0 auto;
        display: flex !important;
    }
    
    .cursorheader-col-events img {
        max-height: 50px;
    }
    
    .cursorheader-col-user-icons {
        flex: 0 0 auto;
    }
    
    /* Ocultar info del cliente en los iconos en desktop */
    .cursorheader-client-info-mobile {
        display: none !important;
    }
    
    /* Fila 2 (Desktop): Información del cliente - full width, right-aligned */
    .cursorheader-row-client-info {
        display: flex !important;
        width: 100%;
        justify-content: flex-end;
        margin-bottom: 10px;
    }
    
    /* Ocultar buscador móvil en desktop */
    .cursorheader-row-search-mobile {
        display: none !important;
    }
    
    /* Fila 3: Menú visible */
    .cursorheader-row3 {
        display: block !important;
    }
    
    .cursorheader-nav {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .cursorheader-nav-link {
        padding: 10px 18px;
        font-size: 15px;
    }
    
    .cursorheader-nav-dropdown {
        min-width: 800px;
        max-width: 1200px;
    }
    
    .cursorheader-dropdown-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px 18px;
    }
}

/* ============================================
   RESPONSIVE: MÓVIL (sm y xs) - menor a 768px
   Incluye 425x824 y todos los móviles
   ============================================ */
@media (max-width: 767px) {
    /* Asegurar que el header sea visible en móvil */
    .cursorheader-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .cursorheader-container {
        padding: 10px 15px;
    }
    
    /* Ocultar buscador en fila 1 en móvil */
    .cursorheader-row1 .cursorheader-col-search.cursorheader-search-desktop {
        display: none !important;
    }
    
    /* Ocultar eventos en fila 1 en móvil */
    .cursorheader-col-events.cursorheader-events-desktop {
        display: none !important;
    }
    
    /* Mostrar buscador en fila 2 móvil */
    .cursorheader-row-search-mobile {
        display: flex !important;
    }
    
    /* Mostrar info del cliente en los iconos en móvil */
    .cursorheader-client-info-mobile {
        display: block !important;
    }
    
    /* Ocultar fila de info del cliente en móvil (ya está en los iconos) */
    .cursorheader-row-client-info {
        display: none !important;
    }
    
    /* Fila 1: Toggle | Logo | Usuario | Shopping Cart */
    .cursorheader-row1 {
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .cursorheader-col-toggle {
        flex: 0 0 auto;
    }
    
    .cursorheader-col-logo {
        flex: 1 1 auto;
        justify-content: flex-start;
        min-width: 120px;
    }
    
    .cursorheader-col-logo img {
        max-height: 50px;
    }
    
    .cursorheader-col-user-icons {
        flex: 0 0 auto;
        gap: 6px;
        align-items: flex-end;
    }
    
    .cursorheader-user-icon,
    .cursorheader-cart-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .cursorheader-cart-wrapper {
        gap: 6px;
    }
    
    .cursorheader-cart-subtotal {
        font-size: 11px;
        min-width: 45px;
    }
    
    .cursorheader-client-code-inline {
        font-size: 0.75rem;
    }
    
    .cursorheader-client-name-inline {
        font-size: 0.65rem;
        max-width: 150px;
    }
    
    /* Fila 2: Buscador y Eventos */
    .cursorheader-row2 {
        gap: 10px;
        flex-wrap: nowrap;
        margin-bottom: 12px;
    }
    
    .cursorheader-row2 .cursorheader-col-search {
        flex: 1 1 auto;
        min-width: 250px;
        max-width: none;
    }
    
    /* Asegurar borde en el contenedor del buscador en móvil */
    .cursorheader-row2 .cursorheader-search-container,
    .cursorheader-search-container {
        border: 1px solid #d0d0d0 !important;
        border-color: #d0d0d0 !important;
    }
    
    .cursorheader-search-select {
        width: 22%;
        min-width: 110px;
        max-width: 150px;
        padding: 10px 28px 10px 10px;
        font-size: 13px;
    }
    
    .cursorheader-search-input {
        width: 60%;
    }
    
    .cursorheader-col-events {
        flex: 0 0 auto;
    }
    
    .cursorheader-col-events img {
        max-height: 40px;
    }
    
    /* Fila 3: Menú - OCULTAR en móvil */
    .cursorheader-row3 {
        display: none !important;
    }
    
    /* Ocultar iconos sticky en móvil ya que el menú no se muestra */
    .cursorheader-icons-sticky {
        display: none !important;
    }
    
    .cursorheader-banner {
        font-size: 12px;
        padding: 8px 0;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.cursorheader-hide-mobile {
    display: block;
}

@media (max-width: 767px) {
    .cursorheader-hide-mobile {
        display: none !important;
    }
}

.cursorheader-show-mobile {
    display: none;
}

@media (max-width: 767px) {
    .cursorheader-show-mobile {
        display: block !important;
    }
}

