    @media(max-width:700px){
      .filtros-card{
        margin:0 !important;
        padding:8px !important;
        border-radius:0 !important;
        box-shadow:none !important;
        border-left:0 !important;
        border-right:0 !important;
      }

      .filtros-grid{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:7px !important;
        align-items:stretch !important;
      }

      .filtros-grid .filter-family,
      .filtros-grid .filter-rubro,
      .filtros-grid .filter-subrubro,
      .filtros-grid .btn-limpiar{
        display:block !important;
        width:100% !important;
        min-width:0 !important;
      }

      .filtros-grid .filter-family{grid-column:1 !important;grid-row:1 !important}
      .filtros-grid .filter-rubro{grid-column:2 !important;grid-row:1 !important}
      .filtros-grid .filter-subrubro{grid-column:1 !important;grid-row:2 !important}
      .filtros-grid .btn-limpiar{grid-column:2 !important;grid-row:2 !important}

      .filtros-grid .filter-family select,
      .filtros-grid .filter-rubro select,
      .filtros-grid .filter-subrubro select{
        height:46px !important;
        padding:0 9px !important;
        border-radius:8px !important;
        font-size:13px !important;
        box-shadow:none !important;
      }

      .filtros-grid .btn-limpiar{
        min-height:46px !important;
        height:46px !important;
        padding:0 10px !important;
        border-radius:8px !important;
        font-size:11px !important;
        display:flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        gap:7px !important;
        white-space:nowrap !important;
      }

      .filtros-grid .btn-limpiar .icon{
        width:15px !important;
        height:15px !important;
      }

      .container{
        padding:0 !important;
      }

      .grid{
        margin:0 10px !important;
      }

      .notif-popup-card{
        width:min(94vw,420px) !important;
        max-height:94dvh !important;
        padding:10px !important;
      }

      .notif-popup-close{
        top:18px !important;
        right:18px !important;
        width:36px !important;
        height:36px !important;
      }

      .notif-square-media{
        border-radius:14px !important;
      }

      .notif-popup-text h2{
        font-size:16px !important;
        line-height:1.22 !important;
      }

      .notif-popup-text p{
        font-size:11px !important;
        line-height:1.45 !important;
      }

      .notif-primary-btn{
        min-height:44px !important;
      }
    }

    @media(max-width:420px){
      .filtros-grid{
        gap:6px !important;
      }

      .filtros-grid .filter-family select,
      .filtros-grid .filter-rubro select,
      .filtros-grid .filter-subrubro select{
        font-size:12px !important;
        padding-inline:8px !important;
      }

      .filtros-grid .btn-limpiar{
        font-size:10px !important;
        padding-inline:8px !important;
      }
    }

  
    /* ===== V18 SAFE: navegación de cuenta exclusivamente MOBILE ===== */

    /* Por defecto (desktop/tablet grande): conservar comportamiento actual */
    .mobile-profile-label{
      display:none;
    }

    .perfil-mobile-cuenta{
      display:none;
    }

    @media(max-width:960px){
      /* Header azul: usuario logueado = icono + Mi Perfil, sin nombre */
      .header-user-profile .desktop-user-name{
        display:none !important;
      }

      .header-user-profile .mobile-profile-label{
        display:inline-block !important;
        font-size:10.5px;
        line-height:1;
        font-weight:750;
        white-space:nowrap;
      }

      .header-user-profile{
        max-width:none !important;
      }

      .header-user-link{
        width:auto !important;
        min-width:auto !important;
        max-width:none !important;
        padding:8px 6px !important;
        gap:5px !important;
      }

      /* Perfil: accesos de Mi Cuenta debajo de los datos personales */
      .perfil-mobile-cuenta{
        display:block;
        margin:10px -14px 14px;
        padding:15px 14px 0;
        border-top:1px solid #e8edf2;
      }

      .perfil-mobile-cuenta-title{
        display:block !important;
        margin:0 0 8px !important;
        color:var(--alb-blue) !important;
        font-size:17px !important;
        line-height:1.2 !important;
        font-weight:800 !important;
      }

      .perfil-mobile-cuenta-list{
        display:grid;
        grid-template-columns:1fr;
      }

      .perfil-mobile-cuenta-list button{
        width:100%;
        min-height:48px;
        padding:10px 8px;
        border:0;
        border-bottom:1px solid #e8edf2;
        border-radius:0;
        background:#fff;
        color:#26364b;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:10px;
        text-align:left;
        font-size:12px;
        font-weight:600;
        cursor:pointer;
      }

      .perfil-mobile-cuenta-list button:last-child{
        border-bottom:0;
      }

      .perfil-mobile-cuenta-list button .icon{
        width:18px;
        height:18px;
        color:var(--alb-blue);
        flex:0 0 auto;
      }

      /* El bloque anterior "Mi cuenta" ya no existe dentro del drawer sandwich */
      .drawer-account-block{
        display:none !important;
      }
    }

    @media(max-width:700px){
      .header-user-profile .mobile-profile-label{
        font-size:10px !important;
      }

      .header-user-link{
        padding-inline:4px !important;
      }

      #modal-perfil .modal-content{
        padding-bottom:calc(18px + env(safe-area-inset-bottom));
      }

      .perfil-mobile-cuenta{
        margin-left:-14px;
        margin-right:-14px;
      }
    }

    @media(max-width:520px){
      .header-user-profile .mobile-profile-label{
        font-size:9.5px !important;
      }

      .header-user-link{
        gap:4px !important;
        padding:7px 3px !important;
      }

      .header-user-link .icon{
        width:16px !important;
        height:16px !important;
      }
    }

    @media(max-width:390px){
      /* La regla histórica que ocultaba el texto de login no afecta Mi Perfil */
      .header-user-profile .mobile-profile-label{
        display:inline-block !important;
        font-size:9px !important;
      }

      .header-user-profile .header-user-link{
        width:auto !important;
        min-width:58px !important;
        height:36px;
        justify-content:center;
      }
    }

  
    /* ===== V19 SAFE: menú sandwich + Mi Perfil MOBILE ===== */
    .perfil-mobile-datos-toggle{display:none}
    .perfil-mobile-datos-panel{display:block}
    .perfil-mobile-cuenta{display:none}

    @media(max-width:960px){
      .drawer-motos-only{padding-top:10px;padding-bottom:12px}

      #modal-perfil .modal-content{padding-top:52px!important}

      .perfil-mobile-cuenta{
        display:block!important;
        margin:0 -14px 0!important;
        padding:0 14px!important;
        border-top:0!important;
      }

      .perfil-mobile-cuenta-title{
        display:block!important;
        margin:0 0 8px!important;
        color:var(--alb-blue)!important;
        font-size:18px!important;
        line-height:1.2!important;
        font-weight:800!important;
      }

      .perfil-mobile-cuenta-list{
        display:grid;
        grid-template-columns:1fr;
        border-bottom:1px solid #e8edf2;
      }

      .perfil-mobile-cuenta-list button{
        width:100%;
        min-height:52px;
        padding:11px 6px!important;
        border:0!important;
        border-bottom:1px solid #e8edf2!important;
        border-radius:0!important;
        background:#fff!important;
        color:#26364b!important;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:10px;
        text-align:left;
        font-size:12px!important;
        font-weight:600!important;
        cursor:pointer;
      }

      .perfil-mobile-cuenta-list button:last-child{border-bottom:0!important}
      .perfil-mobile-cuenta-list button .icon{
        width:19px!important;height:19px!important;color:var(--alb-blue)!important;flex:0 0 auto;
      }

      .perfil-mobile-datos{margin:0 -14px 14px}

      .perfil-mobile-datos-toggle{
        width:100%;
        min-height:58px;
        padding:13px 14px;
        border:0;
        border-bottom:1px solid #e8edf2;
        background:#fff;
        color:var(--alb-blue);
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        text-align:left;
        font-size:18px;
        line-height:1.2;
        font-weight:800;
        cursor:pointer;
      }

      .perfil-mobile-datos-chevron{
        width:22px!important;height:22px!important;flex:0 0 auto;transition:transform .22s ease;
      }

      .perfil-mobile-datos.is-open .perfil-mobile-datos-chevron{transform:rotate(180deg)}

      .perfil-mobile-datos-panel{
        display:none;
        padding:14px 14px 2px;
      }

      .perfil-mobile-datos.is-open .perfil-mobile-datos-panel{display:block}
      .perfil-desktop-title{display:none!important}
      #modal-perfil .btn-confirm{margin-top:4px}
    }

  
    /* ==========================================================
       V20 SAFE: FILTROS AVANZADOS INDEPENDIENTES
       ========================================================== */

    .catalogo-layout{
      position:relative;
      display:block;
      min-width:0;
    }

    .filtros-avanzados{
      display:none;
      min-width:0;
    }

    .filtros-avanzados.is-visible{
      display:block;
    }

    .filtros-avanzados-toggle{
      display:none;
    }

    .filtros-avanzados-panel{
      min-width:0;
    }

    .filtros-avanzados-desktop-title{
      margin:0 0 12px;
      display:flex;
      align-items:center;
      gap:7px;
      color:var(--alb-blue);
      font-size:12px;
      font-weight:800;
    }

    .filtros-avanzados-controles{
      display:grid;
      gap:11px;
    }

    .filtro-avanzado-item{
      min-width:0;
    }

    .filtro-avanzado-label{
      display:block;
      margin:0 0 4px;
      color:#52647a;
      font-size:9px;
      line-height:1.25;
      font-weight:800;
    }

    .filtro-atributo-dinamico{
      width:100%;
      height:34px;
      padding:0 7px;
      border:1px solid #9fb4ca;
      border-radius:5px;
      outline:none;
      background:#fff;
      color:#344054;
      font-size:9px;
      cursor:pointer;
    }

    .filtro-atributo-dinamico:focus{
      border-color:var(--alb-blue);
      box-shadow:0 0 0 2px rgba(0,59,113,.08);
    }

    .btn-limpiar-avanzados{
      width:100%;
      min-height:34px;
      margin-top:13px;
      padding:7px 8px;
      border:1px solid #8da9c4;
      border-radius:5px;
      background:#f8fafc;
      color:var(--alb-blue);
      display:flex;
      align-items:center;
      justify-content:flex-start;
      gap:6px;
      font-size:8.5px;
      font-weight:800;
      cursor:pointer;
      transition:.2s ease;
    }

    .btn-limpiar-avanzados:hover{
      background:var(--alb-blue-soft);
      border-color:var(--alb-blue);
    }

    .btn-aplicar-avanzados{
      display:none;
      width:100%;
      min-height:36px;
      margin-top:8px;
      padding:8px 10px;
      border:1px solid var(--alb-blue);
      border-radius:5px;
      background:var(--alb-blue);
      color:#fff;
      align-items:center;
      justify-content:center;
      font-size:10px;
      font-weight:800;
      cursor:pointer;
      transition:.2s ease;
    }

    .btn-aplicar-avanzados:hover{background:#002b52;border-color:#002b52}

    /* Con filtros avanzados activos damos más ancho al catálogo */
    .container.advanced-filters-active{
      max-width:1600px;
    }

    @media(min-width:961px){
      .catalogo-layout.advanced-active{
        display:grid;
        grid-template-columns:165px minmax(0,1fr);
        gap:16px;
        align-items:start;
      }

      .catalogo-layout.advanced-active .filtros-avanzados{
        position:sticky;
        top:144px;
        align-self:start;
        padding:14px 10px 16px;
        background:transparent;
        border:0;
        box-shadow:none;
      }

      .catalogo-layout.advanced-active .filtros-avanzados-panel{
        display:block !important;
      }

      /* Siempre cuatro productos a la derecha, como la referencia */
      .catalogo-layout.advanced-active #catalogo.grid{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        gap:14px !important;
        margin:0 !important;
      }

      .catalogo-layout.advanced-active .card{
        min-width:0;
      }
    }

    /* Tablet/mobile: barra "Filtros avanzados" y menú desplegable */
    @media(max-width:960px){
      .catalogo-layout.advanced-active{
        display:block;
      }

      .filtros-avanzados.is-visible{
        position:relative;
        width:100%;
        z-index:55;
        margin:0 0 0;
      }

      .filtros-avanzados-toggle{
        width:100%;
        height:34px;
        padding:0 12px;
        border:0;
        border-top:1px solid #e4e8ee;
        border-bottom:1px solid #e4e8ee;
        background:#fff;
        color:var(--alb-blue);
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:10px;
        cursor:pointer;
        font-size:10.5px;
        font-weight:800;
      }

      .filtros-avanzados-toggle-label{
        display:flex;
        align-items:center;
        gap:6px;
      }

      .filtros-avanzados-toggle-icon{
        width:18px;
        height:18px;
      }

      .filtros-avanzados-desktop-title{
        display:none;
      }

      .filtros-avanzados-panel{
        display:none;
        position:absolute;
        top:34px;
        left:0;
        width:min(50vw,320px);
        min-width:260px;
        max-height:calc(100dvh - 165px);
        overflow-y:auto;
        padding:16px 14px 18px;
        background:#f4f5f7;
        border-right:1px solid #dfe4ea;
        border-bottom:1px solid #dfe4ea;
        box-shadow:12px 14px 28px rgba(18,38,63,.13);
        z-index:80;
      }

      .filtros-avanzados.is-open .filtros-avanzados-panel{
        display:block;
        animation:filtrosAvanzadosDrop .18s ease-out;
      }

      @keyframes filtrosAvanzadosDrop{
        from{opacity:0;transform:translateY(-5px)}
        to{opacity:1;transform:none}
      }

      .filtros-avanzados-controles{
        gap:12px;
      }

      .filtro-avanzado-label{
        margin-bottom:5px;
        color:var(--alb-blue);
        font-size:10px;
      }

      .filtro-atributo-dinamico{
        height:36px;
        padding:0 9px;
        border-color:#6891b8;
        border-radius:5px;
        font-size:10px !important;
      }

      .btn-limpiar-avanzados{
        min-height:36px;
        margin-top:14px;
        font-size:9px;
      }

      .btn-aplicar-avanzados{
        display:flex;
      }
    }

    @media(max-width:700px){
      /* Encaja exactamente debajo de los filtros 2x2 */
      .filtros-avanzados.is-visible{
        margin-top:-1px;
      }

      .filtros-avanzados-toggle{
        height:32px;
        padding-inline:14px;
        font-size:10px;
      }

      .filtros-avanzados-panel{
        top:32px;
        width:50vw;
        min-width:0;
        max-width:320px;
        padding:14px 12px 16px;
      }

      /* Mantener las dos columnas del catálogo mobile */
      .catalogo-layout.advanced-active #catalogo.grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        margin:0 10px !important;
      }
    }

    @media(max-width:420px){
      .filtros-avanzados-panel{
        width:54vw;
      }

      .filtro-avanzado-label{
        font-size:9px;
      }

      .filtro-atributo-dinamico{
        font-size:9px !important;
        padding-inline:7px;
      }

      .btn-limpiar-avanzados{
        font-size:8.2px;
      }
    }

  
    /* ===== V21: barra contextual de resultados ===== */
    .filtros-card{display:none !important}
    .resultados-toolbar{display:none;min-width:0;align-items:center;gap:14px;margin:0 0 10px;min-height:44px}
    .resultados-toolbar.is-visible{display:grid}
    .resultados-toolbar-left{min-width:0}
    .resultados-filtros-toggle{width:100%;min-height:38px;padding:0 4px;border:0;background:transparent;color:var(--alb-blue);display:flex;align-items:center;justify-content:flex-start;gap:7px;font-size:12px;font-weight:800;cursor:pointer;text-align:left}
    .resultados-filtros-toggle .icon{width:16px;height:16px}
    .resultados-toolbar-count{color:#657286;font-size:10.5px;line-height:1.3;font-weight:600;text-align:center;white-space:nowrap}
    .resultados-toolbar-brand,.resultados-toolbar-order{display:flex;justify-content:flex-end;min-width:0}
    .resultados-toolbar-brand select{width:220px;max-width:100%;height:38px;padding:0 12px;border:1px solid #6f94ba;border-radius:7px;background:#fff;color:var(--alb-blue);outline:none;font-size:11px;cursor:pointer}
    .resultados-toolbar-order select{width:236px;max-width:100%;height:38px;padding:0 12px;border:1px solid #6f94ba;border-radius:7px;background:#fff;color:var(--alb-blue);outline:none;font-size:11px;cursor:pointer}

    @media(min-width:961px){
      .catalogo-layout.advanced-active{grid-template-columns:165px minmax(0,1fr)!important;grid-template-rows:auto auto;column-gap:16px!important;row-gap:0}
      .catalogo-layout.advanced-active .resultados-toolbar{grid-column:1/-1;grid-row:1;grid-template-columns:165px minmax(0,1fr) 220px 250px}
      .catalogo-layout.advanced-active .filtros-avanzados{grid-column:1;grid-row:2;position:sticky;top:144px;padding-top:4px!important}
      .catalogo-layout.advanced-active #catalogo.grid{grid-column:2;grid-row:2}
      .catalogo-layout.advanced-active .filtros-avanzados-desktop-title{display:none!important}
      .resultados-filtros-toggle{pointer-events:none;cursor:default}
    }

    @media(max-width:960px){
      .container{padding-top:0!important}
      .resultados-toolbar.is-visible{display:grid;grid-template-columns:minmax(120px,.9fr) minmax(150px,1.05fr) minmax(150px,1.05fr);gap:6px;width:100%;min-height:40px;margin:0;padding:4px 10px;background:#fff;border-top:1px solid #e4e8ee;border-bottom:1px solid #e4e8ee}
      .resultados-filtros-toggle{min-height:32px;padding:0;font-size:10px;white-space:nowrap}
      .resultados-toolbar-count{display:none!important}
      .resultados-toolbar-brand select,.resultados-toolbar-order select{width:100%;height:32px;padding:0 8px;border-radius:5px;font-size:9px!important}
      .filtros-avanzados-toggle{display:none!important}
      .filtros-avanzados.is-visible{position:static!important;margin:0!important}
      .filtros-avanzados-panel{top:40px!important}
      .filter-family,.filter-rubro,.filter-subrubro,.btn-limpiar{display:none!important}
    }

    @media(max-width:520px){
      .resultados-toolbar.is-visible{grid-template-columns:minmax(108px,.9fr) minmax(132px,1fr) minmax(132px,1fr);padding-inline:8px;gap:4px}
      .resultados-filtros-toggle{font-size:9px;gap:5px}
      .resultados-filtros-toggle .icon{width:14px;height:14px}
      .resultados-toolbar-brand select,.resultados-toolbar-order select{font-size:8.5px!important;padding-inline:6px}
    }
    @media(max-width:390px){
      .resultados-toolbar.is-visible{grid-template-columns:minmax(100px,.88fr) minmax(118px,1fr) minmax(118px,1fr);padding-inline:6px}
      .resultados-filtros-toggle{font-size:8.4px}
      .resultados-toolbar-brand select,.resultados-toolbar-order select{font-size:8px!important}
    }

  
    /* ==========================================================
       V23 SAFE: INICIO + MENÚ JERÁRQUICO FAMILIA/RUBRO/SUBRUBRO
       ========================================================== */

    .footer-home-logo{
      display:block;
      width:fit-content;
      max-width:100%;
      padding:0;
      border:0;
      background:transparent;
      cursor:pointer;
    }
    .footer-home-logo img{display:block}
    #brand-area:focus-visible,
    .footer-home-logo:focus-visible{
      outline:2px solid var(--alb-orange);
      outline-offset:4px;
      border-radius:8px;
    }

    @media(min-width:961px){
      .mega-menu{
        width:min(1380px,calc(100vw - 56px)) !important;
      }
      .mega-inner.mega-cascade{
        display:grid !important;
        grid-template-columns:320px 360px minmax(360px,1fr) !important;
        gap:0 !important;
        min-height:470px;
        max-height:620px !important;
        overflow:hidden !important;
        background:#fff;
      }
      .mega-sidebar,.mega-rubros-panel,.mega-subrubros-panel{
        max-height:620px !important;
        overflow-y:auto !important;
        scrollbar-gutter:stable;
      }
      .mega-sidebar{
        padding:0 !important;
        background:#f4f5f7 !important;
        border-right:1px solid #e3e7ed !important;
      }
      .mega-rubros-panel{
        padding:0 !important;
        border-right:1px solid #e3e7ed !important;
        background:#fff !important;
      }
      .mega-subrubros-panel{
        padding:0 !important;
        background:#fff !important;
      }
      .mega-family-item,.mega-rubro-item,.mega-subrubro-item,.mega-view-all-row{
        width:100%;
        min-height:50px;
        padding:0 22px;
        border:0;
        border-bottom:1px solid #edf0f4;
        background:transparent;
        display:flex;
        align-items:center;
        justify-content:space-between;
        gap:12px;
        text-align:left;
        cursor:pointer;
        transition:.16s ease;
      }
      .mega-family-item{
        color:#182230;
        font-size:13px;
        font-weight:750;
      }
      .mega-rubro-item,.mega-subrubro-item,.mega-view-all-row{
        color:var(--alb-blue);
        font-size:13px;
        font-weight:700;
      }
      .mega-family-item:hover,.mega-family-item.active,
      .mega-rubro-item:hover,.mega-rubro-item.active{
        background:var(--alb-blue);
        color:#fff;
      }
      .mega-subrubro-item:hover{
        background:#f5f8fc;
        padding-left:26px;
      }
      .mega-view-all-row{
        color:var(--alb-orange);
        font-weight:800;
      }
      .mega-view-all-row:hover{
        background:#fff6ef;
        color:var(--alb-orange-dark);
      }
      .mega-empty-state{
        padding:26px 22px;
        color:#7a8698;
        font-size:11px;
        line-height:1.55;
      }
    }

    @media(max-width:960px){
      #drawer-categorias{padding:0 8px 20px !important}
      .drawer-family-group{border-bottom:1px solid #eef1f4}
      .drawer-family-btn,.drawer-rubro-btn,.drawer-subrubro-btn,.drawer-viewall-btn{
        width:100%;
        min-height:46px;
        border:0 !important;
        border-bottom:1px solid #eef1f4 !important;
        border-radius:0 !important;
        background:#fff !important;
        color:#26364b !important;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:10px !important;
        padding:11px 10px !important;
        text-align:left !important;
        font-size:11px !important;
        line-height:1.25 !important;
        font-weight:700 !important;
        cursor:pointer;
      }
      .drawer-family-btn.active{
        background:var(--alb-blue) !important;
        color:#fff !important;
      }
      .drawer-family-btn.active .icon{color:#fff !important}
      .drawer-rubro-btn{
        padding-left:22px !important;
        color:var(--alb-blue) !important;
        background:#f9fbfd !important;
      }
      .drawer-rubro-btn.active{background:var(--alb-blue-soft) !important}
      .drawer-subrubro-btn{
        padding-left:38px !important;
        color:#405168 !important;
        font-size:10.5px !important;
        font-weight:600 !important;
      }
      .drawer-viewall-btn{
        color:var(--alb-orange) !important;
        font-weight:800 !important;
      }
      .drawer-rubros-panel,.drawer-subrubros-panel{display:none}
      .drawer-family-group.is-open > .drawer-rubros-panel{display:block}
      .drawer-rubro-group.is-open > .drawer-subrubros-panel{display:block}
      .drawer-chevron{transition:transform .18s ease;flex:0 0 auto}
      .drawer-family-group.is-open > .drawer-family-btn .drawer-chevron,
      .drawer-rubro-group.is-open > .drawer-rubro-btn .drawer-chevron{
        transform:rotate(90deg);
      }
    }

  
    /* ==========================================================
       V24 SAFE: MENÚ PRINCIPAL DESKTOP + PROMOS MOBILE
       ========================================================== */

    .nav-inner-main{
      gap:0 !important;
    }

    .nav-inner-main .nav-link{
      padding-inline:14px;
      font-weight:700;
      white-space:nowrap;
    }

    .nav-home-link{
      font-weight:800 !important;
    }

    .credit-link{
      color:#fff !important;
      font-weight:800 !important;
      gap:8px !important;
    }

    .credit-nav-icon{
      width:25px !important;
      height:25px !important;
      color:#fff;
      stroke-width:1.9;
      flex:0 0 auto;
    }

    .credit-link:hover{
      color:#fff !important;
    }

    .drawer-credit-link{
      color:var(--alb-orange) !important;
      font-weight:800 !important;
      justify-content:flex-start !important;
    }

    .drawer-credit-icon{
      width:30px !important;
      height:30px !important;
      color:var(--alb-orange) !important;
      stroke-width:1.9;
      flex:0 0 auto;
    }

    .drawer-promos-mobile{
      padding-top:10px !important;
      padding-bottom:12px !important;
    }

    .drawer-promos-mobile > button{
      min-height:56px !important;
      border-bottom:1px solid #e8edf2 !important;
      background:#fff !important;
      border-radius:0 !important;
      font-size:12px !important;
    }

    .drawer-promos-mobile > button:last-child{
      border-bottom:0 !important;
    }

    /* Destacados y Favoritos pertenecen al perfil mobile,
       independientemente de lo que se muestre en la navegación desktop. */
    @media(max-width:960px){
      .perfil-mobile-cuenta-list button{
        display:flex !important;
      }
    }

    @media(min-width:961px){
      .nav-inner-main{
        max-width:1680px;
        overflow:visible;
      }
    }

    @media(min-width:961px) and (max-width:1450px){
      .nav-inner-main .nav-link{
        padding-inline:10px;
        font-size:11px;
      }
      .mega-trigger{
        min-width:150px;
      }
      .credit-nav-icon{
        width:22px !important;
        height:22px !important;
      }
      .moto-ref-icon{
        width:27px;
      }
    }

    @media(min-width:961px) and (max-width:1230px){
      .nav-inner-main .nav-link{
        padding-inline:7px;
        font-size:10px;
      }
      .mega-trigger{
        min-width:142px;
        padding-inline:11px;
        font-size:11px;
      }
      .credit-link,.motos-link{
        gap:5px !important;
      }
    }

  
    /* ==========================================================
       V27: SCROLL COMPLETO CATEGORÍAS + TOOLBAR SIN CONTADOR
       ========================================================== */
    @media(min-width:961px){
      .mega-menu{
        max-height:calc(100dvh - 155px) !important;
        overflow:hidden !important;
      }

      .mega-inner.mega-cascade{
        min-height:0 !important;
        height:min(620px,calc(100dvh - 155px)) !important;
        max-height:calc(100dvh - 155px) !important;
        overflow:hidden !important;
      }

      .mega-sidebar,
      .mega-rubros-panel,
      .mega-subrubros-panel{
        min-height:0 !important;
        height:100% !important;
        max-height:none !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        overscroll-behavior:contain;
        scrollbar-gutter:stable both-edges;
        -webkit-overflow-scrolling:touch;
      }

      .mega-sidebar{
        scrollbar-width:auto;
      }

      /* Ocultar definitivamente el contador de resultados */
      .resultados-toolbar-count{
        display:none !important;
      }

      /* Desktop: Filtros avanzados | espacio flexible | Marca centrada | Orden */
      .catalogo-layout.advanced-active .resultados-toolbar{
        grid-template-columns:165px minmax(0,1fr) 250px 250px !important;
      }

      .resultados-toolbar-brand{
        justify-content:center !important;
      }

      .resultados-toolbar-brand select{
        width:250px !important;
      }
    }

    @media(max-width:960px){
      /* Mobile conserva posiciones actuales, pero nunca muestra contador */
      .resultados-toolbar-count{
        display:none !important;
      }
    }


    /* ===== V28: rubros directos sin submenú ===== */
    @media(min-width:961px){
      .mega-rubro-item.mega-rubro-directo{
        cursor:pointer;
      }
      .mega-rubro-item.mega-rubro-directo::after{
        content:none !important;
      }
    }



    /* ==========================================================
       V32: HOME RESPONSIVE / CAROUSEL LINKABLE / DESTACADOS
       ========================================================== */

    /* Cada slide puede ser un vínculo completo */
    .banner-slide-link{
      flex:0 0 100%;
      width:100%;
      display:block;
      text-decoration:none;
      line-height:0;
      cursor:pointer;
      overflow:hidden;
    }
    .banner-slide-link img{
      width:100%;
      display:block;
    }

    /* Encabezado de productos destacados */
    .home-featured-heading{
      display:none;
      align-items:center;
      gap:10px;
      margin:2px 0 14px;
      color:var(--alb-orange);
      font-size:18px;
      line-height:1;
      font-weight:800;
      letter-spacing:.2px;
    }
    .home-featured-heading.is-visible{display:flex}
    .featured-star-3d{
      display:inline-grid;
      place-items:center;
      width:28px;
      height:28px;
      flex:0 0 28px;
      color:#ffd43b;
      font-size:27px;
      line-height:1;
      text-shadow:
        0 1px 0 #e5a400,
        0 2px 0 #d99100,
        0 3px 5px rgba(131,80,0,.30),
        0 0 8px rgba(255,213,57,.32);
      transform:translateY(-1px);
    }

    /* Controles exclusivos de mobile */
    .mobile-search-tools,
    .mobile-category-showcase{
      display:none;
    }

    @media(max-width:960px){
      /* En mobile usamos la nueva fila, no el buscador desktop */
      .header-main .header-search{
        display:none !important;
      }

      .mobile-search-tools{
        width:100%;
        min-height:60px;
        padding:7px 10px 9px;
        background:var(--alb-blue);
        display:grid;
        grid-template-columns:minmax(0,1fr) 210px;
        gap:8px;
        align-items:center;
        border-top:1px solid rgba(255,255,255,.12);
      }

      .mobile-search-box{
        position:relative;
        min-width:0;
      }

      .mobile-search-box input{
        width:100%;
        height:46px;
        padding:0 50px 0 15px;
        border:1px solid rgba(255,255,255,.72);
        border-radius:10px;
        background:#fff;
        color:var(--ink);
        outline:none;
        font-size:16px;
      }

      .mobile-search-box button{
        position:absolute;
        right:4px;
        top:4px;
        width:38px;
        height:38px;
        border:0;
        border-radius:8px;
        background:var(--alb-blue);
        color:#fff;
        display:grid;
        place-items:center;
        cursor:pointer;
      }

      .mobile-header-promos{
        min-width:0;
        display:grid;
        gap:2px;
        align-content:center;
      }

      .mobile-credit-link,
      .mobile-moto-link{
        width:100%;
        min-width:0;
        min-height:22px;
        padding:1px 4px;
        border:0;
        border-radius:5px;
        background:transparent;
        display:flex;
        align-items:center;
        justify-content:flex-start;
        gap:5px;
        text-decoration:none;
        white-space:nowrap;
        cursor:pointer;
        font-size:10px;
        line-height:1.1;
        font-weight:800;
      }

      .mobile-credit-link{color:#fff}
      .mobile-moto-link{color:var(--alb-orange)}
      .mobile-credit-link .icon{width:20px;height:20px}
      .mobile-moto-link .moto-ref-icon{width:25px;height:18px}

      /* Logo aproximadamente 30% mayor, limitado por el ancho real */
      .logo-container img{
        width:218px !important;
        max-width:min(218px,44vw) !important;
      }

      /* Carrusel mobile: mostrar la imagen completa, sin crop */
      .banner-container{
        background:#fff !important;
      }
      .banner-slider{
        align-items:center;
      }
      .banner-slide-link,
      .banner-slider img{
        height:auto !important;
        aspect-ratio:auto !important;
      }
      .banner-slider img{
        object-fit:contain !important;
        object-position:center !important;
      }

      /* Flechas visibles también en mobile */
      .banner-arrow{
        display:flex !important;
        align-items:center;
        justify-content:center;
        width:34px !important;
        height:34px !important;
        font-size:20px !important;
        z-index:8 !important;
      }
      .banner-prev{left:7px !important}
      .banner-next{right:7px !important}

      /* Rubros visuales mobile */
      .mobile-category-showcase{
        display:grid;
        grid-auto-flow:column;
        grid-auto-columns:minmax(78px,1fr);
        gap:8px;
        width:100%;
        padding:12px 12px 10px;
        overflow-x:auto;
        overscroll-behavior-inline:contain;
        scroll-snap-type:x proximity;
        background:#f2f3f5;
        scrollbar-width:none;
      }
      .mobile-category-showcase::-webkit-scrollbar{display:none}

      .mobile-category-card{
        min-width:0;
        color:#121826;
        text-decoration:none;
        text-align:center;
        scroll-snap-align:start;
        display:grid;
        justify-items:center;
        gap:5px;
      }
      .mobile-category-image{
        width:74px;
        height:74px;
        border-radius:50%;
        background:#fff;
        display:grid;
        place-items:center;
        overflow:hidden;
        box-shadow:0 2px 9px rgba(18,38,63,.08);
        border:1px solid #edf0f4;
      }
      .mobile-category-image img{
        width:88%;
        height:88%;
        object-fit:contain;
        display:block;
      }
      .mobile-category-card strong{
        font-size:10px;
        line-height:1.15;
        font-weight:800;
      }

      /* El bloque inferior de promos queda separado del listado de categorías */
      .drawer-promos-bottom{
        margin-top:2px;
        padding-top:0 !important;
        padding-bottom:7px !important;
        border-top:1px solid #e8edf2;
      }
    }

    @media(max-width:700px){
      .header-main{
        padding-bottom:8px !important;
      }
      .mobile-search-tools{
        grid-template-columns:minmax(0,1fr) 180px;
        padding-inline:8px;
      }

      .home-featured-heading{
        margin:8px 10px 10px;
        padding:10px 14px;
        border-radius:9px;
        background:#fff;
        box-shadow:0 2px 10px rgba(18,38,63,.08);
        font-size:14px;
      }
      .featured-star-3d{
        width:23px;
        height:23px;
        flex-basis:23px;
        font-size:22px;
      }

      .container{
        margin-top:0 !important;
      }

      .mobile-category-image{
        width:68px;
        height:68px;
      }
      .mobile-category-card strong{
        font-size:9.5px;
      }
    }

    @media(max-width:520px){
      .mobile-search-tools{
        grid-template-columns:minmax(0,1fr) 154px;
        gap:5px;
        padding-inline:6px;
      }
      .mobile-credit-link,
      .mobile-moto-link{
        font-size:8.8px;
        gap:3px;
      }
      .mobile-credit-link .icon{width:18px;height:18px}
      .mobile-moto-link .moto-ref-icon{width:22px;height:16px}

      .logo-container img{
        width:210px !important;
        max-width:min(210px,45vw) !important;
      }

      .mobile-category-showcase{
        grid-auto-columns:74px;
        gap:7px;
        padding-inline:9px;
      }
      .mobile-category-image{
        width:64px;
        height:64px;
      }
    }

    @media(max-width:390px){
      .mobile-search-tools{
        grid-template-columns:minmax(0,1fr) 134px;
      }
      .mobile-search-box input{
        padding-left:11px;
        font-size:15px;
      }
      .mobile-credit-link,
      .mobile-moto-link{
        font-size:7.8px;
      }
      .logo-container img{
        width:190px !important;
        max-width:44vw !important;
      }
    }



    /* ==========================================================
       V33: RUBROS MOBILE CON PNG FIJOS + SOBRESALIENTES
       ========================================================== */
    @media(max-width:960px){
      .mobile-category-showcase{
        overflow-y:visible !important;
        padding-top:18px !important;
      }

      .mobile-category-image{
        position:relative !important;
        overflow:visible !important;
        isolation:isolate;
        background:#fff !important;
        border-radius:50% !important;
        box-shadow:none !important;
        border:0 !important;
      }

      .mobile-category-image::before{
        content:'';
        position:absolute;
        inset:0;
        z-index:0;
        border-radius:50%;
        background:#fff;
        box-shadow:0 2px 9px rgba(18,38,63,.06);
      }

      .mobile-category-image img{
        position:absolute !important;
        z-index:1;
        left:50% !important;
        top:50% !important;
        width:auto !important;
        height:auto !important;
        max-width:none !important;
        max-height:none !important;
        object-fit:contain !important;
        margin:0 !important;
        transform:translate(-50%,-50%);
        transform-origin:center center;
        pointer-events:none;
      }

      /* Lavado */
      #mobile-cat-img-lavado{
        width:82% !important;
        max-height:88% !important;
      }

      /* Heladera: sale por arriba y abajo del círculo */
      #mobile-cat-img-heladeras{
        width:67% !important;
        max-height:132% !important;
        transform:translate(-50%,-52%) scale(1.16) !important;
      }

      /* Cocina */
      #mobile-cat-img-cocinas{
        width:77% !important;
        max-height:92% !important;
      }

      /* TV: sobresale lateralmente */
      #mobile-cat-img-tv{
        width:128% !important;
        max-height:90% !important;
        transform:translate(-50%,-49%) !important;
      }

      /* Celular */
      #mobile-cat-img-celulares{
        width:78% !important;
        max-height:91% !important;
      }

      /* Bicicleta: sobresale a ambos lados */
      #mobile-cat-img-bicicletas{
        width:142% !important;
        max-height:88% !important;
        transform:translate(-50%,-49%) !important;
      }

      .mobile-category-card strong{
        position:relative;
        z-index:3;
        margin-top:3px;
      }
    }

    @media(max-width:520px){
      #mobile-cat-img-tv{width:132% !important}
      #mobile-cat-img-bicicletas{width:148% !important}
      #mobile-cat-img-heladeras{transform:translate(-50%,-52%) scale(1.18) !important}
    }


    /* ===== V35: navegación a rubros + precisión del carousel ===== */
    #catalogo{scroll-margin-top:160px;}
    @media(max-width:960px){#catalogo{scroll-margin-top:190px;}}


    /* ==========================================================
       V36: BUSCADOR / MODALES / DATOS DE FACTURACIÓN
       ========================================================== */
    /* V37: búsqueda con debounce y retorno a Inicio al quedar vacía */
    input[type="search"]::-webkit-search-cancel-button{
      cursor:pointer;
    }

    .cart-summary-row{
      margin:20px 0 14px;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      flex-wrap:wrap;
    }

    .cart-total-line{
      margin:0 !important;
      font-size:18px !important;
      text-align:left !important;
      color:var(--alb-blue) !important;
      font-weight:800 !important;
    }

    .cart-billing-link{
      border:0;
      border-bottom:1px solid #aeb8c5;
      background:transparent;
      color:#475569;
      min-height:34px;
      padding:4px 2px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:7px;
      font-size:12px;
      font-weight:500;
      cursor:pointer;
      transition:.18s ease;
    }

    .cart-billing-link .icon{
      color:var(--alb-blue);
      width:18px;
      height:18px;
    }

    .cart-billing-link:hover{
      color:var(--alb-blue);
      border-bottom-color:var(--alb-blue);
    }

    @media(max-width:700px){
      .cart-summary-row{
        margin:17px 0 12px;
        display:grid;
        grid-template-columns:1fr;
        gap:8px;
      }

      .cart-total-line{
        font-size:17px !important;
      }

      .cart-billing-link{
        width:fit-content;
        max-width:100%;
        justify-content:flex-start;
        font-size:11px;
      }
    }


    /* ==========================================================
       V38: RECOMENDADOS / FILTROS LEGIBLES / FOOTER SUCURSALES
       ========================================================== */

    /* Encabezado recomendado, según referencia */
    .home-featured-heading{
      color:var(--alb-blue) !important;
      gap:8px !important;
      font-size:17px !important;
      line-height:1.15 !important;
      letter-spacing:0 !important;
    }

    .home-featured-star{
      width:24px;
      height:24px;
      flex:0 0 24px;
      color:var(--alb-orange);
      fill:none;
      stroke:currentColor;
      stroke-width:1.8;
      stroke-linecap:round;
      stroke-linejoin:round;
    }

    .home-featured-copy{
      display:inline-flex;
      align-items:baseline;
      flex-wrap:wrap;
      gap:4px;
      min-width:0;
      color:#203b6f;
      font-weight:500;
    }

    .home-featured-copy strong{
      color:#203b6f;
      font-weight:800;
    }

    .home-featured-copy > span{
      color:#203b6f;
      font-weight:500;
    }

    /* Más cuerpo tipográfico en filtros avanzados */
    .filtro-avanzado-label{
      font-size:10.5px !important;
      font-weight:800 !important;
      line-height:1.3 !important;
    }

    .filtro-atributo-dinamico{
      font-size:10.5px !important;
      font-weight:550 !important;
      line-height:1.25 !important;
    }

    .filtro-atributo-dinamico option{
      font-size:11px;
      font-weight:500;
    }

    /* Sucursales: pins naranjas y orden visual 3 columnas */
    .footer-branches.footer-branches-grid{
      display:grid !important;
      grid-template-columns:repeat(3,minmax(0,1fr));
      gap:8px 24px !important;
      max-width:620px !important;
      align-items:start;
    }

    .footer-branch-link{
      display:flex !important;
      align-items:flex-start;
      gap:7px;
      min-width:0;
      color:#f2f5f9 !important;
      text-decoration:none !important;
      white-space:normal !important;
      line-height:1.35 !important;
    }

    .footer-location-icon{
      width:17px;
      height:17px;
      flex:0 0 17px;
      margin-top:0;
      color:var(--alb-orange);
      fill:var(--alb-orange);
      stroke:var(--alb-orange);
      stroke-width:1.7;
    }

    .footer-branch-link span{
      min-width:0;
    }

    .footer-branch-link:hover span{
      text-decoration:underline;
      text-underline-offset:3px;
    }

    /* Arrepentimiento: naranja institucional en footer y Mis Compras */
    .footer-repentance,
    .btn-arrepentimiento-compra{
      background:var(--footer-orange) !important;
      color:#fff !important;
      box-shadow:0 7px 18px rgba(245,130,32,.22) !important;
    }

    .footer-repentance:hover,
    .btn-arrepentimiento-compra:hover{
      background:var(--alb-orange-dark) !important;
    }

    @media(max-width:1250px){
      .footer-branches.footer-branches-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        max-width:520px !important;
      }
    }

    @media(max-width:960px){
      .filtro-avanzado-label{
        font-size:11px !important;
      }

      .filtro-atributo-dinamico{
        font-size:11px !important;
        font-weight:550 !important;
      }
    }

    @media(max-width:700px){
      .home-featured-heading{
        font-size:14px !important;
        gap:7px !important;
      }

      .home-featured-star{
        width:21px;
        height:21px;
        flex-basis:21px;
      }

      .footer-branches.footer-branches-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:9px 14px !important;
        max-width:none !important;
      }
    }

/* Imágenes nuevas de Rubros destacados dentro del slider mobile. */
@media (max-width:960px){
  #mobile-category-showcase .mobile-category-card .marketing-rubro-imagen{
    width:88% !important;height:88% !important;max-width:88% !important;
    max-height:88% !important;transform:translate(-50%,-50%) !important;
    object-fit:contain !important;
  }
}
/* El rótulo puede usar dos líneas sin ocupar el selector vecino. */
@media (max-width:520px){
  .resultados-toolbar.is-visible{
    grid-template-columns:minmax(0,1.2fr) repeat(2,minmax(0,1fr)) !important;
  }
  .resultados-toolbar-left,.resultados-toolbar-brand,.resultados-toolbar-order{min-width:0}
  .resultados-filtros-toggle{
    min-width:0;white-space:normal;line-height:1.15;font-size:9px;gap:4px;
  }
  .resultados-filtros-toggle span{white-space:normal;overflow-wrap:normal}
}
/* La franja editable de Beneficios pertenece sólo a la vista desktop. */
@media (max-width:960px){.benefit-strip{display:none !important}}

/* Beneficio destacado: envío a domicilio sin cargo. La misma marca visual
   se reutiliza en la franja desktop y en los beneficios del popup de producto. */
.benefit-shipping strong,
.detalle-beneficio-item.benefit-shipping strong{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.benefit-shipping-badge{
  display:inline-block;
  padding:3px 6px;
  border-radius:5px;
  background:#ff7b1a;
  color:#fff !important;
  font-family:'Montserrat',sans-serif;
  font-size:.76em;
  line-height:1.1;
  font-weight:800;
  white-space:nowrap;
  vertical-align:middle;
}

.benefit-strip .benefit-shipping .benefit-icon,
.detalle-beneficio-item.benefit-shipping .benefit-icon{
  border-color:#ff7b1a;
  color:#ff7b1a;
  background:#fff1e5;
}

.benefit-strip .benefit-shipping .benefit-icon .icon,
.detalle-beneficio-item.benefit-shipping .benefit-icon .icon{
  color:#ff7b1a;
}

/* Detalle de Garantía Extendida Albanessi dentro de cada producto del carrito. */
#modal-cart .cart-warranty-block{
  background:#f2f7ff;border-radius:10px;color:#16375b;
}
#modal-cart .cart-warranty-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:8px 12px;
}
#modal-cart .cart-warranty-info{min-width:0}
#modal-cart .cart-warranty-heading{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
}
#modal-cart .cart-warranty-icon{
  width:30px;height:30px;object-fit:contain;flex:0 0 30px;
}
#modal-cart .cart-warranty-title{font-size:12px;line-height:1.3;font-weight:800}
#modal-cart .cart-warranty-more{
  border:0;background:transparent;color:#173553;padding:4px 2px;
  font:inherit;font-size:10px;font-weight:500;text-decoration:underline;
  text-underline-offset:2px;cursor:pointer;
}
#modal-cart .cart-warranty-more:focus-visible{outline:2px solid #1459a1;outline-offset:2px;border-radius:3px}
#modal-cart .cart-warranty-select{flex:0 0 auto;max-width:100%}
#modal-cart .cart-warranty-detail{
  padding:2px 14px 16px 49px;color:#24384e;
  font-size:11px;line-height:1.5;overflow-wrap:anywhere;
}
#modal-cart .cart-warranty-detail[hidden]{display:none !important}
#modal-cart .cart-warranty-detail p{margin:0 0 9px}
#modal-cart .cart-warranty-detail .cart-warranty-lead{
  color:#0c3764;font-size:13px;font-weight:800;margin:4px 0 8px;
}
#modal-cart .cart-warranty-detail h4{
  color:#173553;font-size:11px;line-height:1.35;margin:12px 0 4px;
}
#modal-cart .cart-warranty-detail ul{margin:0 0 10px;padding-left:20px}
#modal-cart .cart-warranty-detail li{padding-left:1px;margin:2px 0}
#modal-cart .cart-warranty-detail .cart-warranty-notes{font-size:10px;line-height:1.45}
#modal-cart .cart-help-whatsapp{
  display:flex;align-items:center;gap:6px;
  width:max-content;max-width:100%;
  margin:0 12px 9px 49px;
  color:#128c54;text-decoration:underline;text-underline-offset:2px;
  font-size:11px;font-weight:700;line-height:1.35;
}
#modal-cart .cart-help-whatsapp:hover{color:#0b6b40}
#modal-cart .cart-help-whatsapp .icon,
#modal-cart .cart-help-whatsapp .wa-brand-icon{flex:0 0 auto;width:15px;height:15px}
#modal-cart .cart-help-whatsapp .cart-help-whatsapp-icon{
  display:block;flex:0 0 32px;width:32px;height:32px;object-fit:contain;
}
@media (max-width:620px){
  #modal-cart .cart-warranty-row{align-items:stretch;flex-direction:column;gap:4px}
  #modal-cart .cart-warranty-select{width:100% !important;max-width:100%}
  #modal-cart .cart-warranty-detail{padding:4px 12px 16px;font-size:11px}
  #modal-cart .cart-help-whatsapp{margin:0 12px 10px;font-size:11px}
}

/* Envío Express: el logo OCA se muestra sin el fondo/borde del badge anterior. */
#badge-info-envio.is-oca{
  background:transparent !important;
  color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
#badge-info-envio.is-oca .checkout-carrier-logo{
  display:block;
  width:min(100%, 340px);
  height:auto;
  max-height:135px;
  object-fit:contain;
}

/* ==========================================================
   V39: estado de sesión, filtros y tipografía del footer
   ========================================================== */

/* En el header el estado de sesión se distingue por color, sin
   modificar el enlace ni la lógica que abre el perfil/login. */
.header-user-link{
  color:#fff !important;
}

.header-user-link .icon,
.header-user-link .login-label,
.header-user-link .user-name-label,
.header-user-link .mobile-profile-label{
  color:inherit !important;
}

.header-user-link .icon{
  stroke:currentColor !important;
}

.header-user-profile .header-user-link,
.header-user-profile .header-user-link .icon,
.header-user-profile .header-user-link .user-name-label,
.header-user-profile .header-user-link .mobile-profile-label{
  color:var(--alb-orange,#f58220) !important;
}

/* Cuando no hay atributos para filtrar, la barra conserva exactamente
   la misma grilla: el rótulo ocupa una columna propia y los dos
   selectores quedan alineados, en vez de repartirse por contenido. */
@media(min-width:961px){
  .resultados-toolbar.is-visible{
    grid-template-columns:300px minmax(0,1fr) minmax(0,1fr) !important;
    align-items:center !important;
    gap:16px !important;
  }

  .resultados-toolbar-left{
    min-width:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
  }

  .resultados-filtros-toggle{
    min-width:0 !important;
    max-width:150px !important;
    padding:0 !important;
    white-space:normal !important;
    line-height:1.15 !important;
    text-align:left !important;
  }

  .resultados-filtros-toggle span{
    display:block !important;
    max-width:105px !important;
    white-space:normal !important;
    overflow-wrap:normal !important;
  }

  .resultados-toolbar-brand,
  .resultados-toolbar-order{
    min-width:0 !important;
    justify-content:center !important;
  }

  .resultados-toolbar-brand select,
  .resultados-toolbar-order select{
    width:min(100%,350px) !important;
  }
}

/* Estos dos llamados a la acción del footer usan Montserrat Regular,
   manteniendo el peso visual de los íconos y del resto del pie. */
.footer-repentance,
.footer-repentance span,
.footer-safe-purchase,
.footer-safe-purchase strong{
  font-family:'Montserrat',sans-serif !important;
  font-weight:400 !important;
}

/* Precio informativo en cuotas: no reemplaza el precio principal ni el
   importe que se utiliza en el carrito. */
.precio-anterior-linea{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:6px;
  width:max-content;
  max-width:100%;
  margin-bottom:1px;
}

.precio-anterior-tachado{
  display:inline-block;
  width:auto;
  max-width:100%;
  margin-bottom:0;
  color:#64748b;
  font-size:12px;
  font-weight:600;
  line-height:1.15;
  text-decoration-line:line-through;
  text-decoration-thickness:1.5px;
  text-decoration-color:#64748b;
}

.precio-descuento-badge{
  display:inline-block;
  color:#16a34a;
  font-size:11px;
  font-weight:800;
  line-height:1.15;
  white-space:nowrap;
}

.precio-actual{display:inline-block}

.precio-cuotas-informativo{
  display:inline-flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  margin-top:5px;
  padding:4px 8px;
  border:1px solid #fed7aa;
  border-radius:6px;
  background:#fff7ed;
  color:#c2410c;
  font-size:10px;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
}

.precio-cuotas-logo{
  display:block;
  width:auto;
  max-width:42px;
  height:20px;
  object-fit:contain;
}

.detalle-precios{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  margin:10px 0 14px;
}

.detalle-precio-original{
  color:var(--alb-blue,#003b71);
  font-size:20px;
  font-weight:800;
}

.detalle-precio-original .detalle-precio-anterior{
  margin-bottom:0;
  color:#64748b;
  font-size:13px;
  font-weight:600;
}

.detalle-precio-original .precio-anterior-linea{
  margin-bottom:2px;
}

.detalle-precio-original .precio-descuento-badge{
  font-size:12px;
}

.detalle-precio-consulta{
  color:#b45309;
  font-size:16px;
  font-weight:800;
}

.detalle-precio-cuotas{
  font-size:11px;
  padding:5px 9px;
}

@media(max-width:620px){
  .precio-cuotas-informativo{
    max-width:100%;
    font-size:9.5px;
    padding:4px 7px;
  }

  .precio-cuotas-logo{max-width:36px;height:18px}

  .detalle-precio-original{font-size:18px}
  .detalle-precio-original .detalle-precio-anterior{font-size:12px}
  .detalle-precio-consulta{font-size:14px}
}

/* ==========================================================
   V45: perfil en modo lectura + edición desplegable
   ========================================================== */

#modal-perfil .modal-content{
  max-height:min(92vh,760px);
  overflow-y:auto;
}

#modal-perfil .perfil-datos-lectura{
  margin:0 0 14px;
  padding:15px;
  border:1px solid #dce7f2;
  border-radius:12px;
  background:#f7faff;
}

#modal-perfil .perfil-datos-lectura-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:13px;
}

#modal-perfil .perfil-datos-lectura-head h3{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  color:var(--alb-blue,#003b71);
  font-size:17px;
  line-height:1.2;
  font-weight:800;
}

#modal-perfil .perfil-datos-lectura-head p{
  margin:5px 0 0;
  color:#667b92;
  font-size:11px;
  line-height:1.35;
}

#modal-perfil .perfil-datos-lectura-lock{
  width:20px;
  height:20px;
  flex:0 0 auto;
  color:#6c87a4;
}

#modal-perfil .perfil-datos-lectura-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 12px;
  margin:0;
}

#modal-perfil .perfil-dato-lectura-item{
  min-width:0;
  padding:9px 10px;
  border:1px solid #e1eaf3;
  border-radius:8px;
  background:#fff;
}

#modal-perfil .perfil-dato-lectura-item dt{
  margin:0 0 4px;
  color:#6b7f94;
  font-size:10px;
  line-height:1.25;
  font-weight:700;
}

#modal-perfil .perfil-dato-lectura-item dd{
  margin:0;
  color:#183b61;
  font-size:12px;
  line-height:1.35;
  font-weight:700;
  overflow-wrap:anywhere;
}

#modal-perfil .perfil-dato-lectura-password dd{
  letter-spacing:2px;
}

#modal-perfil .perfil-edicion{
  margin:0 0 12px;
  border:1px solid #dce7f2;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}

#modal-perfil .perfil-edicion-toggle{
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:0;
  background:#fff;
  color:var(--alb-blue,#003b71);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  font:inherit;
  font-size:14px;
  line-height:1.25;
  font-weight:800;
  cursor:pointer;
}

#modal-perfil .perfil-edicion-toggle > span{
  display:flex;
  align-items:center;
  gap:7px;
  min-width:0;
}

#modal-perfil .perfil-edicion-toggle:hover,
#modal-perfil .perfil-edicion.is-open .perfil-edicion-toggle{
  background:#f4f8fd;
}

#modal-perfil .perfil-edicion-chevron{
  width:20px;
  height:20px;
  flex:0 0 auto;
  transition:transform .22s ease;
}

#modal-perfil .perfil-edicion.is-open .perfil-edicion-chevron{
  transform:rotate(180deg);
}

#modal-perfil .perfil-edicion-panel{
  display:none;
  padding:15px;
  border-top:1px solid #e1eaf3;
  background:#fbfdff;
}

#modal-perfil .perfil-edicion.is-open .perfil-edicion-panel{
  display:block;
}

#modal-perfil .perfil-edicion-title{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 12px;
  color:var(--alb-blue,#003b71);
  font-size:15px;
  line-height:1.25;
  font-weight:800;
}

#modal-perfil .perfil-edicion-panel > label,
#modal-perfil .perfil-password-row label{
  display:block;
  margin:10px 0 5px;
  color:#264b70;
  font-size:11px;
  line-height:1.25;
  font-weight:700;
}

#modal-perfil .perfil-edicion-panel > input,
#modal-perfil .perfil-edicion-panel > select,
#modal-perfil .perfil-password-row input{
  display:block;
  width:100%;
  box-sizing:border-box;
}

#modal-perfil .perfil-edicion-actions{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:15px;
}

#modal-perfil .perfil-edicion-actions .btn-confirm,
#modal-perfil .perfil-edicion-actions .btn-cerrar-sesion-perfil{
  flex:1 1 210px;
  margin:0;
}

#modal-perfil .perfil-cancel-button{
  display:block;
  width:100%;
  margin-top:10px;
  padding:8px;
  border:0;
  background:none;
  color:#64748b;
  cursor:pointer;
  font:inherit;
  font-size:12px;
  font-weight:600;
}

#modal-perfil.billing-mode #perfil-password-row{
  display:none !important;
}

#modal-perfil .sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media(max-width:960px){
  #modal-perfil .perfil-datos-lectura{
    margin:0 0 12px;
    padding:13px;
    border-radius:10px;
  }

  #modal-perfil .perfil-datos-lectura-head h3{
    font-size:16px;
  }

  #modal-perfil .perfil-datos-lectura-grid{
    grid-template-columns:1fr;
    gap:8px;
  }

  #modal-perfil .perfil-dato-lectura-item{
    padding:8px 9px;
  }

  #modal-perfil .perfil-edicion-toggle{
    min-height:54px;
    font-size:15px;
  }

  #modal-perfil .perfil-edicion-panel{
    padding:14px;
  }

  #modal-perfil .perfil-edicion-actions{
    display:grid;
    grid-template-columns:1fr;
  }

  #modal-perfil .perfil-edicion-actions .btn-confirm,
  #modal-perfil .perfil-edicion-actions .btn-cerrar-sesion-perfil{
    width:100%;
  }
}

/* ==========================================================
   V46: perfil, tarjetas de producto y detalle rediseñados
   ========================================================== */

/* La ficha de datos se consulta en modo lectura. La edición queda
   confinada al acordeón inferior, tanto en desktop como en mobile. */
#modal-perfil .perfil-desktop-title{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 17px;
  color:var(--alb-blue,#003b71);
  font-size:22px;
  line-height:1.2;
  font-weight:800;
}

#modal-perfil .perfil-desktop-title .icon{width:21px;height:21px}

#modal-perfil .perfil-datos-lectura{
  margin:0 0 16px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

#modal-perfil .perfil-datos-lectura-head{
  display:none;
}

#modal-perfil .perfil-datos-lectura-head p,
#modal-perfil .perfil-datos-lectura-lock{
  display:none;
}

#modal-perfil .perfil-datos-lectura-grid{
  display:block;
  margin:0;
}

#modal-perfil .perfil-dato-lectura-item{
  display:flex;
  align-items:baseline;
  gap:12px;
  min-width:0;
  margin:0;
  padding:7px 0;
  border:0;
  border-bottom:1px solid #e7edf4;
  border-radius:0;
  background:transparent;
}

#modal-perfil .perfil-dato-lectura-item:last-child{
  border-bottom:0;
}

#modal-perfil .perfil-dato-lectura-item dt{
  flex:0 0 230px;
  margin:0;
  color:#6b7f94;
  font-size:11px;
  line-height:1.35;
  font-weight:700;
}

#modal-perfil .perfil-dato-lectura-item dd{
  min-width:0;
  color:#183b61;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  overflow-wrap:anywhere;
}

/* Cards de productos: precio anterior + descuento, precio vigente,
   logo de la financiación y botón de acción en una composición estable. */
.card{
  position:relative;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:hidden;
}

.card-product-clickable{
  display:flex;
  flex:1 1 auto;
  min-width:0;
  flex-direction:column;
}

.card-product-clickable > img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:1 / 1;
  object-fit:contain;
}

.card .btn-fav-card{
  position:absolute;
  z-index:3;
  top:10px;
  right:10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  padding:0;
  border:1px solid #d8e1ea;
  border-radius:50%;
  background:#fff;
  color:#003b71;
  box-shadow:0 3px 10px rgba(0,35,72,.1);
  cursor:pointer;
}

.card .btn-fav-card.active{
  color:#e63b3b;
  border-color:#f2a1a1;
  background:#fff4f4;
}

.card .badge-container{
  min-height:31px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:3px 10px 0;
}

.card .badge-destacado{
  display:inline-flex;
  align-items:center;
  gap:5px;
  min-height:24px;
  padding:4px 9px;
  border:2px solid #f58220;
  border-radius:7px;
  background:#fff;
  color:#f58220;
  font-size:11px;
  line-height:1;
  font-weight:800;
  letter-spacing:.02em;
}

.card .badge-destacado .icon{
  color:#f58220;
  fill:#f58220;
}

.card .title{
  display:-webkit-box;
  min-height:40px;
  margin:8px 10px 9px;
  overflow:hidden;
  color:#153c65;
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}

.card-product-footer{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
  margin-top:auto;
  padding:0 10px 12px;
}

.card-product-footer .price{
  min-height:72px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  width:100%;
}

.card-price-main{
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
  width:100%;
  min-width:0;
}

.card-price-values{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
}

.card .precio-anterior-linea{
  justify-content:center;
  width:auto;
  max-width:100%;
  margin-bottom:2px;
}

.card .precio-anterior-tachado{
  color:#66798c;
  font-size:13px;
  font-weight:600;
}

.card .precio-descuento-badge{
  padding:4px 6px;
  border-radius:5px;
  background:#f58220;
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:800;
}

.card .precio-actual{
  color:#f58220;
  font-size:27px;
  line-height:1.05;
  font-weight:800;
  white-space:nowrap;
}

.card .precio-consulta{
  display:block;
  width:100%;
  color:#f58220;
  font-size:18px;
  line-height:1.2;
  font-weight:800;
  text-align:center;
}

.card .precio-cuotas-logo{
  align-self:flex-end;
  flex:0 0 auto;
  width:auto;
  max-width:90px;
  height:31px;
  margin-bottom:3px;
  object-fit:contain;
}

.card-cuota-row{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:39px;
}

.card .precio-cuotas-informativo{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:none;
  min-height:35px;
  margin:0;
  padding:7px 8px;
  border:0;
  border-radius:8px;
  background:#003b71;
  color:#fff;
  font-size:15px;
  line-height:1.05;
  font-weight:800;
  white-space:nowrap;
}

.card .precio-cuotas-informativo > span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}

.precio-cuotas-informativo .cuotas-sin-interes{
  font-size:.82em;
  font-weight:700;
  white-space:nowrap;
}

.card-product-footer .btn-add,
.card-product-footer .btn-wsp{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-height:37px;
  padding:7px 8px;
  border-radius:7px;
  background:transparent;
  box-shadow:none;
  font-size:13px;
  line-height:1.15;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.card-product-footer .btn-add{color:#003b71}
.card-product-footer .btn-wsp{color:#64748b}
.card-product-footer .btn-wsp .wa-brand-icon{color:#16c967}

/* Detalle de producto: galería a la izquierda y acciones/promociones a la
   derecha en desktop; se apila naturalmente en pantallas pequeñas. */
#modal-detalle-producto .modal-content{
  width:min(96vw,1320px) !important;
  max-width:1320px !important;
  max-height:94vh;
  overflow-y:auto;
}

.detalle-producto-head{
  padding:0 0 14px;
  border-bottom:1px solid #dce7f2;
}

.detalle-producto-head h3{
  margin:0 0 6px;
  color:#003b71;
  font-size:24px;
  line-height:1.2;
  font-weight:800;
}

.detalle-producto-head p{
  margin:0;
  color:#647b93;
  font-size:12px;
  line-height:1.35;
}

.detalle-producto-layout{
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(330px,.92fr);
  grid-template-areas:"media sidebar" "description sidebar";
  align-items:start;
  gap:24px 30px;
  padding-top:20px;
}

.detalle-producto-media{grid-area:media;min-width:0}
.detalle-producto-sidebar{grid-area:sidebar;min-width:0}
.detalle-producto-description{grid-area:description;min-width:0}

.detalle-producto-media .galeria-stage{
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  padding:15px;
  border:1px solid #e0e8f0;
  border-radius:12px;
  background:#fff;
}

.detalle-producto-media .galeria-main-img{
  display:block;
  width:100%;
  max-width:560px;
  height:390px;
  object-fit:contain;
}

.detalle-producto-media .galeria-thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.detalle-producto-media .galeria-thumbs img{
  width:62px;
  height:62px;
  padding:3px;
  border:1px solid #dce7f2;
  border-radius:7px;
  object-fit:contain;
  cursor:pointer;
}

.detalle-producto-media .galeria-thumbs img.active{
  border:2px solid #f58220;
}

.detalle-precios{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  margin:0 0 14px;
}

.detalle-precio-values{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.detalle-precio-values .precio-anterior-linea{margin-bottom:2px}
.detalle-precio-values .precio-anterior-tachado{font-size:18px}
.detalle-precio-values .precio-descuento-badge{font-size:12px}

.detalle-precio-actual{
  color:#f58220;
  font-size:45px;
  line-height:1.05;
  font-weight:800;
  white-space:nowrap;
}

.detalle-precio-consulta{
  color:#f58220;
  font-size:23px;
  font-weight:800;
}

.detalle-precios .detalle-precio-cuota{
  display:block;
  width:auto;
  max-width:100%;
  margin:5px 0 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#003b71;
  font-size:19px;
  line-height:1.2;
  font-weight:800;
  white-space:nowrap;
}

.detalle-acciones{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin:0 0 18px;
}

.detalle-acciones .btn-add-detalle,
.detalle-acciones .btn-consulta-producto{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:52px;
  padding:10px 14px;
  border:0;
  border-radius:8px;
  font-size:15px;
  line-height:1.2;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.detalle-acciones .btn-add-detalle{
  background:#003b71;
  color:#fff;
}

.detalle-acciones .btn-consulta-producto{
  background:#16c967;
  color:#fff;
}

.detalle-acciones .btn-consulta-producto .wa-brand-icon{color:#fff}

.detalle-promos{
  overflow:hidden;
  border:1px solid #dce7f2;
  border-radius:10px;
  background:#fff;
}

.detalle-promos-title{
  padding:11px 13px;
  background:#e8edf2;
  color:#003b71;
  font-size:14px;
  line-height:1.25;
  font-weight:800;
}

.detalle-promos-logos{
  display:flex;
  align-items:center;
  gap:13px;
  min-height:53px;
  padding:7px 13px;
  border-bottom:1px solid #e2eaf2;
}

.detalle-promos-logos img{
  display:block;
  width:auto;
  max-width:96px;
  height:30px;
  object-fit:contain;
}

.detalle-beneficios-list{
  display:flex;
  flex-direction:column;
}

.detalle-beneficio-item{
  display:flex !important;
  align-items:center;
  gap:9px;
  width:100% !important;
  min-height:45px;
  padding:8px 13px;
  border-bottom:1px solid #e5edf5;
  background:#fff !important;
  color:#16416c;
  text-align:left;
  text-decoration:none;
}

.detalle-beneficio-item:last-child{border-bottom:0}

.detalle-beneficio-item .benefit-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border:1px solid #dce7f2;
  border-radius:50%;
  color:#003b71;
  background:#f6faff;
}

.detalle-beneficio-item .benefit-icon .icon{width:17px;height:17px}
.detalle-beneficio-item > div:last-child{min-width:0}
.detalle-beneficio-item strong{display:block;font-size:12px;line-height:1.25}
.detalle-beneficio-item span{display:block;color:#68809a;font-size:10px;line-height:1.25}

.detalle-social-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:20px;
  padding:11px 13px;
  border-top:1px solid #dce7f2;
}

.detalle-social-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:3px 0;
  border:0;
  background:transparent;
  color:#003b71;
  font:inherit;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}

.detalle-social-btn.active{color:#e63b3b}
.detalle-compartir-btn{color:#16a05a}
.detalle-compartir-btn .wa-brand-icon{color:#16c967}

/* Título de la sección de productos destacados: primera parte destacada y
   cierre en peso liviano, igual en desktop y mobile. */
#filtros-titulo .filtros-title-copy{
  display:inline-flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:4px;
}
#filtros-titulo .filtros-title-copy strong{font-weight:800}
#filtros-titulo .filtros-title-copy > span{font-weight:400}
.home-featured-copy > span{font-weight:400}

/* Los productos seleccionados ya se identifican por la sección; no necesitan
   la pastilla individual DESTACADO. */
.card.card-featured .badge-container{display:none !important}

.detalle-producto-description{
  padding-top:2px;
  color:#294a6c;
}

.detalle-producto-description > h4{
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 0 8px;
  padding-bottom:8px;
  border-bottom:1px solid #dce7f2;
  color:#003b71;
  font-size:16px;
}

.detalle-producto-description > p{
  margin:0;
  color:#4a6078;
  font-size:13px;
  line-height:1.55;
  white-space:pre-line;
}

@media(max-width:960px){
  #modal-perfil .perfil-dato-lectura-item dt{flex-basis:195px}
}

@media(max-width:700px){
  #modal-perfil .perfil-desktop-title{display:none}

  #modal-perfil .perfil-dato-lectura-item{
    display:block;
    padding:8px 0;
  }

  #modal-perfil .perfil-dato-lectura-item dt{margin-bottom:3px}

  .card .btn-fav-card{top:7px;right:7px;width:31px;height:31px}
  .card .badge-container{padding-left:7px;padding-right:7px}
  .card .title{margin-left:7px;margin-right:7px;font-size:11px}
  .card-product-footer{padding-left:7px;padding-right:7px}
  .card-product-footer .price{min-height:59px}
  .card .precio-actual{font-size:22px}
  .card .precio-anterior-tachado{font-size:10px}
  .card .precio-descuento-badge{padding:3px 4px;font-size:9px}
  .card .precio-cuotas-logo{max-width:66px;height:24px}
  .card .precio-cuotas-informativo{min-height:30px;padding:6px 4px;font-size:11px}
  .card-product-footer .btn-add,
  .card-product-footer .btn-wsp{min-height:33px;padding:5px 4px;font-size:10px}

  #modal-detalle-producto .modal-content{
    width:96vw !important;
    max-height:96vh;
    padding:15px;
  }

  .detalle-producto-head h3{font-size:18px}
  .detalle-producto-head p{font-size:10px}
  .detalle-producto-layout{
    display:flex;
    flex-direction:column;
    gap:15px;
    padding-top:14px;
  }

  .detalle-producto-media{order:1;width:100%}
  .detalle-producto-sidebar{order:2;width:100%}
  .detalle-producto-description{order:3;width:100%}
  .detalle-producto-media .galeria-stage{min-height:275px;padding:8px}
  .detalle-producto-media .galeria-main-img{height:260px}
  .detalle-producto-media .galeria-thumbs img{width:48px;height:48px}
  .detalle-precio-actual{font-size:35px}
  .detalle-precio-values .precio-anterior-tachado{font-size:14px}
  .detalle-precio-consulta{font-size:18px}
  .detalle-precios .detalle-precio-cuota{font-size:14px;white-space:normal}
  .detalle-acciones .btn-add-detalle,
  .detalle-acciones .btn-consulta-producto{min-height:47px;font-size:13px}
  .detalle-promos-title{font-size:12px}
  .detalle-promos-logos{gap:7px;padding:6px 9px}
  .detalle-promos-logos img{max-width:78px;height:24px}
  .detalle-beneficio-item{min-height:42px;padding:7px 9px}
  .detalle-social-actions{gap:14px;padding:9px}
}

/* ==========================================================
   V47: ajuste de compactación de tarjetas y modal de producto
   ========================================================== */

/* La tarjeta no estira el bloque de información hasta el final de la
   fila: el precio queda inmediatamente debajo del nombre del producto. */
.card-product-clickable{
  flex:0 0 auto;
}

.card-product-clickable > img{
  aspect-ratio:1.28 / 1;
}

.card .title{
  min-height:36px;
  margin-bottom:5px;
}

.card-product-footer{
  margin-top:0;
  gap:4px;
  padding-bottom:9px;
}

.card-product-footer .price{
  min-height:62px;
}

.card-cuota-row{
  min-height:35px;
}

.card .precio-descuento-badge{
  font-family:'Montserrat',sans-serif !important;
  font-weight:800 !important;
  color:#fff !important;
  background:#f58220 !important;
}

.card-product-footer .btn-add .icon{
  width:28px;
  height:28px;
  flex:0 0 28px;
  color:#003b71;
  stroke:currentColor;
}

@media(min-width:701px){
  /* El detalle conserva el scroll vertical, pero evita ocupar todo el
     ancho de la pantalla en desktop. */
  #modal-detalle-producto .modal-content{
    width:min(96vw,960px) !important;
    max-width:960px !important;
    max-height:92vh;
  }

  .detalle-producto-layout{
    grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr);
    gap:20px;
  }

  .detalle-producto-media .galeria-stage{
    min-height:340px;
  }

  .detalle-producto-media .galeria-main-img{
    height:315px;
  }

  .detalle-precio-actual{
    font-size:38px;
  }

  .detalle-acciones .btn-add-detalle,
  .detalle-acciones .btn-consulta-producto{
    min-height:48px;
    font-size:14px;
  }
}

/* ==========================================================
   V48: precio principal y descuento coherentes entre tarjeta y detalle
   ========================================================== */

.card .precio-actual{
  font-family:'Montserrat',sans-serif !important;
  font-size:38px;
  font-weight:800 !important;
  letter-spacing:-.025em;
}

.card .precio-descuento-badge,
.detalle-precio-values .precio-descuento-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:5px 7px;
  border-radius:6px;
  background:#f58220 !important;
  color:#fff !important;
  font-family:'Montserrat',sans-serif !important;
  font-size:13px;
  line-height:1;
  font-weight:800 !important;
  white-space:nowrap;
}

.detalle-precio-actual{
  font-family:'Montserrat',sans-serif !important;
  font-size:45px;
  font-weight:800 !important;
  letter-spacing:-.025em;
}

.detalle-precio-values .precio-descuento-badge{
  margin-left:3px;
}

@media(max-width:700px){
  .card .precio-actual{font-size:24px}
  .card .precio-descuento-badge,
  .detalle-precio-values .precio-descuento-badge{
    padding:4px 5px;
    font-size:10px;
  }
  .detalle-precio-actual{font-size:36px}
}

/* V49: neutraliza la regla histórica .price span !important de la
   hoja base, que reducía nuevamente el precio de las tarjetas. */
.card .precio-actual{
  color:#f58220 !important;
  font-family:'Montserrat',sans-serif !important;
  font-size:38px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
}

.card .precio-descuento-badge{
  color:#fff !important;
  font-family:'Montserrat',sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
}

.detalle-precio-actual{
  color:#f58220 !important;
  font-family:'Montserrat',sans-serif !important;
  font-size:45px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
}

.detalle-precio-values .precio-descuento-badge{
  color:#fff !important;
  font-family:'Montserrat',sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
}

@media(max-width:700px){
  .card .precio-actual{font-size:24px !important}
  .detalle-precio-actual{font-size:36px !important}
}

@media(max-width:700px){
  .card-product-clickable > img{
    aspect-ratio:1.15 / 1;
  }

  .card .title{
    min-height:34px;
    margin-bottom:3px;
  }

  .card-product-footer .price{
    min-height:54px;
  }

  .card-cuota-row{
    min-height:30px;
  }

  .card-product-footer .btn-add .icon{
    width:22px;
    height:22px;
    flex-basis:22px;
  }
}

/* V50: ajuste final de escala en las tarjetas de producto. */
.card .precio-actual{
  font-size:27px !important;
}

.card .precio-cuotas-logo{
  max-width:81px;
  height:28px;
}

@media(max-width:700px){
  .card .precio-actual{
    font-size:24px !important;
  }
}

/* V51: precio anterior más legible, sin alterar la composición mobile. */
.card .precio-anterior-tachado{
  font-size:14px !important;
}

@media(max-width:700px){
  .card .precio-anterior-tachado{
    font-size:12px !important;
  }
}

/* ==========================================================
   V52: precios neutros, CTA naranja y jerarquía mobile
   ========================================================== */

/* Tarjetas del catálogo: el precio vigente usa el mismo gris que
   el precio anterior y queda levemente más compacto. */
.card .precio-actual{
  color:#66798c !important;
  font-size:25px !important;
}

/* Acerca el logo de financiación al bloque azul de cuotas. */
.card-product-footer{
  gap:2px;
}

.card .precio-cuotas-logo{
  margin-bottom:0;
  transform:translateY(2px);
}

.card-cuota-row{
  margin-top:-1px;
}

/* El botón de compra de las tarjetas se identifica con el naranja de la
   marca y conserva el ícono de carrito en blanco. */
.card-product-footer .btn-add{
  background:#f58220 !important;
  color:#fff !important;
  border:0;
}

.card-product-footer .btn-add:hover{
  background:#dc6b0b !important;
  color:#fff !important;
}

.card-product-footer .btn-add .icon{
  color:#fff !important;
  width:20px;
  height:20px;
  flex-basis:20px;
}

/* En mobile, el popup prioriza las cuotas: el precio de contado queda
   secundario y gris; la cuota conserva el azul institucional. */
@media(max-width:700px){
  .card .precio-actual{
    color:#66798c !important;
    font-size:18px !important;
    font-weight:700 !important;
  }

  .card .precio-cuotas-logo{
    max-width:62px;
    height:22px;
    transform:translateY(2px);
  }

  #modal-detalle-producto .detalle-precio-actual{
    color:#66798c !important;
    font-size:24px !important;
    font-weight:700 !important;
  }

  #modal-detalle-producto .detalle-precios .detalle-precio-cuota{
    color:#003b71 !important;
    font-size:27px !important;
    line-height:1.1 !important;
    font-weight:800 !important;
    white-space:nowrap !important;
  }

  #modal-detalle-producto .detalle-acciones .btn-add-detalle{
    background:#f58220 !important;
    color:#fff !important;
  }

  #modal-detalle-producto .detalle-acciones .btn-add-detalle:hover{
    background:#dc6b0b !important;
  }

  #modal-detalle-producto .detalle-acciones .btn-consulta-producto{
    background:#fff !important;
    color:#64748b !important;
    border:1px solid #3f5268 !important;
  }

  #modal-detalle-producto .detalle-acciones .btn-consulta-producto .wa-brand-icon{
    color:#16c967 !important;
  }
}

/* ==========================================================
   V53: popup de producto — cuotas protagonistas (desktop/mobile)
   ========================================================== */

/* En el detalle, el contado queda como referencia secundaria y
   las cuotas pasan a ser el precio visual principal. */
#modal-detalle-producto .detalle-precio-actual{
  color:#66798c !important;
  font-size:28px !important;
  line-height:1.1 !important;
  font-weight:700 !important;
}

#modal-detalle-producto .detalle-precios .detalle-precio-cuota{
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  margin:3px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  color:#003b71 !important;
  font-size:30px !important;
  line-height:1.1 !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}

/* Los dos CTA mantienen la misma jerarquía en ambas resoluciones. */
#modal-detalle-producto .detalle-acciones .btn-add-detalle{
  background:#f58220 !important;
  color:#fff !important;
  border:0 !important;
}

#modal-detalle-producto .detalle-acciones .btn-add-detalle:hover{
  background:#dc6b0b !important;
  color:#fff !important;
}

#modal-detalle-producto .detalle-acciones .btn-consulta-producto{
  background:#fff !important;
  color:#64748b !important;
  border:1px solid #3f5268 !important;
}

#modal-detalle-producto .detalle-acciones .btn-consulta-producto:hover{
  background:#f8fafc !important;
  color:#334155 !important;
}

#modal-detalle-producto .detalle-acciones .btn-consulta-producto .wa-brand-icon{
  color:#16c967 !important;
}

@media(max-width:700px){
  #modal-detalle-producto .detalle-precio-actual{
    font-size:24px !important;
  }

  #modal-detalle-producto .detalle-precios .detalle-precio-cuota{
    font-size:27px !important;
    white-space:nowrap !important;
  }
}

/* ==========================================================
   V54: ventanas de aviso unificadas
   ========================================================== */

.alb-alert-overlay{
  position:fixed;
  inset:0;
  z-index:12000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(15,23,42,.58);
  opacity:0;
  transition:opacity .17s ease;
}

.alb-alert-overlay.is-visible{opacity:1}

.alb-alert-card{
  box-sizing:border-box;
  width:min(92vw,230px);
  min-height:126px;
  padding:22px 18px 17px;
  border-radius:18px;
  background:#fff;
  color:#003b71;
  box-shadow:0 18px 50px rgba(0,29,62,.28);
  text-align:center;
  font-family:'Montserrat',Arial,sans-serif;
  transform:translateY(8px) scale(.98);
  transition:transform .17s ease;
}

.alb-alert-overlay.is-visible .alb-alert-card{
  transform:translateY(0) scale(1);
}

.alb-alert-card h2{
  margin:0 auto 17px;
  max-width:290px;
  color:#003b71;
  font-size:15px;
  line-height:1.18;
  font-weight:800;
  white-space:normal;
  overflow-wrap:anywhere;
}

.alb-alert-card p{
  margin:-4px auto 16px;
  max-width:290px;
  color:#52677f;
  font-size:12px;
  line-height:1.4;
  font-weight:600;
  overflow-wrap:anywhere;
}

.alb-alert-continue{
  display:block;
  width:100%;
  min-height:38px;
  padding:8px 14px;
  border:0;
  border-radius:6px;
  background:#f58220;
  color:#fff;
  font-family:inherit;
  font-size:13px;
  line-height:1.1;
  font-weight:800;
  cursor:pointer;
  transition:background .16s ease,transform .16s ease;
}

.alb-alert-continue:hover{background:#df6d0b}
.alb-alert-continue:active{transform:translateY(1px)}
.alb-alert-continue:focus-visible{outline:3px solid rgba(0,59,113,.32);outline-offset:2px}

.alb-alert-card.is-cart{
  width:min(92vw,350px);
  padding-top:16px;
}

.alb-alert-card.is-terms h2,
.alb-alert-card.is-duplicate h2{
  font-size:12px;
  line-height:1.25;
}

.alb-alert-card.is-cart .alb-alert-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:62px;
  margin:0 0 8px;
  color:#003b71;
}

.alb-alert-cart-icon{
  width:62px;
  height:62px;
  stroke:currentColor;
  stroke-width:1.7;
}

.alb-alert-card.is-cart h2{
  margin-bottom:17px;
  font-size:17px;
  line-height:1.16;
}

body.alb-alert-open{overflow:hidden}

@media(max-width:480px){
  .alb-alert-overlay{padding:14px}

  .alb-alert-card{
    width:min(92vw,230px);
    padding:20px 16px 15px;
    border-radius:17px;
  }

  .alb-alert-card h2{font-size:15px}
  .alb-alert-card p{font-size:11px}
  .alb-alert-card.is-cart h2{font-size:16px}
}

/* ==========================================================
   V55: navegación desde carrito y composición de thumbnails
   ========================================================== */

/* Cada producto del carrito abre su ficha sin perder el carrito. */
#modal-cart .cart-product-main{
  cursor:pointer;
  border-radius:8px;
  transition:background .16s ease, box-shadow .16s ease;
}

#modal-cart .cart-product-main:hover{
  background:#f8fbff;
}

#modal-cart .cart-product-main:focus-visible{
  outline:2px solid #1459a1;
  outline-offset:2px;
}

/* La consulta por WhatsApp se muestra una sola vez para todo el carrito. */
#modal-cart .cart-help-whatsapp-wrap{
  margin:12px 0 2px;
  padding:0 0 3px;
  border-bottom:1px solid #dce7f2;
}

#modal-cart .cart-help-whatsapp-general{
  margin:0 12px 10px;
}

/* El texto de cotización de motos usa la misma jerarquía que el precio
   efectivo de los thumbnails. */
.card .precio-consulta{
  color:#66798c !important;
  font-size:25px !important;
  line-height:1.05 !important;
  font-weight:700 !important;
}

/* La línea original queda independiente del logo: el precio tachado y el
   descuento siempre permanecen juntos en una misma fila. */
.card-price-values{
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
  width:100%;
}

.card-price-current-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  min-width:0;
}

.card .precio-cuotas-logo{
  align-self:center;
  flex:0 0 auto;
  max-width:72px;
  height:26px;
  margin:0;
}

.card .precio-anterior-linea{
  flex-wrap:nowrap;
  white-space:nowrap;
  gap:5px;
}

@media(max-width:700px){
  .card .precio-consulta{
    font-size:18px !important;
    line-height:1.1 !important;
    font-weight:700 !important;
  }

  .card-price-current-row{gap:5px}

  .card .precio-cuotas-logo{
    max-width:70px;
    height:26px;
  }

  .card .precio-anterior-linea{
    gap:4px;
  }

  .card .precio-anterior-tachado{
    font-size:11px !important;
  }

  #modal-cart .cart-help-whatsapp-general{
    margin:0 12px 10px;
  }
}

/* ==========================================================
   V57: thumbnails de motos — cotización compacta
   ========================================================== */

/* En motos el texto de cotización ocupa únicamente su propia línea:
   no se reserva la altura del bloque de cuotas ni queda un espacio
   artificial antes del botón de WhatsApp. */
.card-moto .title{
  margin-bottom:0;
}

.card-moto .card-product-footer{
  gap:0;
  margin-top:0;
  padding-top:0;
}

.card-moto .card-product-footer .price{
  min-height:0;
  margin:0;
  align-items:flex-start;
}

.card-moto .precio-consulta-moto{
  display:block;
  width:100%;
  margin:0;
  color:#66798c !important;
  font-family:'Montserrat',sans-serif !important;
  font-size:25px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  text-align:center;
}

.card-moto .card-product-footer .btn-wsp{
  margin-top:0;
}

@media(min-width:701px){
  .card-moto .precio-consulta-moto{
    white-space:nowrap;
  }
}

@media(max-width:700px){
  .card-moto .precio-consulta-moto{
    font-size:18px !important;
    line-height:1.1 !important;
  }
}
