/* fiesa.css — capa propia del clon (web.fiesa.com.ar). Se carga DESPUÉS de estilosCustom3.css e inline.css.
   Solo cubre lo que en el sitio original hacían jQuery/plugins (flexslider, owl, slick, smartmenus, modales) y
   pequeños ajustes de layout. NO redefine la estética: eso vive en los CSS legacy copiados literalmente. */

/* ---------------------------------------------------------------- layout general */
html, body { margin: 0; }
/* el root layout del back-office (layout.css / next-font) también aplica a <body>: forzamos los valores del sitio original */
body.fiesa-web { background: #fff !important; color: #4e4e4e !important; font-family: 'Montserrat', sans-serif !important; font-weight: 300 !important; font-size: 14px !important; line-height: 19px !important; min-height: 100vh; }
#web-root { min-height: 100vh; display: flex; flex-direction: column; }
#web-root > #divBody { flex: 1; }
img { max-width: 100%; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
/* Bootstrap 4 pisa el color de <a> sin href ni clase (a:not([href]):not([class])): restauramos los botones del sitio original */
div.tx_contenido a:not([href]), div.tx_contenido2 a:not([href]), div.selector_proyectos div a:not([href]), div.container#AvisoPrecios a:not([href]) { color: #fff; cursor: pointer; }
div.container#AvisoPrecios a:not([href]) { color: #000; }
div.cajascuenta ul li a:not([href]) { color: #4e4e4e; cursor: pointer; }
.wp-hidden { display: none !important; }
.wp-link { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- header */
header.header { position: absolute; top: 0; width: 100%; z-index: 99; height: 130px; background: #013088; }
.top-bar { position: relative; line-height: 19px; font-size: 14px; }
.top-bar .derecha { top: 10px; }
#cambioMoneda { font-weight: 400; }
.top-bar .derecha a { cursor: pointer; }
/* (la regla legacy `.nav{background:fff}` es inválida: la barra del logo es azul, como el header) */
header .nav { background: transparent; }
/* medidas del original (Bootstrap .navbar: padding 8px 16px): logo/buscador/carrito en y=48, menú en y=116 arrancando en x=0 */
header nav.navbar { padding: 8px 16px; display: block; }
a.navbar-brand img { max-width: none; }
@media (min-width: 992px) { div#navbarNavDropdown { margin: 0; } }
div.search form { width: 100%; position: relative; }
input.search-form { width: 100% !important; padding-right: 48px !important; }   /* lugar para la X de borrar sin pisar la lupa */
input#tags::-webkit-search-cancel-button { cursor: pointer; }
div.search span.input-group-btn { top: 0; }
button.btn-buscartop { height: 38px; margin: 0 !important; left: 0 !important; border: 0 !important; }
div.caja_func_sup { position: relative; }
div#logueado { position: relative; }
div.log1.dropdown-menu { min-width: 260px; -webkit-box-shadow: 6px 6px 8px 0 rgba(0,0,0,.1); box-shadow: 6px 6px 8px 0 rgba(0,0,0,.1); z-index: 1000; }
div.log1 a.dropdown-item { color: #000; font-size: 13px; text-transform: none; display: flex; align-items: center; }
div.log1 p { font-size: 13px; color: #000; display: flex; align-items: center; }
span#contador { font-size: 10px; line-height: 20px; }

/* menú principal (desktop): hover abre los dropdowns, como smartmenus */
div#navbarNavDropdown { display: block; z-index: 100; }
ul.nav.navbar-nav { display: flex; flex-direction: row; flex-wrap: nowrap; list-style: none; padding: 0; margin: 0; }
ul.nav.navbar-nav > li > a { white-space: nowrap !important; }
/* Bootstrap pinta .dropdown-item:focus/:active con fondo #f8f9fa/#007bff; en el menú principal
   el link queda enfocado después del click y se veía un cuadrado blanco. Sin fondo, como el original. */
ul.nav.navbar-nav > li > a.dropdown-item:focus, ul.nav.navbar-nav > li > a.dropdown-item:active,
ul.nav.navbar-nav > li > a.dropdown-item:focus-visible { background: transparent !important; outline: 0; box-shadow: none; }
ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item:focus, ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item:active { background: transparent !important; color: #003087 !important; outline: 0; }
ul.nav.navbar-nav > li { position: relative; }
ul.nav.navbar-nav li > a { display: block; cursor: pointer; text-transform: uppercase; }
ul.nav.navbar-nav ul.dropdown-menu { position: absolute; top: 100%; left: 0; display: none; min-width: 250px; padding: 0; margin: 0; list-style: none; background: #fff; border: 0; border-radius: 0; z-index: 101; }
ul.nav.navbar-nav ul.dropdown-menu li { position: relative; }
ul.nav.navbar-nav ul.dropdown-menu ul.dropdown-menu { top: 0 !important; left: 100%; }
ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item { color: #000 !important; text-transform: uppercase; display: block; white-space: nowrap; }
ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item:hover { color: #003087 !important; text-decoration: none; }
/* resaltado al pasar el mouse: fondo celeste suave sobre el blanco del desplegable; la categoría padre queda resaltada
   mientras se recorre su submenú (li:hover) para no perder de vista cuál está abierta */
ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item { transition: background-color .12s ease, color .12s ease, box-shadow .12s ease; }
ul.nav.navbar-nav ul.dropdown-menu > li:hover > a.dropdown-item,
ul.nav.navbar-nav ul.dropdown-menu > li.wp-open > a.dropdown-item { background: #e8eef9 !important; color: #003087 !important; }
ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item:hover { background: #d9e3f5 !important; }
ul.nav.navbar-nav a.has-submenu .sub-arrow { display: none; }

/* ---- desplegables de categorías (desktop): panel con borde, sombra difusa, línea de acento y chevron de submenú ---- */
@media (min-width: 992px) {
  ul.nav.navbar-nav ul.dropdown-menu {
    min-width: 260px; padding: 6px 0; margin-top: 0;
    background: #fff; border: 1px solid #dfe6f2; border-top: 3px solid #003087; border-radius: 0 0 8px 8px;
    -webkit-box-shadow: 0 12px 28px rgba(2, 34, 102, .14), 0 2px 6px rgba(0, 0, 0, .06);
    box-shadow: 0 12px 28px rgba(2, 34, 102, .14), 0 2px 6px rgba(0, 0, 0, .06);
    animation: wp-menu-in .15s ease-out;
  }
  ul.nav.navbar-nav ul.dropdown-menu ul.dropdown-menu {
    top: -4px !important; left: calc(100% + 6px); border-top: 1px solid #dfe6f2; border-left: 3px solid #003087; border-radius: 0 8px 8px 0;
  }
  /* Puente invisible sobre el hueco de 6px entre el panel de categorías y el de subcategorías. Sin esto, al cruzar el
     hueco (sobre todo despacio o en diagonal) el puntero queda fuera del <li> y, como los paneles se abren por :hover,
     el menú se cierra. La franja va pegada al borde izquierdo del submenú y lo acompaña en toda su altura. */
  ul.nav.navbar-nav ul.dropdown-menu ul.dropdown-menu::before {
    content: ''; position: absolute; top: -10px; bottom: -10px; left: -10px; width: 10px; background: transparent;
  }
  /* Tolerancia ARRIBA del panel de categorías: al ir de la primera categoría hacia la derecha es fácil subir unos píxeles
     y salirse del <li> de la barra, con lo que se cerraba todo. Esta franja transparente sobre el panel (del ancho del
     panel) deja margen para ese desvío. Solo existe mientras el panel está abierto. */
  ul.nav.navbar-nav > li > ul.dropdown-menu::before {
    content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: transparent;
  }
  ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item {
    padding: 10px 18px; font-size: 12px; letter-spacing: .3px; line-height: 1.3; color: #222 !important;
    border-bottom: 1px solid #f1f4f9; box-shadow: inset 0 0 0 0 #003087;
  }
  ul.nav.navbar-nav ul.dropdown-menu > li:last-child > a.dropdown-item { border-bottom: 0; }
  ul.nav.navbar-nav ul.dropdown-menu > li:hover > a.dropdown-item,
  ul.nav.navbar-nav ul.dropdown-menu > li.wp-open > a.dropdown-item,
  ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item:hover { box-shadow: inset 3px 0 0 0 #003087; }
  /* chevron en las categorías que abren submenú (el "+" del .sub-arrow es solo para el menú móvil) */
  ul.nav.navbar-nav ul.dropdown-menu > li > a.has-submenu { padding-right: 34px; position: relative; }
  ul.nav.navbar-nav ul.dropdown-menu > li > a.has-submenu .sub-arrow::before,
  ul.nav.navbar-nav ul.dropdown-menu > li > a.has-submenu .sub-arrow::after { content: none !important; }
  ul.nav.navbar-nav ul.dropdown-menu > li > a.has-submenu .sub-arrow {
    display: block !important; position: absolute; right: 14px !important; top: 50% !important; left: auto !important;
    width: 7px !important; height: 7px !important; margin: -5px 0 0 0 !important; padding: 0 !important; font-size: 0; line-height: 0; background: none !important;
    border: 0 !important; border-right: 2px solid #b0bad0 !important; border-bottom: 2px solid #b0bad0 !important; border-radius: 0 !important;
    transform: rotate(-45deg); transition: border-color .12s ease, transform .12s ease;
  }
  ul.nav.navbar-nav ul.dropdown-menu > li:hover > a.has-submenu .sub-arrow,
  ul.nav.navbar-nav ul.dropdown-menu > li.wp-open > a.has-submenu .sub-arrow { border-color: #003087 !important; transform: rotate(-45deg) translate(2px, 2px); }
}
@keyframes wp-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 992px) {
  div#navbarNavDropdown.collapse, div#navbarNavDropdown.navbar-collapse { display: block !important; }
  ul.nav.navbar-nav { margin-top: 7px; }   /* barra azul secundaria en y=109 (48px) con el menú centrado en y=116, como el original */
  ul.nav.navbar-nav li:hover > ul.dropdown-menu { display: block; }
  ul.nav.navbar-nav li.wp-open > ul.dropdown-menu { display: block; }
  img#closeLeftNav, button.navbar-toggler { display: none; }
}
@media (max-width: 767px) {
  header.header { height: 110px; }
  a.navbar-brand { width: 50%; }
  div.search { display: none; }   /* en celular el buscador va en el menú lateral; en tablet (768-991) se ve como en el original */
  div.caja_func_sup { width: 50%; }
}
/* el menú horizontal se oculta por debajo de lg (992px), como el navbar-expand-lg original */
@media (max-width: 991px) {
  button.navbar-toggler { display: block; position: absolute; top: 10px; left: 5px; z-index: 12; color: #fff; border: 0; background: none; }
  div#navbarNavDropdown { display: none; position: fixed; top: 0; left: 0; width: calc(100% - 60px); height: 100% !important; background: #022266 !important; overflow-y: auto; padding: 50px 10px; }
  div#navbarNavDropdown.open { display: block; animation: slide-in-left 200ms forwards; }
  ul.nav.navbar-nav { flex-direction: column; padding: 0; }
  ul.nav.navbar-nav ul.dropdown-menu { position: static; display: none; background: #022266 !important; box-shadow: none; min-width: 0; }
  ul.nav.navbar-nav li.wp-open > ul.dropdown-menu { display: block; }
  ul.nav.navbar-nav ul.dropdown-menu ul.dropdown-menu { left: 0; }
  ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item { color: #fff !important; white-space: normal; }
  /* en móvil el panel es azul oscuro: el resaltado es un velo blanco translúcido */
  ul.nav.navbar-nav ul.dropdown-menu > li:hover > a.dropdown-item,
  ul.nav.navbar-nav ul.dropdown-menu > li.wp-open > a.dropdown-item,
  ul.nav.navbar-nav ul.dropdown-menu > li > a.dropdown-item:hover { background: rgba(255,255,255,.12) !important; color: #fff !important; }
  ul.nav.navbar-nav a.has-submenu { position: relative; padding-right: 3em !important; }
  ul.nav.navbar-nav a.has-submenu .sub-arrow { display: block; position: absolute; top: 50%; right: 0; margin: -.7em .5em 0 0; width: 2em; height: 1.4em; font-size: 1.25rem; line-height: 1.2em; text-align: center; }
  ul.nav.navbar-nav a.has-submenu .sub-arrow::before { content: '+'; }
  ul.nav.navbar-nav li.wp-open > a.has-submenu .sub-arrow::before { content: '-'; }
  a.navbar-brand { margin-left: 40px; }
  div#backdrop.wp-show { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 98; }
}

/* autocompletar del buscador (reemplaza jquery-ui autocomplete) */
ul.ui-autocomplete { position: absolute; top: 100%; left: 0; width: 100%; margin: 4px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #ccc; border-radius: 20px; clip-path: inset(0 round 20px); z-index: 9999; max-height: 320px; overflow-y: auto; text-align: left; }
ul.ui-autocomplete li.ui-menu-item div { padding: 10px; border-bottom: 1px dotted #999; cursor: pointer; display: flex; align-items: center; gap: 10px; color: #000; font-size: 13px; }
ul.ui-autocomplete li.ui-menu-item div img { width: 40px; height: 40px; object-fit: contain; }
ul.ui-autocomplete li.ui-menu-item:hover div { background: #ddd; }
ul.ui-autocomplete li.ui-menu-item div small { display: block; color: #666; font-size: 11px; }

/* ---------------------------------------------------------------- slider (flexslider sin jQuery) */
section.slider { margin-top: 125px; }
.flexslider .slides { position: relative; }
.flexslider .slides > li { display: block; position: absolute; top: 0; left: 0; width: 100%; opacity: 0; z-index: 1; transition: opacity .6s ease; }
.flexslider .slides > li.flex-active-slide { position: relative; opacity: 1; z-index: 2; }
.flexslider .slides > li a { display: block; }
.flex-control-nav { bottom: 10px; z-index: 5; }
.flex-control-paging li a { color: transparent; }
.flex-direction-nav a { opacity: 0; }
.flexslider:hover .flex-direction-nav a { opacity: .7; }
.flex-direction-nav .flex-prev { left: 10px; }
.flex-direction-nav .flex-next { right: 10px; }

/* ---------------------------------------------------------------- owl carousel (productos destacados) */
.owl-carousel.owl-loaded { display: block; }
.owl-stage { display: flex; transition: transform 1.2s ease; }
.owl-item { flex: 0 0 auto; }
section#novedades_home_prod .owl-nav { display: flex; }
section#novedades_home_prod div.owl-nav { bottom: 60px; }
.owl-dots { margin-top: 10px; }

/* ---------------------------------------------------------------- slick (marcas) */
.brand-carousel { display: block !important; margin: 25px 0 0; padding: 0; list-style: none; }
.slick-list { overflow: hidden; }
.slick-track { display: flex; transition: transform .8s ease; }
li.slick-slide { flex: 0 0 auto; list-style: none; }
.slick-slide img { height: 85px; opacity: .5; }
.slick-slide img:hover { opacity: 1; }

/* ---------------------------------------------------------------- productos */
.col-md-prod { position: relative; }
.product .image { height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product .image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product .image a img { width: auto !important; max-width: 100%; max-height: 100%; }
section#novedades_home_prod .product .image { height: 231px; }
#relacionados .product .image { height: 179px; }
.product .description { min-height: 110px; }
.product .description h4 { height: 74px; overflow: hidden; }
.product .description h4 a.titprod { display: block; }
.product .caja_dcorta { overflow: hidden; }
.product .price { display: block; font-size: 14px; padding-bottom: 0; }
.product .price .logueado { float: right; font-weight: 600 !important; }
.product small.noiva { display: block; text-align: left; padding-left: 5px; }
.product .msgImpIntfalse { display: none; }
.product .msgImpIntfalse.on { display: block; text-align: left; font-size: 12px; padding-left: 5px; position: relative; top: -7px; font-weight: bold; }
.product .transito { text-align: left; display: flex; align-items: center; min-height: 19px; font-size: 13px; }
.product .transito a { font-weight: 500; margin-left: 5px; color: #003087; }
div.botones a.boton-test img { width: 20px; }
div.botones a.boton-test { margin: 0 2px; }
div.botones a.boton-test.grisarTrue { opacity: .4; cursor: not-allowed; }
div.campana i.fa-heart.activo { color: #d31862; }
.product span.movil { display: none; }
span.noveTrue, span.ofeTrue, span.promoTrue, span.proxTrue { pointer-events: none; }

/* listado */
section#articulos { padding-top: 15px; }
#articulos .leftcolumn { padding-right: 10px; }
#articulos div.filtros_left h3 { margin: 15px 0 5px; }
#articulos ul.cates li, #articulos ul.subcates li, #articulos ul.marcas li, #articulos ul.menuUl li { line-height: 20px; }
#articulos ul.marcas label, #articulos ul.menuUl label { font-weight: 300; font-size: 12px; cursor: pointer; margin: 0; }
#articulos ul.marcas input, #articulos ul.menuUl input { margin-right: 4px; }
#articulos ul.cates a, #articulos ul.subcates a { color: #4e4e4e; }
#articulos ul.subcates li.activa a { font-weight: bold; color: #003087; }
#articulos img#setlista, #articulos img#setcaja { cursor: pointer; opacity: .4; }
#articulos img#setlista.selected, #articulos img#setcaja.selected { opacity: 1; }
#articulos .sinresultados { padding: 60px 20px; text-align: center; }
/* vista LISTA: mismas 4 columnas que el sitio original (imagen 2 / descripción 6 / precio 2 / botones 2) */
#articulos .col-md-prod.modofila { width: 100%; }
.product.row.modofila { display: flex; align-items: center; text-align: left; margin: 0 0 15px; padding: 10px; min-height: 154px; }
.product.row.modofila > div { padding: 0 10px; }
.product.row.modofila .image { height: 134px; display: flex; align-items: center; justify-content: center; margin: 0; }
.product.row.modofila .image img { max-width: 100%; max-height: 134px; width: auto; height: auto; }
.product.row.modofila .image .quickview { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .2s; z-index: 2; }
.product.row.modofila .image:hover .quickview { opacity: 1; }
.product.row.modofila .description { position: relative; height: auto; min-height: 0; text-align: left; }
.product.row.modofila .description h4 { height: auto; margin: 0 0 4px; }
.product.row.modofila .description h4 a.titprod { height: auto; display: inline; }
.product.row.modofila .dcorta { display: block; text-transform: uppercase; color: #6b7280; font-size: 13px; margin-bottom: 6px; }
.product.row.modofila .campana { position: absolute; top: 0; right: 10px; }
.product.row.modofila .transito { margin-top: 4px; }
.product.row.modofila .precio-fila { text-align: left; }
.product.row.modofila .precio-fila .price { display: block; padding: 0; margin-bottom: 2px; }
.product.row.modofila .precio-fila .logueado { float: none; display: block; font-weight: 600 !important; }
.product.row.modofila .precio-fila small.noiva { padding-left: 0; }
.product.row.modofila .botones { position: static; opacity: 1; top: auto; width: auto; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.product.row.modofila .botones a.boton-test { margin: 0; text-align: center; }
@media (max-width: 767px) {
  .product.row.modofila { flex-wrap: wrap; }
  .product.row.modofila .image { width: 100%; }
  .product.row.modofila .description, .product.row.modofila .precio-fila, .product.row.modofila .botones { width: 100%; }
}
div.button-pager li a { color: #000; }
div.button-pager li a img { width: 12px; }
div.button-pager li.button-rpager { display: inline-block; }

/* detalle */
div.container#detalle .sp-wrap { width: 100%; text-align: center; padding: 20px; }
div.container#detalle .sp-wrap img { max-width: 100%; max-height: 480px; }
/* galería del detalle (clases del plugin smoothproducts que usa el sitio original) */
div.container#detalle .sp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
div.container#detalle .sp-thumbs a { display: block; width: 100px !important; height: 100px !important; border: 1px solid #ddd; border-radius: 5px; padding: 4px; opacity: .6; }
div.container#detalle .sp-thumbs a.sp-current, div.container#detalle .sp-thumbs a:hover { opacity: 1; border-color: #003087; }
div.container#detalle .sp-thumbs a img { width: 100%; height: 100%; object-fit: contain; }
div.campanaDetalle { display: inline-block; cursor: pointer; font-size: 1.2em; color: #ccc; margin-bottom: 5px; }
div.campanaDetalle i.activo { color: #d31862; }
button.btn-stock-transito { background: #0B8576; color: #fff; border: 0; border-radius: 20px; padding: 5px 15px; font-size: 12px; margin-bottom: 10px; cursor: pointer; }
#detalle .price small { font-size: 14px; font-weight: 400; margin-left: 5px; }
/* certificado de seguridad eléctrica: miniatura del QR (la imagen la genera la API en public/qr/{EAN}.png) */
#detalle div#contenedorQR { margin: 15px 0 5px; display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
#detalle div#contenedorQR > a.doc-manual { flex-direction: column; justify-content: center; text-align: center; min-width: 130px; padding: 12px; }
#detalle div#contenedorQR > a.doc-manual i { font-size: 42px; line-height: 1; }
#detalle div#contenedorQR > a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border: 1px solid #dfe6f2; border-radius: 8px; background: #fff; color: #003087; text-decoration: none; }
#detalle div#contenedorQR > a:hover { border-color: #003087; box-shadow: 0 2px 8px rgba(2, 34, 102, .12); }
#detalle div#contenedorQR img { width: 110px; height: 110px; display: block; }
#detalle div#contenedorQR span { font-size: 12px; line-height: 1.35; text-transform: uppercase; letter-spacing: .3px; }
#detalle .caja_cantidad { display: inline-block; height: 56px; padding: 0 !important; vertical-align: middle; }
#detalle .btn.btn-compra { vertical-align: middle; }
#detalle .btn.btn-compra:disabled { opacity: .4; cursor: not-allowed; }
#detalle a#botonMeInteresa { display: inline-block; }
#detalle div#terminosGarantia { background: #fff3cd; padding: 12px; border-radius: 8px; margin: 10px 0; font-size: 13px; }
ul.nav-tabs { display: flex; list-style: none; padding: 0; }
ul.nav-tabs li a { cursor: pointer; }
.tab-content > .tab-pane { display: none; }
.tab-content > .tab-pane.active { display: block; }
table.caracteristicas { width: 100%; max-width: 900px; margin: 0 auto; font-size: 14px; }
table.caracteristicas td { padding: 8px 12px; border-bottom: 1px solid #eee; }
table.caracteristicas td:first-child { color: #666; width: 40%; }
div.descarga_doc { margin-bottom: 15px; }
div.descarga_doc a img, div.descarga_doc a i { margin-right: 10px; }
div.relacionados { padding: 0; }
.row#relacionados { margin-bottom: 100px; }

/* ---------------------------------------------------------------- breadcrumb + títulos */
section.breadcrumb { font-size: 13px; }
section.breadcrumb a { color: #000; }
section.breadcrumb b { font-weight: 700; }
div.container#AvisoPrecios { margin: 10px auto; }
div.container#AvisoPrecios a { background: #fff; border-radius: 20px; padding: 5px 20px; color: #000; margin-left: 15px; cursor: pointer; }
h5.title-sol.style3 span { font-weight: bold; }

/* ---------------------------------------------------------------- carrito */
div.container.checkout { margin-top: 170px; min-height: 400px; }
div.container.checkout.con-breadcrumb { margin-top: 20px; }
div.fila_carrito { padding: 15px 0; border-bottom: 1px solid #e0e0e0; display: flex; align-items: center; }
div.fila_carrito .img-item img { max-width: 70px; max-height: 70px; }
div.fila_carrito .titproditemcarrito a { color: #000; }
div.fila_carrito .codigoitem { font-size: 12px; color: #888; }
div.fila_carrito input.cantidad { width: 60px; text-align: center; border-radius: 12px; border: 1px solid #aaa; height: 36px; margin: 0; }
div.fila_carrito i.carritoeliminar { color: #c00; cursor: pointer; font-size: 16px; }
div.fila_carrito .stock-insuficiente { color: #c00; font-size: 11px; font-weight: bold; }
div.bloqueCupon input[type=text] { height: 32px; border-radius: 15px; border: 1px solid #ccc; margin: 5px 5px 0 0; }
div.bloqueCupon input.btn-cupon { border-radius: 15px; background: #003087; border: 0; color: #fff; }
.checkout div#pago-envio hr { width: 100%; }
.checkout div.cab_resumencarrito { margin-top: 0; }
span#titcheckout { font-size: 14px; }
.checkout textarea.notas { width: 100%; border-radius: 10px; border: 1px solid #ccc; padding: 8px; height: 70px; }
.checkout #mensaje_carrito.alert-warning { margin: 10px 15px; }
.checkout p.legal { font-size: 11px; color: #666; }

/* ---------------------------------------------------------------- mi cuenta / listados */
div.container.micuenta { margin-top: 20px; min-height: 300px; }
div.cajascuenta > div { min-height: 202px; }
div.cajascuenta ul li a { color: #4e4e4e; cursor: pointer; }
div.cajascuenta ul li a:hover { color: #003087; }
div.cajascuenta input.inputfiltro { height: 32px; width: 140px; padding-left: 10px; border-radius: 15px; border: 1px solid #ccc; margin: 5px 0; }
div.container.contenidos { margin-top: 20px; margin-bottom: 60px; min-height: 300px; }
div.container.contenidos div.padding b { color: #000; }
div.container.contenidos input.form-control { height: 36px; border-radius: 15px; max-width: 260px; display: inline-block; }
div.container.contenidos select.form-control { height: 36px; border-radius: 15px; max-width: 260px; display: inline-block; padding: 0 12px; }
input.botonfiltro, input.cambiar_clave, input.botonenviar, input.botonRegistro, button.botonfiltro { cursor: pointer; }
table.tablalistadocc { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tablalistadocc tr.cabtablalistadocc th { background: #003087; color: #fff; padding: 8px 6px; font-weight: 600; font-size: 12px; text-transform: uppercase; }
table.tablalistadocc td { padding: 8px 6px; border-bottom: 1px solid #e0e0e0; vertical-align: middle; }
table.tablalistadocc tr:nth-child(even) td { background: #f7f7f7; }
table.tablalistadocc .c { text-align: center; } table.tablalistadocc .r { text-align: right; } table.tablalistadocc .l { text-align: left; }
table.tablalistadocc td a { color: #003087; }
table.tablalistadocc td small { color: #666; }
input#volver { cursor: pointer; }
div#mensaje label { display: block; text-align: center; padding: 20px; color: #666; }
div.resumen-cc { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
div.resumen-cc > div { flex: 1; background: #f0f0f0; padding: 15px; border-radius: 10px; }
div.resumen-cc > div b { font-size: 22px; color: #003087; display: block; }
div.cajadatos { background: #f0f0f0; padding: 15px; border-radius: 10px; margin-bottom: 15px; min-height: 100%; }
div.cajadatos h4 { font: 600 14px 'roboto', sans-serif; color: #003087; border-bottom: 1px solid #fff; padding: 5px 0; margin-bottom: 8px; }
div.cajadatos p { margin: 0; padding: 3px 0; border-bottom: 1px dashed #ddd; font-size: 13px; }
div.cajadatos p span { color: #666; }
@media (max-width: 767px) {
  table.tablalistadocc tr.cabtablalistadocc { display: none; }
  table.tablalistadocc td { display: block; text-align: left !important; }
  table.tablalistadocc td span.movil { display: inline; font-weight: bold; margin-right: 5px; }
  div.cajascuenta > div { min-height: 0; margin-bottom: 15px; }
}

/* ---------------------------------------------------------------- formularios (contacto, registro, etc.) */
div.container.formpage { margin-top: 20px; margin-bottom: 60px; }
form.formfiesa label { display: block; margin: 0; padding-left: 20px; font-size: 14px; }
form.formfiesa label span.req { color: #ff0068; }
form.formfiesa input.form-control, form.formfiesa select.form-control, form.formfiesa textarea.form-control { border-radius: 20px; border-color: #ccc; margin-bottom: 15px; height: 36px; font-size: 14px; }
form.formfiesa textarea.form-control { height: 100px; }
form.formfiesa input.botonRosa, form.formfiesa button.botonRosa { cursor: pointer; }
form.formfiesa .form-check { padding-left: 20px; margin-bottom: 15px; }
form.formfiesa .form-check input { margin-right: 6px; }
form.formfiesa .alerta { margin: 10px 0; }
form.formfiesa .ayuda { font-size: 12px; color: #666; margin: -10px 0 15px; padding-left: 20px; }
form.formfiesa .adjunto { display: block; margin-bottom: 15px; }
form.formfiesa .chips { display: flex; flex-wrap: wrap; gap: 5px; margin: -10px 0 15px; padding-left: 10px; }
form.formfiesa .chips span { background: #003087; color: #fff; border-radius: 15px; padding: 2px 10px; font-size: 12px; }
form.formfiesa .chips span i { margin-left: 6px; cursor: pointer; }
.alerta { padding: 12px 20px; border-radius: 10px; font-size: 13px; }
.alerta.ok { background: #d4edda; color: #155724; }
.alerta.error { background: #f8d7da; color: #721c24; }
.alerta.info { background: #e8eef9; color: #003087; }
.alerta.warn { background: #fff3cd; color: #856404; }
div.form_registro { max-width: 900px; margin: 0 auto; }
div.contacto, div.form_registro, div.caja_form { margin: 0 auto; }
div.caja_form { max-width: 520px; background: #eff0f1; padding: 25px; border-radius: 10px; box-shadow: 0 0 8px 2px rgba(0,0,0,.3); }
div.container.login { margin-top: 170px; min-height: 400px; }
div.container.login.con-breadcrumb { margin-top: 20px; }
div.container.login .titulo { text-align: center; color: #003087; margin-bottom: 20px; }
div.container.login .titulo h5 { color: #003087; }
div.boton_ingresar { margin-top: 10px; }
div.boton_ingresar a, div.boton_ingresar button { cursor: pointer; text-align: center; display: inline-block; }
div.boton_ingresar button { background: #003087; width: 200px; color: #fff; border-radius: 20px; padding: 8px; border: none; }
div.boton_ingresar button:hover { background: #2e2e2e; }
div.boton_ingresar button:disabled { opacity: .6; }
.modal-body small label { font-weight: 300; cursor: pointer; }
.modal-body small label input { margin-right: 4px; }
.modal-body small a { color: #003087; cursor: pointer; }
span#errorlogin { color: #f00; display: block; text-align: center; padding: 8px 0; }
div.links-login { margin-top: 15px; text-align: center; font-size: 13px; }
div.links-login a { color: #003087; }

/* ---------------------------------------------------------------- modales (Bootstrap 4 sin JS) */
.modal.wp-open { display: block; }
.modal.wp-open .modal-dialog { transform: none; }
.modal-backdrop.wp-open { opacity: .5; }
.modal .close { cursor: pointer; }
#modalterminos .modal-dialog, #modalTransito .modal-dialog, #modalInteres .modal-dialog, #modalConfirmar .modal-dialog { max-width: 600px; }
#modalterminos ol li { font-size: 12px; line-height: 17px; margin-bottom: 6px; }
.modal-footer .btn { border-radius: 20px; padding: 8px 25px; font-size: 13px; }
.modal-footer .btn-primary { background: #003087; border: 0; }
.modal-footer .btn-primary:disabled { opacity: .5; }
.modal-footer .btn-secondary { background: #999; border: 0; }
.modal table.tabla-simple { width: 100%; font-size: 13px; }
.modal table.tabla-simple th, .modal table.tabla-simple td { padding: 6px; border-bottom: 1px solid #eee; }
#modalcompra .modal-body { display: flex; align-items: center; }
#modalcompra .modal-body img { max-width: 110px; }

/* ---------------------------------------------------------------- toast */
div.wp-toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #003087; color: #fff; padding: 12px 25px; border-radius: 25px; z-index: 2000; font-size: 13px; box-shadow: 0 5px 15px rgba(0,0,0,.3); max-width: 90%; }
div.wp-toast.error { background: #c0392b; }
div.wp-toast.info { background: #2c2c2c; }

/* ---------------------------------------------------------------- home */
section#home_videos .padre .hijo h6 { font-weight: 700; color: #000; }
section#home_videos .padre { background: #fff; border-radius: 8px 0 0 8px; }
section#home_videos .col-md-8.padre:last-of-type { border-radius: 0 8px 8px 0; }
section#home_videos a img { width: 100%; }
section#novedades_home_prod .tx h1 { font-size: 30px; }
section#home_doble .tx_contenido p { min-height: 100px; }
section#marcas_home .hikvision_paradox img { max-width: 160px; }
div.caja_nove_home .fecha_nove_home { font-size: 12px; }
div.caja_nove_home .tx_nove_home h1 { height: 48px; overflow: hidden; }
div.caja_nove_home .tx_nove_home p.dcortaHome { height: 38px; overflow: hidden; font-size: 13px; }
div.caja_nove_home .img_nove_home img { width: 100%; height: 160px; object-fit: cover; }
section#novedades_home .row.container, section#marcas_home .row.container, section#home_simple .row.container, section#home_doble .row.container, section#home_videos .row.container, section#novedades_home_prod .row.container { margin: 0 auto; }

/* ---------------------------------------------------------------- novedades */
div.container.listado_novedades, div.container.detalle_contenido { margin-top: 20px; margin-bottom: 60px; }
div.cajanovedad_info h1 { font-size: 28px; }
div.detalle_contenido img.img_principal { max-width: 100%; }
div.detalle_contenido .cuerpo { font-size: 15px; line-height: 24px; }
div.detalle_contenido .cuerpo img { max-width: 100%; height: auto; }
/* proyectos (réplica de /LISTADO_PROYECTOS): carrusel owl de .cajaproyecto + #form_proyectos */
div.cajaproyecto .img_proy img { width: 100%; }
div.cajaproyecto h1 { margin-top: 10px; }
#form_proyectos div.alert { clear: both; }
section#noticias_destacadas .owl-carousel.owl-theme { left: 0; }
div.webinar_caja { background: #f6f6f6; padding: 20px; border-radius: 10px; margin-bottom: 20px; }
div.webinar_caja h3 { font-weight: bold; color: #003087; font-size: 18px; }
div.webinar_caja .fecha { font-weight: bold; margin: 10px 0; }
div.webinar_caja a.boton-test { padding: 8px 25px; border-radius: 20px; }

/* ---------------------------------------------------------------- marcas */
div.container#marcas { margin-top: 20px; margin-bottom: 60px; }
div.container#marcas div.logo_marca { text-align: center; padding: 15px; }
div.container#marcas div.logo_marca img { max-width: 180px; max-height: 90px; background: #fff; padding: 10px; }
div.container#marcas div.logo_marca span { display: block; margin-top: 8px; font-weight: bold; font-size: 13px; }

/* ---------------------------------------------------------------- footer */
footer .f_col3 h6 { font-weight: 700; margin-bottom: 15px; }
footer .f_col3 p { margin: 0 0 8px; font-size: 13px; }
footer div.redespie { margin-top: 15px; }
footer div.afip img { width: 40px; }
footer form#formSuscripcion { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
footer form#formSuscripcion input[type=email] { border-radius: 30px; border: none; height: 36px; padding: 0 15px; width: 260px; margin: 0; }
footer form#formSuscripcion .alerta { width: 100%; padding: 6px 15px; }
div.botonWS img { width: 50px; }

/* ---------------------------------------------------------------- 404 */
div.container.pagina404 { margin-top: 180px; margin-bottom: 100px; text-align: center; }
div.container.pagina404 img { width: 100px; opacity: .3; margin-bottom: 20px; }

@media (max-width: 767px) {
  section.slider { margin-top: 110px; }
  section.breadcrumb { margin-top: 110px !important; }
  div.container.checkout, div.container.login { margin-top: 130px; }
  .product .image { height: 200px; }
  section#novedades_home_prod div.owl-nav { position: static; margin-top: 10px; justify-content: center; }
  div.fila_carrito { flex-wrap: wrap; }
}

button.btn-ingresar { white-space: nowrap; }

/* "Me interesa este producto": en el original es un pill chico (padding 8px, 14px), no el botón grande de compra */
#detalle a#botonMeInteresa.btn.btn-compra { padding: 8px 16px !important; font-size: 14px; }

/* ---- Contacto > Contactos por área (estilos inline del original /ORGANIGRAMA) ---- */
h3.titOrga { text-align: center; font-size: 20px; margin-top: 30px; }
.cajaOrga { border: 1px solid #ccc; padding: 10px; border-radius: 10px; box-shadow: 0 0 4px rgba(0, 0, 0, .1); width: 250px; text-align: center; font-size: 14px; }
.contenedorNivelOrga.van5 .cajaOrga { width: 220px; }
.contenedorNivelOrga { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; padding: 20px; }
b.cargo { color: #003087; }

/* ---- Datos bancarios > modal Informar pago (estilos inline del original /DATOS_UTILES) ---- */
#modalIformarPago input[type="text"], #modalIformarPago input[type="email"], #modalIformarPago input[type="file"] { margin-bottom: 20px; }
#modalIformarPago .error { color: red; margin-bottom: 20px; }
#modalIformarPago .hidden { display: none; }
#modalIformarPago .success { color: green; margin-top: 20px; }
#modalIformarPago .hidden-input { display: none; }
#modalIformarPago .switch-button { padding: 5px 10px; background: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; margin-bottom: 20px; }
#modalIformarPago .switch-button:hover { background: #0056b3; }
#modalIformarPago .disabled { cursor: not-allowed; background: #ccc; }
#modalIformarPago .spinner { border: 2px solid rgba(0, 0, 0, 0.1); border-left-color: #fff; border-radius: 50%; width: 16px; height: 16px; animation: spin 1s linear infinite; display: inline-block; vertical-align: middle; margin-right: -40px; }
#modalIformarPago .modal-dialog { max-width: 900px; }
#modalIformarPago button.close { position: absolute; right: 25px; top: 25px; background: #003087; padding: 5px; border-radius: 50%; color: #fff; width: 30px; height: 30px; font-weight: 300; text-shadow: none; z-index: 99; opacity: 1; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- lista de precios: progreso de generación del Excel */
.excel-progress { margin: 12px 0 4px; }
.excel-progress .progress { height: 18px; border-radius: 10px; background: #e9ecef; }
.excel-progress .progress-bar { background-color: #003087; font-size: 11px; font-weight: bold; transition: width .5s ease; }
.excel-progress small { display: block; margin-top: 6px; color: #666; font-size: 12px; }

/* listado de reparaciones: las notas de GBP traen saltos de línea */
table.tablalistadocc span.nota-rma { white-space: pre-line; }

/* capacitaciones: el iframe de YouTube del cuerpo del video no desborda en celular */
.detalle_video iframe { max-width: 100%; }
#formRegistro .alerta { margin: 0; }

/* listado de videos (/capacitaciones/videos): la miniatura se ve completa (el original no la recorta) y el título no se trunca */
.listado_videos div.caja_nove_home .img_nove_home img { height: auto; object-fit: initial; }
.listado_videos div.caja_nove_home .tx_nove_home h1 { height: auto; min-height: 48px; }
.listado_videos .buscador-videos { position: relative; max-width: 560px; margin: 0 0 35px; }
.listado_videos .buscador-videos input { width: 100%; height: 46px; padding: 0 110px 0 20px; border: 1px solid #d3d8e2; border-radius: 23px; font-size: 14px; font-family: inherit; color: #333; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); -webkit-appearance: none; }
.listado_videos .buscador-videos input::placeholder { color: #9aa3b2; }
.listado_videos .buscador-videos input:focus { outline: 0; border-color: #003087; box-shadow: 0 0 0 3px rgba(0, 48, 135, .12); }
.listado_videos .buscador-videos input::-webkit-search-cancel-button { display: none; }
.listado_videos .buscador-videos button { position: absolute; right: 5px; top: 5px; height: 36px; margin: 0; padding: 0 16px; border: 0; border-radius: 18px; background: #003087; color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; }
.listado_videos .buscador-videos button:hover { background: #022266; }
.listado_videos .buscador-videos .limpiar { position: absolute; right: 100px; top: 14px; font-size: 12px; color: #9aa3b2; text-decoration: underline; white-space: nowrap; }
.listado_videos .buscador-videos .limpiar:hover { color: #003087; }
.listado_videos .resultado-busqueda { margin: -20px 0 25px; font-size: 14px; color: #555; }

/* reCAPTCHA v3: el badge flotante se oculta porque el aviso va en el footer (permitido por Google si se muestra el texto) */
.grecaptcha-badge { visibility: hidden; }

/* login: segunda opción "ingresar con código por email" visible debajo del botón principal, mismo ancho que INGRESAR */
#formLogin div.boton_ingresar button { width: 270px; max-width: 100%; padding: 9px 12px; font-size: 13px; letter-spacing: .5px; }
#formLogin div.boton_ingresar button.secundario { background: #fff; color: #003087; border: 2px solid #003087; padding: 7px 22px; width: auto; min-width: 270px; white-space: nowrap; font-size: 12px; }
#formLogin div.boton_ingresar button.secundario:hover { background: #eef2fa; }
#formLogin div.boton_ingresar button.secundario i { margin-right: 6px; }
#formLogin .login-separador { display: flex; align-items: center; gap: 12px; width: 270px; max-width: 100%; margin: 14px auto 2px; color: #9aa3b2; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
#formLogin .login-separador::before, #formLogin .login-separador::after { content: ''; flex: 1; border-top: 1px solid #dfe3ea; }
#formLogin .links-login { margin-top: 18px; }
.modal table.tabla-simple tr.seleccionada td { background: #eef2fa; }

/* ---------------------------------------------------------------- etiqueta de reparación (RMA) */
.rma-etiqueta { max-width: 700px; margin: 0 auto; padding: 18px 22px; border: 1px solid #bbb; border-radius: 6px; background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.rma-etiqueta-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rma-etiqueta-logo { height: 42px; width: auto; }
.rma-etiqueta-title { text-align: right; }
.rma-etiqueta-title small { display: block; font-size: 11px; letter-spacing: 1px; color: #555; }
.rma-etiqueta-title strong { display: block; font-size: 26px; color: #003087; line-height: 1.1; }
.rma-etiqueta-cut { color: #888; font-size: 12px; margin: 10px 0; white-space: nowrap; overflow: hidden; }
.rma-etiqueta-datos { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rma-etiqueta-datos th { width: 150px; text-align: left; vertical-align: top; padding: 5px 8px 5px 0; font-weight: bold; white-space: nowrap; }
.rma-etiqueta-datos td { padding: 5px 0; vertical-align: top; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.rma-etiqueta-foot { margin: 8px 0 0; font-size: 12px; line-height: 1.4; }
.rma-etiqueta-foot.small { color: #666; font-size: 11px; }
@media print {
  /* al imprimir una página con etiqueta, solo sale la etiqueta (header, menú, botones y footer ocultos) */
  body.rma-print * { visibility: hidden; }
  body.rma-print .rma-etiqueta, body.rma-print .rma-etiqueta * { visibility: visible; }
  body.rma-print .rma-etiqueta { width: 100%; max-width: none; margin: 0; border: none; padding: 0; box-shadow: none; }
  /* el área de impresión (una o varias etiquetas) se superpone arriba de la página oculta; una etiqueta por hoja */
  body.rma-print .rma-print-area { position: absolute; left: 0; top: 0; width: 100%; visibility: visible; }
  body.rma-print .rma-print-area .rma-etiqueta-hoja { padding: 0 !important; break-after: page; page-break-after: always; }
  body.rma-print .rma-print-area .rma-etiqueta-hoja:last-child { break-after: auto; page-break-after: auto; }
  body.rma-print .rma-etiqueta-datos td { white-space: pre-wrap; }
  .no-print { display: none !important; }
  @page { margin: 10mm; }
}

/* lote de reparaciones recién cargadas (Ingresar nueva Reparación) */
.rma-lote { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.rma-lote th, .rma-lote td { border-bottom: 1px solid #ddd; padding: 6px 8px; text-align: left; vertical-align: top; }
.rma-lote th { background: #f1f4f9; color: #003087; }
.rma-lote-obs { max-width: 360px; white-space: pre-wrap; word-break: break-word; }

/* texto largo recortado (ClampText): N líneas + "… ver más" */
.clamp-wrap { display: block; white-space: pre-wrap; word-break: break-word; }
.clamp { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp.open { display: block; overflow: visible; }
.clamp-more { display: inline-block; margin-top: 2px; color: #003087; font-weight: bold; cursor: pointer; font-size: 12px; }
table.tablalistadocc td { vertical-align: top; }

/* notas propias del cliente en el listado de reparaciones y en el lote de carga */
.rma-nota { font-size: 12px; }
.rma-nota-vacia { color: #999; }
.rma-nota-editar { display: block; margin-top: 2px; color: #003087; font-size: 11px; cursor: pointer; white-space: nowrap; }
.rma-nota-edit textarea { font-size: 12px; min-width: 180px; }
.rma-nota-btns { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.rma-nota-btns a { color: #666; font-size: 11px; cursor: pointer; }
.rma-lote-nota { color: #003087; font-size: 11px; margin-top: 2px; }
.rma-envio select { max-width: 520px; }
.rma-envio-items { display: block; color: #003087; margin-top: 2px; }
.rma-add-envio { font-size: 11px; color: #003087; white-space: nowrap; }
/* listado de reparaciones agrupado por envío: cabecera azul, franja lateral en las filas del envío y separación entre envíos */
table.tablalistadocc tr.grupo td { background: #003087; color: #fff; border-top: 10px solid #fff; border-left: 4px solid #003087; padding: 8px 12px; font-size: 12px; }
table.tablalistadocc tr.grupo:first-of-type td, table.tablalistadocc tr.cabtablalistadocc + tr.grupo td { border-top-width: 4px; }
table.tablalistadocc tr.engrupo td { background: #f7f9fd; }
table.tablalistadocc tr.engrupo td:first-child { border-left: 4px solid #003087; padding-left: 12px; }
table.tablalistadocc tr.engrupo:hover td { background: #eef3fb; }
.rma-envio-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rma-envio-titulo { font-size: 14px; letter-spacing: .3px; }
.rma-envio-titulo b { font-size: 15px; }
.rma-envio-estados { color: #c9d6f2; }
.rma-envio-acciones { margin-left: auto; display: flex; gap: 16px; }
.rma-envio-acciones a { color: #fff; font-weight: bold; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; }
.rma-envio-acciones a:hover { color: #ffd166; }
@media (max-width: 767px) { table.tablalistadocc tr.grupo td { display: block; } .rma-envio-acciones { margin-left: 0; } }

/* barra de filtros de Mi cuenta (DateRangeBar): una fila flexible, bloques etiqueta/control alineados por la base */
.filtros-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.filtros-bar > div, .filtros-bar .filtro { flex: 0 0 auto; width: 170px; font-size: 13px; line-height: 1.4; }
.filtros-bar .filtro-ancho { flex: 1 1 260px; width: auto; }
/* gana a "div.container.contenidos input.form-control" (36px, inline-block, max-width 260): todos los controles iguales */
div.container.contenidos .filtros-bar input.form-control, div.container.contenidos .filtros-bar select.form-control, .filtros-bar .form-control {
  display: block; width: 100%; max-width: none; height: 38px; line-height: 36px; padding: 0 12px; margin: 0; box-sizing: border-box; border-radius: 15px;
}
.filtros-bar input[type="date"].form-control { padding-right: 8px; }
.filtros-bar .filtro-check, .filtros-bar > label { display: flex; align-items: center; gap: 6px; height: 38px; margin: 0; padding: 0; font-size: 13px; white-space: nowrap; }
.filtros-bar .filtro-check input, .filtros-bar > label input { margin: 0; }
.filtros-bar .botonfiltro { height: 38px; margin: 0; }
@media (max-width: 767px) { .filtros-bar > div, .filtros-bar .filtro { flex: 1 1 100%; width: auto; } }

/* estado de reparación (components/Web/RmaStatus.js): tres renglones, número / área / detalle, color por tipo */
.rma-estado { display: block; text-align: center; line-height: 1.3; }
.rma-estado-num { display: block; font-size: 10px; color: #8a94a6; letter-spacing: .5px; text-transform: uppercase; }
.rma-estado-area { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-top: 1px; }
.rma-estado-detalle { display: block; font-size: 12px; color: #333; margin-top: 1px; }
.rma-estado-info .rma-estado-area  { color: #1a3f8f; }
.rma-estado-ok .rma-estado-area    { color: #1e6b32; }
.rma-estado-warn .rma-estado-area  { color: #b06a00; }
.rma-estado-bad .rma-estado-area   { color: #a12626; }
.rma-estado-muted .rma-estado-area { color: #6b7280; }

/* paginador de Mi cuenta (Paginador en AccountShell.js) */
.pager-cuenta .button-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 10px 0 4px; }
.pager-cuenta .button-pager li { display: inline-block; }
.pager-cuenta .button-pager li a { display: inline-block; min-width: 30px; height: 30px; line-height: 28px; padding: 0 6px; text-align: center; border: 1px solid #d5dae2; border-radius: 15px; color: #003087 !important; cursor: pointer; font-size: 13px; text-decoration: none; background: #fff; }
.pager-cuenta .button-pager li a:hover { background: #e8eef9; border-color: #b9cdf5; }
.pager-cuenta .button-pager li a img { width: 10px; vertical-align: middle; }
.pager-cuenta .button-pager li.button-rpager { min-width: 30px; height: 30px; line-height: 30px; padding: 0 6px; text-align: center; border-radius: 15px; background: #003087; color: #fff; font-weight: bold; font-size: 13px; }
.pager-cuenta .button-pager li.pager-disabled a { opacity: .35; cursor: default; background: #fff; border-color: #e3e8f0; }
.pager-cuenta .button-pager li.pager-dots { padding: 0 4px; color: #888; }
.pager-cuenta .info_paginado { margin: 4px 0 0; font-size: 12px; color: #555; }
.pager-cuenta .pager-perpage { display: inline-block; width: auto; height: 26px; padding: 0 6px; margin: 0 4px; font-size: 12px; border: 1px solid #d5dae2; border-radius: 13px; vertical-align: middle; }
/* el .col_pager original flota / tiene alto fijo y el texto quedaba pisado por lo que sigue */
.pager-cuenta { float: none !important; display: block; width: 100%; height: auto !important; position: static; clear: both; overflow: visible; padding: 0; margin: 12px 0 18px; text-align: center; }
.pager-cuenta .button-pager { justify-content: center; float: none; height: auto; }
.pager-cuenta .info_paginado { position: static !important; float: none !important; display: block; margin: 8px 0 0 !important; line-height: 28px; }
/* desplegable de descarga */
.descarga-menu { position: relative; display: inline-block; text-align: left; }
.descarga-menu ul { position: absolute; right: 0; top: 100%; z-index: 50; min-width: 270px; margin: 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid #dfe6f2; border-top: 3px solid #003087; border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(2,34,102,.14); }
.descarga-menu li a { display: block; padding: 9px 16px; cursor: pointer; color: #222; text-decoration: none; }
.descarga-menu li a:hover { background: #e8eef9; color: #003087; }
.descarga-menu li a small { display: block; color: #777; font-size: 11px; }

/* lista de precios: las celdas de precio no parten "USD" del número */
table.tablalistadocc td.r b, table.tablalistadocc td.r { white-space: nowrap; }
/* lista de precios: modelo en una línea, descripción en dos (con … al cortar) */
.lp-modelo { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.lp-detalle { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: #666; line-height: 1.3; }

/* lista de precios: miniatura + ficha rápida (ProductQuickView) */
table.tablalistadocc td img.lp-thumb { width: 52px; height: 52px; object-fit: contain; border: 1px solid #e3e8f0; border-radius: 6px; background: #fff; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
table.tablalistadocc td img.lp-thumb:hover { transform: scale(1.08); box-shadow: 0 4px 12px rgba(2,34,102,.18); }
table.tablalistadocc td b.lp-modelo { cursor: pointer; }
table.tablalistadocc td b.lp-modelo:hover { color: #003087; text-decoration: underline; }
.qv { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
.qv-media .qv-img { border: 1px solid #e3e8f0; border-radius: 8px; padding: 10px; text-align: center; }
.qv-media .qv-img img { max-width: 100%; max-height: 280px; object-fit: contain; }
.qv-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.qv-thumbs img { width: 48px; height: 48px; object-fit: contain; border: 1px solid #e3e8f0; border-radius: 4px; cursor: pointer; }
.qv-thumbs img.sel { border-color: #003087; }
.qv-datos { width: 100%; font-size: 13px; margin-bottom: 10px; }
.qv-datos th { text-align: left; color: #666; font-weight: 600; padding: 3px 10px 3px 0; white-space: nowrap; vertical-align: top; width: 110px; }
.qv-datos td { padding: 3px 0; }
.qv-transito { color: #b06a00; }
.qv-precios { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 10px 12px; margin: 6px 0 10px; background: #f4f7fd; border-radius: 8px; }
.qv-precios small { display: block; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .3px; }
.qv-precios b { font-size: 20px; color: #003087; }
.qv-precios span { font-size: 15px; }
.qv-badges span { display: inline-block; margin: 0 6px 6px 0; padding: 2px 8px; border-radius: 10px; background: #e8eef9; color: #003087; font-size: 11px; font-weight: bold; }
.qv-descargas a { display: inline-block; margin: 0 14px 8px 0; color: #003087; font-size: 13px; }
.qv-link { display: inline-block; margin-top: 4px; color: #003087; font-weight: bold; }
.qv-tabs { grid-column: 1 / -1; margin-top: 6px; }
.qv-tabbar { display: flex; gap: 4px; border-bottom: 2px solid #e3e8f0; margin-bottom: 10px; }
.qv-tabbar a { padding: 6px 14px; cursor: pointer; color: #555; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.qv-tabbar a.sel { color: #003087; border-bottom-color: #003087; }
.qv-attrs { width: 100%; font-size: 13px; }
.qv-attrs th { text-align: left; font-weight: 600; color: #444; padding: 4px 10px 4px 0; width: 40%; border-bottom: 1px solid #f1f4f9; vertical-align: top; }
.qv-attrs td { padding: 4px 0; border-bottom: 1px solid #f1f4f9; }
.qv-desc { font-size: 13px; line-height: 1.5; max-height: 320px; overflow: auto; }
@media (max-width: 767px) { .qv { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- asistente de IA (AssistantWidget) */
/* El globo de WhatsApp es fixed bottom:20 right:20 de 50px; el botón del asistente va justo encima. */
.ia-boton {
  position: fixed; bottom: 82px; right: 20px; z-index: 1000;
  width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
  background: #003087; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 48, 135, .35); transition: transform .15s, background .15s;
}
.ia-boton:hover { background: #0046c7; transform: translateY(-2px); }
.ia-boton .ia-cerrar { font-size: 30px; line-height: 1; }

.ia-panel {
  position: fixed; bottom: 82px; right: 20px; z-index: 1001;
  width: 380px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 140px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(2, 34, 102, .28);
}
.ia-head { background: #003087; color: #fff; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; }
.ia-head strong { display: block; font-size: 15px; }
.ia-head small { font-size: 11px; opacity: .8; }
.ia-head-acciones button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 0 6px; }

.ia-body { flex: 1; overflow-y: auto; padding: 14px; background: #f5f7fb; font-size: 14px; line-height: 1.45; }
.ia-msg { margin-bottom: 10px; padding: 9px 12px; border-radius: 10px; max-width: 92%; word-break: break-word; }
.ia-msg a { color: #003087; text-decoration: underline; }
.ia-user { background: #003087; color: #fff; margin-left: auto; border-bottom-right-radius: 2px; }
.ia-user a { color: #fff; }
.ia-assistant { background: #fff; border: 1px solid #e3e9f4; border-bottom-left-radius: 2px; }
.ia-error { background: #fdecec; border: 1px solid #f5c2c2; color: #a12121; }
.ia-vineta { padding-left: 4px; }
.ia-tools { margin-top: 6px; font-size: 11px; color: #6b7280; }

/* tarjetas de producto dentro del chat: cantidad + agregar al carrito */
.ia-prods { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ia-prod { background: #fff; border: 1px solid #dfe6f2; border-radius: 10px; padding: 8px 10px; }
.ia-prod-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ia-prod-tit { font-weight: 600; font-size: 13px; color: #10233f; text-decoration: none; line-height: 1.3; }
a.ia-prod-tit:hover { color: #003087; text-decoration: underline; }
.ia-prod-precio { font-weight: 700; font-size: 13px; white-space: nowrap; color: #10233f; }
.ia-prod-info { font-size: 11px; color: #6b7280; margin-top: 2px; }
.ia-prod-acc { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ia-prod-cant { display: flex; align-items: center; border: 1px solid #dfe6f2; border-radius: 8px; overflow: hidden; }
.ia-prod-cant button { width: 26px; height: 28px; border: none; background: #f5f7fb; color: #10233f; font-size: 15px; line-height: 1; cursor: pointer; }
.ia-prod-cant button:disabled { color: #c2cada; cursor: default; }
.ia-prod-cant span { min-width: 28px; text-align: center; font-size: 13px; }
.ia-prod-add { flex: 1; height: 28px; border: none; border-radius: 8px; background: #003087; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.ia-prod-add:disabled { background: #b8c2d6; cursor: default; }
.ia-prod-ficha { display: inline-block; margin-top: 6px; font-size: 12px; color: #003087; text-decoration: underline; }

.ia-pensando { display: flex; gap: 4px; align-items: center; width: 56px; }
.ia-pensando span { width: 7px; height: 7px; border-radius: 50%; background: #9aa7bf; animation: ia-blink 1.2s infinite; }
.ia-pensando span:nth-child(2) { animation-delay: .2s; }
.ia-pensando span:nth-child(3) { animation-delay: .4s; }
@keyframes ia-blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.ia-carrito { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; background: #eef3ff; border-top: 1px solid #dfe6f2; font-size: 13px; }
.ia-carrito .ia-ir { background: #003087; color: #fff; border-radius: 20px; padding: 5px 14px; font-size: 12px; text-decoration: none; }

.ia-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e9f4; background: #fff; }
.ia-input input { flex: 1; border: 1px solid #dfe6f2; border-radius: 20px; height: 38px; padding: 0 14px; font-size: 14px; margin: 0; }
.ia-input input:focus { outline: none; border-color: #003087; }
.ia-input button { width: 38px; height: 38px; border-radius: 50%; border: none; background: #003087; color: #fff; cursor: pointer; }
.ia-input button:disabled { background: #b8c2d6; cursor: default; }
.ia-pie { padding: 0 14px 10px; font-size: 10px; color: #9aa7bf; background: #fff; text-align: center; }

@media (max-width: 767px) {
  .ia-panel { right: 12px; left: 12px; width: auto; bottom: 76px; height: min(70vh, calc(100vh - 150px)); }
}
