/* =========================================================================
   Propeka — Directorio profesional y perfiles públicos (fase 7)
   =========================================================================
   Instrucción del propietario: «propeka.gt as close as possible to
   propeka.com» (D-PAR-02, D-PAR-03; 2026-11-03).

   Hoja de página: se carga sólo en las vistas `directorio`
   (template/propeka-profesionales.php) y `perfil` (single-houzez_agency.php,
   single-houzez_agent.php), DESPUÉS de propeka-paridad.css
   (propeka-assets.php). Todo va bajo `:where(body.pk-publico)` y acotado a
   `.pk-directorio`, `.pk-perfil` o a la tarjeta `.pk-prof`, porque
   `.pk-dir-cab`, `.pk-dir-pestanas`, `.pk-vacio-caja`, `.pk-rejilla` y
   `.pk-paginacion` también los usan otras páginas (validate-source.ps1,
   comprobación 4c).

   Valores resueltos de propeka-site.css de EE. UU. (directorio de
   profesionales, perfil de agente y tarjeta `.pk-agent` de la portada).

   Orden: 1 migas · 2 cabecera del directorio · 3 buscador · 4 pestañas ·
          5 tarjeta profesional · 6 rejilla y paginación · 7 perfil: marco ·
          8 tarjeta de perfil y contacto · 9 secciones del perfil ·
          10 inventario del perfil
   ========================================================================= */

/* --- 1. Migas ------------------------------------------------------------ */
/* Casa en el primer paso, chevrons entre pasos, 13 px (12 en teléfonos),
   enlaces en el rojo de enlace y la página actual en gris. */
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas {
  gap: 6px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  color: var(--pk-txt-sec);
  font-size: 13px;
  line-height: 1.4;
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas li { gap: 6px; }
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pk-primario-osc);
  font-weight: 600;
  text-decoration: none;
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas a:hover {
  color: var(--pk-accion-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas .pk-icono {
  width: 15px;
  height: 15px;
  flex: none;
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas li + li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background: var(--pk-n400);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas [aria-current] {
  color: var(--pk-txt-sec);
  font-weight: 500;
}

/* --- 2. Cabecera del directorio ------------------------------------------ */
:where(body.pk-publico) .pk-directorio {
  padding-bottom: 72px;
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-directorio .pk-dir-cab { padding: 0 0 12px; }
:where(body.pk-publico) .pk-directorio .pk-dir-cab__titulo {
  margin: 6px 0 0;
  color: var(--pk-tinta);
  font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.12;
  text-wrap: balance;
}
/* La entrada de Guatemala se conserva como entradilla en gris (propeka.com
   no tiene ninguna). */
:where(body.pk-publico) .pk-directorio .pk-dir-cab__sub {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--pk-txt-sec);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- 3. Buscador por nombre ---------------------------------------------- */
:where(body.pk-publico) .pk-dir-buscar {
  display: flex;
  gap: 8px;
  margin: 4px 0 28px;
}
:where(body.pk-publico) .pk-dir-buscar .pk-campo {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  border-radius: 10px;
}
:where(body.pk-publico) .pk-dir-buscar .pk-btn {
  flex: none;
  min-height: 46px;
  border-radius: 10px;
}

/* --- 4. Pestañas Inmobiliarias / Agentes --------------------------------- */
/* Píldoras como los filtros de propeka.com; sólo en el directorio. Las
   pestañas subrayadas de Mis anuncios y la cuenta (propeka-sitio.css) no
   cambian. */
:where(body.pk-publico) .pk-directorio .pk-dir-pestanas {
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  border-bottom: 0;
}
:where(body.pk-publico) .pk-directorio .pk-dir-pestana {
  min-height: 36px;
  padding: 0 14px;
  gap: 8px;
  border: 1px solid var(--pk-n200);
  border-radius: 999px;
  background: var(--pk-n0);
  color: var(--pk-tinta);
  font-size: .875rem;
  font-weight: 600;
  transition: border-color var(--pk-t), background-color var(--pk-t), color var(--pk-t);
}
:where(body.pk-publico) .pk-directorio .pk-dir-pestana:hover {
  border-color: var(--pk-tinta);
  color: var(--pk-tinta);
}
:where(body.pk-publico) .pk-directorio .pk-dir-pestana--activa,
:where(body.pk-publico) .pk-directorio .pk-dir-pestana--activa:hover {
  border-color: var(--pk-tinta);
  background: var(--pk-tinta);
  color: #fff;
}
:where(body.pk-publico) .pk-directorio .pk-dir-pestana__n {
  height: 20px;
  padding-inline: 7px;
  background: var(--pk-n50);
  color: var(--pk-txt-sec);
}
:where(body.pk-publico) .pk-directorio .pk-dir-pestana--activa .pk-dir-pestana__n {
  background: rgba(255, 255, 255, .18);
  color: #fff;
}
@media (pointer: coarse) {
  :where(body.pk-publico) .pk-directorio .pk-dir-pestana { min-height: 44px; }
}

/* --- 5. Tarjeta profesional (`template-parts/propeka/profesional.php`) --- */
/* Compartida con el «Equipo» del perfil y, cuando exista, con la banda de
   profesionales de la portada. Si la portada la usa, este bloque debe vivir
   también donde cargue esa página (propeka-paridad.css). */
:where(body.pk-publico) .pk-prof {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 26px 22px 22px;
  border: 1px solid var(--pk-linea);
  border-radius: 14px;
  background: var(--pk-n0);
  box-shadow: var(--pk-s1);
  text-align: center;
  transition: border-color var(--pk-t), box-shadow var(--pk-t);
}
:where(body.pk-publico) .pk-prof:hover {
  border-color: var(--pk-n200);
  box-shadow: var(--pk-s3);
}
:where(body.pk-publico) .pk-prof__foto {
  display: block;
  width: 132px;
  height: 132px;
  flex: none;
  margin: 0 auto 6px;
  border: 4px solid var(--pk-n50);
  border-radius: 50%;
  background: var(--pk-n0);
  object-fit: cover;
  object-position: center top;
}
/* Un logotipo de inmobiliaria no se recorta: entero y con aire. */
:where(body.pk-publico) .pk-prof__foto--logo {
  padding: 14px;
  object-fit: contain;
  object-position: center;
}
:where(body.pk-publico) .pk-prof__foto--inicial {
  display: grid;
  place-items: center;
  background: var(--pk-n100);
  color: var(--pk-tinta);
  font-size: 1.5rem;
  font-weight: 800;
}
:where(body.pk-publico) .pk-prof__nombre {
  margin: 0;
  color: var(--pk-tinta);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
}
:where(body.pk-publico) .pk-prof__enlace {
  color: var(--pk-tinta);
  text-decoration: none;
}
/* Toda la tarjeta lleva al perfil. */
:where(body.pk-publico) .pk-prof__enlace::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
:where(body.pk-publico) .pk-prof:hover .pk-prof__enlace,
:where(body.pk-publico) .pk-prof__enlace:focus-visible { color: var(--pk-primario-osc); }
:where(body.pk-publico) .pk-prof__tipo {
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: .875rem;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-prof__lugar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: .9375rem;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-prof__lugar .pk-icono {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--pk-txt-ter);
}
:where(body.pk-publico) .pk-prof__inv {
  margin: 0;
  color: var(--pk-txt-ter);
  font-size: .8125rem;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-prof__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 8px 18px;
  border: 1px solid var(--pk-n200);
  border-radius: 8px;
  color: var(--pk-primario-osc);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color var(--pk-t), border-color var(--pk-t), color var(--pk-t);
}
/* El aire entre el texto y «Ver perfil» (12 px) va antes del botón, que se
   apoya en el borde inferior para que las tarjetas de una fila coincidan. */
:where(body.pk-publico) .pk-prof > :nth-last-child(2) { margin-bottom: 8px; }
:where(body.pk-publico) .pk-prof:hover .pk-prof__cta,
:where(body.pk-publico) .pk-prof__cta:hover,
:where(body.pk-publico) .pk-prof__cta:focus-visible {
  border-color: var(--pk-primario);
  background: var(--pk-primario);
  color: #fff;
}
@media (pointer: coarse) {
  :where(body.pk-publico) .pk-prof__cta { min-height: 44px; }
}

/* Variante pequeña para el «Equipo» de una inmobiliaria. */
:where(body.pk-publico) .pk-prof--equipo { padding: 20px 16px 18px; }
:where(body.pk-publico) .pk-prof--equipo .pk-prof__foto {
  width: 96px;
  height: 96px;
}
:where(body.pk-publico) .pk-prof--equipo .pk-prof__nombre { font-size: 1rem; }

/* --- 6. Rejilla y paginación del directorio ------------------------------ */
:where(body.pk-publico) .pk-directorio .pk-dir-rejilla {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-directorio .pk-dir-rejilla > li { display: flex; min-width: 0; }
:where(body.pk-publico) .pk-directorio .pk-dir-rejilla > li > .pk-prof { flex: 1 1 auto; }

:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion { margin-top: 36px; }
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion :is(a, span) { margin: 0 3px; color: var(--pk-tinta); }
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion a:hover {
  border-color: var(--pk-tinta);
  background: var(--pk-n50);
  color: var(--pk-tinta);
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion [aria-current="page"] { color: #fff; }

@media (max-width: 991.98px) {
  :where(body.pk-publico) .pk-directorio .pk-dir-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas { font-size: 12px; }
}
@media (max-width: 575.98px) {
  :where(body.pk-publico) .pk-directorio .pk-dir-rejilla { grid-template-columns: minmax(0, 1fr); }
  :where(body.pk-publico) .pk-dir-buscar { flex-direction: column; }
  :where(body.pk-publico) .pk-dir-buscar .pk-btn { width: 100%; }
}

/* --- 7. Perfil: marco ---------------------------------------------------- */
:where(body.pk-publico) .pk-perfil {
  padding: 28px 0 72px;
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-perfil .pk-migas {
  margin-bottom: 16px;
  padding-top: 0;
}

/* --- 8. Tarjeta de perfil y contacto ------------------------------------- */
/* Foto o logotipo a la izquierda (25 %), y a la derecha nombre, línea de
   identidad y, bajo el filete, las acciones de contacto a todo ancho. Sin
   rail adherido (D-PAR-03). */
:where(body.pk-publico) .pk-perfil-tarjeta {
  display: grid;
  grid-template-columns: 25% minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid var(--pk-linea);
  border-radius: 16px;
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-perfil-tarjeta__foto img,
:where(body.pk-publico) .pk-perfil-tarjeta__inicial {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 14px;
  object-fit: cover;
  object-position: center top;
}
:where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__foto img {
  max-width: 220px;
  padding: 16px;
  border: 1px solid var(--pk-n100);
  object-fit: contain;
  object-position: center;
}
:where(body.pk-publico) .pk-perfil-tarjeta__inicial {
  display: grid;
  place-items: center;
  max-width: 220px;
  background: var(--pk-n100);
  color: var(--pk-tinta);
  font-size: 2.5rem;
  font-weight: 800;
}
:where(body.pk-publico) .pk-perfil-tarjeta__cuerpo { min-width: 0; }
:where(body.pk-publico) .pk-perfil-tarjeta__cab {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pk-linea);
}
:where(body.pk-publico) .pk-perfil-tarjeta__nombre {
  margin: 0;
  color: var(--pk-tinta);
  font-size: clamp(1.625rem, 1.2rem + 1.1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
:where(body.pk-publico) .pk-perfil-tarjeta__meta {
  margin: 6px 0 0;
  color: var(--pk-txt-sec);
  font-size: .9375rem;
  line-height: 1.5;
}
:where(body.pk-publico) .pk-perfil-tarjeta__enlaces {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 8px 0 0;
}
:where(body.pk-publico) .pk-perfil-tarjeta__enlaces a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  color: var(--pk-primario-osc);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
}
:where(body.pk-publico) .pk-perfil-tarjeta__enlaces a:hover {
  color: var(--pk-accion-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-perfil-tarjeta__enlaces .pk-icono { width: 16px; height: 16px; flex: none; }
:where(body.pk-publico) .pk-perfil-tarjeta__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
:where(body.pk-publico) .pk-perfil-tarjeta__acciones .pk-btn { min-height: 48px; }
:where(body.pk-publico) .pk-perfil-tarjeta__acciones .pk-icono {
  width: 18px;
  height: 18px;
  flex: none;
}
/* El número a la vista desde 768; en teléfonos, «Llamar». */
:where(body.pk-publico) .pk-perfil-tarjeta__tel-texto { display: none; }
:where(body.pk-publico) .pk-perfil-tarjeta__nota {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background: var(--pk-n50);
  color: var(--pk-txt-sec);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-perfil-tarjeta {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__foto img,
  :where(body.pk-publico) .pk-perfil-tarjeta__inicial { max-width: 160px; }
  :where(body.pk-publico) .pk-perfil-tarjeta__tel-numero { display: none; }
  :where(body.pk-publico) .pk-perfil-tarjeta__tel-texto { display: inline; }
}
@media (max-width: 575.98px) {
  :where(body.pk-publico) .pk-perfil-tarjeta__acciones .pk-btn { flex: 1 1 100%; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia {
    grid-template-columns: clamp(64px, 18vw, 72px) minmax(0, 1fr);
    gap: 14px 12px;
  }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__foto img { padding: 6px; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__cuerpo { display: contents; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__cab {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__nombre {
    font-size: clamp(1.375rem, 6.15vw, 1.5rem);
  }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia :is(.pk-perfil-tarjeta__acciones, .pk-perfil-tarjeta__nota) { grid-column: 1 / -1; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__acciones {
    padding-top: 14px;
    border-top: 1px solid var(--pk-linea);
  }
}

/* --- 9. Secciones del perfil --------------------------------------------- */
:where(body.pk-publico) .pk-perfil .pk-bloque { margin-top: 32px; }
:where(body.pk-publico) .pk-perfil .pk-bloque__t {
  margin: 0 0 16px;
  color: var(--pk-tinta);
  font-weight: 700;
  letter-spacing: -.01em;
}
:where(body.pk-publico) .pk-perfil .pk-prosa {
  max-width: 72ch;
  color: var(--pk-txt);
  font-size: 1rem;
  line-height: 1.7;
}

/* «Zonas donde opera»: píldoras blancas con filete n200. */
:where(body.pk-publico) .pk-perfil .pk-amenidad--zona {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--pk-n200);
  background: var(--pk-n0);
  color: var(--pk-tinta);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--pk-t);
}
:where(body.pk-publico) .pk-perfil .pk-amenidad--zona:hover { border-color: var(--pk-tinta); }
:where(body.pk-publico) .pk-perfil .pk-amenidad--zona .pk-icono { color: var(--pk-txt-ter); }
@media (pointer: coarse) {
  :where(body.pk-publico) .pk-perfil .pk-amenidad--zona { min-height: 44px; }
}

/* «Equipo»: tarjetas profesionales pequeñas. */
:where(body.pk-publico) .pk-perfil .pk-equipo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-perfil .pk-equipo > li { display: flex; min-width: 0; }
:where(body.pk-publico) .pk-perfil .pk-equipo > li > .pk-prof { flex: 1 1 auto; }

/* --- 10. Inventario del perfil ------------------------------------------- */
:where(body.pk-publico) .pk-perfil .pk-bloque__t--listado {
  margin: 0 0 20px;
  font-size: clamp(1.375rem, 1.15rem + .6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  scroll-margin-top: 96px;
}
:where(body.pk-publico.admin-bar) .pk-perfil .pk-bloque__t--listado { scroll-margin-top: 132px; }
:where(body.pk-publico) .pk-perfil .pk-rejilla {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-perfil .pk-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-perfil .pk-rejilla { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
   PGT-55 (2026-11-16): design, UX and UI pass with control-level inspection,
   same method as propeka.com PKUSW-85. One block per finding id.
   ========================================================================= */

/* ---- PGT-55 agencies ---- */
/* PGT-55 PRO-GT-02: "Buscar" takes the button red (#c50021, hover #a3001b) and the 46 px height of its field. The legacy rule for every submit button in propeka-sitio.css (body.pk-sitio button[type="submit"]) scores (0,2,2) and painted it #ed0028 at 44 px, darkening only to #c50021 on hover. The class and attribute chain below scores (0,4,1); the body class stays inside :where() (source gate 4c). */
:where(body.pk-publico) .pk-dir-buscar button.pk-btn.pk-btn--primario[type="submit"] {
  min-height: 46px;
  padding: 0 22px;
  border-color: var(--pk-accion);
  background: var(--pk-accion);
  font-size: 15px;
  font-weight: 700;
}
:where(body.pk-publico) .pk-dir-buscar button.pk-btn.pk-btn--primario[type="submit"]:hover,
:where(body.pk-publico) .pk-dir-buscar button.pk-btn.pk-btn--primario[type="submit"]:focus-visible {
  border-color: var(--pk-accion-hover);
  background: var(--pk-accion-hover);
}

/* PGT-55 PRO-GT-03: the search field matches its button and the propeka.com field: 46 px, 10 px corners, the light n200 border, a drawn magnifier, and an ink border on focus instead of navy. The legacy input rules in propeka-sitio.css (body.pk-sitio input[type="search"], body.pk-sitio input:focus) score (0,2,2); input.pk-campo[type="search"] under the form scores (0,3,1), and (0,4,1) with :focus. */
:where(body.pk-publico) .pk-dir-buscar input.pk-campo[type="search"] {
  height: 46px;
  min-height: 46px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background: var(--pk-n0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7b8c' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") 14px center / 18px 18px no-repeat;
  color: var(--pk-tinta);
  font-size: 15px;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-dir-buscar input.pk-campo[type="search"]:focus {
  border-color: var(--pk-tinta);
  box-shadow: var(--pk-foco);
}
/* The clear control shown once a name is typed is drawn in the same grey and stroke as the magnifier (it was the browser's own small cross). */
:where(body.pk-publico) .pk-dir-buscar input.pk-campo[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 0 0 8px;
  background-color: var(--pk-n500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  cursor: pointer;
}
@media (max-width: 767.98px) {
  /* 16 px so iOS does not zoom the page when the field takes focus. */
  :where(body.pk-publico) .pk-dir-buscar input.pk-campo[type="search"] { font-size: 16px; }
}

/* PGT-55 PRO-GT-11: phones keep field and button on one row (the stacked form put a full-width red bar above the results and cost 52 px). PGT-55 follow-up 2026-11-18 PRO-GT-11: 320 px too; the placeholder was measured to fit there (144.5 px of text in a 145.6 px field, 149.6 px with the narrower button below 360 px), so the stacked form below 360 px is gone. */
@media (max-width: 575.98px) {
  :where(body.pk-publico) .pk-dir-buscar { flex-direction: row; }
  :where(body.pk-publico) .pk-dir-buscar button.pk-btn.pk-btn--primario[type="submit"] {
    width: auto;
    padding: 0 16px;
  }
}

/* PGT-55 PRO-GT-16: a one-digit tab count is a true 20 px circle; longer counts grow as pills. */
:where(body.pk-publico) .pk-directorio .pk-dir-pestana__n {
  justify-content: center;
  min-width: 20px;
  padding-inline: 5px;
}

/* PGT-55 PRO-GT-15: breadcrumb as on propeka.com (port of PKUSW-85c detail-09 and PRO-05): the house is a quiet 16 px lead-in in the icon grey, links are medium weight, and the trail keeps clear space before the title and the profile card. */
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas a { font-weight: 500; }
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-migas .pk-icono {
  width: 16px;
  height: 16px;
  color: var(--pk-n500);
}
:where(body.pk-publico) .pk-directorio .pk-dir-cab__titulo { margin-top: 18px; }
:where(body.pk-publico) .pk-perfil .pk-migas { margin-bottom: 24px; }

/* PGT-55 PRO-GT-07: phone profile trail on one line (port of PKUSW-85 L12). The current page is the H1 directly below, so the trail ends at its parent; the remaining labels are fixed template strings that fit from 320 px. */
@media (max-width: 479.98px) {
  :where(body.pk-publico) .pk-perfil .pk-migas {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  :where(body.pk-publico) .pk-perfil .pk-migas li { flex: none; }
  :where(body.pk-publico) .pk-perfil .pk-migas li:last-child:not(:nth-child(-n+2)) { display: none; }
}

/* PGT-55 PRO-GT-12: the name link is plain inline text again. A phone rule for an older card in propeka.css (.pk-prof__enlace, padding 16 px, max-width 767.98px) made its box 208 x 55 px, so the focus outline crossed the logo and the type line and long names wrapped 32 px early. Keyboard focus is drawn around the whole card, which is the link's real target (port of PKUSW-85 PRO-02). */
:where(body.pk-publico) .pk-prof .pk-prof__enlace {
  padding: 0;
  gap: 0;
}
:where(body.pk-publico) .pk-prof .pk-prof__enlace::after { border-radius: 14px; }
:where(body.pk-publico) .pk-prof .pk-prof__enlace:focus-visible { outline: 0; }
:where(body.pk-publico) .pk-prof .pk-prof__enlace:focus-visible::after { box-shadow: 0 0 0 3px var(--pk-enlace); }

/* PGT-55 PRO-GT-06: card anatomy as on propeka.com (ports of PKUSW-85 PRO-07, PRO-03, PRO-C2, PRO-C3): a full-width 44 px profile button with the 10 px corner of every other button, the inventory count as a chip, a crisp hairline ring with a white gap around portraits, type and place in one size, and the button red (not the badge red) on hover. */
:where(body.pk-publico) .pk-prof__cta {
  align-self: stretch;
  min-height: 44px;
  border-radius: 10px;
}
:where(body.pk-publico) .pk-prof:hover .pk-prof__cta,
:where(body.pk-publico) .pk-prof__cta:hover,
:where(body.pk-publico) .pk-prof__cta:focus-visible {
  border-color: var(--pk-accion);
  background: var(--pk-accion);
}
:where(body.pk-publico) .pk-prof__inv {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--pk-n50);
  color: var(--pk-tinta);
  font-weight: 600;
}
:where(body.pk-publico) .pk-prof__lugar { font-size: .875rem; }
:where(body.pk-publico) .pk-prof__foto {
  padding: 3px;
  border: 1px solid var(--pk-n200);
}
:where(body.pk-publico) .pk-prof__foto--inicial { padding: 0; }

/* PGT-55 PRO-GT-14: an agency logo sits whole in a rounded square, as in the profile hero. The 50 % radius clipped the square file to a disc, so a square mark lost its four corners. Portraits and initials keep the circle. */
:where(body.pk-publico) .pk-prof__foto--logo {
  padding: 12px;
  border-radius: 16px;
}

/* PGT-55 PRO-GT-01: directory on phones, one compact row per professional (port of PKUSW-85 PRO-02 and PRO-C4): logo or portrait at the left, name, type, place and the count chip in the middle, a drawn chevron at the right. Type and place stay on their own lines because the Spanish labels do not fit side by side. The profile link keeps its accessible name and is drawn as the chevron; the whole row is the target through the name link. */
@media (max-width: 575.98px) {
  :where(body.pk-publico) .pk-directorio .pk-dir-rejilla { gap: 12px; }
  :where(body.pk-publico) .pk-directorio .pk-prof {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 16px;
    align-content: center;
    align-items: start;
    justify-items: start;
    gap: 0 14px;
    padding: 14px 16px;
    text-align: left;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof > * { grid-column: 2; }
  :where(body.pk-publico) .pk-directorio .pk-prof > :nth-last-child(2) { margin-bottom: 0; }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__foto {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
    width: 64px;
    height: 64px;
    margin: 0;
    padding: 2px;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__foto--logo {
    padding: 6px;
    border-radius: 12px;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__foto--inicial {
    padding: 0;
    font-size: 1.125rem;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof .pk-prof__nombre {
    font-size: 1.0625rem;
    overflow-wrap: anywhere;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__cta,
  :where(body.pk-publico) .pk-directorio .pk-prof:hover > .pk-prof__cta,
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__cta:focus-visible {
    grid-column: 3;
    grid-row: 1 / span 4;
    align-self: center;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: none;
    font-size: 0;
    line-height: 0;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__cta::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-color: var(--pk-n500);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3.5 10.5 8 6 12.5'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
    transition: background-color var(--pk-t);
  }
  :where(body.pk-publico) .pk-directorio .pk-prof:hover > .pk-prof__cta::before { background-color: var(--pk-accion); }
}
/* PGT-55 PRO-GT-01: narrow phones. Below 375 px the logo is 56 px so the longest count chip ("Sin propiedades publicadas") still fits on one line; below 360 px the chevron column is given to the text as well (the name link already carries the row and the same destination). */
@media (max-width: 374.98px) {
  :where(body.pk-publico) .pk-directorio .pk-prof {
    grid-template-columns: 56px minmax(0, 1fr) 16px;
    column-gap: 12px;
  }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__foto {
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-directorio .pk-prof { grid-template-columns: 56px minmax(0, 1fr); }
  :where(body.pk-publico) .pk-directorio .pk-prof > .pk-prof__cta { display: none; }
  :where(body.pk-publico) .pk-directorio .pk-prof .pk-prof__inv { font-size: .75rem; }
}

/* PGT-55 PRO-GT-04: profile hero from 768 px (port of PKUSW-85 PRO-04): the logo or portrait is 160 px (120 px on tablets) in a column of its own width, so the text starts 24 px after it and runs to the card edge. The 25 % column left an 89 px dead gutter beside a 220 px logo block. */
@media (min-width: 768px) {
  :where(body.pk-publico) .pk-perfil-tarjeta { grid-template-columns: auto minmax(0, 1fr); }
  :where(body.pk-publico) .pk-perfil-tarjeta__foto img,
  :where(body.pk-publico) .pk-perfil-tarjeta__inicial { width: 160px; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__foto img { padding: 12px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-perfil-tarjeta__foto img,
  :where(body.pk-publico) .pk-perfil-tarjeta__inicial { width: 120px; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__foto img { padding: 10px; }
}

/* PGT-55 PRO-GT-10: tablet profile with three contact actions: the buttons fill each row to the column edges (two and one) instead of leaving a short lone button with a ragged right edge. One or two actions fit on one row and keep their own width. */
@media (min-width: 576px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-perfil-tarjeta__acciones:has(> .pk-btn:nth-child(3)) .pk-btn { flex: 1 1 auto; }
}

/* PGT-55 PRO-GT-13: phone hero of an agency. The two text links share one full-width row under the name block (they were two 24 px lines 4 px apart in the narrow text column, and the first broke in two at 320 px), and on touch screens each is a 44 px target. The arrow is drawn at the weight of the bold label. Row gaps become margins because the name, the address line and the links are now separate rows of the card grid. */
:where(body.pk-publico) .pk-perfil-tarjeta__enlaces .pk-icono { stroke-width: 2; }
@media (max-width: 575.98px) {
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia { row-gap: 0; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__cab { display: contents; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__foto { grid-row: 1 / span 2; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia :is(.pk-perfil-tarjeta__nombre, .pk-perfil-tarjeta__meta) { grid-column: 2; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__enlaces {
    grid-column: 1 / -1;
    gap: 0 16px;
    margin-top: 10px;
  }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__enlaces a { font-size: .875rem; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia :is(.pk-perfil-tarjeta__acciones, .pk-perfil-tarjeta__nota) { margin-top: 14px; }
}
@media (max-width: 575.98px) and (pointer: coarse) {
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__enlaces { margin-top: 0; }
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__enlaces a { min-height: 44px; }
  /* The 44 px link row already carries its own air above the divider. */
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__cab:has(> .pk-perfil-tarjeta__enlaces) + :is(.pk-perfil-tarjeta__acciones, .pk-perfil-tarjeta__nota) { margin-top: 2px; }
}

/* PGT-55 PRO-GT-08: one heading size for the three profile sections (the first two were 24 px beside a 27 px listing heading) and the propeka.com rhythm of 48 px between sections from 768 px (port of PKUSW-85 PRO-05). Phones keep 32 px. */
:where(body.pk-publico) .pk-perfil .pk-bloque__t {
  font-size: clamp(1.375rem, 1.15rem + .6vw, 1.75rem);
  letter-spacing: -.015em;
  line-height: 1.25;
}
@media (min-width: 768px) {
  :where(body.pk-publico) .pk-perfil .pk-bloque { margin-top: 48px; }
}

/* PGT-55 PRO-GT-05: on a profile, a card whose "Publicado por" row names the profile's own owner (a link to the page you are on) does not repeat it (port of PKUSW-85 PRO-09). An agency profile lists by fave_property_agency and agencies live under /inmobiliarias/; an agent profile lists by fave_property_agent and agents live under /agente-inmobiliario/, so a row that links to the same kind of profile is this profile. A row that names someone else (the agent of an agency listing, the agency of an agent listing) stays. The shared card template is unchanged. */
:where(body.pk-publico.single-houzez_agency) .pk-perfil .pk-perfil__listado .pk-anunciante:has(a.pk-anunciante__n[href*="/inmobiliarias/"]),
:where(body.pk-publico.single-houzez_agent) .pk-perfil .pk-perfil__listado .pk-anunciante:has(a.pk-anunciante__n[href*="/agente-inmobiliario/"]) { display: none; }

/* PGT-55 PRO-GT-09: pagination squares sit 6 px apart and are 44 px targets on touch screens and phones (port of PKUSW-85 S12). The next and previous arrows need the template change recorded with this finding. */
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion { gap: 6px; }
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion :is(a, span) { margin: 0; }
@media (pointer: coarse), (max-width: 767.98px) {
  :where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion :is(a, span) {
    min-width: 44px;
    height: 44px;
  }
}

/* PGT-55 PRO-GT-09 (template part): the directory and the agency inventory now print "previous" and "next" with the chevron of the results pagination; the chevron of "previous" is the same drawing, mirrored. A direction with no destination is not printed. */
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion__flecha .pk-icono {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion__flecha--prev .pk-icono { transform: scaleX(-1); }

/* PGT-55 PRO-GT-13 (template part): "Sitio web" opens another site in a new tab and now carries the up-right arrow, drawn at the weight of its bold label. */
:where(body.pk-publico) .pk-perfil .pk-perfil-tarjeta__enlaces a[target="_blank"] .pk-icono {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

/* =========================================================================
   PGT-55 follow-up 2026-11-18: PRO-GT-04, PRO-GT-09, PRO-GT-11 (rule above,
   in place), PRO-GT-13 at 320 px and the orphan count of the listing heading
   at 320 px. Live recheck of the same day.
   ========================================================================= */

/* PGT-55 follow-up 2026-11-18 PRO-GT-04: desktop profile hero at the height of its 160 px logo, as on propeka.com (214 px). The identity line and the two text links share one row (the links drop to a second row only when a long address needs the width), so the text column is 159 px instead of 190 px; the name, the divider and the 48 px buttons keep their size. */
@media (min-width: 1024px) {
  :where(body.pk-publico) .pk-perfil-tarjeta__cab {
    display: flex; /* PRO-GT-04 */
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 20px;
  }
  :where(body.pk-publico) .pk-perfil-tarjeta__cab > .pk-perfil-tarjeta__nombre { flex: 0 0 100%; } /* PRO-GT-04 */
  :where(body.pk-publico) .pk-perfil-tarjeta__cab > .pk-perfil-tarjeta__enlaces { margin-top: 6px; } /* PRO-GT-04: same top as the identity line it now sits beside */
}

/* PGT-55 follow-up 2026-11-18 PRO-GT-04: from 1200 px "Zonas donde opera" sits to the right of the biography, in the space its 72ch measure leaves empty, so the listing heading and the top of the first row of cards are in the first 1440 x 900 screen. The wrapper is printed only when both sections exist (perfil.php); below 1200 px it is a plain block and the section margins pass through it unchanged. */
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-perfil .pk-perfil__intro {
    display: grid; /* PRO-GT-04 */
    grid-template-columns: minmax(0, 72ch) minmax(0, 1fr);
    column-gap: 48px;
    align-items: start;
    margin-top: 48px;
  }
  :where(body.pk-publico) .pk-perfil .pk-perfil__intro > .pk-bloque { margin-top: 0; } /* PRO-GT-04: the wrapper carries the 48 px section gap */
}

/* PGT-55 follow-up 2026-11-18 PRO-GT-09: the previous and next arrows are squares the size of the numbers (42 x 42 from 768 px, 44 x 44 on phones and touch screens). The base padding of 12 px each side made the arrow box 44 x 42 beside 42 x 42 numbers. */
:where(body.pk-publico) :is(.pk-directorio, .pk-perfil) .pk-paginacion .pk-paginacion__flecha { padding: 0; } /* PRO-GT-09 */

/* PGT-55 follow-up 2026-11-18 PRO-GT-11: below 360 px the one-row field needs all of its width for the placeholder. The clear control is invisible while the field is empty but still kept 24 px of it, which cut "Buscar por nombre" to "Buscar por nomb" at 320 px; it now takes no room until a name is typed, and the button is 4 px narrower, so 149.6 px are free for the 144.5 px placeholder. */
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-dir-buscar button.pk-btn.pk-btn--primario[type="submit"] { padding: 0 14px; } /* PRO-GT-11 */
  :where(body.pk-publico) .pk-dir-buscar input.pk-campo[type="search"]:placeholder-shown::-webkit-search-cancel-button { display: none; } /* PRO-GT-11 */
}

/* PGT-55 follow-up 2026-11-18 PRO-GT-13: below 360 px "Ver propiedades publicadas" and "Sitio web" need 291 px and the card gives 258 px at 320, so "Sitio web" wraps under the first link, left aligned with no row gap, and on touch screens the rows are 36 px (two 44 px rows left a 30 px hole between the labels). Each target stays the full label wide. The row still wraps rather than being forced into a column, so where both fit (about 353 to 359 px) they keep sharing one row (review 2026-11-18: a forced column made the 359 px hero 28 px taller than live). */
@media (max-width: 359.98px) and (pointer: coarse) {
  :where(body.pk-publico) .pk-perfil-tarjeta--agencia .pk-perfil-tarjeta__enlaces a { min-height: 36px; } /* PRO-GT-13 */
}

/* PGT-55 follow-up 2026-11-18 (new, 320 px): the listing heading breaks into balanced lines, so the count stays with the word before it ("Propiedades / publicadas (45)" instead of "(45)" alone on the second line), as detail-18 did on the listing page. One line from 375 px is unchanged. */
:where(body.pk-publico) .pk-perfil .pk-bloque__t--listado { text-wrap: balance; } /* new defect, 320 px */
