/* LAFER migration audit V32 — restore the portfolio search dock.
   The earlier v28 layer hid .lfseg-bottom-bar globally even though the
   intelligent seguros-hub.js search engine remained available. Only unhide
   it on the portfolio landing, leaving every other page unchanged. */
html body.lafer-enterprise.page-seguros:not(.lfseg-unlocked) .lfseg-explorer:not(.is-detail-open) .lfseg-bottom-bar{
  display:flex!important;
  position:relative;
  z-index:70;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  gap:8px;
}
html body.lafer-enterprise.page-seguros .lfseg-search-wrap{
  min-width:180px;
  max-width:min(440px,55vw);
}
html body.lafer-enterprise.page-seguros .lfseg-search-results{
  z-index:180;
}
html body.lafer-enterprise.page-seguros .lfseg-search-box:focus-within{
  border-color:#053DBD!important;
  box-shadow:0 0 0 3px rgba(5,61,189,.12);
}
html body.lafer-enterprise.page-seguros .lfseg-search-box input:focus-visible{
  outline:0;
}
html body.lafer-enterprise.page-seguros .lfseg-all-modal .lfseg-all-shell{
  overscroll-behavior:contain;
}
html body.lafer-enterprise.page-seguros .lfseg-all-advisor-any{
  margin:14px 0 0;
}
@media(max-width:900px){
  /* The search must remain reachable below the swipeable categories. */
  html body.lafer-enterprise.page-seguros:not(.lfseg-unlocked){
    overflow-x:hidden!important;
    overflow-y:auto!important;
  }
  html body.lafer-enterprise.page-seguros:not(.lfseg-unlocked) .lfseg-explorer:not(.is-detail-open){
    min-height:100svh;
    height:auto!important;
    padding-bottom:max(26px,env(safe-area-inset-bottom));
  }
  html body.lafer-enterprise.page-seguros:not(.lfseg-unlocked) .lfseg-explorer:not(.is-detail-open) .lfseg-bottom-bar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 48px;
    grid-template-areas:"all pdf" "search search";
    gap:7px;
    width:calc(100% - 26px);
    max-width:650px;
    border-radius:22px;
    margin:12px auto 0;
    padding:8px;
  }
  html body.lafer-enterprise.page-seguros .lfseg-all-trigger{
    grid-area:all;
    width:100%!important;
    min-width:0;
  }
  html body.lafer-enterprise.page-seguros .lfseg-download{
    grid-area:pdf;
    min-width:48px;
    width:48px!important;
  }
  html body.lafer-enterprise.page-seguros .lfseg-search-wrap{
    grid-area:search;
    width:100%!important;
    max-width:none;
    min-width:0;
  }
  html body.lafer-enterprise.page-seguros .lfseg-search-box{
    height:48px;
  }
  html body.lafer-enterprise.page-seguros .lfseg-all-modal{
    max-height:92dvh;
    border-radius:20px;
  }
  html body.lafer-enterprise.page-seguros .lfseg-all-shell{
    max-height:92dvh;
    padding:16px;
  }
  html body.lafer-enterprise.page-seguros .lfseg-all-grid{
    grid-template-columns:1fr;
  }
}
