/* Buscador estilo Doctoralia (Search\SearchPage). Navy #083A84 · cian #02CCE2 · texto #0F2350 */
.bb, .bb-bar, .bb-pop { box-sizing: border-box; }
.bb *, .bb-bar *, .bb-pop * { box-sizing: border-box; }

/* ── Barra ── */
.bb-bar { display: flex; align-items: stretch; background: #fff; border: 1.5px solid #d9e2ef; border-radius: 999px; padding: 4px; box-shadow: 0 8px 28px rgba(8,58,132,.10); position: relative; }
.bb-bar--home { border-color: transparent; box-shadow: 0 14px 40px rgba(2,20,60,.28); }
.bb-f { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: center; }
.bb-f--q { flex: 1.25 1 0; }
.bb-f--d::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1px; background: #E3E9F2; }
.bb-f__ic { position: absolute; left: 16px; width: 18px; height: 18px; color: #6b7a94; pointer-events: none; }
.bb-f__ic svg { width: 18px; height: 18px; display: block; }
.bb-bar input.bb-q, .bb-bar input.bb-d { width: 100%; height: 48px; border: 0; background: transparent; padding: 0 34px 0 42px; font-size: 15.5px; color: #0F2350; outline: 0; box-shadow: none; margin: 0; border-radius: 999px; }
.bb-bar input::placeholder { color: #8A97AD; }
.bb-f__x { position: absolute; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #EEF2F7; color: #46556f; font-size: 16px; line-height: 1; cursor: pointer; padding: 0; }
.bb-f__x[hidden] { display: none; }
.bb-go { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: #083A84; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s; }
.bb-go:hover { background: #0B4FB0; }
.bb-go:disabled { background: #B9C3D6; cursor: not-allowed; }
.bb-go:focus-visible { outline: 3px solid #7FB2FF; outline-offset: 2px; }
.bb-go svg { width: 18px; height: 18px; }
.bb-go span { display: none; }
@media (min-width: 720px) { .bb-go span { display: inline; } .bb-go { padding: 0 26px; } }
@media (max-width: 640px) {
  .bb-bar { flex-direction: column; border-radius: 22px; padding: 6px; gap: 4px; }
  .bb-f--d::before { display: none; }
  .bb-f { border-bottom: 1px solid #EEF2F7; }
  .bb-f--d { border-bottom: 0; }
  .bb-go { width: 100%; border-radius: 16px; height: 46px; }
  .bb-go span { display: inline; }
  /* 25-sep (Benjamín: «el botón de buscar está como fuera de espacio»): la tarjeta
     tenía 6px de relleno y el botón quedaba pegado a la orilla. Aire parejo. */
  .bb-bar { padding: 8px 10px 10px; border-radius: 24px; }
  .bb-go { margin-top: 6px; border-radius: 14px; }
}
/* 25-sep: en celular, sin el hueco de 69px entre la barra de arriba y el buscador. */
@media (max-width: 767px) {
  .bindy-buscador-page .page-container-five { padding-top: 0 !important; }
  .bb-top { padding-top: 12px; }
}

/* Sugerencias */
.bb-sug { position: absolute; left: 4px; right: 4px; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid #d9e2ef; border-radius: 16px; box-shadow: 0 16px 40px rgba(8,58,132,.16); max-height: 380px; overflow: auto; text-align: left; }
.bb-sug[hidden] { display: none; }
.bb-sug li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: #0F2350; font-size: 15px; text-transform: none !important; line-height: 1.25; }
.bb-sug li:hover, .bb-sug li.is-act { background: #F0FBFD; }
.bb-sug li.bb-sug__h { cursor: default; font-size: 11px; letter-spacing: .08em; text-transform: uppercase !important; color: #8A97AD; font-weight: 700; padding: 8px 12px 4px; }
.bb-sug li.bb-sug__h--linea { margin-top: 6px; padding-top: 10px; border-top: 1px solid #E3E8F1; font-size: 10.5px; }
.bb-sug li.bb-sug__h:hover { background: transparent; }
.bb-sug li.bb-sug__none { cursor: default; color: #6b7a94; font-size: 13.5px; }
.bb-sug li.bb-sug__google { cursor: default; justify-content: flex-end; font-size: 11px; color: #8A97AD; padding: 4px 12px 2px; }
.bb-sug li.bb-sug__google:hover { background: transparent; }
.bb-sug__ic { display: inline-flex; width: 30px; height: 30px; border-radius: 9px; background: #F5F8FC; align-items: center; justify-content: center; flex: 0 0 30px; color: #083A84; }
.bb-sug__ic svg { width: 17px; height: 17px; }
.bb-sug__t { display: flex; flex-direction: column; min-width: 0; }
.bb-sug__t b { font-weight: 700; }
.bb-sug__t small { color: #6b7a94; font-size: 12.5px; }
.bb-sug__n { margin-left: auto; color: #8A97AD; font-size: 12px; white-space: nowrap; }

/* Chips populares (home) */
.bb-pop { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; justify-content: center; }
.bb-pop a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 13.5px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,.28); transition: background .15s; }
.bb-pop a:hover { background: rgba(255,255,255,.26); color: #fff; }
.bh-search-card--bb .bh-search-pop { display: none; }

/* ── Página de resultados ── */
.bindy-buscador-page .page-style2-sidebar-wrap, .bindy-buscador-page #sidebar, .bindy-buscador-page .sidebar, .bindy-buscador-page aside.widget-area { display: none !important; }
.bindy-buscador-page .page-style2-content-wrap, .bindy-buscador-page .content-area, .bindy-buscador-page .site-main { width: 100% !important; float: none !important; }
.bb { color: #0F2350; }
.bb-top { padding: 14px 0 12px; }
.bb-body { display: flex; flex-direction: column; gap: 12px; }
.bb-map { position: relative; height: 200px; border-radius: 16px; overflow: hidden; background: #E9EEF5; transition: height .25s; }
.bb-map--big { height: 62vh; }
#bb-map { width: 100%; height: 100%; }
.bb-map__toggle { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; border: 0; border-radius: 999px; background: #0F2350; color: #fff; font-size: 13px; font-weight: 700; padding: 8px 16px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.bb-map--sin .bb-map__toggle, .bb-map--sin { display: none; }
.bb-map.bb-map--linea { display: none !important; } /* 1-oct: búsqueda «En línea» → sin mapa */
.bb-list { min-width: 0; }
.bb-head { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 10px; }
.bb-head__t { font-size: 17px; font-weight: 700; color: #0F2350; }
.bb-head__t small { font-weight: 500; color: #6b7a94; font-size: 13.5px; }
.bb-head__aviso { padding: 10px 12px; border-radius: 12px; background: #FFF4E5; color: #7C4A03; font-size: 13.5px; line-height: 1.4; border: 1px solid #FBD9A8; }
.bb-head__aviso[hidden] { display: none; }
.bb-cards { display: flex; flex-direction: column; gap: 12px; }
.bb-empty { padding: 26px 18px; border-radius: 16px; background: #F5F8FC; text-align: center; color: #46556f; font-size: 15px; line-height: 1.5; }
.bb-empty[hidden] { display: none; }
.bb-empty b { color: #0F2350; }
.bb-empty .bb-empty__acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.bb-empty button { border: 1.5px solid #083A84; background: #fff; color: #083A84; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.bb-empty button.is-primary { background: #083A84; color: #fff; }
.bb-more { text-align: center; margin: 16px 0 8px; }
.bb-more__btn { border: 1.5px solid #083A84; background: #fff; color: #083A84; border-radius: 999px; padding: 11px 22px; font-weight: 700; cursor: pointer; font-size: 14.5px; }
.bb-more__btn[hidden] { display: none; }
.bb-more__btn:hover { background: #EAF2FF; }
@media (min-width: 900px) {
  .bb-body { flex-direction: row; align-items: flex-start; }
  .bb-list { flex: 0 0 56%; max-width: 640px; }
  .bb-map { flex: 1 1 auto; position: sticky; top: 90px; height: calc(100vh - 120px) !important; order: 2; }
  .bb-map__toggle { display: none; }
}

/* ── Tarjeta D1 ── */
.bb-card { display: flex; flex-wrap: wrap; gap: 0 12px; padding: 14px; background: #fff; border: 1px solid #E3E9F2; border-radius: 16px; transition: box-shadow .15s, border-color .15s; position: relative; }
.bb-card:hover, .bb-card.is-act { border-color: #02CCE2; box-shadow: 0 8px 26px rgba(8,58,132,.12); }
.bb-card--pro { border-color: #FBD9A8; background: linear-gradient(180deg, #FFFCF5 0, #fff 60px); }
.bb-card__logo { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #083A84; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; text-decoration: none; }
.bb-card__logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-card__body { flex: 1; min-width: 0; padding-right: 40px; }
/* Jorge, 10-nov: el resto de la tarjeta ocupa todo el ancho, desde el margen izquierdo. */
.bb-card__more { flex: 0 0 100%; min-width: 0; margin-top: 4px; }
.bb-card__more .bindy-modos { gap: 6px 14px; }
.bb-card__more .bb-card__loc { font-size: 13px; line-height: 1.4; }
.bb-card__top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bb-card__name { font-weight: 700; font-size: 16.5px; color: #0F2350 !important; text-decoration: none; text-transform: none !important; min-width: 0; overflow-wrap: anywhere; } /* 24-sep: un nombre sin espacios ya no ensancha la página */
.bb-card__name:hover { color: #083A84 !important; }
.bb-card__ver { width: 17px; height: 17px; color: #02A9BC; flex: 0 0 auto; }
.bb-card__pro { padding: 2px 8px; border-radius: 999px; background: #FFD84D; color: #4A3B00; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.bb-card__reg { padding: 2px 8px; border-radius: 999px; background: #EEF2F7; color: #46556f; font-size: 11px; font-weight: 700; }
.bb-card__oficio { color: #46556f; font-size: 14px; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bb-card__badge { padding: 2px 8px; border-radius: 999px; background: #FFF4E5; color: #9A5B00; font-size: 11.5px; font-weight: 700; border: 1px solid #FBD9A8; }
.bb-card__rate { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; color: #46556f; }
.bb-stars { position: relative; display: inline-block; color: #E5E7EB; font-size: 14px; letter-spacing: 1px; line-height: 1; }
.bb-stars > span { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #F5B301; }
.bb-card__tag { color: #46556f; font-size: 13.5px; margin: 5px 0 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bb-card__chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.bb-card__chips span { padding: 3px 9px; border-radius: 999px; background: #F0FBFD; color: #0B6B7C; font-size: 12px; font-weight: 600; }
.bb-card__loc { color: #6b7a94; font-size: 12.5px; margin-top: 7px; display: flex; align-items: center; gap: 5px; }
.bb-card__loc svg { width: 14px; height: 14px; flex: 0 0 auto; }
.bb-card__btns { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.bb-btn { flex: 1 1 0; min-width: 80px; /* 27-oct: 80 para que WhatsApp redondo + Llamar + Ver perfil quepan en una fila a 375 px */ display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 10px; background: #083A84; color: #fff !important; font-size: 13.5px; font-weight: 700; text-decoration: none !important; border: 1.5px solid #083A84; }
.bb-btn svg { width: 16px; height: 16px; }
.bb-btn--wa { background: #25D366; border-color: #25D366; }
/* Jorge, 27-oct (maqueta): WhatsApp redondo solo con el icono, a la izquierda de «Llamar». */
.bb-btn--ico { flex: 0 0 auto; min-width: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
.bb-btn--ico svg { width: 24px; height: 24px; }
/* Jorge, 27-oct: fila de modalidad de atención (iconos de Jorge, sprite Ui\ModalidadIcons).
   Se comparte con el perfil (.bindy-modos). */
.bindy-modos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 9px; }
.bindy-modo { display: inline-flex; align-items: center; gap: 7px; color: #0F2350; font-size: 13.5px; font-weight: 600; line-height: 1; }
.bindy-modo__ic { width: 30px; height: 26px; flex: 0 0 auto; }
.bindy-modo.is-fisico .bindy-modo__ic { width: 22px; }
.bb-card__modos { margin-top: 8px; }
.bb-card__modos + .bb-card__loc { margin-top: 6px; }
.bb-btn--ghost { background: #fff; color: #083A84 !important; }
.bb-btn:hover { filter: brightness(1.06); }
.bb-card .bindy-fav { position: absolute; top: 12px; right: 12px; }
@media (max-width: 480px) { .bb-card { padding: 12px; } .bb-card__logo { flex-basis: 56px; width: 56px; height: 56px; } }
/* Chips populares dentro de la tarjeta blanca del home */
.bh-search-card .bb-pop { justify-content: flex-start; margin-top: 12px; }
.bh-search-card .bb-pop a { background: #EAF2FF; color: #083A84; border-color: #C8D6EA; }
.bh-search-card .bb-pop a:hover { background: #D8E6FB; color: #083A84; }
.bh-search-card .bb-bar--home { border-color: #d9e2ef; box-shadow: 0 8px 28px rgba(8,58,132,.10); }
/* En /buscar/ el buscador del header del tema sobra (la barra nueva ya está en la página). */
.bindy-buscador-page .lp-search-bar-header, .bindy-buscador-page .lp-search-section-header-views .lp-search-bar { display: none !important; }
/* El tema pinta gris los <span> dentro de botones */
.bb-go, .bb-go span, .bb-go svg { color: #fff !important; }
/* El hero del home recorta (overflow:hidden) los menús desplegables de la barra:
   mientras un menú esté abierto, el hero y la tarjeta dejan pasar el desborde. */
.bh-hero:has(.bb-sug:not([hidden])), .bh-search-card:has(.bb-sug:not([hidden])) { overflow: visible !important; }
/* 24-sep (debug E1): hacia los lados el hero sigue recortando; si no, sus adornos
   (círculo, íconos flotantes) ensanchaban la página en cel mientras se escribe. */
.bh-hero:has(.bb-sug:not([hidden])) { overflow-x: clip !important; overflow-y: visible !important; }
.bh-hero:has(.bb-sug:not([hidden])) .bh-search-card { position: relative; z-index: 70; }
/* 24-sep: la franja de sellos (.bh-sellos-wrap, z-index 3, después en el DOM) tapaba la lista.
   La tarjeta vive dentro de .bh-top y .bh-hero__searchwrap (ambos z-index 3 = su propio contexto),
   así que hay que subir ESOS contenedores mientras haya una lista abierta. */
.bh-top:has(.bb-sug:not([hidden])), .bh-hero__searchwrap:has(.bb-sug:not([hidden])) { z-index: 80 !important; position: relative; }
.bb-sug { max-height: 300px; }
/* La tarjeta nueva ya trae su chip Pro: fuera el listón PRO genérico de PlanPresentation */
.bb-card > .bindy-destacado-badge { display: none !important; }

/* 24-sep-2026 · Jorge: «lo que más me gustó fue el botón con ese degradado y los
   iconitos en cian» → botón Buscar con degradado de marca e íconos de los campos en cian. */
.bb-f__ic { color: #02CCE2 !important; }
.bb-go { background: linear-gradient(120deg,#083A84,#0B84A6) !important; /* degradado único de Bindy (el de la Biblia) */ box-shadow: 0 8px 22px rgba(8, 58, 132, .22); }
.bb-go:hover { filter: brightness(1.06); }
.bb-go:disabled { opacity: 1; filter: none; cursor: pointer; } /* Jorge, 25-sep: siempre en el degradado azul fuerte, aunque falte llenar un campo */

/* Lista de perfiles impresa en el HTML (Seo\Visibility): la ve quien no ejecuta
   JavaScript (Google en su primera pasada, las IA). El buscador la reemplaza por
   las tarjetas al cargar. */
.bb-ssr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bb-ssr li { background: #fff; border: 1px solid #e3e9f3; border-radius: 14px; padding: 14px 16px; }
.bb-ssr a { display: block; color: #0b1f3f; font-weight: 700; font-size: 16px; text-decoration: none; }
.bb-ssr span { display: block; color: #5b6b8c; font-size: 13px; margin-top: 2px; }
.bb-ssr p { color: #4a5a72; font-size: 14px; margin: 6px 0 0; }
