/* ============================================================
   BUSCADOR 2026 - estilos del nuevo buscador (buscador.asp)
   Todas las clases llevan el prefijo b26- para no chocar con
   los estilos antiguos del resto de la web.
   ============================================================ */

:root {
  --b26-azul: #1C6F9A;
  --b26-azul-osc: #12506F;
  --b26-azul-claro: #E8F2F8;
  --b26-texto: #16232E;
  --b26-texto-2: #3B4A56;
  --b26-texto-3: #4F5F6B;
  --b26-gris: #5B6B78;
  --b26-borde: #CBD5DD;
  --b26-borde-claro: #E3E9ED;
  --b26-fondo: #F3F6F8;
  --b26-naranja: #B5420B;
  --b26-radio: 16px;
}

body.b26 {
  margin: 0;
  background: #FFFFFF;
  color: var(--b26-texto);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.b26 *, .b26 *::before, .b26 *::after { box-sizing: border-box; }
.b26 a { color: var(--b26-azul); }
.b26 a:hover { color: var(--b26-azul-osc); }
.b26 button, .b26 input, .b26 select { font-family: inherit; }
.b26 :focus-visible { outline: 3px solid rgba(28,111,154,.45); outline-offset: 2px; }

.b26-wrap { max-width: 1600px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.b26-oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Aviso app ---------- */
.b26-app {
  background: var(--b26-azul-osc); color: #FFFFFF; font-size: 14px;
}
.b26-app .b26-wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; min-height: 40px; padding-top: 6px; padding-bottom: 6px; text-align: center;
}
.b26-app a { color: #FFFFFF; font-weight: 700; }
.b26-app a:hover { color: #FFFFFF; }

/* ---------- Cabecera ---------- */
.b26-cab { border-bottom: 1px solid var(--b26-borde-claro); background: #FFFFFF; }
.b26-cab-in {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.b26-logo {
  text-decoration: none; color: var(--b26-texto) !important; font-size: 24px; font-weight: 500;
  letter-spacing: -0.02em; white-space: nowrap;
}
.b26-logo b { font-weight: 800; color: var(--b26-azul); }
.b26-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.b26-nav a {
  text-decoration: none; color: var(--b26-texto-2); font-weight: 600; font-size: 15px;
  padding: 12px 14px; border-radius: 999px;
}
.b26-nav a:hover { background: var(--b26-fondo); color: var(--b26-texto); }
.b26-nav a[aria-current="page"] { color: var(--b26-azul); font-weight: 700; }
.b26-cab-dcha { display: flex; align-items: center; gap: 8px; }
.b26-cab-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--b26-texto-2) !important; font-weight: 600; font-size: 15px; padding: 12px;
}
.b26-btn-borde {
  display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--b26-azul); color: var(--b26-azul) !important; text-decoration: none;
  font-weight: 700; font-size: 14px; background: #FFFFFF; white-space: nowrap;
}
.b26-btn-borde:hover { background: var(--b26-azul-claro); }
.b26-menu-btn {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  align-items: center; justify-content: center; color: var(--b26-texto); cursor: pointer; border-radius: 999px;
}

/* ---------- Cabecera de búsqueda ---------- */
.b26-hero { background: var(--b26-fondo); border-bottom: 1px solid var(--b26-borde-claro); }
.b26-hero .b26-wrap { padding-top: 32px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 20px; }
.b26-hero h1 {
  margin: 0; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em;
}
.b26-hero p { margin: 6px 0 0; font-size: 16px; color: var(--b26-texto-3); }
.b26-hero-fila { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b26-op {
  display: inline-flex; background: #FFFFFF; border: 1px solid var(--b26-borde); border-radius: 999px; padding: 4px;
}
.b26-op a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  text-decoration: none; color: var(--b26-texto-2) !important; font-weight: 600; font-size: 15px;
}
.b26-op a[aria-current="page"] { background: var(--b26-azul); color: #FFFFFF !important; font-weight: 700; }
.b26-busca {
  flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 50px;
  padding: 0 16px; background: #FFFFFF; border: 1px solid var(--b26-borde); border-radius: 999px;
}
.b26-busca input {
  flex: 1; min-width: 0; border: 0; outline: none; font-size: 16px; color: var(--b26-texto); background: transparent;
}
.b26-busca:focus-within { border-color: var(--b26-azul); box-shadow: 0 0 0 3px rgba(28,111,154,.18); }

/* ---------- Barra de filtros ---------- */
.b26-barra { border-bottom: 1px solid var(--b26-borde-claro); background: #FFFFFF; position: relative; z-index: 20; }
.b26-barra-in {
  padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.b26-filtros { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b26-filtro { position: relative; }
.b26-fbtn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  background: #FFFFFF; border: 1px solid var(--b26-borde); color: var(--b26-texto);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.b26-fbtn:hover { border-color: var(--b26-azul); }
.b26-fbtn.b26-activo { background: var(--b26-azul-claro); border-color: var(--b26-azul); color: var(--b26-azul-osc); }
.b26-fbtn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(28,111,154,.22); }
.b26-fbtn svg { flex-shrink: 0; }

.b26-orden { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--b26-texto-3); }
.b26-orden select, .b26-select {
  height: 44px; padding: 0 12px; border: 1px solid var(--b26-borde); border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--b26-texto); background: #FFFFFF; cursor: pointer;
}

/* ---------- Paneles desplegables ---------- */
.b26-pop {
  position: absolute; top: 52px; left: 0; z-index: 40; width: 380px; max-width: calc(100vw - 40px);
  background: #FFFFFF; border: 1px solid #DCE3E8; border-radius: var(--b26-radio);
  box-shadow: 0 16px 40px rgba(15,35,50,.18); padding: 20px; display: flex; flex-direction: column; gap: 16px;
}
.b26-pop[hidden] { display: none; }
.b26-pop > * { flex-shrink: 0; }
.b26-pop > .b26-lista { flex-shrink: 1; min-height: 0; }
.b26-pop-tit { font-size: 15px; font-weight: 700; margin: 0; }
.b26-pop-pie {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--b26-borde-claro); padding-top: 14px;
}
.b26-pop-pie-fin { justify-content: flex-end; }
.b26-limpiar {
  height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--b26-azul);
  font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: underline;
}
.b26-aplicar {
  height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--b26-azul);
  color: #FFFFFF; font-weight: 700; font-size: 15px; cursor: pointer;
}
.b26-aplicar:hover { background: var(--b26-azul-osc); }
.b26-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.b26-campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--b26-texto-3); }
.b26-campo select {
  height: 46px; padding: 0 10px; border: 1px solid var(--b26-borde); border-radius: 10px;
  font-size: 15px; color: var(--b26-texto); background: #FFFFFF;
}
.b26-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.b26-opt {
  display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 8px; border-radius: 8px;
  font-size: 15px; cursor: pointer;
}
.b26-opt:hover { background: var(--b26-fondo); }
.b26-opt input { width: 18px; height: 18px; accent-color: var(--b26-azul); flex-shrink: 0; margin: 0; }
.b26-opt .b26-n { margin-left: auto; font-size: 13px; color: var(--b26-gris); font-variant-numeric: tabular-nums; }
.b26-lista { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin: 0 -6px; }
.b26-lista-msg { font-size: 15px; color: var(--b26-texto-3); padding: 8px; margin: 0; }
.b26-pop-busca {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px;
  border: 1px solid var(--b26-borde); border-radius: 10px;
}
.b26-pop-busca input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 15px; background: transparent; color: var(--b26-texto); }

.b26-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.b26-fs legend { padding: 0; margin-bottom: 12px; }
.b26-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.b26-pill { position: relative; cursor: pointer; }
.b26-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.b26-pill span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 44px;
  padding: 0 14px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: #FFFFFF; color: var(--b26-texto); border: 1px solid var(--b26-borde);
}
.b26-pill input:checked + span { background: var(--b26-azul); color: #FFFFFF; border-color: var(--b26-azul); }
.b26-pill input:focus-visible + span { outline: 3px solid rgba(28,111,154,.45); outline-offset: 2px; }

.b26-fondo-pop { display: none; }

/* ---------- Etiquetas de filtros activos ---------- */
.b26-main { padding-top: 20px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 20px; }
.b26-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b26-chips:empty { display: none; }
.b26-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 0; background: var(--b26-azul-claro); color: var(--b26-azul-osc); font-weight: 600; font-size: 14px; cursor: pointer;
}
.b26-chip:hover { background: #D7E8F2; }
.b26-chips .b26-limpiar { height: 36px; font-size: 14px; }

.b26-publi { text-align: center; }
.b26-publi img { max-width: 100%; height: auto; border: 0; }

/* ---------- Resultados ---------- */
.b26-res-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b26-res-cab h2 { margin: 0; font-size: 20px; font-weight: 700; }
.b26-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.b26-anuncio {
  display: flex; flex-direction: column; border: 1px solid var(--b26-borde-claro); border-radius: var(--b26-radio);
  overflow: hidden; background: #FFFFFF; transition: box-shadow .2s; min-width: 0;
}
.b26-anuncio:hover { box-shadow: 0 10px 28px rgba(15,35,50,.12); }
.b26-foto { position: relative; aspect-ratio: 3 / 2; background: var(--b26-borde-claro); overflow: hidden; }
.b26-foto img[u="image"] { display: block; }
/* Carteles: en el texto, encima del precio (sobre la foto taparían el logo de la agencia) */
.b26-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.b26-badge {
  height: 26px; padding: 0 10px; display: inline-flex; align-items: center; gap: 5px; border-radius: 999px;
  background: var(--b26-naranja); color: #FFFFFF; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.b26-badge-azul { background: var(--b26-azul-osc); }
.b26-badge-verde { background: #1E6B3A; }
.b26-guardar {
  position: absolute; top: 10px; right: 10px; z-index: 12; width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.94); display: flex; align-items: center; justify-content: center; color: var(--b26-naranja) !important;
}
.b26-guardar:hover { background: #FFFFFF; }
.b26-nfotos {
  position: absolute; bottom: 12px; right: 12px; z-index: 12; height: 28px; padding: 0 10px;
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: rgba(15,30,40,.72);
  color: #FFFFFF; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none;
}
/* Flechas del slider: están dentro del área de 1200x800 que jssor escala, por eso son grandes */
.b26-foto .jssora01l, .b26-foto .jssora01r {
  display: block; position: absolute; width: 132px; height: 132px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.9); overflow: hidden; top: 334px;
}
.b26-foto .jssora01l { left: 28px; }
.b26-foto .jssora01r { right: 28px; }
.b26-foto .jssora01l::after, .b26-foto .jssora01r::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 34px; height: 34px;
  border-top: 9px solid var(--b26-texto); border-right: 9px solid var(--b26-texto);
}
.b26-foto .jssora01l::after { transform: translate(-30%, -50%) rotate(-135deg); }
.b26-foto .jssora01r::after { transform: translate(-70%, -50%) rotate(45deg); }
.b26-foto .jssora01l:hover, .b26-foto .jssora01r:hover { background: #FFFFFF; }

.b26-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.b26-precio { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.b26-bajada { font-size: 13px; font-weight: 700; color: #1E6B3A; }
.b26-titulo {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; text-transform: capitalize;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.b26-titulo a { color: var(--b26-texto) !important; text-decoration: none; }
.b26-titulo a:hover { text-decoration: underline; }
.b26-meta { font-size: 14px; color: var(--b26-gris); margin-top: -6px; }
.b26-specs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--b26-texto-2); font-weight: 600; }
.b26-specs span { display: inline-flex; align-items: center; gap: 6px; }
.b26-desc {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--b26-texto-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.b26-ver {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px;
  text-decoration: none; min-height: 44px; align-self: flex-start;
}

/* Paginación (generada por libro()) */
.b26-paginacion .pagination { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; list-style: none; padding: 12px 0 0; margin: 0; }
.b26-paginacion .pagination a {
  min-width: 44px; height: 44px; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--b26-texto); text-decoration: none; font-weight: 600;
}
.b26-paginacion .pagination a:hover { background: var(--b26-fondo); }
.b26-paginacion .pagination li.active a { background: var(--b26-azul); color: #FFFFFF; font-weight: 700; }
.b26-paginacion .pagination li.disabled:not(.active) a { color: #8A99A5; pointer-events: none; }
.b26-paginacion .col-md-12 { width: 100%; }
.b26-sin-res { font-size: 16px; color: var(--b26-texto-3); background: var(--b26-fondo); border-radius: var(--b26-radio); padding: 24px; margin: 0; }

/* ---------- Explora más anuncios (codetabaslocalidadesbuscador.asp) ---------- */
.b26-explorar { border-top: 1px solid var(--b26-borde-claro); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.b26-explorar > h2 { margin: 0; font-size: 20px; font-weight: 700; }
.b26-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.b26-tab {
  height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--b26-borde); background: #FFFFFF;
  color: var(--b26-texto); font-weight: 600; font-size: 15px; cursor: pointer;
}
.b26-tab[aria-selected="true"] { background: var(--b26-azul); border-color: var(--b26-azul); color: #FFFFFF; }
.b26-explorar .tab-pane { display: none; }
.b26-explorar .tab-pane.b26-visible { display: block; }
.b26-explorar .bg-blanco { display: flex; flex-wrap: wrap; gap: 8px; }
.b26-explorar .bg-blanco h3 { width: 100%; margin: 0 0 6px !important; font-size: 16px; font-weight: 700; color: var(--b26-texto); }
.b26-explorar .bg-blanco h3 a { color: var(--b26-azul) !important; }
.b26-explorar .bg-blanco a.btn {
  float: none !important; width: auto !important; line-height: 1.3 !important; font-weight: 600 !important;
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: var(--b26-fondo); color: var(--b26-texto-2); text-decoration: none; font-size: 14px; border: 0;
}
.b26-explorar .bg-blanco a.btn:hover { background: var(--b26-azul-claro); color: var(--b26-azul-osc); }

/* ---------- Pie (pie2026.asp) ---------- */
.b26-pie { background: var(--b26-fondo); border-top: 1px solid var(--b26-borde-claro); margin-top: 24px; }
.b26-pie .b26-wrap { padding-top: 40px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 32px; }
.b26-pie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.b26-pie-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.b26-pie-tit { margin: 0; font-size: 15px; font-weight: 800; color: var(--b26-texto); }
.b26-pie-tit a { color: var(--b26-texto) !important; text-decoration: none; }
.b26-pie-tit a:hover { color: var(--b26-azul) !important; }
.b26-pie ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.b26-pie li a, .b26-pie-enlace {
  display: inline-flex; align-items: center; min-height: 36px; color: var(--b26-texto-3) !important;
  text-decoration: none; font-size: 15px;
}
.b26-pie li a:hover, .b26-pie-enlace:hover { color: var(--b26-azul) !important; text-decoration: underline; }
.b26-pie-enlace { border: 0; background: transparent; padding: 0; cursor: pointer; font-family: inherit; }
.b26-pie-nota { margin: 0; font-size: 14px; color: var(--b26-gris); }
.b26-pie-social {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--b26-texto-2) !important;
  text-decoration: none; font-weight: 600; font-size: 15px; align-self: flex-start;
}
.b26-pie-social:hover { color: var(--b26-azul) !important; }
.b26-pie-traductor { min-height: 32px; }
.b26-pie-promo { align-self: center; display: block; max-width: 100%; }
.b26-pie-promo img { max-width: 100%; height: auto; display: block; }
.b26-pie-base {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--b26-borde-claro); padding-top: 18px; font-size: 14px; color: var(--b26-gris);
}

/* ---------- Aviso de cookies (pie2026.asp + js/cookies2026.js) ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99990; display: none;
  background: #FFFFFF; color: var(--b26-texto); border-top: 1px solid var(--b26-borde-claro);
  box-shadow: 0 -10px 30px rgba(15,35,50,.14); font-family: inherit;
}
.cookie-banner.active { display: block; }
.cookie-content {
  max-width: 1600px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
.cookie-texto { flex: 1 1 560px; min-width: 0; }
.cookie-banner h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--b26-texto-3); }
.cookie-banner a { color: var(--b26-azul); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  height: 44px; padding: 0 20px; border-radius: 999px; font-family: inherit; font-size: 15px;
  font-weight: 700; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.cookie-btn.primary { background: var(--b26-azul); color: #FFFFFF; }
.cookie-btn.primary:hover { background: var(--b26-azul-osc); }
.cookie-btn.secondary { background: #FFFFFF; color: var(--b26-texto); border-color: var(--b26-borde); }
.cookie-btn.secondary:hover { border-color: var(--b26-texto-3); }
.cookie-btn.outline { background: transparent; color: var(--b26-azul); text-decoration: underline; padding: 0 10px; }
.cookie-btn.outline:hover { color: var(--b26-azul-osc); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 99995; display: none; align-items: center; justify-content: center;
  background: rgba(15,30,40,.55); padding: 16px; font-family: inherit;
}
.cookie-modal.active { display: flex; }
.cookie-modal-content {
  background: #FFFFFF; color: var(--b26-texto); width: 100%; max-width: 520px; max-height: calc(100vh - 32px);
  overflow-y: auto; padding: 24px; border-radius: var(--b26-radio); box-shadow: 0 20px 50px rgba(15,35,50,.3);
}
.cookie-modal-content h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.cookie-modal-content > p { margin: 0 0 8px; font-size: 14px; color: var(--b26-texto-3); }
.cookie-option {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer;
  padding: 14px 0; border-bottom: 1px solid var(--b26-borde-claro);
}
.cookie-option strong { font-size: 15px; }
.cookie-option p { margin: 4px 0 0; font-size: 13px; color: var(--b26-gris); }
.cookie-option input { width: 22px; height: 22px; accent-color: var(--b26-azul); flex-shrink: 0; margin: 0; }
.cookie-modal-buttons { margin-top: 20px; display: flex; justify-content: flex-end; }

/* ---------- Pantallas muy anchas (hasta 1600 px) ---------- */
@media (min-width: 1440px) {
  .b26-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
}

/* ---------- Móvil y tablet ---------- */
@media (max-width: 900px) {
  .b26-pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .b26-nav { display: none; }
  .b26-nav.b26-abierto {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; z-index: 60; flex-direction: column;
    align-items: stretch; background: #FFFFFF; border-bottom: 1px solid var(--b26-borde-claro); padding: 8px 12px 16px;
    box-shadow: 0 12px 24px rgba(15,35,50,.12);
  }
  .b26-cab { position: relative; }
  .b26-menu-btn { display: inline-flex; }
  .b26-cab-link span, .b26-btn-borde { display: none; }
}

@media (max-width: 640px) {
  .b26-wrap { padding-left: 16px; padding-right: 16px; }
  .b26-cab-in { min-height: 60px; }
  .b26-logo { font-size: 21px; }
  .b26-hero .b26-wrap { padding-top: 16px; padding-bottom: 14px; gap: 12px; }
  .b26-hero h1 { font-size: 23px; }
  .b26-hero p { display: none; }
  .b26-op { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .b26-op a { justify-content: center; padding: 0 8px; font-size: 14px; }
  .b26-busca { flex-basis: 100%; height: 46px; }

  /* La barra de filtros se desliza en horizontal.
     Sin z-index propio, para que la hoja inferior quede por encima de todo (aviso de cookies incluido) */
  .b26-barra { position: static; z-index: auto; }
  .b26-barra-in { padding-top: 12px; padding-bottom: 12px; }
  .b26-filtros { flex-wrap: nowrap; overflow-x: auto; width: 100%; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .b26-filtros::-webkit-scrollbar { display: none; }
  .b26-filtro { flex-shrink: 0; }
  .b26-orden { width: 100%; justify-content: flex-end; }

  /* Los paneles se abren como hoja inferior */
  .b26-pop {
    position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none;
    max-height: 82vh; overflow-y: auto; border-radius: 20px 20px 0 0;
    z-index: 100001; /* por encima del aviso de cookies de mainbotom.asp (99999) */
  }
  .b26-fondo-pop.b26-visible { display: block; position: fixed; inset: 0; background: rgba(15,30,40,.45); z-index: 100000; }
  .b26-lista { max-height: none; }
  .b26-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .b26-pie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .b26-pie-col:first-child { grid-column: 1 / -1; }
  .cookie-content { padding: 16px; }
  .cookie-buttons { width: 100%; }
  .cookie-btn.primary, .cookie-btn.secondary { flex: 1 1 auto; }
}

/* 04/11/2026: Explora mas anuncios: lista corta con buscador y boton de ver todas */
.b26-explorar .bg-blanco a.btn.b26-lista-oculto { display: none; }
.b26-lista-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin: 0 0 4px; }
.b26-lista-control input { flex: 1 1 240px; max-width: 420px; min-height: 42px; padding: 0 14px; border: 1px solid var(--b26-borde-claro); border-radius: 21px; font: inherit; font-size: 15px; }
.b26-lista-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; margin-top: 6px; }
.b26-lista-mas { min-height: 42px; padding: 0 20px; border: 1px solid var(--b26-azul); border-radius: 21px; background: #FFFFFF; color: var(--b26-azul); font: inherit; font-weight: 700; cursor: pointer; }
.b26-lista-mas:hover { background: var(--b26-azul-claro); }
.b26-lista-vacio { color: var(--b26-texto); font-size: 15px; }

.b26-res-der { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* Selector de columnas del listado: solo en pantallas grandes */
.b26-vista { display: none; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--b26-texto-3); }
.b26-vista span { margin-right: 4px; }
.b26-vista button { width: 38px; height: 38px; border: 1px solid var(--b26-borde-claro); border-radius: 10px; background: #FFFFFF; color: var(--b26-texto); font: inherit; font-weight: 700; cursor: pointer; }
.b26-vista button:hover { border-color: var(--b26-azul); color: var(--b26-azul); }
.b26-vista button[aria-pressed="true"] { border-color: var(--b26-azul); background: var(--b26-azul); color: #FFFFFF; }
@media (min-width: 1200px) {
  .b26-vista { display: flex; }
  #results.b26-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #results.b26-grid.b26-col3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Campo de busqueda: el foco lo marca solo la caja redonda. Banner a la derecha en PC */
.b26 .b26-busca input:focus-visible { outline: none; }
.b26-hero .b26-publi img { display: inline-block; vertical-align: top; }
@media (min-width: 1000px) {
  .b26-hero .b26-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 32px; row-gap: 20px; align-items: center; }
  .b26-hero .b26-wrap > .b26-publi { grid-column: 2; grid-row: 1 / span 2; }
}

/* Migas de pan y texto de cada listado */
.b26-migas { margin-bottom: 8px; color: var(--b26-texto-3); font-size: 13.5px; }
.b26-migas a { color: var(--b26-azul); text-decoration: none; }
.b26-migas a:hover { text-decoration: underline; }
.b26-migas [aria-current] { color: var(--b26-texto-2); font-weight: 600; }
.b26-sobre { margin: 28px 0 8px; padding: 18px 22px; border: 1px solid var(--b26-borde-claro); border-radius: 14px; background: var(--b26-fondo); }
.b26-sobre h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.b26-sobre p { max-width: 75ch; margin: 0; color: var(--b26-texto-2); font-size: 15px; line-height: 1.55; }
