/* ServiAnuncios · Rediseño — Listado / Resultados */
.lst{padding-block:24px}
.lst__hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px;width:100%;box-sizing:border-box}
.lst__hero > div:first-child{flex:1 1 auto;min-width:0}
.lst__hero h1{font-size:clamp(2rem,3.2vw,2.8rem);margin:0 0 4px;color:var(--c-navy);line-height:1.15}
.lst__hero p{margin:0;color:var(--c-slate);font-size:1.08rem}
.lst__hero p strong{color:inherit}
.lst__sort{display:inline-flex;align-items:center;gap:10px;border:1px solid var(--c-line);border-radius:14px;background:#fff;color:var(--c-navy);font-weight:800;padding:.8em 1.05em;box-shadow:var(--shadow-sm);white-space:nowrap;margin-left:auto;flex-shrink:0;align-self:flex-start}
.lst__sort .icon:first-child{color:var(--c-blue)}
.lst__services-menu{position:relative;padding:0;display:block;margin-left:auto;flex-shrink:0;align-self:flex-start}
.lst__services-menu summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:.8em 1.05em;cursor:pointer;list-style:none;min-width:260px;box-sizing:border-box}
.lst__services-menu summary::-webkit-details-marker{display:none}
.lst__services-menu summary .icon:first-child{color:var(--c-blue)}
.lst__services-menu summary span{flex:1;overflow:hidden;text-overflow:ellipsis}
.lst__services-chevron{transition:transform .18s ease}
.lst__services-menu[open] .lst__services-chevron{transform:rotate(180deg)}
.lst__services-options{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:100%;max-height:360px;overflow:auto;padding:6px;background:#fff;border:1px solid var(--c-line);border-radius:12px;box-shadow:var(--shadow-sm)}
.lst__services-options a{display:block;padding:10px 12px;border-radius:8px;color:var(--c-navy);font-weight:600;text-decoration:none;white-space:nowrap}
.lst__services-options a:hover,.lst__services-options a:focus-visible,.lst__services-options a[aria-current="page"]{background:#eaf1ff;color:var(--c-blue)}
.lst__layout{display:grid;grid-template-columns:1fr;gap:22px;align-items:start}
.lst__results{min-width:0;padding-block:0}

.lst__filter{padding:16px 18px;border-radius:16px}
.lst__filter-title{display:flex;align-items:center;gap:8px;color:var(--c-navy);font-family:var(--font-display);font-size:1.05rem;margin-bottom:14px}
.lst__filter-title .icon{color:var(--c-blue)}
.lst__filter-sec{margin-top:10px}
.lst__filter-sec+.lst__filter-sec{border-top:1px solid var(--c-line);padding-top:10px;margin-top:10px}
/* Titulo visual de cada filtro: no es un <h2> porque no forma parte de la jerarquia
   de contenido de la pagina, solo rotula un control de navegacion. Por eso el bloque
   tampoco es un <section>: seria una seccion sin encabezado y un landmark de mas. */
.lst__filter-h{font-family:var(--font-body);font-size:.82rem;font-weight:800;margin:0 0 8px;color:var(--c-navy)}
.lst__parent-filters{display:grid;gap:5px;margin-bottom:9px}
.lst__parent-filter{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;gap:8px;width:100%;border:1px solid var(--c-line);border-radius:9px;background:#fff;padding:8px 10px;color:var(--c-text-2);font:inherit;font-size:.82rem;font-weight:750;text-align:left;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.lst__parent-filter:hover,.lst__parent-filter:focus-visible{border-color:var(--c-blue-100);color:var(--c-blue);outline:none}
.lst__parent-filter.is-active{background:var(--c-blue-050);border-color:var(--c-blue-100);color:var(--c-blue)}
.lst__parent-filter small{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:20px;padding:0 6px;border-radius:999px;background:var(--c-cream);color:var(--c-slate);font-size:.72rem;font-weight:800}
.lst__parent-filter.is-active small{background:#fff;color:var(--c-blue)}
.lst__subrubros-count{margin:0 0 5px;color:var(--c-mut);font-size:.76rem;font-weight:650}
.lst__cat-list{
  display:grid;
  gap:2px;
  max-height:min(52vh, 420px);
  overflow-y:auto;
  overscroll-behavior:contain;
  padding-right:4px;
  scrollbar-gutter:stable;
}
.lst__cat-list::-webkit-scrollbar{width:6px}
.lst__cat-list::-webkit-scrollbar-track{background:transparent}
.lst__cat-list::-webkit-scrollbar-thumb{background:var(--c-line);border-radius:6px}
.lst__cat-list::-webkit-scrollbar-thumb:hover{background:var(--c-slate)}
.lst__cat{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:10px;padding:7px 10px;color:var(--c-text-2);font-weight:700;font-size:.9rem}
.lst__cat:hover{background:#fff;color:var(--c-blue)}
.lst__cat.is-active{background:var(--c-blue-050);border-color:var(--c-blue-100);color:var(--c-blue)}
.lst__cat-ic{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;color:var(--c-accent)}
.lst__cat-ic img{width:18px;height:18px;object-fit:contain}
.lst__cat.is-active .lst__cat-ic{background:var(--c-blue);border-radius:7px;color:#fff}
.lst__cat.is-active .lst__cat-ic img{filter:brightness(0) invert(1)}
/* Icono coloreado por categoría (como el mockup); no aplica al activo */
.lst__cat:not(.is-active):nth-child(6n+2) .lst__cat-ic img{filter:hue-rotate(165deg) saturate(1.5)}
.lst__cat:not(.is-active):nth-child(6n+3) .lst__cat-ic img{filter:hue-rotate(285deg) saturate(1.1)}
.lst__cat:not(.is-active):nth-child(6n+4) .lst__cat-ic img{filter:hue-rotate(320deg) saturate(1.1)}
.lst__cat:not(.is-active):nth-child(6n+5) .lst__cat-ic img{filter:hue-rotate(60deg) saturate(1.25)}
.lst__cat:not(.is-active):nth-child(6n+6) .lst__cat-ic img{filter:hue-rotate(130deg) saturate(1.4)}
.lst__district-select{width:100%;box-sizing:border-box;border:1px solid var(--c-line);border-radius:9px;
  background:#fff;padding:8px 10px;color:var(--c-text-2);font:inherit;font-size:.86rem;font-weight:700;cursor:pointer}
.lst__district-select:focus-visible{outline:none;border-color:var(--c-blue);color:var(--c-blue)}
.lst__districts{display:flex;flex-wrap:wrap;gap:6px}
.lst__districts a{display:inline-flex;align-items:center;border:1px solid var(--c-line);border-radius:var(--r-pill);background:var(--c-cream);padding:.4em .7em;color:var(--c-text-2);font-weight:600;font-size:.82rem}
.lst__districts a:hover,.lst__districts a.is-active{background:var(--c-blue-050);border-color:var(--c-blue-100);color:var(--c-blue)}
.lst__bar{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.lst__back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#fff;border:1px solid var(--c-line);color:var(--c-navy);flex:none}
.lst__search{flex:1;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-pill);padding:.7em 1.1em;color:var(--c-slate)}
.lst__search .icon{color:var(--c-blue)}
.lst__search strong{color:var(--c-navy)}

.lst__chips{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;margin-bottom:14px;-webkit-overflow-scrolling:touch}
.lst__chips .chip{flex:none}

.lst__filters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.lst__distrito{position:relative}
.lst__distrito-menu{position:absolute;top:110%;left:0;z-index:20;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-md);box-shadow:var(--shadow-card);padding:8px;max-height:320px;overflow-y:auto;min-width:220px;display:grid;grid-template-columns:1fr 1fr;gap:2px}
.lst__distrito-menu[hidden]{display:none}
.lst__distrito-menu a{padding:.5em .7em;border-radius:8px;font-size:.9rem;font-weight:600;color:var(--c-text-2)}
.lst__distrito-menu a:hover{background:var(--c-blue-050);color:var(--c-blue)}
.lst__count{color:var(--c-slate);font-size:.95rem}
.lst__count strong{color:var(--c-navy)}

.lst__grid{display:grid;grid-template-columns:1fr;gap:18px;align-items:stretch;width:100%;box-sizing:border-box}

/* Tarjeta de profesional (full) */
.pro-card--full{position:relative;display:flex;flex-direction:column;justify-content:space-between;height:100%;min-height:285px;gap:16px;background:#fff;border:1px solid var(--c-line);border-radius:20px;padding:22px;box-shadow:var(--shadow-sm);content-visibility:auto;contain-intrinsic-size:auto 285px;box-sizing:border-box;width:100%;min-width:0;max-width:100%}
.pro-card--full:nth-child(-n+2)::before{content:"TOP";position:absolute;top:14px;left:64px;background:var(--c-accent);color:var(--c-navy);border-radius:var(--r-pill);padding:.16em .6em;font-size:.72rem;font-weight:900;line-height:1}
.rubro-card{content-visibility:auto;contain-intrinsic-size:auto 96px}
.pro-card__head{display:flex;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--c-line);flex:1 1 auto;min-width:0;width:100%;box-sizing:border-box}
.pro-card__img{width:70px;height:70px;min-width:70px;min-height:70px;max-width:70px;max-height:70px;border-radius:18px;object-fit:cover;flex:none}
.pro-card__meta{display:flex;flex-direction:column;min-width:0;flex:1 1 auto;width:100%;overflow:hidden}
.pro-card__meta strong,.pro-card__name{color:var(--c-navy);font-size:1.18rem;font-weight:800;margin:0;display:flex;align-items:center;gap:7px;line-height:1.2;min-width:0;max-width:100%;overflow-wrap:anywhere}
.pro-card__name a{color:inherit;text-decoration:none;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1 1 auto}
.pro-card__name a:hover,.pro-card__name a:focus-visible{color:var(--c-blue)}
.pro-card__verify{width:18px;height:18px;color:var(--c-blue);fill:currentColor;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pro-card__meta .pro-card__rubro{color:var(--c-slate);font-weight:700;margin-top:3px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.9rem}
.pro-card__signals{display:flex;flex-direction:column;justify-content:flex-start;gap:4px;margin-top:7px;min-height:44px;color:var(--c-text-2);font-size:.88rem;font-weight:800}
.pro-card__signal{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pro-card__signal dd{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* El horario ocupa su propia linea */
.pro-card__signal--wide{flex:0 0 auto;align-items:baseline;gap:4px;color:var(--c-mut);font-size:.84rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pro-card__signal--wide dt::after{content:':'}
.pro-card__signals .icon{color:var(--c-mut);flex:none}
.pro-card__signals .is-green{color:var(--c-green-700)}
.pro-card__signals .is-green .icon{fill:currentColor;stroke:currentColor;color:var(--c-green)}
.pro-card__desc{color:var(--c-mut);font-size:.88rem;line-height:1.42;margin:6px 0 0;min-height:2.84em;max-height:2.84em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pro-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:auto;width:100%;box-sizing:border-box}
.pro-card__actions > :only-child{grid-column:1 / -1}
.pro-card__actions .btn{width:100%;height:44px;min-height:44px;max-height:44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;white-space:nowrap}
.pro-card__actions .btn-ghost{background:var(--c-blue-050);border-color:var(--c-blue-100);color:var(--c-blue)}
.pro-card__actions .btn-wa-ghost{background:#EAF8F0;border-color:#C8EED7;color:#1FB256}

/* Placeholder de iniciales: mismo estándar cuadrado redondeado que .pro-card__img */
.pro-card--full .avatar,
.pro-card--full .avatar--lg{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:70px;
  height:70px;
  min-width:70px;
  min-height:70px;
  max-width:70px;
  max-height:70px;
  aspect-ratio:1 / 1;
  border-radius:18px;
  flex:none;
  overflow:hidden;
  box-sizing:border-box;
  white-space:nowrap;
  line-height:1;
  font-family:var(--font-display);
  font-weight:800;
  font-size:1.3rem;
  letter-spacing:.02em;
}
.avatar--tone-1{background:#e5efff;color:#1b5bd4}
.avatar--tone-2{background:#e4f6ea;color:#08a551}
.avatar--tone-3{background:#e9f6f7;color:#08959b}
.avatar--tone-4{background:#f1e9ff;color:#7455d9}
.avatar--tone-5{background:#fde8ef;color:#d64662}
.avatar--tone-6{background:#fff0d8;color:#d87900}

/* Tarjeta de sub-rubro */
.rubro-card{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--c-line);border-radius:var(--r-lg);padding:16px}
.rubro-card:hover{box-shadow:var(--shadow-card)}
.rubro-card__ic{display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:14px;background:var(--c-blue-050);flex:none}
.rubro-card__ic img{width:30px;height:30px}
.rubro-card__body{flex:1;min-width:0;display:flex;flex-direction:column}
.rubro-card__body strong{color:var(--c-navy)}
.rubro-card__body small{color:var(--c-mut)}
.rubro-card>.icon{color:var(--c-blue);flex:none}
/* Paleta cíclica de color por categoría (como la home y el filtro) */
.lst__grid .rubro-card:nth-child(6n+1) .rubro-card__ic{background:#EFF4FD}
.lst__grid .rubro-card:nth-child(6n+2) .rubro-card__ic{background:#FFF1DB}
.lst__grid .rubro-card:nth-child(6n+2) .rubro-card__ic img{filter:hue-rotate(165deg) saturate(1.5)}
.lst__grid .rubro-card:nth-child(6n+3) .rubro-card__ic{background:#E4F6EC}
.lst__grid .rubro-card:nth-child(6n+3) .rubro-card__ic img{filter:hue-rotate(285deg) saturate(1.1)}
.lst__grid .rubro-card:nth-child(6n+4) .rubro-card__ic{background:#DEF5F2}
.lst__grid .rubro-card:nth-child(6n+4) .rubro-card__ic img{filter:hue-rotate(320deg) saturate(1.1)}
.lst__grid .rubro-card:nth-child(6n+5) .rubro-card__ic{background:#F0EAFB}
.lst__grid .rubro-card:nth-child(6n+5) .rubro-card__ic img{filter:hue-rotate(60deg) saturate(1.25)}
.lst__grid .rubro-card:nth-child(6n+6) .rubro-card__ic{background:#FDE7EB}
.lst__grid .rubro-card:nth-child(6n+6) .rubro-card__ic img{filter:hue-rotate(130deg) saturate(1.4)}

/* Contenido de apoyo al cierre del listado (contexto del rubro). */
.lst__seo{margin-top:32px;padding:22px 24px;border:1px solid var(--c-line);border-radius:16px;background:#fff}
.lst__seo h2{font-size:1.25rem;margin:0 0 10px;color:var(--c-navy)}
.lst__seo p{margin:0 0 10px;color:var(--c-slate);line-height:1.65;max-width:80ch}
.lst__seo p:last-child{margin-bottom:0}
.lst__seo-faq-title{font-size:1rem;margin:22px 0 10px;color:var(--c-navy)}
.lst__faq details{border-top:1px solid var(--c-line);padding:12px 0}
.lst__faq details:last-child{border-bottom:1px solid var(--c-line)}
.lst__faq summary{cursor:pointer;font-weight:700;color:var(--c-navy);list-style:none;
  display:flex;align-items:flex-start;gap:10px}
.lst__faq summary::-webkit-details-marker{display:none}
.lst__faq summary::after{content:"+";margin-left:auto;color:var(--c-blue);font-weight:800;flex:none}
.lst__faq details[open] summary::after{content:"–"}
.lst__faq details p{margin:10px 0 0}
.lst__empty{text-align:center;padding:48px 20px}
.lst__empty h3{margin-bottom:8px}
.lst__empty p{color:var(--c-slate);margin-bottom:18px}

@media(min-width:720px){
  .lst__grid{grid-template-columns:1fr 1fr}
  .pro-card__actions{grid-template-columns:1fr 1fr}
  .pro-card__actions .btn{width:100%;min-width:0}
}
@media(min-width:1080px){
  .lst__layout{grid-template-columns:240px minmax(0, 1fr)}
  .lst__filter{position:sticky;top:88px;max-height:calc(100vh - 104px);overflow-y:auto;overscroll-behavior:contain}
  .lst__grid{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .lst__hero{flex-direction:column;gap:14px}
  .lst__sort{width:100%;justify-content:center}
  .lst__services-menu summary{min-width:0;width:100%}
  .lst__services-options{left:0;right:0}
  .lst__filter{padding:18px}
  .lst__cat-list{grid-template-columns:1fr 1fr}
  .lst__cat{padding:9px 10px;font-size:.92rem}
  .pro-card--full{padding:18px}
  .pro-card--full:nth-child(-n+2)::before{left:56px}
  .pro-card__head{gap:12px}
  .pro-card__img,
  .pro-card--full .avatar,
  .pro-card--full .avatar--lg{
    width:58px;
    height:58px;
    min-width:58px;
    min-height:58px;
    max-width:58px;
    max-height:58px;
    border-radius:16px;
    font-size:1.1rem;
  }
  .pro-card__meta strong,.pro-card__name{font-size:1.05rem}
  .pro-card__signals{gap:8px;font-size:.84rem}
}
@media(max-width:460px){
  .lst__cat-list{grid-template-columns:1fr}
}

/* ===== Búsqueda (tpl_busqueda.php) ===== */
.bsq__search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--c-line);border-radius:14px;padding:.5em .6em .5em .9em;box-shadow:var(--shadow-sm);min-width:min(100%,420px)}
.bsq__search .icon{color:var(--c-blue);flex:0 0 auto}
.bsq__search input{flex:1 1 auto;border:0;outline:none;background:transparent;font:inherit;color:var(--c-navy);min-width:0;padding:.35em 0}
.bsq__search .btn{flex:0 0 auto}
.bsq__empty{max-width:640px;margin:40px auto;text-align:center;padding:0 16px}
.bsq__empty-ic{width:56px;height:56px;color:var(--c-blue);opacity:.55;margin-bottom:10px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bsq__empty h2{font-size:1.3rem;margin:0 0 8px}
.bsq__empty p{color:var(--c-mut);margin:0 0 18px}
.bsq__chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-bottom:22px}
.bsq__chip{display:inline-flex;align-items:center;padding:.5em .9em;border:1px solid var(--c-line);border-radius:999px;background:#fff;color:var(--c-navy);font-weight:700;font-size:.9rem;text-decoration:none;transition:border-color .15s,color .15s}
.bsq__chip:hover{border-color:var(--c-blue);color:var(--c-blue)}
@media (max-width:640px){.bsq__search{width:100%}}
