.mbc-buscador-header { position: relative; max-width: 420px; }
#mbc-buscador-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.mbc-buscador-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-radius: 6px;
  max-height: 420px;
  overflow: auto;
}
.mbc-buscador-ul { list-style: none; margin: 0; padding: 6px; }
.mbc-buscador-item { padding: 8px; display:flex; gap:8px; align-items:flex-start; border-radius:4px; }
.mbc-buscador-item a { display: flex; gap:8px; text-decoration: none; color: inherit; width:100%; }
.mbc-buscador-item:hover, .mbc-buscador-item.active { background: #f5f7fb; }
.mbc-buscador-thumb { width:56px; height:56px; object-fit:cover; border-radius:6px; flex-shrink:0; }
.mbc-buscador-meta { display:flex; flex-direction:column; overflow:hidden; }
.mbc-buscador-title { font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mbc-buscador-excerpt { font-size:12px; color:#666; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* MOBILE: icon + full-width expanding search */
@media (max-width: 768px) {
  .mbc-buscador-header {
    max-width: 56px;         /* shows only the icon initially */
    transition: all .22s ease;
    position: relative;
  }

  .mbc-buscador-header .mbc-search-icon {
    display: block;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    z-index: 99999;
    cursor: pointer;
  }

  #mbc-buscador-input {
    width: 56px;
    padding: 8px 10px 8px 42px; /* space for icon */
    border-radius: 6px;
    transition: width .22s ease, padding .22s ease;
  }

  .mbc-buscador-header.mbc-expanded {
    position: fixed;
    left: 0;
    right: 0;
    top: 8px;
    padding: 8px;
    background: rgba(255,255,255,0.98);
    max-width: none;
    z-index: 999999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }

  .mbc-buscador-header.mbc-expanded #mbc-buscador-input {
    width: calc(100% - 24px);
    padding: 10px 12px 10px 44px;
    border-radius: 6px;
  }

  .mbc-buscador-header.mbc-expanded .mbc-buscador-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    max-height: calc(100vh - 120px);
    width: 100vw;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .mbc-buscador-item { padding: 10px; }
  .mbc-buscador-thumb { width:48px; height:48px; }
}

@media (min-width: 769px) {
  .mbc-buscador-header .mbc-search-icon { display: none; }
}
