/* Buscador v3 (flag mt5_search_v3_enabled): la lista de especialidades con su buscador (site/_esplist-v3), la misma en el
   índice «Especialidades ›», la sede y el micrositio, y el buscador de la columna de filtros. Las variables con respaldo
   porque la hoja del micrositio y el índice de la cabecera están fuera de `.mt5v3`; en el micrositio
   `.mt5v3-esplist--micro` recibe los colores del centro (brandTokens). */
.mt5v3-esplist { --espl-ink: var(--v3-ink, #231F1D); --espl-ink-2: var(--v3-ink-2, #3F3835); --espl-ink-3: var(--v3-ink-3, #6E6560); --espl-soft: var(--v3-soft, #FFF2E7); --espl-on-soft: var(--v3-on-soft, #B04F00); --espl-ring: var(--v3-ring, #E7DED7); font-family: var(--v3-font, var(--v3s-font, Nunito, "Segoe UI", system-ui, sans-serif)); }
.mt5v3-espq { position: sticky; top: -12px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: -12px -16px 8px; padding: 10px 16px; background: #FCF8F6; color: var(--espl-ink-3, #6E6560); }
.mt5v3-espq input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--espl-ring, #E7DED7); border-radius: 16px; background: #fff; font-family: inherit; font-size: 16px; color: var(--espl-ink, #231F1D); }
.mt5v3-espq input::placeholder { color: var(--espl-ink-3, #6E6560); }
.mt5v3-espq input:focus { outline: none; border-color: var(--espl-on-soft, #B04F00); box-shadow: 0 0 0 3px var(--espl-soft, #FFF2E7); }
.mt5v3-espq svg { flex: none; }
.mt5v3-esph { margin: 12px 0 2px; padding: 0 8px; font-family: inherit; font-size: 13px; line-height: 18px; font-weight: 800; letter-spacing: .02em; color: var(--espl-ink-3); text-align: left; text-transform: uppercase; }
.mt5v3-espgrid { display: grid; grid-template-columns: 1fr; gap: 1px; }
.mt5v3-esprow { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 8px; border-radius: 10px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--espl-ink-2) !important; text-decoration: none; }
.mt5v3-esprow[hidden], .mt5v3-espg[hidden], .mt5v3-espall[hidden] { display: none !important; }
.mt5v3-esprow:hover { background: var(--espl-soft); color: var(--espl-on-soft) !important; }
.mt5v3-esprow:focus-visible { outline: 2px solid var(--espl-on-soft); outline-offset: 1px; }
.mt5v3-esprow-t { flex: 1; min-width: 0; }
.mt5v3-esprow small { flex: none; font-size: 14px; font-weight: 600; color: var(--espl-ink-3); font-variant-numeric: tabular-nums; }
.mt5v3-esprow-ok { display: none; flex: none; }
.mt5v3-esprow[aria-current="true"], .mt5v3-esprow[aria-pressed="true"] { background: var(--espl-soft); color: var(--espl-on-soft) !important; font-weight: 800; }
.mt5v3-esprow[aria-current="true"] .mt5v3-esprow-ok, .mt5v3-esprow[aria-pressed="true"] .mt5v3-esprow-ok { display: inline; }
.mt5v3-espnone { margin: 14px 8px; font-size: 16px; line-height: 22px; color: var(--espl-ink-3, #6E6560); }
.mt5v3-espall .mt5v3-esprow { font-weight: 800; }

/* La hoja de la sede (mismo patrón que el índice) y el micrositio */
.mt5m-sheet-b--list { display: block; }

/* En la columna de filtros */
.mt5v3-fs .mt5v3-espq { position: static; margin: 0 0 6px; padding: 0; background: none; }
.mt5v3-fs .mt5v3-espq input { height: 44px; font-size: 15px; }
.mt5v3-fo[hidden] { display: none !important; }
.mt5v3-esp-other { display: block; border: 0; background: none; color: var(--v3-link) !important; font-weight: 800; font-size: var(--v3-small); padding: 8px 0; text-align: left; }
.mt5v3-fs .mt5v3-espnone { margin: 8px 0; font-size: 15px; }

@media (min-width: 640px) {
  .mt5v3-espgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
}
