/* ============================================================
   PodólogosCercaDeMí — style.css
   Paleta: rojo médico · Plus Jakarta Sans + DM Serif Display
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --rojo:         #B91C1C;
  --rojo-oscuro:  #7F1D1D;
  --rojo-palido:  #FEF2F2;
  --rojo-sutil:   #FFF5F5;
  --azul:         #1D4ED8;
  --azul-palido:  #DBEAFE;
  --verde:        #059669;
  --verde-palido: #D1FAE5;
  --texto:        #111827;
  --texto-muted:  #6B7280;
  --borde:        #E5E7EB;
  --fondo-alt:    #F9FAFB;
  --fondo:        #FFFFFF;
  --naranja:      #D97706;
  --max-w:        1200px;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --sombra-sm: 0 1px 3px rgba(185,28,28,.08);
  --sombra-md: 0 4px 12px rgba(185,28,28,.14);
  --sombra-lg: 0 12px 32px rgba(185,28,28,.20);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin-bottom: 1rem; }
ul { padding-left: 1.25rem; }

/* ── Layout ── */
.contenedor {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}
.seccion { padding: clamp(40px, 7vw, 80px) 0; }
.seccion-alt { background: var(--fondo-alt); }
.seccion-roja { background: var(--rojo); color: #fff; }
.layout-directorio {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .layout-directorio { grid-template-columns: 1fr; }
}

/* ── Barra disclaimer + Header ── */
.barra-aviso {
  background: var(--rojo-palido);
  border-bottom: 1px solid rgba(185,28,28,.2);
  padding: 8px 0;
  font-size: .8rem;
  color: var(--rojo-oscuro);
  text-align: center;
}
.site-header {
  background: var(--fondo);
  border-bottom: 3px solid var(--rojo);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 40px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo-texto { font-size: 1.15rem; font-weight: 700; color: var(--rojo); letter-spacing: -.01em; }
.logo-texto span { color: var(--azul); }
.nav-principal ul { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0; }
.nav-principal a {
  color: var(--texto);
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--r-sm);
  transition: all .18s;
}
.nav-principal a:hover { background: var(--rojo-palido); color: var(--rojo); text-decoration: none; }
.nav-principal a.activo { color: var(--rojo); }
.btn-nav { background: var(--rojo) !important; color: #fff !important; border-radius: var(--r-md) !important; }
.btn-nav:hover { background: var(--rojo-oscuro) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--texto); margin: 5px 0; border-radius: 2px; transition: all .25s; }
@media (max-width: 767px) {
  .nav-principal {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--fondo);
    padding: 16px;
    border-top: 1px solid var(--borde);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
  }
  .nav-principal.abierto { display: block; }
  .nav-principal ul { flex-direction: column; }
  .nav-toggle { display: block; }
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-oscuro) 100%);
  color: #fff;
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -60px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}
.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero h1 em { font-style: italic; color: #FCD34D; }
.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,.88);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.75;
}

/* ── Buscador ── */
.caja-busqueda {
  background: var(--fondo);
  border-radius: var(--r-xl);
  padding: 22px 26px;
  max-width: 620px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.fila-busqueda {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
@media (max-width: 520px) { .fila-busqueda { grid-template-columns: 1fr; } }
.etiqueta-select {
  font-size: .78rem;
  font-weight: 700;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 6px;
  display: block;
}
select.select-busqueda {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--borde);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .95rem;
  color: var(--texto);
  background: var(--fondo);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
select.select-busqueda:focus { outline: none; border-color: var(--rojo); }
.btn-buscar {
  background: var(--rojo);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.btn-buscar:hover { background: var(--rojo-oscuro); }

/* ── Stats strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--borde);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 32px;
  max-width: 600px;
}
.stat-item { background: var(--fondo); padding: 16px 20px; }
.stat-val { font-size: 1.75rem; font-weight: 700; color: var(--rojo); line-height: 1; margin-bottom: 3px; }
.stat-etiqueta { font-size: .78rem; color: var(--texto-muted); }

/* ── Listing cards ── */
.grid-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}
.listing-card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.listing-card:hover {
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
  border-color: var(--rojo);
}
.listing-foto {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--fondo-alt);
}
.listing-cuerpo { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.listing-nombre { font-size: 1rem; font-weight: 700; color: var(--texto); line-height: 1.3; }
.listing-rating { display: flex; align-items: center; gap: 6px; }
.estrellas { color: #F59E0B; font-size: .95rem; letter-spacing: 1px; }
.rating-num { font-size: .95rem; font-weight: 700; color: var(--verde); }
.reviews-count { font-size: .78rem; color: var(--texto-muted); }
.listing-datos { display: flex; flex-direction: column; gap: 4px; }
.listing-fila { font-size: .84rem; color: var(--texto-muted); display: flex; gap: 7px; align-items: flex-start; line-height: 1.4; }
.listing-fila strong { color: var(--texto); font-weight: 600; }
.listing-telefono { font-size: .95rem; font-weight: 700; color: var(--naranja); }
.listing-acciones {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--borde);
  margin-top: auto;
}
.btn-mapa {
  background: var(--rojo); color: #fff; border: none;
  padding: 8px 16px; border-radius: var(--r-md);
  font-family: inherit; font-size: .82rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-mapa:hover { background: var(--rojo-oscuro); text-decoration: none; }
.btn-web {
  background: transparent; color: var(--azul);
  border: 1.5px solid var(--azul);
  padding: 7px 14px; border-radius: var(--r-md);
  font-family: inherit; font-size: .82rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .2s;
}
.btn-web:hover { background: var(--azul-palido); text-decoration: none; }
.badge-abierto {
  background: var(--verde-palido); color: #065F46;
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  white-space: nowrap;
}
.badge-cerrado {
  background: var(--fondo-alt); color: var(--texto-muted);
  font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  white-space: nowrap;
}

/* ── Sidebar filtros ── */
.sidebar-filtros {
  background: var(--fondo-alt);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.filtro-grupo { margin-bottom: 22px; }
.filtro-titulo {
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--texto-muted); margin-bottom: 12px;
}
.filtro-opcion { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; cursor: pointer; font-size: .9rem; }
.filtro-opcion input[type='checkbox'] { accent-color: var(--rojo); width: 16px; height: 16px; }
.btn-aplicar {
  width: 100%; background: var(--rojo); color: #fff; border: none;
  padding: 10px; border-radius: var(--r-md);
  font-family: inherit; font-size: .9rem; font-weight: 700;
  cursor: pointer; margin-top: 8px; transition: background .2s;
}
.btn-aplicar:hover { background: var(--rojo-oscuro); }

/* ── Barra resultados ── */
.barra-resultados {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--borde);
}
.count-resultados { font-weight: 700; color: var(--texto); font-size: .95rem; }
.orden-select {
  padding: 6px 12px;
  border: 1.5px solid var(--borde);
  border-radius: var(--r-md);
  font-family: inherit; font-size: .85rem;
  color: var(--texto); background: var(--fondo);
  cursor: pointer;
}

/* ── FAQ acordeón ── */
.faq-lista { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--borde); }
.faq-item:first-child { border-top: 1px solid var(--borde); }
.faq-btn {
  width: 100%; background: none; border: none;
  text-align: left; padding: 17px 0;
  font-family: inherit; font-size: .98rem; font-weight: 600;
  color: var(--texto); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; line-height: 1.4;
}
.faq-btn::after { content: '+'; font-size: 1.5rem; color: var(--rojo); font-weight: 300; flex-shrink: 0; }
.faq-item.abierto .faq-btn::after { content: '−'; }
.faq-respuesta { display: none; padding: 0 0 17px; font-size: .92rem; color: var(--texto-muted); line-height: 1.8; }
.faq-item.abierto .faq-respuesta { display: block; }

/* ── Grid de estados ── */
.grid-estados {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.estado-card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  display: block;
}
.estado-card:hover {
  border-color: var(--rojo);
  box-shadow: var(--sombra-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.estado-flag { font-size: 2rem; margin-bottom: 8px; }
.estado-nombre { font-size: .9rem; font-weight: 700; color: var(--texto); margin-bottom: 4px; }
.estado-count { font-size: .78rem; color: var(--texto-muted); }
.estado-rating { font-size: .78rem; color: var(--verde); font-weight: 600; }

/* ── Cómo funciona ── */
.pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.paso-item { text-align: center; }
.paso-num {
  width: 52px; height: 52px;
  background: var(--rojo); color: #fff;
  border-radius: 50%; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.paso-titulo { font-size: 1rem; font-weight: 700; color: var(--texto); margin-bottom: 8px; }
.paso-desc { font-size: .88rem; color: var(--texto-muted); line-height: 1.6; }

/* ── Tratamientos cards ── */
.grid-tratamientos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 20px;
}
.tratamiento-card {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  text-decoration: none;
  transition: all .2s;
  display: block;
}
.tratamiento-card:hover {
  border-color: var(--rojo);
  box-shadow: var(--sombra-md);
  text-decoration: none;
}
.tratamiento-icon { font-size: 2rem; margin-bottom: 12px; }
.tratamiento-titulo { font-size: 1rem; font-weight: 700; color: var(--texto); margin-bottom: 8px; }
.tratamiento-desc { font-size: .88rem; color: var(--texto-muted); line-height: 1.6; margin: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--texto-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  border-bottom: 1px solid var(--borde);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--texto-muted); }
.breadcrumb a:hover { color: var(--rojo); }
.breadcrumb span { color: var(--texto); font-weight: 600; }

/* ── Section titles ── */
.seccion-titulo {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--texto);
  margin-bottom: 8px;
}
.seccion-subtitulo {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  color: var(--texto-muted);
  max-width: 600px;
  margin-bottom: 32px;
}
.seccion-titulo-blanco { color: #fff; }
.seccion-subtitulo-blanco { color: rgba(255,255,255,.8); }

/* ── CTA band ── */
.cta-band {
  background: var(--rojo);
  color: #fff;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
}
.cta-band h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.btn-cta {
  background: #fff;
  color: var(--rojo);
  border: none;
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  display: inline-block;
}
.btn-cta:hover { background: var(--rojo-palido); text-decoration: none; }

/* ── Paginación ── */
.paginacion { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.paginacion a, .paginacion span {
  padding: 8px 14px; border-radius: var(--r-md);
  font-size: .85rem; font-weight: 600;
  border: 1.5px solid var(--borde);
  color: var(--texto);
  text-decoration: none;
  transition: all .2s;
}
.paginacion a:hover { border-color: var(--rojo); color: var(--rojo); text-decoration: none; }
.paginacion .activa { background: var(--rojo); color: #fff; border-color: var(--rojo); }

/* ── Footer ── */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,.65);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h5 {
  font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--rojo); margin-bottom: 16px;
}
.footer-col p { font-size: .85rem; line-height: 1.7; max-width: 260px; margin: 0; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: .87rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

/* ── Fade-in animation ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ── Artículo de contenido ── */
.contenido-articulo { max-width: 780px; }
.contenido-articulo h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--texto);
  margin: 2rem 0 .75rem;
}
.contenido-articulo h3 { font-size: 1.1rem; font-weight: 700; color: var(--texto); margin: 1.5rem 0 .5rem; }
.contenido-articulo p { color: var(--texto-muted); }
.contenido-articulo ul li { color: var(--texto-muted); margin-bottom: .35rem; }
.respuesta-directa {
  background: var(--verde-palido);
  border-left: 4px solid var(--verde);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.respuesta-directa p { color: #065F46; margin: 0; font-size: 1.05rem; line-height: 1.7; }

/* ── Tabla de precios ── */
.tabla-precios {
  width: 100%; border-collapse: collapse;
  font-size: .9rem; margin-bottom: 24px;
}
.tabla-precios th {
  background: var(--rojo); color: #fff;
  padding: 12px 16px; text-align: left;
  font-weight: 700; font-size: .82rem; text-transform: uppercase;
}
.tabla-precios td { padding: 12px 16px; border-bottom: 1px solid var(--borde); }
.tabla-precios tr:hover td { background: var(--rojo-palido); }

/* ══════════════════════════════════════════════════════════════
   BARRA DE FILTROS HORIZONTAL — sticky, siempre visible
   ══════════════════════════════════════════════════════════════ */
.filtros-barra {
  position: sticky;
  top: 67px;        /* debajo del header (64px alto + 3px borde) */
  z-index: 90;
  background: var(--fondo);
  border-bottom: 2px solid var(--borde);
  padding: 10px 0;
  box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

/* fila scrollable en móvil */
.filtros-barra-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE */
  padding-bottom: 2px;            /* evita que box-shadow se corte */
}
.filtros-barra-inner::-webkit-scrollbar { display: none; }

/* ── Botón "Estados" ── */
.fbtn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border: 1.5px solid var(--borde);
  border-radius: var(--r-md);
  background: var(--fondo);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: var(--texto);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  line-height: 1;
}
.fbtn:hover            { border-color: var(--rojo); color: var(--rojo); }
.fbtn.fbtn--activo     { background: var(--rojo-palido); border-color: var(--rojo); color: var(--rojo); }
.fbtn .fbtn-badge {
  background: var(--rojo);
  color: #fff;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 700;
  padding: 1px 7px;
  line-height: 1.5;
}

/* ── Chip pill (rating / abierto ahora) ── */
.fchip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1.5px solid var(--borde);
  border-radius: 100px;
  background: var(--fondo);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  color: var(--texto-muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  line-height: 1;
}
.fchip:hover                { border-color: var(--naranja); color: var(--naranja); }
.fchip.fchip--activo        { background: var(--naranja); border-color: var(--naranja); color: #fff; }
.fchip.fchip--verde:hover   { border-color: var(--verde); color: var(--verde); }
.fchip.fchip--verde.fchip--activo { background: var(--verde); border-color: var(--verde); color: #fff; }

/* ── Separador vertical ── */
.fsep {
  flex-shrink: 0;
  width: 1px; height: 26px;
  background: var(--borde);
}

/* ── Select orden ── */
.forden {
  flex-shrink: 0;
  padding: 7px 12px;
  border: 1.5px solid var(--borde);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: .82rem;
  color: var(--texto);
  background: var(--fondo);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236B7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.forden:focus { outline: none; border-color: var(--rojo); }

/* ── Botón limpiar filtros ── */
.freset {
  flex-shrink: 0;
  margin-left: auto;
  display: none;                  /* JS lo muestra */
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border: 1.5px solid var(--borde);
  border-radius: 100px;
  background: var(--fondo);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  color: var(--texto-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.freset:hover           { border-color: var(--rojo); color: var(--rojo); }
.freset.freset--visible { display: inline-flex; }

/* ── Overlay / backdrop ── */
.fpanel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: transparent;
}
.fpanel-overlay.fpanel-overlay--visible { display: block; }

/* ── Panel flotante de estados (fixed, posicionado por JS) ── */
.fpanel {
  display: none;
  position: fixed;
  z-index: 510;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.16);
  padding: 18px 20px 20px;
  width: 480px;
  max-width: calc(100vw - 32px);
}
.fpanel.fpanel--visible { display: block; }

.fpanel-titulo {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--texto-muted);
  margin-bottom: 12px;
}
.fpanel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 2px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.fpanel-grid::-webkit-scrollbar { width: 4px; }
.fpanel-grid::-webkit-scrollbar-thumb { background: var(--borde); border-radius: 4px; }

.fpanel-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  font-size: .84rem;
  cursor: pointer;
  transition: background .1s;
  user-select: none;
}
.fpanel-grid label:hover { background: var(--fondo-alt); }
.fpanel-grid input[type='checkbox'] {
  accent-color: var(--rojo);
  width: 15px; height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}
.fpanel-grid .lbl-count { color: var(--texto-muted); font-size: .76rem; margin-left: auto; }

.fpanel-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--borde);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.fpanel-footer .f-limpiar {
  border: none; background: none;
  font-family: inherit; font-size: .83rem; font-weight: 600;
  color: var(--texto-muted); cursor: pointer; padding: 6px 10px;
  border-radius: var(--r-sm); transition: color .15s;
}
.fpanel-footer .f-limpiar:hover { color: var(--rojo); }
.fpanel-footer .f-aplicar {
  background: var(--rojo); color: #fff; border: none;
  padding: 9px 22px; border-radius: var(--r-md);
  font-family: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.fpanel-footer .f-aplicar:hover { background: var(--rojo-oscuro); }

@media (max-width: 600px) {
  .fsep { display: none; }
  .filtros-barra-inner { gap: 6px; }
  .fbtn, .fchip { font-size: .78rem; padding: 7px 11px; }
}

/* ── No results ── */
.no-resultados {
  text-align: center; padding: 60px 20px;
  color: var(--texto-muted);
}
.no-resultados .icon { font-size: 3rem; margin-bottom: 16px; }

/* ── Destacado badge ── */
.badge-destacado {
  background: var(--naranja); color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  position: absolute; top: 10px; right: 10px;
}
.listing-card { position: relative; }

/* ── Loading skeleton ── */
.skeleton { background: linear-gradient(90deg, var(--fondo-alt) 25%, var(--borde) 50%, var(--fondo-alt) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
