/* ===================================================================
   SITE CHROME — logo 95px + borde animado red/dark-red + mobile right
=================================================================== */

.site-header{background:#000!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.site-header::after{display:none!important}
.site-header .header-top{background:#000!important;border-bottom:0!important}
.nav-bar{background:#000!important;border-top:1px solid rgba(255,255,255,.06)!important}

/* ===================================================================
   LOGO 95px — chip con border-left/right/bottom animado red↔dark-red
=================================================================== */

.site-header .header-inner{padding-left:122px!important;position:relative;gap:12px}

.site-header .logo{
    position:absolute!important;
    left:20px!important;
    top:0!important;
    bottom:auto!important;
    height:auto!important;
    z-index:103!important;
    display:flex!important;
    align-items:flex-start!important;
    padding:0!important;
    margin:0!important;
}

.site-header .logo-circle{
    background:#0a0a0a!important;
    border-top:0!important;
    border-left:2px solid #0a0a0a!important;
    border-right:2px solid #0a0a0a!important;
    border-bottom:0!important;
    border-radius:0!important;
    box-shadow:0 8px 22px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04)!important;
    padding:20px!important;
    margin:0!important;
    transform:none!important;
    width:auto!important;
    height:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    transition:opacity .2s!important;
}
.site-header .logo-circle:hover{transform:none!important;opacity:.9}

.site-header .logo-circle img{
    height:44px!important;
    width:auto!important;
    display:block!important;
    max-width:none!important;
}

@media(min-width:769px){
    .site-header .header-top{position:static}
    .site-header .logo{left:calc(max(20px, (100% - 1200px)/2 + 20px))!important}
    .site-header .search-form{margin-left:35px!important}
}

.nav-bar .nav-list{padding-left:110px!important}

/* ===================================================================
   NAV: link Home
=================================================================== */
.nav-link-home{padding:8px 12px!important}
.nav-link-home svg{display:block}
.nav-link-home:hover{color:#fff!important}

/* ===================================================================
   NAV: link Ofertas (push a la derecha, naranjo destacado)
=================================================================== */
@media(min-width:769px){
    .nav-item-offers{margin-left:auto}
}
.nav-link-offers{
    display:inline-flex!important;
    align-items:center;
    gap:6px;
    color:#fb923c!important;
    font-weight:700!important;
    transition:color .15s, background .15s!important;
}
.nav-link-offers svg{color:inherit;flex-shrink:0}
.nav-link-offers:hover{
    color:#fdba74!important;
    background:rgba(251,146,60,.08);
}
.nav-link-offers.active{color:#fdba74!important}

/* ===================================================================
   HEADER MOBILE — iconos a la derecha
=================================================================== */

.header-search-btn{display:none}

.header-mobile-row{display:none;background:rgba(0,0,0,.9);border-top:1px solid rgba(255,255,255,.08);padding:10px 0;position:relative;z-index:101}
.header-mobile-row[hidden]{display:none!important}

.mobile-inline-search{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:8px 12px;transition:border-color .15s,background .15s}
.mobile-inline-search:focus-within{border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.1)}
.mobile-inline-search svg{color:rgba(255,255,255,.55);flex-shrink:0}
.mobile-inline-search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:13px;color:#fff;outline:0}
.mobile-inline-search input::placeholder{color:rgba(255,255,255,.42)}

@media(max-width:768px){
    .site-header .header-inner{padding-left:62px!important;height:52px!important}

    .site-header .logo{
        left:10px!important;
        top:50%!important;
        transform:translateY(-50%)!important;
        bottom:auto!important;
        align-items:center!important;
    }
    .site-header .logo-circle{
        padding:5px 9px!important;
        border-left-width:2px!important;
        border-right-width:2px!important;
        box-shadow:0 4px 10px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.05)!important;
    }
    .site-header .logo-circle img{height:38px!important}

    /* Iconos del header alineados a la derecha */
    .site-header .header-actions{margin-left:auto!important;gap:6px}

    .header-search-btn{display:inline-flex!important}
    .mi-pedido-pill{display:none!important}
    .header-shipping{display:none!important}

    .site-header .header-pill{padding:7px 10px;font-size:12px}
    .site-header .header-pill span:not(.cart-pip):not(.cart-label){display:none}
    .site-header .header-pill.header-cart .cart-label{display:none}

    .site-header .mobile-hamburger{display:flex;flex-shrink:0;margin-left:4px}

    .header-mobile-row[hidden]{display:none!important}
    .header-mobile-row.open{display:block!important;animation:slideDown .2s ease}
}

@keyframes slideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}

/* ===================================================================
   DESKTOP MEGA-MENU
=================================================================== */

@media(min-width:769px){
    .nav-item-mega{position:static}

    .mega-panel{
        position:absolute!important;
        top:100%!important;
        left:0!important;
        right:0!important;
        background:#fff!important;
        border-top:1px solid rgba(0,0,0,.06)!important;
        box-shadow:0 24px 48px -12px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.04)!important;
        padding:32px 0 36px!important;
        opacity:0;
        visibility:hidden;
        transform:translateY(-8px);
        transition:opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
        z-index:100;
        pointer-events:none;
    }

    .nav-item-mega:hover .mega-panel,
    .nav-item-mega:focus-within .mega-panel{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
        transition-delay:0s;
        pointer-events:auto;
    }

    .nav-item-mega:hover > .nav-link{color:#fff!important}
    .nav-item-mega:hover > .nav-link .nav-chevron{transform:rotate(180deg);transition:transform .2s}

    .mega-inner{
        display:grid!important;
        grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
        gap:28px 32px!important;
        max-width:1200px;
        margin:0 auto;
        padding:0 20px;
    }

    .mega-col{display:flex!important;flex-direction:column!important;min-width:0}

    .mega-l1{
        font-size:12px!important;
        font-weight:700!important;
        color:#0a0a0a!important;
        text-transform:uppercase!important;
        letter-spacing:.09em!important;
        padding-bottom:10px!important;
        margin-bottom:12px!important;
        border-bottom:1px dashed rgba(0,0,0,.14)!important;
        transition:color .15s, border-color .15s!important;
        display:block!important;
    }
    .mega-l1:hover{color:#1e3a8a!important;border-bottom-color:rgba(30,58,138,.4)!important}

    .mega-l2-list{list-style:none!important;padding:0!important;margin:0!important;display:flex;flex-direction:column;gap:4px}

    .mega-l2{
        display:inline-flex!important;
        align-items:center;
        font-size:13.5px!important;
        color:#4b5563!important;
        padding:5px 0!important;
        border-left:2px solid transparent!important;
        transition:color .15s, border-color .15s, padding-left .15s!important;
        width:fit-content;
        text-decoration:none!important;
    }
    .mega-l2::before{content:"";display:inline-block;width:0;height:1px;background:currentColor;margin-right:0;transition:width .2s ease, margin-right .2s ease}
    .mega-l2:hover{color:#0a0a0a!important;border-left-color:#0a0a0a!important;padding-left:8px!important}
    .mega-l2:hover::before{width:6px;margin-right:6px}
}

/* ===================================================================
   MOBILE PANEL (hamburger) — sin search
=================================================================== */

.mobile-panel .mobile-panel-header{display:flex!important;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid rgba(0,0,0,.08)}
.mp-brand{display:flex;align-items:center;gap:10px}
.mp-favicon{width:30px;height:30px;border-radius:6px;display:block;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.mp-title{font-weight:600;font-size:15px;color:#0a0a0a;letter-spacing:-.01em}

.mobile-panel-body{padding:0!important}

.mp-link{display:flex!important;align-items:center;gap:12px;padding:14px 20px!important;border-bottom:1px solid rgba(0,0,0,.06);color:#374151!important;font-size:14px;font-weight:500}
.mp-link svg{color:#6b7280;flex-shrink:0}
.mp-link-primary{background:rgba(0,0,0,.02);color:#0a0a0a!important;font-weight:600}

.mp-group{border-bottom:1px solid rgba(0,0,0,.06)}
.mp-toggle{all:unset;display:flex!important;align-items:center;justify-content:space-between;width:100%;padding:16px 20px;color:#0a0a0a;font-size:15px;font-weight:600;cursor:pointer;box-sizing:border-box;transition:background .15s}
.mp-toggle:hover{background:rgba(0,0,0,.02)}
.mp-toggle[aria-expanded="true"]{background:rgba(0,0,0,.04)}
.mp-toggle-chev{color:#9ca3af;transition:transform .2s;flex-shrink:0}
.mp-toggle[aria-expanded="true"] .mp-toggle-chev{transform:rotate(180deg)}

.mp-sub{padding:4px 0 12px!important;background:rgba(0,0,0,.015)}
.mp-sub-viewall{display:block!important;padding:10px 20px!important;color:#1e3a8a!important;font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;text-decoration:none!important;border-bottom:1px dashed rgba(0,0,0,.1);margin-bottom:4px}

.mp-l1-group{padding:4px 0}
.mp-l1{display:block!important;padding:10px 20px 4px!important;color:#0a0a0a!important;font-size:13px!important;font-weight:700!important;text-transform:uppercase;letter-spacing:.06em}
.mp-l2-list{display:flex;flex-direction:column}
.mp-l2{display:block!important;padding:7px 20px 7px 32px!important;color:#4b5563!important;font-size:14px!important;font-weight:400!important;border-left:2px solid transparent;transition:border-color .15s,background .15s,color .15s}
.mp-l2:hover{border-left-color:#0a0a0a;background:rgba(0,0,0,.02);color:#0a0a0a!important}

.mp-divider{border:0;border-top:1px solid rgba(0,0,0,.1);margin:8px 0 0!important}

/* ===================================================================
   FOOTER v2
=================================================================== */

.sf-footer{background:#0a0a0a;color:rgba(255,255,255,.65);padding:56px 0 0;position:relative;font-size:14px;line-height:1.55}
.sf-footer::before{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent)}

.sf-container{padding:0 24px}

.sf-top{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.2fr;gap:48px 32px;padding-bottom:36px}

.sf-brand{display:flex;flex-direction:column;gap:16px}
.sf-logo{height:48px;width:auto;max-width:180px;object-fit:contain;opacity:.95}
.sf-tagline{color:rgba(255,255,255,.5);font-size:13px;line-height:1.6;max-width:280px;margin:0}
.sf-socials{display:flex;gap:8px;margin-top:4px;flex-wrap:wrap}
.sf-social{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);color:rgba(255,255,255,.6);transition:all .2s}
.sf-social:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.18);color:#fff;transform:translateY(-1px)}

.sf-col{min-width:0}
.sf-col-toggle{all:unset;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;color:#fff;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.12em;margin-bottom:14px;cursor:default;box-sizing:border-box}
.sf-chev{opacity:0;color:rgba(255,255,255,.6);transition:transform .2s}
.sf-col-content{display:flex;flex-direction:column;gap:8px}
.sf-col-content a{color:rgba(255,255,255,.6);font-size:13.5px;line-height:1.5;transition:color .15s,transform .15s}
.sf-col-content a:hover{color:#fff;transform:translateX(2px)}

.sf-contact-line{display:flex;align-items:flex-start;gap:10px;color:rgba(255,255,255,.6);font-size:13px;line-height:1.5;transition:color .15s}
a.sf-contact-line:hover{color:#fff}
.sf-contact-ico{margin-top:3px;flex-shrink:0;color:rgba(255,255,255,.35);transition:color .15s}
.sf-contact-line:hover .sf-contact-ico{color:rgba(255,255,255,.65)}

.sf-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;border-top:1px dashed rgba(255,255,255,.1);border-bottom:1px dashed rgba(255,255,255,.1);flex-wrap:wrap}
.sf-payments{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.sf-bar-label{font-size:10.5px;text-transform:uppercase;letter-spacing:.14em;color:rgba(255,255,255,.4);font-weight:500;margin-right:4px}

.sf-pay-brand{display:inline-flex;align-items:center;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;line-height:0}
.sf-pay-brand img,
.sf-pay-brand svg{display:block;height:28px;width:auto;border-radius:3px}
.sf-pay-webpay svg{border-radius:3px}

.sf-certs{display:flex;gap:18px;flex-wrap:wrap}
.sf-cert{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:rgba(255,255,255,.55);font-weight:500}
.sf-cert svg{color:rgba(255,255,255,.4);flex-shrink:0}

.sf-about{padding:20px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.sf-about p{font-size:11px;line-height:1.7;color:rgba(255,255,255,.28);margin:0}
.sf-about a{color:rgba(255,255,255,.42);border-bottom:1px dashed rgba(255,255,255,.15);transition:color .15s,border-color .15s}
.sf-about a:hover{color:rgba(255,255,255,.8);border-bottom-color:rgba(255,255,255,.5)}

.sf-bottom{display:flex;justify-content:space-between;align-items:center;padding:18px 0 22px;font-size:12px;color:rgba(255,255,255,.4);gap:16px;flex-wrap:wrap}
.sf-copyright{margin:0;font-size:12px;color:rgba(255,255,255,.42)}
.sf-copyright strong{color:rgba(255,255,255,.7);font-weight:600}
.sf-bottom-links{display:flex;gap:12px;align-items:center;font-size:12px}
.sf-bottom-links a{color:rgba(255,255,255,.45);transition:color .15s}
.sf-bottom-links a:hover{color:#fff}
.sf-bottom-links span{color:rgba(255,255,255,.15)}
.sf-credit{font-size:11.5px;color:rgba(255,255,255,.3)!important}
.sf-credit:hover{color:rgba(255,255,255,.7)!important}

@media(max-width:768px){
    .sf-footer{padding:36px 0 0}
    .sf-container{padding:0 20px}

    .sf-top{grid-template-columns:1fr;gap:0;padding-bottom:16px}

    .sf-brand{align-items:center;text-align:center;padding-bottom:28px;margin-bottom:4px;border-bottom:1px dashed rgba(255,255,255,.08);gap:14px}
    .sf-tagline{text-align:center;max-width:none}
    .sf-socials{justify-content:center}

    .sf-col{border-bottom:1px dashed rgba(255,255,255,.08)}
    .sf-col:last-child{border-bottom:none}
    .sf-col-toggle{padding:16px 0;cursor:pointer!important;margin-bottom:0;font-size:13px;user-select:none}
    .sf-chev{opacity:1}
    .sf-col.open .sf-chev{transform:rotate(180deg)}

    .sf-col-content{max-height:0;overflow:hidden;transition:max-height .3s ease,padding-bottom .3s ease,opacity .2s ease .1s;padding-bottom:0;opacity:0}
    .sf-col.open .sf-col-content{max-height:500px;padding-bottom:18px;opacity:1}
    .sf-col-content a{padding:3px 0;font-size:14px}

    .sf-bar{flex-direction:column;align-items:center;text-align:center;gap:20px;padding:26px 0}
    .sf-payments{justify-content:center}
    .sf-certs{justify-content:center;gap:14px}

    .sf-about{display:none}

    .sf-bottom{flex-direction:column;text-align:center;gap:10px;padding:20px 0 26px}
    .sf-bottom-links{justify-content:center;flex-wrap:wrap}
}

@media(max-width:480px){
    .sf-socials{gap:6px}
    .sf-social{width:36px;height:36px}
    .sf-cert{font-size:11px}
    .sf-pay-brand img{height:24px}
}

/* ===================================================================
   SLIDESHOW — Ken Burns en imagen + fade-in en contenido
=================================================================== */
.slideshow{overflow:hidden;position:relative}
.slide img{will-change:transform}
.slide.active img{
    animation:slideshowKenBurns 8s ease-out both;
    transform-origin:center center;
}
@keyframes slideshowKenBurns{
    from{transform:scale(1.02)}
    to{transform:scale(1.12)}
}

.slide .slide-content h2,
.slide .slide-content p,
.slide .slide-content .btn{opacity:0}
.slide.active .slide-content h2{animation:slideContentIn .7s .2s ease-out both}
.slide.active .slide-content p{animation:slideContentIn .7s .4s ease-out both}
.slide.active .slide-content .btn{animation:slideContentIn .7s .6s ease-out both}
@keyframes slideContentIn{
    from{opacity:0;transform:translateY(20px)}
    to{opacity:1;transform:translateY(0)}
}

/* ===================================================================
   BRANDS CAROUSEL — 6 cols PC, sin borde, hover scale
=================================================================== */
.home-brands-carousel .pc-slide{flex-shrink:0}

.hb-card{
    display:flex!important;
    align-items:center;
    justify-content:center;
    height:80px;
    padding:12px 16px;
    background:transparent!important;
    border:0!important;
    border-radius:8px;
    box-shadow:none!important;
    transition:transform .25s ease, box-shadow .25s ease;
    position:relative;
    overflow:visible;
}
.hb-card img{
    max-width:100%;
    max-height:100%;
    width:auto;
    height:auto;
    object-fit:contain;
    filter:grayscale(1) opacity(.7);
    transition:filter .25s ease;
}
.hb-card:hover{
    transform:scale(1.12);
    z-index:2;
}
.hb-card:hover img{filter:grayscale(0) opacity(1)}

@media(max-width:768px){
    .home-brands-carousel .pc-slide{width:calc((100% - 40px)/3)!important}
    .hb-card{height:64px;padding:8px 10px}
}

/* ===================================================================
   WHATSAPP FAB
=================================================================== */
.wa-fab{
    position:fixed;
    bottom:24px;
    right:24px;
    width:56px;
    height:56px;
    border-radius:50%;
    background:#25D366;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.18);
    z-index:900;
    transition:transform .2s ease, box-shadow .2s ease;
    animation:waPulse 2.6s ease-in-out infinite;
    text-decoration:none;
}
.wa-fab svg{width:28px;height:28px;display:block}
.wa-fab:hover{
    transform:scale(1.08);
    box-shadow:0 10px 32px rgba(37,211,102,.55), 0 6px 16px rgba(0,0,0,.22);
    animation-play-state:paused;
}
.wa-fab:active{transform:scale(.96)}

@keyframes waPulse{
    0%,100%{box-shadow:0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.18), 0 0 0 0 rgba(37,211,102,.5)}
    70%{box-shadow:0 8px 24px rgba(37,211,102,.4), 0 4px 12px rgba(0,0,0,.18), 0 0 0 16px rgba(37,211,102,0)}
}

@media(max-width:768px){
    .wa-fab{bottom:16px;right:16px;width:52px;height:52px}
    .wa-fab svg{width:26px;height:26px}
}

@media(prefers-reduced-motion:reduce){
    .wa-fab{animation:none}
    .slide.active img,
    .slide.active .slide-content h2,
    .slide.active .slide-content p,
    .slide.active .slide-content .btn{animation:none;opacity:1}
}
