/* Portal 2026 — revisión 8: reglas finales específicas y compartidas. */
/* Cabecera opaca en el scroll (el CSS original definía rgba(255,255,255,.5)). */
body.portal26-active #header.portal26-header,
body.portal26-active .portal26-mobile-sticky,
body.portal26-active .portal26-mobile-sticky .header-mobile,
body.portal26-active #header.portal26-header #cab,
body.portal26-active #header.portal26-header .portal26-header-nav {
  background-color:#fff !important;
  background-image:none !important;
}
body.portal26-active #header.portal26-header {
  position:sticky !important;
  top:0 !important;
  z-index:1050 !important;
  opacity:1 !important;
}
/* Desactivar los triangulos y lineas negros heredados de la navegación. */
body.portal26-active #header.portal26-header #topnav > li > a::before,
body.portal26-active #header.portal26-header #topnav > li > a::after,
body.portal26-active #header.portal26-header #topnav > li.seleccionado > a::before,
body.portal26-active #header.portal26-header #topnav > li.seleccionado > a::after,
body.portal26-active #header.portal26-header #topnav > li:hover > a::before,
body.portal26-active #header.portal26-header #topnav > li:hover > a::after {
  content:none !important;
  display:none !important;
  border:0 !important;
}
body.portal26-active #header.portal26-header #topnav > li.seleccionado > a,
body.portal26-active #header.portal26-header #topnav > li:hover > a,
body.portal26-active #header.portal26-header #topnav > li > a:hover {
  color:#ff7f00 !important;
  -webkit-text-fill-color:#ff7f00 !important;
  background:#fff1e4 !important;
  text-decoration:none !important;
  border-bottom:0 !important;
  box-shadow:none !important;
}
/* Tamaños definitivos de buscador, selector y lupa: sin solapamientos. */
@media (min-width:1200px) {
  body.portal26-active #header.portal26-header #cab-center {
    flex:0 1 490px !important;
    width:490px !important;
    max-width:490px !important;
    min-width:0 !important;
  }
  body.portal26-active #header.portal26-header .portal26-context-slot {
    flex:0 0 275px !important;
    width:275px !important;
    max-width:275px !important;
    min-width:0 !important;
    margin-left:12px !important;
    padding:0 !important;
  }
  body.portal26-active #header.portal26-header #cab > .col-12 > .container > .row > .col-8 {
    min-width:0 !important;
  }
}
body.portal26-active #header.portal26-header .portal26-search-field .input-group-btn {
  flex:0 0 46px !important;
  min-width:46px !important;
}
body.portal26-active #header.portal26-header .portal26-search-field #btn_ir_buscador {
  width:46px !important;
  min-width:46px !important;
  font-size:14px !important;
}
body.portal26-active #header.portal26-header .portal26-search-field #btn_ir_buscador i,
body.portal26-active #header.portal26-header .portal26-search-field #btn_ir_buscador svg {
  font-size:14px !important;
  width:14px !important;
  height:14px !important;
}
/* Portada: cinco tarjetas por fila (no seis). */
@media (min-width:1200px) {
  body.portal-home #cResultados > .product-box,
  body.portal-home #cResultados > .container > .row > .product-box {
    flex:0 0 20% !important;
    max-width:20% !important;
  }
  body.portal-home #cResultados .portal26-product-card {padding:11px !important;}
}
/* Listados: filtros + cuatro tarjetas, conservando el diseño verificado. */
@media (min-width:1200px) {
  body.portal26-listing #contenedor-resultados.col-lg-9 #cResultados > .product-box {
    flex:0 0 25% !important;
    max-width:25% !important;
  }
}
