/* =====================================================================
   MODERNO-JC.CSS  ·  Estilo RETAIL marketplace (Linio / Tottus / HomeCenter / Metro)
   Override cargado AL FINAL del template -> no toca el theme base.
   Aplica a TODOS los dominios. Color de marca = --color-web (solo en CTA/badges).
   Rollback: quitar el <link ... moderno-jc.css> del template.
   ===================================================================== */

:root{
    --mjc-page-bg: #f2f3f5;      /* fondo gris claro tipo marketplace */
    --mjc-surface: #ffffff;      /* cards blancas */
    --mjc-surface-2: #f7f8fa;
    --mjc-border: #e6e7eb;
    --mjc-border-2: #eceef1;
    --mjc-ink: #1a1a1a;          /* precio / texto fuerte casi negro */
    --mjc-ink-2: #2b2f36;
    --mjc-ink-soft: #70747b;     /* marca / subtítulos gris */
    --mjc-radius: 10px;          /* retail = poco redondeo */
    --mjc-radius-sm: 8px;
    --mjc-radius-btn: 8px;
    --mjc-shadow-card: 0 1px 2px rgba(20,23,28,.05);
    --mjc-shadow-hover: 0 8px 24px rgba(20,23,28,.12);
    --mjc-ease: cubic-bezier(.2,.7,.3,1);
    --color-web: var(--color-web, #de6a0f);
}

/* ---------- Base ---------- */
body.style_fondo_bg{
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--mjc-ink-2);
    letter-spacing: normal;
}
/* fondo gris claro para que las cards blancas resalten */
body.style_fondo_bg,
main.as-main{ background: var(--mjc-page-bg) !important; }

::selection{ background: color-mix(in srgb, var(--color-web) 22%, transparent); }
*::-webkit-scrollbar{ width:11px; height:11px; }
*::-webkit-scrollbar-thumb{ background:#cfd2d8; border-radius:999px; border:3px solid var(--mjc-page-bg); }
*::-webkit-scrollbar-thumb:hover{ background:#b7bbc3; }
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible{
    outline: 2px solid var(--color-web); outline-offset: 2px;
}

/* ---------- Títulos de sección ---------- */
.title-row{
    align-items: center;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.2px;
    text-transform: none;
    color: var(--mjc-ink);
    padding-bottom: 10px;
    position: relative;
}
.title-row .line-style,
.title-row .line-style-style{
    background: var(--mjc-border) !important;
    height: 1px !important;
}
.btn-ver-todo{
    padding: .4rem 1rem; font-size: 13px; font-weight: 700;
    border-radius: var(--mjc-radius-btn) !important; border:none !important;
}

/* ---------- Botones ---------- */
.btn{
    border-radius: var(--mjc-radius-btn) !important;
    font-weight: 700;
    letter-spacing: .1px;
    transition: filter .16s var(--mjc-ease), box-shadow .16s var(--mjc-ease), background-color .16s var(--mjc-ease);
}
.style-btn-comprar, .btn-ver-todo, .btn-pagar-style,
.btn-principal-style, .btn-pay-style, .btn-sus-style, .btn-buscarfilter-style{
    border: none !important;
}
.style-btn-comprar:hover, .btn-ver-todo:hover, .btn-pagar-style:hover,
.btn-principal-style:hover, .btn-pay-style:hover, .btn-buscarfilter-style:hover,
.btn-sus-style:hover{ filter: brightness(.93); }

/* ---------- Grid: cards estilo marketplace ---------- */
.grid-producto,
.item-producto.shadow-box{
    background: var(--mjc-surface) !important;
    border: 1px solid var(--mjc-border-2) !important;
    border-radius: var(--mjc-radius) !important;
    box-shadow: var(--mjc-shadow-card) !important;
    padding: 10px !important;
    overflow: hidden;
    transition: box-shadow .2s var(--mjc-ease), transform .2s var(--mjc-ease), border-color .2s var(--mjc-ease);
}
.grid-producto:hover,
.item-producto.shadow-box:hover{
    box-shadow: var(--mjc-shadow-hover) !important;
    border-color: transparent !important;
    transform: translateY(-2px);
    z-index: 3;
}

/* imagen: marco cuadrado blanco */
.grid-producto .product-image,
.item-producto .product-image{
    position: relative;
    border-radius: var(--mjc-radius-sm);
    background: #fff;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
    border: 1px solid #f1f2f4;
}
.grid-producto .product-image img,
.item-producto .product-image img{
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .3s var(--mjc-ease);
}
.grid-producto:hover .product-image img,
.item-producto:hover .product-image img{ transform: scale(1.05); }

/* badge de descuento: sólido, rectángulo con poco redondeo (arriba-izq) */
.descuento-tag{
    position:absolute; top:8px; left:8px;
    background: var(--color-web) !important;
    color:#fff !important;
    border-radius: 6px !important;
    padding: 3px 9px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    z-index: 2;
    line-height: 1;
}
.descuento-tag .lbl-discount p, .descuento-tag p{
    margin:0; font-size:12.5px; font-weight:800; color:#fff;
}

/* título del producto: pequeño, gris, 2 líneas */
.grid-producto-title{
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--mjc-ink-soft);
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.35em;
    margin: 2px 0 6px;
    transition: color .16s var(--mjc-ease);
}
.grid-producto-nombre:hover .grid-producto-title{ color: var(--mjc-ink); }

/* precio: GRANDE y oscuro (protagonista, como retail) */
.product-price{ margin-bottom: 8px; text-align: left !important; }
.product-price .price{
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mjc-ink);
    letter-spacing: -.5px;
    line-height: 1.1;
}
.product-price .old-price{
    font-size: .8rem;
    color: var(--mjc-ink-soft);
    text-decoration: line-through;
    font-weight: 500;
    margin-bottom: 1px;
}

/* botón comprar: rectángulo redondeado, full width, color de marca */
.grid-producto .style-btn-comprar,
.item-producto .style-btn-comprar{
    width: 100%;
    border-radius: var(--mjc-radius-btn) !important;
    padding: .55rem .6rem;
    font-size: 13.5px;
    font-weight: 700;
}

/* ver detalles: link discreto */
.btn-styledetalles{
    color: var(--mjc-ink-soft) !important;
    font-size: 12.5px; font-weight: 600;
    text-decoration: none;
    transition: color .16s var(--mjc-ease);
}
.btn-styledetalles:hover{ color: var(--color-web) !important; }

/* agotado */
.label-agotado{
    width:100%;
    background: #f1f2f4 !important;
    color: #9aa0a6 !important;
    border: 1px solid var(--mjc-border) !important;
    border-radius: var(--mjc-radius-btn) !important;
    font-weight: 700;
}

/* ---------- Header retail: barra de color de marca + buscador blanco encima ---------- */
/* (como Linio / Metro / Mercado Libre: header con color, search box blanco) */
/* franja superior teléfono/horario eliminada del markup; datos viven en el footer */
.top-banner{ display: none !important; }

.as-header{
    box-shadow: 0 1px 0 rgba(0,0,0,.08);   /* linea fina abajo, sin blur -> sin artefactos en esquinas */
    border-bottom: none;
}
/* mantener el header con el color de marca (logo blanco visible) */
.as-header, .style-header-bg{ background: var(--color-web) !important; }
/* barra pegada arriba; pequeña separación con el panel de abajo */
.as-grid-header{
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0 !important;
}
/* FIX primer-scroll: el navbar NACE sticky desde la carga. El theme lo cambiaba de
   static -> sticky recien en el primer scroll y ese reacomodo (posicion + margen) se
   comia el primer tramo de scroll ("se scrolea poquito y luego normal"). Al nacer sticky
   ya no hay transicion de posicion ni cambio de margen al bajar. */
header.as-header{ position: sticky !important; top: 0 !important; z-index: 1030; }
.as-header{ margin-bottom: 10px; }                    /* separacion CONSTANTE (reposo y sticky) */
.as-sticky-header{ margin-bottom: 10px !important; }  /* mismo margen -> sin salto en el 1er scroll */
/* anular el hack del theme que empuja el contenido 40px (causaba la banda montada) */
main.as-main{ margin-top: 0 !important; }
/* al flotar: barra PLANA, sin sombras que dejen "lineas" en las esquinas */
.as-sticky-header{
    box-shadow: 0 1px 0 rgba(0,0,0,.10) !important;   /* solo una linea fina abajo, sin blur/spread */
    border: none !important;
}
.as-sticky-header .as-grid-header{ box-shadow: none !important; }   /* anular la sombra que el theme le pone al grid */
/* slider clipeado en TODOS sus contenedores (que no asome el slide clon por los costados) */
.slider-main, .slider-main .slick-list, .slider-main .slick-slider{ overflow: hidden !important; }
/* la barra sticky debe verse IDÉNTICA a la de reposo:
   el theme la deformaba (scaleY 0.86) y agrandaba el logo (55px) -> anulado */
.as-sticky-header .as-grid-header{ transform: none !important; }
/* logo un poco más chico y consistente (reposo + sticky), sin deformar */
.as-grid-header__logo img,
.as-sticky-header .as-grid-header__logo img,
.as-sticky-header .as-grid-header a img{ width: 145px !important; height: auto !important; }
/* ocultar al bajar / mostrar al subir (cuando la barra está sticky)
   NOTA: sin will-change -> evita crear un contexto de apilamiento que atrapaba
   el dropdown del buscador por debajo del hero */
header.as-header{ transition: transform .3s var(--mjc-ease); }
header.as-sticky-header.mjc-hdr-hidden{ transform: translateY(-105%); }

/* buscador: neutralizo el marco del theme y dejo solo un pill blanco limpio */
.as-grid-header__search{
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    height: auto !important;
    margin: 0 1.5rem !important;
}
.as-grid-header__search .input-group{
    background: #fff;
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
    padding: 4px 5px;
    align-items: center;
    flex-wrap: nowrap;
    transition: box-shadow .16s var(--mjc-ease);
}
.as-grid-header__search .input-group:focus-within{
    box-shadow: 0 4px 14px rgba(0,0,0,.20), 0 0 0 3px rgba(255,255,255,.35);
}
.header-search.form-control{
    border: none !important; background: transparent !important;
    box-shadow: none !important;
    padding: 6px 10px 6px 18px !important;
    font-size: 14px; color: var(--mjc-ink); height: auto;
}
.header-search.form-control::placeholder{ color:#9aa0a6; }
.as-grid-header__search .input-group-append{ margin-left: auto; }
/* botón de búsqueda: círculo de marca, limpio (no un bloque ancho) */
.as-grid-header__search .input-group-append .btn-search-mobile,
.as-grid-header__search .btn-search-mobile{
    background: var(--color-web) !important;
    border-radius: 999px !important;
    height: 36px; width: 36px; min-width: 36px;
    padding: 0 !important;
    color: #fff !important;
    display: flex; align-items: center; justify-content: center;
    transition: filter .16s var(--mjc-ease);
}
.as-grid-header__search .btn-search-mobile:hover{ filter: brightness(.92); }
.as-grid-header__search .btn-search-mobile i{ color:#fff !important; font-size: 15px; }

/* botón menú e íconos legibles sobre header de color */
.style-btn-menu{ background: rgba(0,0,0,.18) !important; border-radius: var(--mjc-radius-sm) !important; }

/* botón MENÚ: SUTIL, solo ícono (sin borde, sin fondo, sin "botonazo") */
.as-grid-header__menu.style-btn-menu,
.navbar-toggler.as-grid-header__menu,
.style-btn-menu{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
    padding: 0 8px !important;
    min-width: auto !important;
    opacity: .95;
    transition: opacity .16s var(--mjc-ease) !important;
}
.style-btn-menu:hover{ background: transparent !important; opacity: .7; }
.style-btn-menu i{ color: #fff !important; font-size: 22px !important; width: auto !important; }
/* quitar el label "Menú" del ::after -> queda solo el ícono sutil */
.navbar-toggler.as-grid-header__menu::after{ content: none !important; }

/* INICIAR SESIÓN en el header principal (columna [login] que el theme ya reservaba) */
.as-grid-header__login{
    grid-area: login;
    color: #fff !important;
    background: transparent !important;
    border: none !important;
    gap: 8px;
    padding: 0 12px !important;
    font-weight: 600;
    white-space: nowrap;
    opacity: .95;
    transition: opacity .16s var(--mjc-ease);
}
.as-grid-header__login:hover{ background: rgba(255,255,255,.14) !important; color:#fff !important; opacity:1; }
.as-grid-header__login i{ color:#fff !important; }
.as-grid-header__login .login-text{ font-size: 14px; }
@media (max-width: 991px){ .as-grid-header__login{ display: none !important; } }

/* CARRITO: sutil, solo ícono (antes era un botón exagerado con caja y borde) */
.btn-cart.as-grid-header__cart,
.btn-cart{
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-width: auto !important;
    padding: 0 6px !important;
    opacity: .95;
    transition: opacity .16s var(--mjc-ease);
}
.btn-cart:hover{ background: transparent !important; opacity: .7; }
.btn-cart i{ color: #fff !important; font-size: 18px !important; }
/* contador del carrito: badge pequeño */
.btn-cart .cart-counter, .btn-cart .counter{
    background: #fff !important; color: var(--color-web) !important;
    font-weight: 800; font-size: 10px;
    min-width: 16px; height: 16px; line-height: 16px;
    border-radius: 999px; text-align: center;
    position: absolute; top: -6px; right: -8px; padding: 0 3px;
    box-shadow: 0 1px 4px rgba(0,0,0,.28);
}

/* barra de categorías (si existe) */
.style-category-nav{ background: var(--mjc-ink) !important; }
.style-category-nav-active{ background: var(--color-web) !important; }

/* ---------- Página / migas ---------- */
.as-page-title-style{ font-weight: 800; letter-spacing: -.2px; }
.breadcrumb, .as-breadcrumb{ background: transparent !important; }

/* ---------- Footer ---------- */
/* ---- Footer modernizado ---- */
.as-footer-style{ background: #1c2430 !important; }
.as-copyright-style{ background: #141a23 !important; }
.as-footer{ padding-top: 16px; }
.as-footer-style a, .style-footer, .style-footer-bottom{ transition: color .16s var(--mjc-ease); }
.as-footer_title{
    font-size: .8rem !important; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    color: #fff !important; margin-bottom: 20px; position: relative; padding-bottom: 11px;
}
.as-footer_title::after{ content:""; position:absolute; left:0; bottom:0; width:32px; height:2px; border-radius:999px; background: var(--color-web); }
.as-footer_link{ margin-bottom: 9px; }
.as-footer_menu .as-footer_link a{ color: rgba(255,255,255,.66) !important; font-size: .88rem; text-decoration:none; transition: color .16s ease, padding-left .16s ease; }
.as-footer_menu .as-footer_link a:hover{ color: #fff !important; padding-left: 4px; }
/* contacto */
.as-footer_contact .as-footer_link{ display:flex; align-items:flex-start; gap:10px; font-size:.88rem; line-height:1.45; margin-bottom:12px; }
.as-footer_contact .as-footer_link_icon{ color: var(--color-web) !important; margin-top:3px; width:16px; text-align:center; flex:none; }
.as-footer_contact .as-footer_link a, .as-footer_contact .as-footer_link span{ color: rgba(255,255,255,.66) !important; }
.as-footer_contact .as-footer_link a:hover{ color:#fff !important; }
/* redes sociales como círculos limpios */
.as-footer_social{ display:flex; gap:10px; margin-top:16px; }
.as-footer_social .btn-social{
    width:38px; height:38px; border-radius:999px; display:flex !important; align-items:center; justify-content:center;
    background: rgba(255,255,255,.09) !important; color:#fff !important; font-size:16px;
    transition: background-color .16s ease, transform .16s ease;
}
.as-footer_social .btn-social:hover{ background: var(--color-web) !important; color:#fff !important; transform: translateY(-2px); }
.as-footer_logo img{ max-height: 56px; width:auto; margin-bottom: 4px; }
.as-copyright{ font-size:.8rem; color: rgba(255,255,255,.55) !important; padding: 14px 0; }
.as-copyright strong{ font-weight:600; }
/* logos de pago mas grandes y visibles, sin subir el alto del footer */
.as-metodo-pago{ max-height: 46px !important; }
.as-footer .col-12 section{ filter: grayscale(1) brightness(1.75) !important; }
.as-footer .col-12.order-md-2{ margin-bottom: 0 !important; padding-top: 4px; padding-bottom: 4px; }
/* todas las columnas en UNA fila (como demo); la dirección larga que envuelva dentro de su columna */
@media (min-width: 992px){
    .as-footer .row{ justify-content: space-between !important; align-items: flex-start; flex-wrap: wrap; }
    .as-footer_description, .as-footer_menu, .as-footer_contact{ padding-left: 10px !important; padding-right: 10px !important; }
    .as-footer_contact{ flex: 0 1 auto; max-width: 300px; }
    .as-footer_contact .as-footer_link a, .as-footer_contact .as-footer_link span{ overflow-wrap: anywhere; }
}

/* ---------- Botones flotantes (chat / whatsapp / ir arriba) ----------
   Reubicados a la esquina inferior DERECHA, apilados, más pequeños y sutiles */
/* botones flotantes estilo latinoamericahosting: círculos sólidos, verde arriba / rojo abajo */
.chat-box, .chat-whatsapp{
    top: auto !important;            /* el theme les pone un top fijo -> anularlo */
    left: auto !important;
    right: 22px !important;
    margin: 0 !important;            /* el chat traía margin-bottom:80px que los separaba */
    width: 56px !important;
    height: 56px !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.24) !important;
    opacity: 1;
    display: flex !important; align-items: center !important; justify-content: center !important;
    transition: transform .18s var(--mjc-ease), box-shadow .18s var(--mjc-ease);
}
.chat-box:hover, .chat-whatsapp:hover{
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(0,0,0,.30) !important;
}
/* WhatsApp verde ARRIBA */
.chat-whatsapp{ background: #25D366 !important; bottom: 96px !important; }
/* Chat rojo ABAJO (en la esquina) */
.chat-box{ background: #e5322d !important; bottom: 30px !important; }
.chat-box i, .chat-whatsapp i,
.chat-box svg, .chat-whatsapp svg{ font-size: 26px !important; color: #fff !important; }

.ir-arriba-style{
    right: 22px !important;
    bottom: 162px !important;
    margin: 0 !important;                              /* anular margen residual del theme (quedaba 16px a la izq) */
    width: 56px !important; height: 56px !important;   /* mismo tamaño que WhatsApp/chat -> columna alineada */
    border-radius: 999px !important;
    background: #475569 !important;                    /* gris pizarra sólido */
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0,0,0,.22) !important;
    /* SIN display:flex -> el theme la muestra/oculta con el scroll (slideDown/slideUp) */
    transition: background-color .18s var(--mjc-ease), transform .18s var(--mjc-ease);
}
.ir-arriba-style:hover{ background: #334155 !important; transform: translateY(-2px); }
/* flecha centrada por posición absoluta (no depende de display:flex, así el auto-ocultar funciona) */
.ir-arriba-style i{
    color: #fff !important; font-size: 17px !important; margin: 0 !important;
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, calc(-50% + 1px));
}

/* ---------- Ventana de chat: responsive tipo latinoamericahosting ----------
   El theme la deja fija 300x500 abajo-IZQUIERDA sin responsive -> en móvil sale mal.
   La llevo a la derecha (donde está el launcher) y la hago adaptable. */
#chat-window{ overflow: hidden !important; }   /* nunca desbordar (tambien en minimizado 0x0) */
/* el tamaño/posicion SOLO en estado .normal -> asi el .minimized (0x0) puede minimizar */
#chat-window.normal{
    left: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 400px !important;                 /* igualar el ancho de LiveChat (~400-420px) */
    height: 560px !important;
    max-height: calc(100vh - 32px) !important;
    margin: 16px !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 55px rgba(0,0,0,.30) !important;
}
/* al minimizar: colapsar EN EL MISMO rincon (abajo-derecha), no irse a la izquierda.
   La libreria trae left:0 en .minimized -> lo anulo. */
#chat-window.minimized{
    left: auto !important; right: 0 !important; bottom: 0 !important;
    margin: 16px !important;
}
/* ===== Cabecera estilo LiveChat: BLANCA con avatar + nombre + rol + punto "en linea" ===== */
#chat-window .header{
    background: #ffffff !important;
    color: #1f2937 !important;
    height: auto !important;
    min-height: 74px !important;
    padding: 12px 14px !important;
    border-top-left-radius: 16px; border-top-right-radius: 16px;
    border-bottom: 1px solid #eef0f2 !important;
    display: flex !important; align-items: center !important; justify-content: space-between !important;
}
/* bloque avatar + textos (nombre en negrita, rol debajo) */
#chat-window .header .chat-title{
    display: flex !important; flex-wrap: wrap; align-items: center;
    column-gap: 10px; row-gap: 1px;
    color: #111827 !important; font-weight: 700 !important; font-size: 1rem !important;
    line-height: 1.15;
}
/* el icono fa-user se convierte en avatar circular con el color de marca */
#chat-window .header .chat-title i{
    position: relative;
    width: 42px; height: 42px; flex: 0 0 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--color-web); color: #fff !important;
    font-size: 18px !important;
}
/* punto verde "en linea" sobre el avatar */
#chat-window .header .chat-title i::after{
    content: ""; position: absolute; right: 1px; bottom: 1px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff;
}
/* subtitulo de rol debajo del nombre (inyectado por CSS, alineado con el nombre) */
#chat-window .header .chat-title::after{
    content: "Asesor Comercial";
    flex-basis: 100%; order: 2;
    margin-left: 52px;                 /* 42px avatar + 10px gap -> alinea bajo el nombre */
    margin-top: -2px;
    font-weight: 500; font-size: .78rem; color: #8a94a3;
}
/* boton minimizar: cuadradito limpio con hover, centrado verticalmente */
#chat-window .header button,
#chat-window .header #minimize-chat{
    color: #9aa3af !important; background: transparent !important;
    border: none !important; align-self: center;
    width: 30px !important; height: 30px !important; border-radius: 8px !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 !important; cursor: pointer;
}
#chat-window .header #minimize-chat:hover{ background: #f1f3f5 !important; color: #4b5563 !important; }
/* el glyph fa-window-minimize cae abajo y se ve feo -> lo oculto y dibujo una barrita centrada */
#chat-window .header #minimize-chat i{ display: none !important; }
#chat-window .header #minimize-chat::before{
    content: ""; display: block;
    width: 13px; height: 2px; border-radius: 2px; background: currentColor;
}

/* ===== Cuerpo estilo LiveChat: paddings y espaciados al detalle ===== */
#chat-window .content{
    background: #ffffff !important;
    padding: 16px 18px !important;
    display: flex !important; flex-direction: column !important;   /* para fijar el pie abajo */
}
#chat-window .form-card{ box-shadow: none !important; border: none !important; background: transparent !important; padding: 0 !important; }
/* texto de bienvenida: chico y gris, como LiveChat */
#chat-window .form-card p{
    color: #6b7280 !important;
    font-size: .82rem !important; line-height: 1.45 !important;
    margin: 0 0 14px !important;
}
/* labels compactas con asterisco rojo */
#chat-window .form-card label{
    display: block !important;
    font-size: .8rem !important; font-weight: 600 !important; color: #374151 !important;
    margin: 12px 0 5px !important;
}
#chat-window .form-card form > label:first-of-type{ margin-top: 0 !important; }
#chat-window .form-card label .required{ color: #e5322d !important; }
/* inputs: borde sutil, radio moderado (no pill), altura contenida */
#chat-window .form-card input{
    width: 100% !important; box-sizing: border-box !important;
    border: 1px solid #dcdfe4 !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-size: .9rem !important;
    background: #fff !important;
    transition: border-color .15s, box-shadow .15s;
}
#chat-window .form-card input:focus{
    border-color: var(--color-web) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-web) 16%, transparent) !important;
    outline: none !important;
}
/* boton CTA: rojo, altura NORMAL (no grandazo), sin sombra grande */
#chat-window .form-card button,
#chat-window #start-chat{
    width: 100% !important; box-sizing: border-box !important;
    height: auto !important; line-height: 1.25 !important;   /* la libreria fija 30px -> lo anulo */
    margin-top: 16px !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-weight: 600 !important; font-size: .92rem !important;
    background: #e5322d !important; border: none !important; color: #fff !important;
    box-shadow: none !important;
    transition: filter .15s, transform .05s;
}
#chat-window .form-card button:hover,
#chat-window #start-chat:hover{ filter: brightness(1.05); }
#chat-window .form-card button:active,
#chat-window #start-chat:active{ transform: translateY(1px); }
/* pie fijado al fondo (reparte el aire, como el "Powered by LiveChat") */
#chat-window .content::after{
    content: "Normalmente respondemos en minutos";
    display: block; text-align: center;
    margin-top: auto; padding-top: 14px;
    font-size: .72rem; color: #aab2bd;
}

/* móvil: casi pantalla completa, dejando ver el launcher */
@media (max-width: 480px){
    #chat-window.normal{
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        height: auto !important;
        top: 68px !important;                 /* deja libre el header/logo */
        max-height: none !important;
        margin: 0 !important;
        border-radius: 18px !important;
    }
}

/* ---------- Detalles de conversión (que enganchen a comprar) ---------- */
/* precio de OFERTA en rojo llamativo (cuando hay precio tachado) */
.product-price .old-price + .price{ color: #e11d2a; }
/* badge de descuento un poco más notorio */
.descuento-tag{ font-weight: 800; }
.descuento-tag .lbl-discount p, .descuento-tag p{ font-size: 13px; letter-spacing: -.2px; }
/* acento de marca bajo el título de sección (engancha la vista) */
.title-row::after{
    content:""; position:absolute; left: var(--bs-gutter-x, .75rem); bottom: -1px;
    width: 44px; height: 3px; border-radius: 999px; background: var(--color-web);
}
/* CTA "Comprar" se realza al pasar por la card */
.grid-producto:hover .style-btn-comprar,
.item-producto:hover .style-btn-comprar{ box-shadow: 0 4px 12px color-mix(in srgb, var(--color-web) 32%, transparent); }
/* "Ver Todo" con icono más invitador */
.btn-ver-todo{ box-shadow: 0 2px 8px color-mix(in srgb, var(--color-web) 28%, transparent); }

/* ---------- Banners home ---------- */
.bri-banner img, .banner img{ transition: transform .35s var(--mjc-ease); border-radius: var(--mjc-radius-sm); }
.bri-banner:hover img{ transform: scale(1.015); }

#loader{ backdrop-filter: blur(2px); }
.section{ padding-top: 4px !important; }

/* =====================================================================
   VIÑETAS / encabezados de sección  ·  estilo fijo y moderno
   (se oculta el icono dinámico de la BD y se usa un chip de marca fijo)
   ===================================================================== */
.title-bloque{
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 12px;
    font-size: 1.35rem !important;
    font-weight: 800;
    color: var(--mjc-ink);
    letter-spacing: -.3px;
    text-transform: none;
    margin: 10px 0 16px !important;
    width: 100%;
}
/* ocultar el icono dinámico proveniente de la BD */
.title-bloque img{ display: none !important; }
/* icono de seccion: pequeño y sutil (grilla del color de marca, sin chip ni sombra) */
.title-bloque::before{
    content: "";
    width: 20px; height: 20px; flex: none;
    background-color: var(--color-web);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='1.4'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='1.4'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='1.4'/%3E%3Crect x='13.5' y='13.5' width='7.5' height='7.5' rx='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='1.4'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='1.4'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='1.4'/%3E%3Crect x='13.5' y='13.5' width='7.5' height='7.5' rx='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
    opacity: .85;
}
.title-bloque .line-style{
    border: none !important;
    height: 2px !important;
    background: var(--mjc-border) !important;
    border-radius: 999px;
    margin: 0 6px !important;
    flex: 1 0 0;
    color: transparent;
}
.title-bloque .button-row{ flex: none; }
@media (max-width:768px){
    .title-bloque{ font-size: 1.1rem !important; gap: 9px; }
    .title-bloque::before{ width: 18px; height: 18px; }
}

/* =====================================================================
   HERO de portada (solo home cuando no hay slider)
   ===================================================================== */
/* panel inset 12px a cada lado -> bordes alineados con las cards de beneficios */
.mjc-hero{ position: relative; overflow: hidden; margin: 0 12px 16px 12px; border-radius: 16px; }
.mjc-hero__bg{
    position: absolute; inset: 0;
    background: var(--color-web);
    background:
        radial-gradient(120% 140% at 85% 15%, color-mix(in srgb, var(--color-web) 62%, #fff) 0%, transparent 42%),
        linear-gradient(115deg, color-mix(in srgb, var(--color-web) 90%, #000) 0%, var(--color-web) 60%);
}
/* contenido alineado a 12px = igual que el contenedor de secciones/productos */
.mjc-hero__inner{
    position: relative; z-index: 2; display: flex; align-items: center;
    min-height: 420px; padding: 52px 30px !important;
}
.mjc-hero__content{ max-width: 560px; color: #fff; }
/* foto profesional de pernos a la derecha, fundida con el hero */
/* foto a TODO el hero; el navy la tapa con un degradado largo -> sin borde visible */
.mjc-hero__photo{
    position: absolute; inset: 0; z-index: 1;
    background: url('/assets/images/hero-pernos.jpg') center/cover no-repeat;
}
.mjc-hero__photo::after{
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg,
            color-mix(in srgb, var(--color-web) 82%, #000) 0%,
            color-mix(in srgb, var(--color-web) 82%, #000) 42%,
            transparent 90%),
        linear-gradient(0deg, rgba(15,18,28,.16), rgba(15,18,28,.16));
}
@media (max-width: 900px){ .mjc-hero__photo{ display: none; } }
.mjc-hero__title{
    font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight:800; line-height:1.03;
    letter-spacing:-1px; margin:0 0 12px; color:#fff; text-transform:none;
}
.mjc-hero__subtitle{ font-size: clamp(.98rem,1.4vw,1.1rem); opacity:.9; margin:0 0 24px; max-width:500px; line-height:1.5; }
.mjc-hero__cta{ display:flex; gap:12px; flex-wrap:wrap; }
.mjc-btn{
    display:inline-flex; align-items:center; gap:8px; font-weight:700; font-size:.95rem;
    padding:.7rem 1.4rem; border-radius:10px; text-decoration:none;
    transition: transform .16s var(--mjc-ease), filter .16s var(--mjc-ease), box-shadow .16s var(--mjc-ease), background-color .16s, color .16s;
}
.mjc-btn--light{ background:#fff; color:var(--mjc-ink); box-shadow:0 6px 16px rgba(0,0,0,.16); }
.mjc-btn--light:hover{ transform:translateY(-2px); box-shadow:0 10px 22px rgba(0,0,0,.22); color:var(--color-web); }
.mjc-btn--ghost{ background:transparent; color:#fff; border:1.5px solid rgba(255,255,255,.55); }
.mjc-btn--ghost:hover{ background:rgba(255,255,255,.12); border-color:#fff; }
@media (max-width:768px){
    .mjc-hero{ margin: 0 12px 14px 12px; border-radius: 12px; }
    .mjc-hero__inner{ min-height:auto; padding:28px 20px !important; }
}

/* =====================================================================
   Franja de confianza / beneficios
   ===================================================================== */
/* cards sutiles: 4 tarjetas blancas con borde e sombra suave, icono de línea */
.mjc-benefits{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin:16px auto 18px; padding:0 !important; }
.mjc-benefit{
    display:flex; align-items:center; gap:14px; background:#fff;
    border:1px solid var(--mjc-border-2); border-radius:14px; padding:16px 18px;
    box-shadow: 0 1px 2px rgba(20,23,28,.05);
    transition: box-shadow .18s var(--mjc-ease), transform .18s var(--mjc-ease), border-color .18s var(--mjc-ease);
}
.mjc-benefit:hover{ transform: translateY(-2px); box-shadow: var(--mjc-shadow); border-color: var(--mjc-border); }
.mjc-benefit > svg{ width:30px; height:30px; color:var(--color-web); flex:none; }
.mjc-benefit b{ display:block; font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.3px; color:var(--mjc-ink); line-height:1.2; }
.mjc-benefit span{ display:block; font-size:.77rem; color:var(--mjc-ink-soft); margin-top:3px; line-height:1.35; }
@media (max-width:900px){ .mjc-benefits{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .mjc-benefits{ grid-template-columns:1fr; } }

/* =====================================================================
   Animaciones de entrada al hacer scroll (progresivo: si no hay JS, nada se oculta)
   ===================================================================== */
.mjc-reveal{ opacity:0; transform:translateY(20px); transition:opacity .55s var(--mjc-ease), transform .55s var(--mjc-ease); will-change:opacity,transform; }
.mjc-in{ opacity:1; transform:none; }

/* =====================================================================
   MENÚ HAMBURGUESA (drawer)  ·  estilo panel moderno (tipo ConsultaData)
   ===================================================================== */
.overlay-menu{
    background: rgba(15,18,24,.5) !important;
    -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.as-sidenav-main{
    max-width: 322px !important;
    background: #fff !important;
    box-shadow: 0 0 44px rgba(0,0,0,.22);
    border-radius: 0 18px 18px 0;
}
/* cabecera: marca (logo) + nombre + subtítulo + cerrar */
.as-sidenav-header.mjc-drawer-head{
    display: flex !important; align-items: center; gap: 12px;
    height: auto !important; padding: 16px 14px !important;
    border-bottom: 1px solid var(--mjc-border);
    background: #fff;
}
.mjc-drawer-mark{
    width: 42px; height: 42px; border-radius: 12px; flex: none;
    background: var(--color-web);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-web) 30%, transparent);
}
.mjc-drawer-mark i{ color: #fff; font-size: 18px; }
.mjc-drawer-brandtext{ display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 1 1 auto; }
.mjc-drawer-brandtext b{ font-size: 1.02rem; font-weight: 800; color: var(--mjc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjc-drawer-brandtext span{ font-size: .76rem; color: var(--mjc-ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* el theme fuerza .as-sidenav-header button{width:100%} -> anular con !important */
.mjc-drawer-close{
    margin-left: auto !important; background: transparent !important; border: none !important;
    width: 34px !important; height: 34px !important; flex: none !important;
    border-radius: 999px; color: var(--mjc-ink-soft);
    display: flex !important; align-items: center; justify-content: center; cursor: pointer;
    padding: 0 !important;
    transition: background-color .16s ease, color .16s ease;
}
.mjc-drawer-close:hover{ background: var(--mjc-surface-2) !important; color: var(--mjc-ink); }
.mjc-drawer-close i{ font-size: 16px; }

/* buscador del drawer tipo pill */
.as-search__menu{ padding: 14px 12px 6px !important; }
.as-search__menu .input-group{
    background: var(--mjc-surface-2); border: 1px solid var(--mjc-border);
    border-radius: 999px; overflow: hidden; padding: 3px 3px 3px 4px; align-items: center;
}
.as-search__menu .form-control{ background: transparent !important; border: none !important; padding: 8px 10px !important; font-size: 14px; }
.as-search__menu .btn-search-mobile{
    background: var(--color-web) !important; color: #fff !important;
    border-radius: 999px !important; width: 36px; height: 36px; min-width: 36px; padding: 0 !important;
    display: flex; align-items: center; justify-content: center;
}
.as-search__menu .btn-search-mobile i{ color:#fff !important; }

/* ítems: filas limpias con pill de hover (tipo ConsultaData) */
.as-sidenav-body .nav-item{ padding: 0 10px; }
.as-menu_lv1.as-menu-links-style{
    padding: .72rem .8rem !important;
    border-radius: 12px !important;
    margin: 3px 0 !important;
    font-weight: 600 !important;
    font-size: .95rem !important;
    color: var(--mjc-ink) !important;
    gap: 12px;
}
.as-nav__menu .as-menu-links-style:hover{ background: color-mix(in srgb, var(--color-web) 12%, #fff) !important; }
.as-nav__menu .as-menu-links-style:hover span{ color: var(--color-web) !important; }
.as-menu_lv1 img{ height: 20px !important; width: 20px !important; object-fit: contain; }
.as-menu_lv1 .toggle__icon i{ color: var(--mjc-ink-soft) !important; font-size: 12px; }

/* submenú coherente */
.as-sidenav-body-sub .as-submenu-close #as-submenu{ color: var(--color-web) !important; font-weight: 700; }
.as-menu_lv2.as-menu-links-lvl2-style{ padding: .62rem .8rem !important; border-radius: 10px !important; margin: 2px 10px !important; }
.as-nav__menu .as-menu-links-lvl2-style:hover{ background: color-mix(in srgb, var(--color-web) 9%, #fff) !important; }

/* =====================================================================
   DROPDOWN de búsqueda en vivo (resultados) · modernizado
   ===================================================================== */
.productos-search{ top: calc(100% + 8px) !important; }
.productos-search ul{
    border: 1px solid var(--mjc-border) !important;
    border-top: 1px solid var(--mjc-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px rgba(20,23,28,.16), 0 4px 12px rgba(20,23,28,.07) !important;
    overflow-y: auto !important;
    max-height: 64vh;
    top: 0 !important; margin-top: 0 !important;
    padding: 6px !important;
    background: #fff !important;
}
.productos-search ul li{
    border: none !important;
    border-bottom: 1px solid var(--mjc-border-2) !important;
    padding: 0 !important;
    border-radius: 10px;
    overflow: hidden;
}
.productos-search ul li:last-child{ border-bottom: none !important; }
.productos-search ul li:hover{ background: color-mix(in srgb, var(--color-web) 8%, #fff) !important; }
.productos-search ul li .itemsearch-product > a{ display: block; padding: 9px 10px !important; }
.productos-search ul li .d-flex{ gap: 12px; align-items: center !important; }

/* miniatura cuadrada redondeada (antes era círculo apretado) */
.itemsearch-product a img{
    height: 50px !important; width: 50px !important;
    border-radius: 10px !important;
    object-fit: contain !important;
    background: var(--mjc-surface-2) !important;
    border: 1px solid var(--mjc-border-2) !important;
    padding: 4px !important; flex: none;
}

/* textos: código (gris) + nombre (2 líneas) */
.itemsearch-product a div[style*="flex"]{ min-width: 0; }
.itemsearch-product a div[style*="flex"] span:nth-child(1){
    font-size: 11px !important; color: var(--mjc-ink-soft) !important; font-weight: 600 !important;
}
.itemsearch-product a div[style*="flex"] span:nth-child(2){
    font-size: 13px !important; color: var(--mjc-ink) !important; font-weight: 600 !important;
    line-height: 1.35; margin-top: 1px;
    display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* "Ver todo" como botón de marca */
.productos-search ul li.more{ padding: 4px 2px 2px !important; border: none !important; }
.productos-search ul li.more:hover{ background: transparent !important; }
.productos-search ul li.more .itemsearch-product a{
    display: block !important; text-align: center !important;
    background: color-mix(in srgb, var(--color-web) 10%, #fff) !important;
    color: var(--color-web) !important; font-weight: 700 !important;
    border-radius: 10px; padding: 10px !important; font-size: 14px !important;
    transition: background-color .16s var(--mjc-ease);
}
.productos-search ul li.more .itemsearch-product a:hover{ background: color-mix(in srgb, var(--color-web) 18%, #fff) !important; }
.productos-search ul li.more .itemsearch-product a b,
.productos-search ul li.more .itemsearch-product a span{ color: var(--color-web) !important; }
