/* === Lubricalia B2B CTAs === */

/* ----- CONTENEDOR BOTONES PRODUCTO ----- */
.b2b-ctas {
    display: flex;
    gap: 10px;
    margin: 16px 0 10px;
    flex-wrap: wrap;
}

/* ----- BASE BOTÓN ----- */
.btn-b2b {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    border-radius: 50px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.2px !important;
    text-decoration: none !important;
    flex: 1 !important;
    min-width: 160px !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
    cursor: pointer !important;
    line-height: 1.3 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.13) !important;
    white-space: nowrap !important;
}
.btn-b2b:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 16px rgba(0,0,0,0.18) !important;
}
.btn-b2b:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
}
.btn-b2b .material-icons {
    font-size: 17px !important;
    line-height: 1 !important;
}
.btn-b2b svg {
    flex-shrink: 0 !important;
}

/* ----- SOLICITAR PRESUPUESTO (ámbar) ----- */
.btn-b2b-quote {
    background: linear-gradient(135deg, #f5a623 0%, #e8900a 100%) !important;
    color: #ffffff !important;
}
.btn-b2b-quote:hover,
.btn-b2b-quote:focus,
.btn-b2b-quote:visited {
    background: linear-gradient(135deg, #e8900a 0%, #d47e08 100%) !important;
    color: #ffffff !important;
}

/* ----- WHATSAPP (verde oficial) ----- */
.btn-b2b-wa {
    background: linear-gradient(135deg, #25D366 0%, #1ab950 100%) !important;
    color: #ffffff !important;
}
.btn-b2b-wa:hover,
.btn-b2b-wa:focus,
.btn-b2b-wa:visited {
    background: linear-gradient(135deg, #1ab950 0%, #17a346 100%) !important;
    color: #ffffff !important;
}

/* ----- VARIANTE GRANDE (homepage) ----- */
.btn-b2b-lg {
    padding: 13px 28px !important;
    font-size: 15px !important;
    min-width: 200px !important;
    flex: none !important;
    width: 100% !important;
}

/* ----- SECCIÓN CTA HOMEPAGE ----- */
/* Usa márgenes negativos para romper el padding de Bootstrap y ocupar todo el ancho */
.b2b-home-cta {
    background: linear-gradient(135deg, #e8f4fb 0%, #d6ecf6 50%, #e4f3fb 100%);
    border-top: 3px solid #00a659;
    border-bottom: 2px solid #b8dff0;
    padding: 44px 0;
    margin: 24px -15px 32px;
}
.b2b-home-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}
.b2b-home-content {
    flex: 1;
    min-width: 280px;
}
.b2b-home-tag {
    display: inline-block;
    background: #00a659;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 14px;
}
.b2b-home-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a4a;
    line-height: 1.35;
    margin: 0 0 12px;
}
.b2b-home-body {
    font-size: 15px;
    color: #4a6070;
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 520px;
}
.b2b-home-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.b2b-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.85);
    border: 1px solid #a8d5e8;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #2a4a5e;
}
.b2b-home-badge svg {
    color: #00a659;
    flex-shrink: 0;
}
.b2b-home-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-width: 220px;
    max-width: 260px;
}
.b2b-home-phone {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #1e3a4a !important;
    text-decoration: none !important;
    padding: 8px 0 !important;
    border-top: 1px solid #a8d5e8 !important;
    margin-top: 4px !important;
    transition: color 0.2s !important;
}
.b2b-home-phone:hover {
    color: #00a659 !important;
}
.b2b-home-phone svg {
    color: #00a659;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 768px) {
    .b2b-home-inner {
        gap: 28px;
    }
    .b2b-home-actions {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
}
@media (max-width: 600px) {
    .b2b-ctas {
        flex-direction: column;
    }
    .btn-b2b {
        min-width: unset !important;
        width: 100% !important;
    }
    .b2b-home-cta {
        margin-left: -15px;
        margin-right: -15px;
        padding: 30px 0;
    }
    .b2b-home-inner {
        flex-direction: column;
        gap: 22px;
        padding: 0 15px;
    }
    .b2b-home-title {
        font-size: 20px;
    }
    .btn-b2b-lg {
        width: 100% !important;
    }
}

/* ----- BARRA SUPERIOR (todas las páginas) ----- */
.b2b-topbar {
    background: linear-gradient(90deg, #1a8fa8 0%, #00bf66 50%, #20a5c0 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 13.5px;
}
.b2b-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.b2b-topbar-msg {
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.1px;
    min-width: 200px;
}
.b2b-topbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.b2b-topbar-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-radius: 50px !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.18s ease !important;
    white-space: nowrap !important;
    border: 2px solid transparent !important;
}
.b2b-topbar-btn-quote {
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.5) !important;
}
.b2b-topbar-btn-quote:hover,
.b2b-topbar-btn-quote:visited,
.b2b-topbar-btn-quote:focus {
    background: rgba(255,255,255,0.3) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,0.8) !important;
}
.b2b-topbar-btn-wa {
    background: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
}
.b2b-topbar-btn-wa:hover,
.b2b-topbar-btn-wa:visited,
.b2b-topbar-btn-wa:focus {
    background: #1ab950 !important;
    color: #fff !important;
    border-color: #1ab950 !important;
}

@media (max-width: 600px) {
    .b2b-topbar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .b2b-topbar-msg {
        font-size: 12.5px;
    }
}

/* ----- PRODUCT PAGE MEDIA SAFETY (avoid oversized images) ----- */
#product .images-container .product-cover img,
#product .images-container .product-cover picture > img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

#product .js-product-images-modal .product-cover-modal,
#product #product-modal .product-cover-modal {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    max-height: 82vh !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
}

#product #description img,
#product .product-description img,
#product .product-description-short img,
#product #product-description-short img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}

#product #description table,
#product .product-description table,
#product .product-description-short table,
#product #product-description-short table {
    display: block;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ----- PRODUCT PAGE MAIN IMAGE SIZE CAP (global anti-oversize) ----- */
#product .images-container .product-cover {
    display: flex;
    align-items: center;
    justify-content: center;
}

#product .images-container .product-cover img,
#product .images-container .product-cover picture > img,
#product .images-container .js-qv-product-cover {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 520px !important;
    object-fit: contain !important;
    margin: 0 auto;
}

@media (max-width: 991px) {
    #product .images-container .product-cover img,
    #product .images-container .product-cover picture > img,
    #product .images-container .js-qv-product-cover {
        max-height: 460px !important;
    }
}

@media (max-width: 600px) {
    #product .images-container .product-cover img,
    #product .images-container .product-cover picture > img,
    #product .images-container .js-qv-product-cover {
        max-height: 62vh !important;
    }
}

/* ================================================================
   CHECKOUT IMPROVEMENT — Payment cards, trust badges, B2B toggle,
   RGPD compact (v1.1.0, 26 feb 2026)
   ================================================================ */

/* ----- PAYMENT CARDS ----- */
.b2b-payment-card {
    border: 2px solid #e0e6eb !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    margin-bottom: 12px !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
    position: relative !important;
    background: #fff !important;
}
.b2b-payment-card:hover {
    border-color: #00bf66 !important;
    box-shadow: 0 2px 12px rgba(36, 185, 215, 0.12) !important;
}
.b2b-payment-card--selected {
    border-color: #00bf66 !important;
    background: #f0fafb !important;
    box-shadow: 0 2px 12px rgba(36, 185, 215, 0.15) !important;
}

/* Checkmark circle on selected card */
.b2b-payment-card--selected::after {
    content: "\2713";
    position: absolute;
    top: 12px;
    right: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00bf66;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Hide original radio but keep accessible */
.b2b-payment-card input[type="radio"] {
    opacity: 0 !important;
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

/* Payment icons */
.b2b-payment-icons {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Payment description */
.b2b-payment-desc {
    display: block;
    font-size: 13px;
    color: #6a7a88;
    margin-top: 6px;
    line-height: 1.4;
    padding-left: 0;
}

/* Recommended badge */
.b2b-payment-recommended {
    display: inline-block;
    background: #d4edda;
    color: #155724;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 50px;
    margin-left: 10px;
    vertical-align: middle;
}

/* Spain-specific recommended badge */
.b2b-payment-recommended--spain {
    background: #d1ecf1;
    color: #0c5460;
}

/* ----- TRUST BADGES ----- */
.b2b-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px 0 8px;
    margin-top: 16px;
    border-top: 1px solid #e8eef2;
}
.b2b-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #4a6070;
    white-space: nowrap;
}
.b2b-trust-badge svg {
    flex-shrink: 0;
}

/* ----- PAY BUTTON ----- */
.b2b-pay-button {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    letter-spacing: 0.3px !important;
}

/* ----- IFRAME REDSYS SAFETY ----- */
.payment-options .additional-information iframe {
    min-height: 700px;
}

/* ----- B2B TOGGLE (company/VAT collapse) ----- */
.b2b-toggle {
    background: #f5f7f9;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e0e6eb;
}
.b2b-toggle label {
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #2a3e4c;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.b2b-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00bf66;
    cursor: pointer;
}

/* Collapsible wrapper — JS controls display:none directly */
.b2b-fields-collapsible {
    overflow: hidden;
}

/* ----- RGPD COMPACT ----- */
.b2b-rgpd-compact {
    margin-bottom: 6px !important;
    padding: 4px 0 !important;
}
.b2b-rgpd-compact label,
.b2b-rgpd-compact .custom-checkbox__label {
    font-size: 12.5px !important;
    font-weight: normal !important;
    color: #5a6a78 !important;
    line-height: 1.35 !important;
}
.b2b-rgpd-compact a {
    font-size: 12px !important;
}
/* Hide form-control-comment under RGPD checkboxes. em/i hidden by JS (preserves links) */
.b2b-rgpd-compact .form-control-comment {
    display: none !important;
}
/* Optional newsletter: separated from required by dashed border */
.b2b-rgpd-optional {
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px dashed #dee2e6 !important;
    opacity: 0.8;
}

/* ----- CONDITIONS CHECKBOX HIGHLIGHT ----- */
.b2b-conditions-highlight {
    background: #fffbe6;
    border: 2px solid #f5c518;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    transition: border-color 0.3s;
}
.b2b-conditions-highlight label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1a2b3c !important;
}
.b2b-conditions-highlight a {
    color: #00bf66 !important;
    text-decoration: underline;
}
/* Payment conditions (li inside #conditions-to-approve) */
#conditions-to-approve li.b2b-conditions-highlight {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
#conditions-to-approve li.b2b-conditions-highlight .condition-label {
    flex: 1;
}
#conditions-to-approve li.b2b-conditions-highlight .condition-label label {
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #1a2b3c !important;
    cursor: pointer;
}

/* ----- REQUIRED FIELDS MARKER ----- */
.form-control-label.required::after {
    content: " *" !important;
    color: #e74c3c !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* ----- CHECKOUT RESPONSIVE ----- */
@media (max-width: 768px) {
    .b2b-payment-card {
        padding: 14px 16px !important;
    }
    .b2b-trust-badges {
        gap: 16px;
    }
    .b2b-trust-badge {
        font-size: 11.5px;
    }
    .b2b-payment-icons {
        display: flex;
        margin-left: 0;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .b2b-payment-card {
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }
    .b2b-payment-card--selected::after {
        top: 8px;
        right: 10px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .b2b-trust-badges {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .b2b-pay-button {
        font-size: 15px !important;
        padding: 12px 24px !important;
    }
}

/* Topbar guides button */
.b2b-topbar-btn-guides {
    background: #00a659 !important;
    color: #fff !important;
}
.b2b-topbar-btn-guides:hover,
.b2b-topbar-btn-guides:visited,
.b2b-topbar-btn-guides:focus {
    background: #008c4a !important;
    color: #fff !important;
}

/* ===== BRAND MARQUEE ===== */
.brand-marquee-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0 1.25rem;
    overflow: hidden;
}
.brand-marquee-title {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin: 0 0 .75rem;
}
.brand-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.brand-marquee::before,
.brand-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.brand-marquee::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}
.brand-marquee::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}
.brand-marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}
.brand-marquee-track:hover {
    animation-play-state: paused;
}
.brand-marquee-item {
    flex-shrink: 0;
}
.brand-marquee-item a {
    display: block;
}
.brand-marquee-item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: .55;
    transition: filter .3s, opacity .3s;
}
.brand-marquee-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 576px) {
    .brand-marquee-item img {
        height: 30px;
        max-width: 90px;
    }
    .brand-marquee-track {
        gap: 2rem;
        animation-duration: 25s;
    }
}

/* ===== CLEANUP: reCAPTCHA badge + WhatsApp position ===== */
/* Hide reCAPTCHA badge (Google allows if legal text in footer) */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
#adveg-grecaptcha,
.adveg-grecaptcha-fixed {
    display: none !important;
}

/* WhatsApp button: move above the AI chat button for visibility */
#whatsappchat-box {
    bottom: 170px !important;
    right: 22px !important;
    z-index: 99990 !important;
}

/* AI chat button: keep at bottom right */
#ai-launch {
    bottom: 95px !important;
}

/* ===== GUIDES HOMEPAGE SECTION ===== */
.guides-home-section {
    padding: 2.5rem 0;
    background: #fff;
}
.guides-home-header {
    text-align: center;
    margin-bottom: 2rem;
}
.guides-home-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 .5rem;
}
.guides-home-subtitle {
    font-size: 1rem;
    color: #777;
    margin: 0;
}
.guides-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.guides-home-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}
.guides-home-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}
.guides-home-card-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
}
.guides-home-card-body {
    flex: 1;
    min-width: 0;
}
.guides-home-card-title {
    font-size: .95rem;
    font-weight: 700;
    color: #00a659;
    margin: 0 0 .25rem;
    line-height: 1.3;
}
.guides-home-card-desc {
    font-size: .8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}
.guides-home-cta {
    text-align: center;
    margin-top: 1.5rem;
}
.guides-home-btn {
    display: inline-block;
    background: #00a659;
    color: #fff;
    padding: .6rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.guides-home-btn:hover {
    background: #008c4a;
    color: #fff;
    text-decoration: none;
}
@media (max-width: 768px) {
    .guides-home-grid {
        grid-template-columns: 1fr;
    }
}

/* =================================================================
   LEAD CAPTURE MODAL — Intercepta descargas PDF en ficha producto
   ================================================================= */

/* Overlay */
.lub-lead-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 99998;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.lub-lead-overlay.lub-lead-visible {
    display: block;
}

/* Modal */
.lub-lead-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    z-index: 99999;
    width: 92%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 32px 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.lub-lead-modal.lub-lead-visible {
    display: block;
    animation: lub-lead-fadein .2s ease;
}
@keyframes lub-lead-fadein {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* Header */
.lub-lead-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.lub-lead-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a5f;
}
.lub-lead-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: #999;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.lub-lead-close:hover {
    color: #333;
}

/* Subtítulo */
.lub-lead-subtitle {
    font-size: .88rem;
    color: #666;
    margin: 0 0 18px;
    line-height: 1.45;
}

/* Campos */
.lub-lead-field {
    margin-bottom: 12px;
}
.lub-lead-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}
.lub-lead-field input:focus {
    outline: none;
    border-color: #00a659;
    box-shadow: 0 0 0 3px rgba(47, 181, 210, .15);
}
.lub-lead-field input::placeholder {
    color: #aaa;
}

/* Fila de 2 campos */
.lub-lead-row {
    display: flex;
    gap: 10px;
}
.lub-lead-half {
    flex: 1;
}

/* Error */
.lub-lead-error {
    display: none;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: .85rem;
    color: #856404;
}

/* Botones */
.lub-lead-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}
.lub-lead-btn-submit {
    flex: 1;
    padding: 11px 20px;
    background: #00a659;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.lub-lead-btn-submit:hover {
    background: #008c4a;
}
.lub-lead-btn-submit:disabled {
    background: #b0d8e2;
    cursor: wait;
}
.lub-lead-btn-cancel {
    padding: 11px 18px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s;
    font-family: inherit;
}
.lub-lead-btn-cancel:hover {
    background: #eee;
}

/* Privacidad */
.lub-lead-privacy {
    font-size: .78rem;
    color: #999;
    margin: 0;
    line-height: 1.4;
}
.lub-lead-privacy a {
    color: #00a659;
}

/* Responsive */
@media (max-width: 480px) {
    .lub-lead-modal {
        padding: 20px 18px 18px;
        width: 96%;
    }
    .lub-lead-row {
        flex-direction: column;
        gap: 0;
    }
    .lub-lead-actions {
        flex-direction: column;
    }
}

/* ===================================================================
   CUSTOM HEADER LUBRICALIA — verde corporativo, 22 mar 2026
   ================================================================= */

/* --- Ocultar elementos nativos PS duplicados --- */
#_desktop_logo,
.header-nav .hidden-sm-down,
.header-nav .hidden-md-up.mobile,
#header .header-top-right > .blockcart,
#header .header-top-right > .block-wishlist,
#header .header-top-right > .user-info,
div.search-widgets,
#header .search-widgets,
.header-top .search-widgets,
#header [data-elementor-type],
#header .elementor {
    display: none !important;
}

/* Header = full width (break out of PS col-md-10 constraint) */
#header .header-top > .container {
    max-width: none !important;
    padding: 0 !important;
}
#header .header-top > .container > .row {
    margin: 0 !important;
}
#header .header-top-right {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}
.b2b-header-phonebar,
.b2b-header-main {
    width: 100% !important;
}
.b2b-header-phonebar > .container,
.b2b-header-main > .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 40px !important;
}

/* --- PHONE BAR — verde corporativo --- */
.b2b-header-phonebar {
    background: linear-gradient(135deg, #007a3d 0%, #00a659 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    letter-spacing: 0.2px;
}
.b2b-header-phonebar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.b2b-header-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color .2s;
    white-space: nowrap;
}
.b2b-header-contact:hover {
    color: #c8ffd9;
    text-decoration: none;
}
.b2b-header-contact svg {
    opacity: .85;
    flex-shrink: 0;
}
.b2b-header-tagline {
    margin-left: auto;
    color: rgba(255,255,255,.7);
    font-style: italic;
    font-size: 13px;
}

/* --- MAIN HEADER --- */
.b2b-header-main {
    background: #fff;
    padding: 16px 0;
    border-bottom: 3px solid #00a659;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    position: relative;
    z-index: 100;
}
.b2b-header-main-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo — grande */
.b2b-header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.b2b-header-logo img {
    height: auto;
    width: auto;
    max-height: 85px;
    max-width: 300px;
}
.b2b-header-logo-h1 {
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Search — grande y verde */
.b2b-header-search {
    flex: 1;
    max-width: 650px;
}
.b2b-header-search form {
    display: flex;
    border: 2px solid #00a659;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .2s;
    background: #fff;
}
.b2b-header-search form:focus-within {
    box-shadow: 0 0 0 4px rgba(0,166,89,.15);
}
.b2b-header-search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    outline: none;
    background: transparent;
    min-width: 0;
    color: #1b2e3d;
}
.b2b-header-search-input::placeholder {
    color: #9aabb8;
    font-size: 15px;
}
.b2b-header-search-btn {
    background: #00a659;
    border: none;
    padding: 15px 24px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background .2s;
}
.b2b-header-search-btn:hover {
    background: #008c4a;
}
.b2b-header-search-btn svg {
    width: 22px;
    height: 22px;
}

/* Icons */
.b2b-header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.b2b-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    color: #3a5060;
    text-decoration: none;
    position: relative;
    transition: background .2s, color .2s;
}
.b2b-header-icon:hover {
    background: #e8f8ee;
    color: #00a659;
    text-decoration: none;
}
.b2b-header-icon svg {
    width: 24px;
    height: 24px;
}
.b2b-header-cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Language */
.b2b-header-lang {
    position: relative;
    flex-shrink: 0;
    z-index: 101;
}
/* Hover bridge: invisible area below button keeps :hover alive while mouse moves to dropdown */
.b2b-header-lang::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -10px;
    right: -10px;
    height: 10px;
    display: none;
}
.b2b-header-lang:hover::after,
.b2b-header-lang.open::after {
    display: block;
}
.b2b-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1px solid #dde3e8;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #3a5060;
    cursor: pointer;
    transition: border-color .2s;
}
.b2b-lang-toggle:hover {
    border-color: #00a659;
    color: #00a659;
}
.b2b-lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #dde3e8;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    min-width: 110px;
    z-index: 1000;
    margin-top: 6px;
    overflow: hidden;
}
.b2b-header-lang:hover .b2b-lang-dropdown,
.b2b-header-lang.open .b2b-lang-dropdown {
    display: block;
}
.b2b-lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background .15s;
}
.b2b-lang-option:hover {
    background: #e8f8ee;
    text-decoration: none;
    color: #1b2e3d;
}
.b2b-lang-active {
    font-weight: 600;
    color: #00a659;
}

/* Menu verde */
.ets_mm_megamenu {
    padding: 0 !important;
}
.ets_mm_megamenu .mm_menus_li > a {
    border-bottom: 3px solid transparent !important;
    transition: border-color .2s, color .2s !important;
}
.ets_mm_megamenu .mm_menus_li > a:hover,
.ets_mm_megamenu .mm_menus_li.active > a {
    color: #00a659 !important;
    border-bottom-color: #00a659 !important;
}
.breadcrumb {
    font-size: 13px;
    padding: 8px 15px;
}

/* ============ TABLET (768-1024) ============ */
@media (min-width: 768px) and (max-width: 1024px) {
    .b2b-header-logo img {
        max-height: 56px;
        max-width: 200px;
    }
    .b2b-header-main-inner {
        gap: 16px;
    }
    .b2b-header-search-input {
        padding: 12px 14px;
        font-size: 14px;
    }
    .b2b-header-search-btn {
        padding: 12px 18px;
    }
    .b2b-header-phonebar {
        font-size: 13px;
        padding: 8px 0;
    }
    .b2b-header-contact {
        font-size: 13px;
    }
    .b2b-header-tagline {
        display: none;
    }
}

/* ============ MOBILE ============ */
@media (max-width: 767px) {
    .b2b-header-phonebar {
        display: none;
    }
    .b2b-header-main {
        padding: 6px 0;
    }
    .b2b-header-main-inner {
        gap: 8px;
    }
    .b2b-header-logo img {
        height: 28px;
        max-width: 110px;
    }
    .b2b-header-search {
        flex: 1;
        max-width: none;
    }
    .b2b-header-search-input {
        padding: 7px 10px;
        font-size: 13px;
    }
    .b2b-header-search-btn {
        padding: 7px 10px;
    }
    .b2b-header-lang {
        display: none;
    }
    /* Mega menu mobile */
    .ybc-menu-toggle {
        padding: 6px 12px !important;
        font-size: 14px !important;
    }
    /* Breadcrumb mobile */
    .breadcrumb {
        font-size: 11px !important;
        padding: 4px 10px !important;
        white-space: normal !important;
    }

    /* ==================================================
       FICHA DE PRODUCTO MOVIL - optimizada
       Estándares: Amazon, RS Components, Grainger
       Above-the-fold: header → breadcrumb → imagen → nombre → precio → CTA
       ================================================== */

    /* Ocultar barra verde CTA y marcas en fichas de producto */
    body#product .b2b-topbar,
    body#product .brand-marquee,
    body#product .brand-marquee-container {
        display: none !important;
    }

    /* Imagen producto: escalar proporcionalmente (NO cortar) */
    body#product .images-container {
        margin: 0 0 16px 0 !important;
        padding: 0 !important;
        clear: both !important;
    }
    /* Separar columna imágenes de columna info en stack móvil */
    body#product #content .col-md-6:first-child {
        margin-bottom: 12px !important;
    }
    body#product .product-cover {
        text-align: center;
        padding: 0 !important;
    }
    body#product .product-cover img,
    body#product .product-cover picture {
        max-height: 200px !important;
        width: auto !important;
        max-width: 70% !important;
        margin: 0 auto;
        display: block;
        object-fit: contain !important;
        height: auto !important;
    }
    /* Thumbnails compactas */
    body#product .product-images {
        display: flex !important;
        gap: 4px;
        overflow-x: auto;
        padding: 4px 0;
        justify-content: center;
    }
    body#product .product-images li {
        flex-shrink: 0;
    }
    body#product .product-images img {
        width: 48px !important;
        height: 48px !important;
        object-fit: contain;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
    }

    /* Nombre producto: separado de thumbnails */
    body#product h1.h1,
    body#product h1.product-detail-title,
    body#product h1[itemprop="name"] {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin: 0 0 4px !important;
        clear: both !important;
    }

    /* Precio visible e impactante */
    body#product .product-prices {
        margin: 4px 0 8px !important;
    }
    body#product .current-price-value {
        font-size: 22px !important;
        font-weight: 700 !important;
        color: #1b2e3d !important;
    }

    /* CTA compactos */
    body#product .product-add-to-cart {
        margin: 0 !important;
        padding: 8px 0 !important;
    }
    body#product .add-to-cart {
        padding: 10px 20px !important;
        font-size: 15px !important;
        width: 100% !important;
    }

    /* B2B CTAs (quote/whatsapp) más compactos */
    body#product .b2b-ctas {
        gap: 6px !important;
        margin: 6px 0 !important;
    }
    body#product .btn-b2b {
        padding: 8px 12px !important;
        font-size: 13px !important;
    }

    /* Ocultar info secundaria que empuja CTA abajo */
    body#product .product-additional-info {
        margin: 4px 0 !important;
    }

    /* ==================================================
       CATEGORIAS MOVIL - grid productos compacto
       ================================================== */

    /* Ocultar marcas en categorías (solo mostrar en home) */
    body#category .brand-marquee,
    body#category .brand-marquee-container {
        display: none !important;
    }

    /* Grid de productos: 2 columnas, compacto */
    body#category #js-product-list .products {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding: 0 8px !important;
    }
    body#category .product-miniature {
        padding: 6px !important;
    }
    body#category .product-miniature .thumbnail-container img {
        max-height: 120px !important;
        object-fit: contain;
    }
    body#category .product-miniature .product-title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        margin: 4px 0 2px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    body#category .product-miniature .product-price-and-shipping {
        font-size: 14px !important;
        font-weight: 700 !important;
    }
}


/* =================================================================
   MOBILE UX FIXES — 22 mar 2026 (solo @media, no afecta desktop)
   ================================================================= */

@media (max-width: 767px) {
    .featured-products .products.row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 10px !important;
        padding: 0 12px 12px !important;
        margin: 0 !important;
    }
    .featured-products .products.row > .js-product {
        flex: 0 0 44% !important;
        max-width: 44% !important;
        scroll-snap-align: start !important;
        padding: 0 !important;
    }
    .featured-products .products.row > .js-product .thumbnail-container img {
        max-height: 130px !important;
        object-fit: contain !important;
    }
    .featured-products .products.row > .js-product .product-title {
        font-size: 12px !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    .featured-products .products.row > .js-product .product-price-and-shipping {
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    .featured-products .products.row::-webkit-scrollbar { height: 3px !important; }
    .featured-products .products.row::-webkit-scrollbar-thumb { background: #ccc !important; border-radius: 3px !important; }
    .featured-products > h2 { font-size: 1.15rem !important; margin: 14px 0 8px !important; }
    #whatsappchat-box { bottom: 80px !important; right: 10px !important; transform: scale(0.8) !important; transform-origin: bottom right !important; }
    #ai-launch { bottom: 14px !important; right: 10px !important; transform: scale(0.8) !important; transform-origin: bottom right !important; }
    .b2b-topbar-btn-wa { display: none !important; }
}
@media (max-width: 480px) {
    #whatsappchat-box { bottom: 70px !important; right: 6px !important; transform: scale(0.72) !important; }
    #ai-launch { bottom: 10px !important; right: 6px !important; transform: scale(0.72) !important; }
}

/* ═══════════════════════════════════════════════════════════════
   LUBRICALIA MEGA MENU — Professional navigation
   ═══════════════════════════════════════════════════════════════ */

/* ── Base nav bar ── */
nav.lmm {
  background: #1a1a2e;
  border-bottom: 3px solid #00a659;
  position: sticky;
  top: 0;
  z-index: 998; /* lowered: header z=999 must be above so lang dropdown renders on top */
}
nav.lmm .lmm-inner {
  display: flex;
  align-items: center;
  position: relative;
}

/* ── Top-level list ── */
nav.lmm .lmm-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* ── Menu items ── */
nav.lmm .lmm-item {
  position: static; /* dropdown relative to .lmm, not item */
}
nav.lmm .lmm-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  color: #e8e8e8;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}
nav.lmm .lmm-link:hover,
nav.lmm .lmm-item.lmm-active > .lmm-link {
  color: #fff;
  background: rgba(255,255,255,0.07);
  border-bottom-color: #00a659;
}
nav.lmm .lmm-icon {
  display: flex;
  align-items: center;
  color: #00a659;
  flex-shrink: 0;
}
nav.lmm .lmm-icon svg {
  width: 16px;
  height: 16px;
}
nav.lmm .lmm-arrow {
  display: flex;
  align-items: center;
  margin-left: 2px;
  transition: transform 0.25s;
  opacity: 0.5;
}
nav.lmm .lmm-item.lmm-active .lmm-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
nav.lmm .lmm-label {
  line-height: 1;
}


/* Active section (current category page) */
nav.lmm .lmm-item.lmm-current > .lmm-link {
  color: #fff;
  border-bottom-color: #00a659;
  background: rgba(0,166,89,0.12);
}
nav.lmm .lmm-item.lmm-current > .lmm-link .lmm-icon {
  color: #fff;
}

/* ── Dropdown panel ── */
/* Smooth open animation via CSS */
nav.lmm .lmm-dropdown {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

nav.lmm .lmm-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 999;
}
nav.lmm .lmm-item.lmm-active > .lmm-dropdown {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

nav.lmm .lmm-dropdown-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 20px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

/* ── Columns ── */
nav.lmm .lmm-col {
  flex: 1;
  min-width: 200px;
  padding: 0 24px;
  border-right: 1px solid #f0f0f0;
}
nav.lmm .lmm-col:last-of-type {
  border-right: none;
}
nav.lmm .lmm-col:first-of-type {
  padding-left: 0;
}
nav.lmm .lmm-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #00a659;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #00a659;
}

/* ── Subcategory lists ── */
nav.lmm .lmm-subcats {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.lmm .lmm-subcats li {
  margin: 0;
}
nav.lmm .lmm-subcats a {
  display: block;
  padding: 5px 0;
  color: #444;
  font-size: 13.5px;
  text-decoration: none;
  transition: color 0.15s, padding-left 0.15s;
  line-height: 1.4;
}
nav.lmm .lmm-subcats a:hover {
  color: #00a659;
  padding-left: 6px;
}

/* Parent category (bold) */
nav.lmm .lmm-subcat-parent a {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 14px;
  padding-top: 10px;
  padding-bottom: 3px;
}
nav.lmm .lmm-subcat-parent:first-child a {
  padding-top: 0;
}
nav.lmm .lmm-subcat-parent a:hover {
  color: #00a659;
}

/* ── "See all" button ── */
nav.lmm .lmm-see-all {
  width: 100%;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #f0f0f0;
  text-align: right;
}
nav.lmm .lmm-see-all a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #00a659;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
nav.lmm .lmm-see-all a:hover {
  color: #1a1a2e;
}

/* ── Simple dropdown (Automotive) ── */
.lmm-dropdown-simple nav.lmm .lmm-dropdown-inner {
  padding: 16px 24px;
  min-width: 240px;
  display: block;
}
nav.lmm .lmm-dropdown-simple {
  left: auto;
  right: auto;
  width: auto;
  min-width: 260px;
  border-radius: 0 0 8px 8px;
}

/* ── Brands dropdown ── */
.lmm-dropdown-brands nav.lmm .lmm-dropdown-inner {
  flex-direction: column;
}
nav.lmm .lmm-brands-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
  gap: 12px;
  padding-bottom: 12px;
  width: 100% !important;
}
nav.lmm .lmm-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #fafafa;
  min-height: 60px;
}
nav.lmm .lmm-brand-item:hover {
  border-color: #00a659;
  box-shadow: 0 2px 12px rgba(0,166,89,0.12);
  transform: translateY(-1px);
}
nav.lmm .lmm-brand-item img {
  max-width: 90px;
  max-height: 36px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 0.2s;
}
nav.lmm .lmm-brand-item:hover img {
  filter: grayscale(0%);
}
nav.lmm .lmm-brand-name {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  text-align: center;
  display: block !important;
  margin-top: 4px;
  line-height: 1.2;
}

/* ── Hamburger toggle (mobile) ── */
nav.lmm .lmm-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 100%;
}
nav.lmm .lmm-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
nav.lmm .lmm-toggle-bars span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
nav.lmm .lmm-toggle[aria-expanded="true"] .lmm-toggle-bars span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
nav.lmm .lmm-toggle[aria-expanded="true"] .lmm-toggle-bars span:nth-child(2) {
  opacity: 0;
}
nav.lmm .lmm-toggle[aria-expanded="true"] .lmm-toggle-bars span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Mobile responsive ── */
@media (max-width: 1200px) {
  nav.lmm .lmm-link {
    padding: 12px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 991px) {
  nav.lmm .lmm-toggle {
    display: flex;
  }
  nav.lmm .lmm-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a2e;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  nav.lmm .lmm-list.lmm-open {
    display: flex;
  }
  nav.lmm .lmm-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  nav.lmm .lmm-link {
    padding: 14px 20px;
    font-size: 14px;
  }
  nav.lmm .lmm-dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: #f6f8f6;
    display: none;
  }
  nav.lmm .lmm-item.lmm-active > .lmm-dropdown {
    display: block;
  }
  nav.lmm .lmm-dropdown-inner {
    flex-direction: column;
    padding: 16px 20px;
    gap: 0;
  }
  nav.lmm .lmm-col {
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 12px 0;
  }
  nav.lmm .lmm-col:last-of-type {
    border-bottom: none;
  }
  .lmm-dropdown-simple,
  .lmm-dropdown-brands {
    left: 0;
    right: 0;
    width: auto;
    min-width: auto;
  }
  nav.lmm .lmm-brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  nav.lmm .lmm-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav.lmm .lmm-link {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ── Hide old ets_megamenu ── */
#ets_megamenu,
.ets-dir-menu,
#header .ets_mm_megamenu,
#header .ets_mm_megamenu_content {
  display: none !important;
}

/* Fix layout checkout 12 abr 2026: tema classic pone html/body height:100% que rompe sticky
   del mega menu cuando main desborda, generando hueco blanco al scrollear */
body#checkout,
body#checkout > html,
html:has(body#checkout) {
    height: auto !important;
    min-height: 100% !important;
}
