/* =========================================================================
   Propeka — Portada con la composición de propeka.com (D-PAR, fase 2)
   =========================================================================
   Instrucción del propietario: «propeka.gt as close as possible to
   propeka.com». Se carga solo en la portada (vista `portada`), después de
   `propeka-paridad.css` (propeka-assets.php), y gana los empates por orden.

   Valores RESUELTOS de la cascada final de propeka-site.css de EE. UU.
   (Home v6 3009-3720, pulido v7 3836-4030, móvil 4120-4290, W11/W12
   5505-5960, R2 6265-6560, tipos 6850-6880), no su historia por capas. Los
   nombres de clase son los de EE. UU. para las secciones que Guatemala no
   tenía (`.pk-hero--photo`, `.pk-search*`, `.pk-segmented`, `.pk-strip*`,
   `.pk-city*`, `.pk-types`, `.pk-publish`, `.pk-benefit*`); la tarjeta de
   propiedad es la única de Guatemala (`.pk-tarjeta`, propeka.css) y la de
   profesional es `.pk-prof--tarjeta` (template-parts/propeka/profesional.php).

   Todo va bajo `:where(body.pk-publico)`, que no suma especificidad
   (validate-source.ps1, comprobación 4c).

   Orden: 1 marco · 2 héroe · 3 buscador · 4 franja · 5 destacadas y anuncio ·
          6 zonas · 7 tipos · 8 banda de publicación · 9 profesionales ·
          10 estado vacío · 11 teléfono · 12 movimiento reducido
   ========================================================================= */

/* --- 1. Marco ----------------------------------------------------------- */
:where(body.pk-publico) .pk-home { background: var(--pk-n0); }

/* El prefijo oculto del h1 no depende de la hoja de bloques de WordPress. */
:where(body.pk-publico) .pk-home .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* --- 2. Héroe ----------------------------------------------------------- */
/* A sangre, sobre tinta. `overflow: visible` para que la lista de
   ubicaciones no se corte a media altura (W12-V-003); la foto conserva su
   propio recorte. */
:where(body.pk-publico) .pk-home .pk-hero--photo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 660px;
  overflow: visible;
  background: var(--pk-tinta);
  color: #fff;
  isolation: isolate;
}
:where(body.pk-publico) .pk-home .pk-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
:where(body.pk-publico) .pk-home .pk-hero__media img {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 76% 58%;
}
:where(body.pk-publico) .pk-home .pk-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(13, 35, 56, .9) 0%, rgba(13, 35, 56, .7) 32%, rgba(13, 35, 56, .28) 60%, rgba(13, 35, 56, .06) 100%);
}
:where(body.pk-publico) .pk-home .pk-hero__media::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 45%;
  background: linear-gradient(180deg, rgba(13, 35, 56, 0) 0%, rgba(13, 35, 56, .5) 100%);
}
:where(body.pk-publico) .pk-home .pk-hero__inner {
  position: relative;
  display: block;
  padding-block: 72px;
}
:where(body.pk-publico) .pk-home .pk-hero__copy { max-width: 660px; }
:where(body.pk-publico) .pk-home .pk-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.06;
  text-wrap: balance;
}
:where(body.pk-publico) .pk-home .pk-hero__lead {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* --- 3. Buscador -------------------------------------------------------- */
/* 2026-11-10: con 1000 px el precio dejaba 121 px de texto y sus rangos piden
   hasta 216 («US$2,000 – US$3,500/mes»); los cuatro campos necesitan ~855 px
   y solo había 813. Con 1100 caben sin recortar el valor elegido. */
:where(body.pk-publico) .pk-home .pk-search {
  max-width: 1100px;
  margin-top: 30px;
}

/* Comprar / Alquilar: un conmutador segmentado de vidrio. Publicar y el mapa
   son destinos, así que van como enlaces al lado, no como pestañas. */
:where(body.pk-publico) .pk-home .pk-search__intent-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  margin-bottom: 12px;
}
:where(body.pk-publico) .pk-home .pk-segmented {
  display: inline-flex;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: rgba(13, 35, 56, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
:where(body.pk-publico) .pk-home .pk-segmented__option {
  position: relative;
  margin: 0;
  cursor: pointer;
}
:where(body.pk-publico) .pk-home .pk-segmented__option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
:where(body.pk-publico) .pk-home .pk-segmented__option span {
  display: block;
  min-width: 96px;
  padding: 10px 22px;
  border-radius: 9px;
  color: #fff;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  transition: background-color var(--pk-t), color var(--pk-t);
}
:where(body.pk-publico) .pk-home .pk-segmented__option:hover span { background: rgba(255, 255, 255, .14); }
:where(body.pk-publico) .pk-home .pk-segmented__option input:checked + span {
  background: #fff;
  color: var(--pk-tinta);
  box-shadow: 0 1px 3px rgba(13, 35, 56, .25);
}
:where(body.pk-publico) .pk-home .pk-segmented__option input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

:where(body.pk-publico) .pk-home .pk-search__alt {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: .9375rem;
}
:where(body.pk-publico) .pk-home .pk-search__alt a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 4px;
}
:where(body.pk-publico) .pk-home .pk-search__alt a:hover,
:where(body.pk-publico) .pk-home .pk-search__alt a:focus-visible {
  color: #fff;
  text-decoration-color: #fff;
}
:where(body.pk-publico) .pk-home .pk-search__mapa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
:where(body.pk-publico) .pk-home .pk-search__mapa .pk-icono { width: 18px; height: 18px; }

/* La barra: tarjeta blanca con cuatro campos rotulados y el botón. */
/* Columns sized for the Spanish labels and values at the ~790 px bar width
   (the USA proportions left "Tipo de propiedad" wrapping and "C…" values). */
/* 2026-11-10: el precio es el valor más largo, así que lleva la mayor parte
   (medido: 232 px de texto a 1200 y 1440, antes 121; 0 rangos recortados). */
:where(body.pk-publico) .pk-home .pk-search__bar {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.5fr 1fr auto;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pk-s3);
  color: var(--pk-txt);
}
:where(body.pk-publico) .pk-home .pk-search__field {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 62px;
  padding: 9px 14px 8px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background: #fff;
  color: var(--pk-txt);
  transition: border-color var(--pk-t), box-shadow var(--pk-t);
}
:where(body.pk-publico) .pk-home .pk-search__field:focus-within {
  border-color: var(--pk-tinta);
  box-shadow: 0 0 0 3px var(--pk-enlace);
}
:where(body.pk-publico) .pk-home .pk-search__label {
  display: block;
  margin: 0 0 2px;
  color: var(--pk-txt-sec);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.35;
}
:where(body.pk-publico) .pk-home .pk-search__control-fila {
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(body.pk-publico) .pk-home .pk-search__pin {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--pk-n500);
}
/* Los controles no llevan caja propia: la caja es el campo. Pesa (0,3,0)
   para ganar al sistema de formularios del sitio (`body.pk-sitio input:focus`,
   0,2,2) sin `!important`. */
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__control {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
  color: var(--pk-tinta);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-overflow: ellipsis;
}
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__control:focus,
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__control:focus-visible {
  border: 0;
  box-shadow: none;
  outline: none;
}
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__control::placeholder {
  color: var(--pk-n400);
  font-weight: 500;
  opacity: 1;
}
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__select {
  padding-right: 30px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d2338' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 16px 16px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
/* La lista del selector de ubicación cuelga del campo entero. */
:where(body.pk-publico) .pk-home .pk-search__field--location .pk-location__options {
  top: calc(100% + 6px);
  right: -1px;
  left: -1px;
  inset-inline: -1px;
  z-index: 30;
  border-color: var(--pk-n200);
  border-radius: 12px;
  box-shadow: var(--pk-s3);
  color: var(--pk-tinta);
  font-size: .9375rem;
}
:where(body.pk-publico) .pk-home .pk-search__field--location .pk-location__options button:hover,
:where(body.pk-publico) .pk-home .pk-search__field--location .pk-location__options [aria-selected="true"] button,
:where(body.pk-publico) .pk-home .pk-search__field--location .pk-location__options button:focus-visible {
  background: var(--pk-n50);
  outline: 3px solid var(--pk-enlace);
  outline-offset: -3px;
}

:where(body.pk-publico) .pk-home .pk-search__submit {
  min-height: 62px;
  padding: 0 30px;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 700;
  white-space: nowrap;
}
:where(body.pk-publico) .pk-home .pk-search__submit .pk-icono { width: 20px; height: 20px; }
:where(body.pk-publico) .pk-home .pk-search__submit:hover,
:where(body.pk-publico) .pk-home .pk-search__submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(237, 0, 40, .28);
}
:where(body.pk-publico) .pk-home .pk-search__submit:focus-visible {
  box-shadow: 0 0 0 3px var(--pk-enlace), 0 8px 20px rgba(237, 0, 40, .28) !important;
}

/* Zonas con propiedades: chips de vidrio que siguen a Comprar / Alquilar.
   `.pk-chip` (el de los filtros) se anula entero: este declara su caja. */
:where(body.pk-publico) .pk-home .pk-search__quick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}
:where(body.pk-publico) .pk-home .pk-search__quick-label {
  margin-right: 4px;
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
}
:where(body.pk-publico) .pk-home .pk-chip--glass {
  display: inline-block;
  min-height: 0;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--pk-r-pill);
  background: rgba(13, 35, 56, .7);
  color: #fff;
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color var(--pk-t), color var(--pk-t);
}
:where(body.pk-publico) .pk-home .pk-chip--glass:hover,
:where(body.pk-publico) .pk-home .pk-chip--glass:focus-visible {
  background: #fff;
  color: var(--pk-tinta);
  text-decoration: none;
}

/* --- 4. Franja de capacidades ------------------------------------------- */
:where(body.pk-publico) .pk-home .pk-strip {
  border-bottom: 1px solid var(--pk-n100);
  background: #fff;
}
:where(body.pk-publico) .pk-home .pk-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding-block: 30px;
}
:where(body.pk-publico) .pk-home .pk-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 20px;
  border-right: 1px solid var(--pk-n100);
}
:where(body.pk-publico) .pk-home .pk-strip__item:last-child {
  padding-right: 0;
  border-right: 0;
}
:where(body.pk-publico) .pk-home .pk-strip__icon {
  display: grid;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pk-primario-suave);
  color: var(--pk-primario-osc);
  place-items: center;
}
:where(body.pk-publico) .pk-home .pk-strip__icon .pk-icono { width: 26px; height: 26px; }
:where(body.pk-publico) .pk-home .pk-strip__title {
  margin: 4px 0;
  color: var(--pk-tinta);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  text-wrap: balance;
}
:where(body.pk-publico) .pk-home .pk-strip__item p {
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: .875rem;
  line-height: 1.45;
}

/* --- 5. Destacadas y anuncio -------------------------------------------- */
/* La tarjeta y la rejilla de 4 columnas (y el carrusel del teléfono) viven
   en propeka.css. Entre 768 y 1199 las cuatro van 2 × 2, no 3 + 1 (W11). */
@media (min-width: 768px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-home .pk-rejilla--portada { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* La ranura colapsada no ocupa nada (propeka-ads.css); con creativo, el
   anuncio separa las destacadas de las zonas con el ritmo de sección. */
:where(body.pk-publico) .pk-home__anuncio .pk-ad-slot:not([data-pk-ad-state="vacio"]) { margin: 0 auto 56px; }
:where(body.pk-publico) .pk-home__anuncio + .pk-section { padding-top: 0; }

/* --- 6. Zonas ----------------------------------------------------------- */
:where(body.pk-publico) .pk-home .pk-city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-home .pk-city {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--pk-tinta);
  box-shadow: var(--pk-s1);
  color: #fff;
  text-decoration: none;
  transition: box-shadow var(--pk-t);
}
/* Sin foto: un degradado de marca, no un hueco. */
:where(body.pk-publico) .pk-home .pk-city--sin-foto {
  background:
    radial-gradient(420px 260px at 85% 0%, rgba(237, 0, 40, .28), rgba(237, 0, 40, 0) 70%),
    linear-gradient(160deg, #1f3c59 0%, var(--pk-tinta) 72%);
}
:where(body.pk-publico) .pk-home .pk-city:hover,
:where(body.pk-publico) .pk-home .pk-city:focus-visible { box-shadow: var(--pk-s3); }
:where(body.pk-publico) .pk-home .pk-city picture { display: contents; }
:where(body.pk-publico) .pk-home .pk-city__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
:where(body.pk-publico) .pk-home .pk-city:hover .pk-city__img,
:where(body.pk-publico) .pk-home .pk-city:focus-visible .pk-city__img { transform: scale(1.06); }
:where(body.pk-publico) .pk-home .pk-city::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 35, 56, 0) 28%, rgba(13, 35, 56, .55) 58%, rgba(13, 35, 56, .92) 100%);
}
:where(body.pk-publico) .pk-home .pk-city__text {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  display: grid;
  gap: 1px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(13, 35, 56, .45);
}
:where(body.pk-publico) .pk-home .pk-city__name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
}
:where(body.pk-publico) .pk-home .pk-city__state {
  font-size: .875rem;
  opacity: .95;
}
:where(body.pk-publico) .pk-home .pk-city__count {
  margin-top: 6px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 600;
}
:where(body.pk-publico) .pk-home .pk-city__count::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--pk-primario);
  vertical-align: 2px;
}

/* --- 7. Tipos de propiedad ---------------------------------------------- */
:where(body.pk-publico) .pk-home .pk-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-home .pk-type {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--pk-linea);
  border-radius: 12px;
  background: #fff;
  color: var(--pk-tinta);
  text-decoration: none;
  transition: box-shadow var(--pk-t), transform var(--pk-t), border-color var(--pk-t);
}
:where(body.pk-publico) .pk-home .pk-type:hover,
:where(body.pk-publico) .pk-home .pk-type:focus-visible {
  border-color: var(--pk-n200);
  box-shadow: var(--pk-s2);
  color: var(--pk-tinta);
  text-decoration: none;
  transform: translateY(-2px);
}
:where(body.pk-publico) .pk-home .pk-type__icon {
  display: inline-grid;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--pk-primario-suave);
  color: var(--pk-primario-osc);
  place-items: center;
}
:where(body.pk-publico) .pk-home .pk-type__icon .pk-icono { width: 24px; height: 24px; }
:where(body.pk-publico) .pk-home .pk-type__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
:where(body.pk-publico) .pk-home .pk-type__label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
:where(body.pk-publico) .pk-home .pk-type__hint {
  color: var(--pk-apagado);
  font-size: 13px;
}
:where(body.pk-publico) .pk-home .pk-type__go { display: inline-flex; color: var(--pk-apagado); }
:where(body.pk-publico) .pk-home .pk-type__go .pk-icono { width: 18px; height: 18px; }

/* Seis tipos en una fila: icono arriba, flecha en la esquina. */
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-home .pk-types { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-home .pk-type {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 16px;
  }
  :where(body.pk-publico) .pk-home .pk-type__icon { width: 44px; height: 44px; }
  :where(body.pk-publico) .pk-home .pk-type__go {
    position: absolute;
    top: 30px;
    right: 18px;
  }
  :where(body.pk-publico) .pk-home .pk-type__label { min-height: 2.6em; white-space: normal; }
  :where(body.pk-publico) .pk-home .pk-type__hint { white-space: normal; }
  :where(body.pk-publico) .pk-home .pk-type__hint { line-height: 1.35; }
}

/* --- 8. Banda de publicación -------------------------------------------- */
:where(body.pk-publico) .pk-home .pk-publish {
  position: relative;
  margin-top: 40px;
  padding-block: 80px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(237, 0, 40, .22), rgba(237, 0, 40, 0) 70%),
    var(--pk-tinta);
  color: #fff;
}
:where(body.pk-publico) .pk-home .pk-publish__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
:where(body.pk-publico) .pk-home .pk-eyebrow {
  margin: 0 0 14px;
  color: var(--pk-primario-osc);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
:where(body.pk-publico) .pk-home .pk-eyebrow--light { color: #ffd0d8; }
:where(body.pk-publico) .pk-home .pk-publish__title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 1.9vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  text-wrap: balance;
}
:where(body.pk-publico) .pk-home .pk-publish__lead {
  max-width: 520px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  line-height: 1.6;
}
:where(body.pk-publico) .pk-home .pk-publish__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
:where(body.pk-publico) .pk-home .pk-publish__actions .pk-icono { width: 20px; height: 20px; }
:where(body.pk-publico) .pk-home .pk-link-light {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
:where(body.pk-publico) .pk-home .pk-link-light:hover,
:where(body.pk-publico) .pk-home .pk-link-light:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}
:where(body.pk-publico) .pk-home .pk-publish__note {
  color: rgba(255, 255, 255, .78);
  font-size: .9375rem;
}
:where(body.pk-publico) .pk-home .pk-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-home .pk-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
:where(body.pk-publico) .pk-home .pk-benefit__icon {
  display: grid;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  place-items: center;
}
:where(body.pk-publico) .pk-home .pk-benefit__icon .pk-icono { width: 24px; height: 24px; }
:where(body.pk-publico) .pk-home .pk-benefit h3 {
  margin: 2px 0 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
:where(body.pk-publico) .pk-home .pk-benefit p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: .875rem;
  line-height: 1.45;
}

/* --- 9. Inmobiliarias y agentes ----------------------------------------- */
:where(body.pk-publico) .pk-home .pk-prof-rejilla {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-home .pk-prof-rejilla > li { display: flex; min-width: 0; }
:where(body.pk-publico) .pk-home .pk-prof-rejilla > li > * { flex: 1 1 auto; min-width: 0; }

/* Tarjeta de profesional (`.pk-agent` de propeka.com). Va acotada a la
   tarjeta y no a la portada, para que la fase 7 la lleve tal cual a
   propeka-paridad.css; gana a la `.pk-prof` heredada del directorio por
   orden de carga, con la misma especificidad. */
:where(body.pk-publico) .pk-prof--tarjeta {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 4px;
  padding: 28px 20px 24px;
  border: 1px solid var(--pk-n100);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--pk-s1);
  color: var(--pk-txt);
  text-align: center;
  text-decoration: none;
  transition: box-shadow var(--pk-t), transform var(--pk-t);
}
:where(body.pk-publico) .pk-prof--tarjeta:hover,
:where(body.pk-publico) .pk-prof--tarjeta:focus-visible {
  border-color: var(--pk-n100);
  box-shadow: var(--pk-s3);
  color: var(--pk-txt);
  text-decoration: none;
  transform: translateY(-2px);
}
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__foto {
  display: block;
  width: 116px;
  height: 116px;
  margin-bottom: 10px;
  border: 4px solid var(--pk-n50);
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}
/* Inmobiliarias: el logotipo entero sobre blanco, nunca recortado. */
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__foto--logo {
  padding: 14px;
  background: #fff;
  object-fit: contain;
  object-position: center;
}
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__foto--iniciales {
  display: grid;
  background: var(--pk-n100);
  color: var(--pk-tinta);
  font-size: 1.5rem;
  font-weight: 800;
  place-items: center;
}
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__nombre {
  display: block;
  color: var(--pk-tinta);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
}
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__tipo {
  display: block;
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: .875rem;
  line-height: 1.4;
}
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__lugar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pk-txt-ter);
  font-size: .8125rem;
}
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__lugar .pk-icono { width: 14px; height: 14px; }
:where(body.pk-publico) .pk-prof--tarjeta .pk-prof__cta {
  margin-top: 12px;
  padding: 8px 18px;
  border: 1px solid var(--pk-n200);
  border-radius: 8px;
  color: var(--pk-primario-osc);
  font-size: .875rem;
  font-weight: 700;
  transition: background-color var(--pk-t), border-color var(--pk-t), color var(--pk-t);
}
:where(body.pk-publico) .pk-prof--tarjeta:hover .pk-prof__cta,
:where(body.pk-publico) .pk-prof--tarjeta:focus-visible .pk-prof__cta {
  border-color: var(--pk-accion);
  background: var(--pk-accion);
  color: #fff;
}

/* Hueco de invitación: una sola tarjeta no se queda flotando. */
:where(body.pk-publico) .pk-home .pk-prof-invita {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--pk-n300);
  border-radius: 14px;
  background: var(--pk-n25);
}
:where(body.pk-publico) .pk-home .pk-prof-invita__titulo {
  margin: 6px 0 0;
  color: var(--pk-tinta);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}
:where(body.pk-publico) .pk-home .pk-prof-invita p {
  margin: 0 0 8px;
  color: var(--pk-apagado);
  font-size: .9375rem;
  line-height: 1.5;
}
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child { grid-column: 2 / -1; }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child p {
    max-inline-size: 42ch;
    text-wrap: balance;
  }
}

/* --- 10. Estado vacío de destacadas ------------------------------------- */
:where(body.pk-publico) .pk-home .pk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 56px 24px;
  border: 1px dashed var(--pk-n300);
  border-radius: 16px;
  background: var(--pk-n25);
  text-align: center;
}
:where(body.pk-publico) .pk-home .pk-empty__icono {
  display: grid;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--pk-primario-suave);
  color: var(--pk-primario-osc);
  place-items: center;
}
:where(body.pk-publico) .pk-home .pk-empty__icono .pk-icono { width: 26px; height: 26px; }
:where(body.pk-publico) .pk-home .pk-empty h3 {
  margin: 8px 0 0;
  color: var(--pk-tinta);
  font-size: 1.25rem;
  font-weight: 700;
}
:where(body.pk-publico) .pk-home .pk-empty p {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--pk-txt-sec);
}

/* --- 11. Anchos menores ------------------------------------------------- */
@media (max-width: 1199.98px) {
  /* 2026-11-10: con 1fr el precio quedaba en 151-161 px y «Elige un mínimo»
     en 109-117 (pide 118); el precio toma la mayor parte. Con 1.3fr para la
     ubicación, a 992 con barra de desplazamiento el precio daba 216 px para
     los 217 de «US$2,000 – US$3,500/mes»; con 1.2fr da 222. */
  :where(body.pk-publico) .pk-home .pk-search__bar { grid-template-columns: 1.2fr 1fr 1.5fr 1fr; }
  :where(body.pk-publico) .pk-home .pk-search__submit { grid-column: 1 / -1; }
}

@media (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-home .pk-publish__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-strip__grid,
  :where(body.pk-publico) .pk-home .pk-prof-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-home .pk-strip__item {
    padding-right: 0;
    border-right: 0;
  }
  :where(body.pk-publico) .pk-home .pk-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tableta: tres columnas con la ubicación y el botón en filas propias, y las
   ocho zonas en dos filas de retratos 4:5. 2026-11-10: el precio es la
   columna ancha (a 768 tenía 163-168 px para rangos de hasta 217; con 1.5fr
   tiene 227 aun con barra de desplazamiento). Los tipos van de dos en dos: en
   tres columnas «Apartamentos» (113 px) no cabía en los 101-106 de texto
   entre 768 y ~785 y se metía en el hueco de la flecha. */
@media (min-width: 640px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-search__bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); }
  :where(body.pk-publico) .pk-home .pk-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-home .pk-search__field--location,
  :where(body.pk-publico) .pk-home .pk-search__submit { grid-column: 1 / -1; }
  :where(body.pk-publico) .pk-home .pk-city-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
  :where(body.pk-publico) .pk-home .pk-city { aspect-ratio: 4 / 5; }
  :where(body.pk-publico) .pk-home .pk-city__text {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
  :where(body.pk-publico) .pk-home .pk-city__name { font-size: 1.0625rem; }
}

/* Teléfono: tras el héroe van las destacadas; la franja, las zonas y los
   profesionales después, y los tipos y la banda al final (PKUSW-75). Cada
   sección abre 40 px después de la anterior (R2, lote 4). */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-home {
    display: flex;
    flex-direction: column;
  }
  :where(body.pk-publico) .pk-home .pk-strip,
  :where(body.pk-publico) .pk-home .pk-cities,
  :where(body.pk-publico) .pk-home .pk-agents { order: 1; }
  :where(body.pk-publico) .pk-home .pk-browse { order: 4; }
  :where(body.pk-publico) .pk-home .pk-publish {
    order: 5;
    padding-block: 56px;
  }
  :where(body.pk-publico) .pk-home .pk-cities { padding-top: 40px; }
  :where(body.pk-publico) .pk-home .pk-agents,
  :where(body.pk-publico) .pk-home .pk-browse { padding-top: 0; }

  /* 2026-11-10: entre 640 y 767 tres columnas dejaban tipo y dormitorios en
     106 px (piden 121/118); van 2 × 2, tipo | precio y dormitorios | botón.
     El bloque de menos de 640, más abajo, vuelve a una columna. */
  :where(body.pk-publico) .pk-home .pk-search__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-home .pk-search__submit { grid-column: auto; }

  :where(body.pk-publico) .pk-home .pk-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  :where(body.pk-publico) .pk-home .pk-type {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  :where(body.pk-publico) .pk-home .pk-type__go { display: none; }
}

@media (max-width: 639.98px) {
  /* Héroe compacto: tipo y botón comparten fila; precio y dormitorios se
     afinan en resultados. */
  :where(body.pk-publico) .pk-home .pk-hero--photo { min-height: 0; }
  :where(body.pk-publico) .pk-home .pk-hero__inner { padding-block: 20px; }
  :where(body.pk-publico) .pk-home .pk-hero__media img { object-position: 62% 50%; }
  :where(body.pk-publico) .pk-home .pk-hero__media::before {
    background: linear-gradient(180deg, rgba(13, 35, 56, .86) 0%, rgba(13, 35, 56, .62) 45%, rgba(13, 35, 56, .38) 100%);
  }
  :where(body.pk-publico) .pk-home .pk-hero__title {
    margin-bottom: 8px;
    font-size: 1.875rem;
  }
  :where(body.pk-publico) .pk-home .pk-hero__lead {
    font-size: .9375rem;
    line-height: 1.45;
  }
  :where(body.pk-publico) .pk-home .pk-search { margin-top: 16px; }
  :where(body.pk-publico) .pk-home .pk-search__intent-row { gap: 8px 14px; }
  :where(body.pk-publico) .pk-home .pk-segmented__option span {
    min-width: 84px;
    padding: 9px 18px;
  }
  :where(body.pk-publico) .pk-home .pk-search__alt { font-size: .875rem; }
  /* Phone: location, type and the button each take the full row (the type
     select squeezed beside the button showed only "C…"). */
  :where(body.pk-publico) .pk-home .pk-search__bar {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 12px;
  }
  :where(body.pk-publico) .pk-home .pk-search__field { min-height: 56px; }
  :where(body.pk-publico) .pk-home .pk-search__field--location { grid-column: 1 / -1; }
  :where(body.pk-publico) .pk-home .pk-search__field--price,
  :where(body.pk-publico) .pk-home .pk-search__field--beds { display: none; }
  :where(body.pk-publico) .pk-home .pk-search__submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 54px;
    gap: 8px;
    padding-inline: 14px;
    font-size: 1rem;
  }
  /* Las zonas, una fila que se desliza en lugar de varias filas de chips. */
  :where(body.pk-publico) .pk-home .pk-search__quick {
    flex-wrap: nowrap;
    margin: 12px calc(-1 * var(--pk-pad)) 0;
    padding: 2px var(--pk-pad) 6px;
    overflow-x: auto;
    scroll-padding-inline: var(--pk-pad);
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  :where(body.pk-publico) .pk-home .pk-search__quick::-webkit-scrollbar { display: none; }
  :where(body.pk-publico) .pk-home .pk-search__quick > * {
    flex: none;
    scroll-snap-align: start;
  }

  /* Franja: un 2 × 2 compacto. */
  :where(body.pk-publico) .pk-home .pk-strip__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    padding-block: 22px;
  }
  :where(body.pk-publico) .pk-home .pk-strip__item {
    flex-direction: column;
    gap: 8px;
  }
  :where(body.pk-publico) .pk-home .pk-strip__icon {
    width: 40px;
    height: 40px;
  }
  :where(body.pk-publico) .pk-home .pk-strip__icon .pk-icono { width: 20px; height: 20px; }
  :where(body.pk-publico) .pk-home .pk-strip__title {
    margin: 0 0 2px;
    font-size: .9375rem;
    line-height: 1.3;
  }
  :where(body.pk-publico) .pk-home .pk-strip__item p { font-size: .8125rem; }

  /* Destacadas: el carrusel (propeka.css) con tarjetas 4:3 sin sombra. */
  :where(body.pk-publico) .pk-home .pk-featured { padding-top: 24px; }
  :where(body.pk-publico) .pk-home .pk-featured .pk-seccion__cab { margin-bottom: 16px; }
  :where(body.pk-publico) .pk-home .pk-featured .pk-tarjeta { box-shadow: none; }
  :where(body.pk-publico) .pk-home .pk-featured .pk-tarjeta:focus-within { box-shadow: 0 0 0 3px var(--pk-enlace); }
  :where(body.pk-publico) .pk-home .pk-featured .pk-tarjeta__foto { aspect-ratio: 4 / 3; }
  :where(body.pk-publico) .pk-home .pk-featured .pk-datos {
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
  }

  /* PGT-55 follow-up 2026-11-18: HS-17 (c) - zone tiles as on propeka.com phones: the label sits over the photo on a dark scrim, in shorter 4:3 tiles (the photo sat above a white label panel: 168-186 px tiles, an 880-915 px section). The label keeps the three-row grid of the tablet rule, so names share the top line and counts the bottom line with or without a city line. */
  :where(body.pk-publico) .pk-home .pk-city-grid { gap: 12px; }
  /* The scrim is tied to the label, not to the tile height: 60% where the 72 px label block starts, fading above it. With propeka.com's own stops (4%, 42% at 38%, 88%) the 17 px name sat at 2.5-3.3:1 over the white ceilings of these photos, because this label is taller (it reserves a two-line name) in tiles only 107-145 px tall; now the name keeps 4.5:1 on its palest pixel. */
  :where(body.pk-publico) .pk-home .pk-city::after { background: linear-gradient(0deg, rgba(13, 35, 56, .9) 0, rgba(13, 35, 56, .6) 76px, rgba(13, 35, 56, .04) 100%); } /* HS-17 */
  :where(body.pk-publico) .pk-home .pk-city:hover .pk-city__img,
  :where(body.pk-publico) .pk-home .pk-city:focus-visible .pk-city__img { transform: none; }
  :where(body.pk-publico) .pk-home .pk-city__text { /* HS-17 */
    right: 8px; /* the text is left-aligned: this only gives the 134 px city line 8 px of room in the 162 px tile at 360 */
    bottom: 10px;
    left: 12px;
    grid-template-rows: auto 1fr auto;
    min-height: 62.4px; /* a two-line name plus the count, so every name starts on the same line */
    text-shadow: 0 1px 2px rgba(13, 35, 56, .5), 0 1px 10px rgba(13, 35, 56, .6);
  }
  :where(body.pk-publico) .pk-home .pk-city__name { font-size: 1.0625rem; line-height: 1.2; } /* HS-17 */
  :where(body.pk-publico) .pk-home .pk-city__state,
  :where(body.pk-publico) .pk-home .pk-city__count { font-size: .8125rem; line-height: 1.35; } /* HS-17 */
  :where(body.pk-publico) .pk-home .pk-city__state { font-weight: 500; } /* HS-17 */
  :where(body.pk-publico) .pk-home .pk-city__count { /* HS-17: white, as in the wide tile */
    grid-row: 3;
    margin-top: 2px;
  }

  :where(body.pk-publico) .pk-home .pk-benefits { grid-template-columns: minmax(0, 1fr); }

  /* Profesionales: dos tarjetas compactas por fila. */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta { padding: 18px 10px 16px; }
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__foto {
    width: 76px;
    height: 76px;
    margin-bottom: 6px;
    border-width: 3px;
  }
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__foto--logo { padding: 9px; }
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__nombre {
    font-size: .9375rem;
    line-height: 1.3;
  }
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__tipo,
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__lugar {
    font-size: .75rem;
    line-height: 1.35;
  }
  :where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__cta {
    margin-top: 8px;
    padding: 6px 12px;
    font-size: .8125rem;
  }
  :where(body.pk-publico) .pk-home .pk-prof-invita { padding: 18px 14px; }
  :where(body.pk-publico) .pk-home .pk-prof-invita__titulo { font-size: 1rem; }
  :where(body.pk-publico) .pk-home .pk-prof-invita p { font-size: .8125rem; }
  :where(body.pk-publico) .pk-home .pk-prof-invita .pk-enlace-flecha { max-width: 100%; white-space: normal; }
}

/* Acorta el botón en pantallas angostas. */
@media (max-width: 379.98px) {
  :where(body.pk-publico) .pk-home .pk-search__submit-resto { display: none; }
}

/* --- 12. Movimiento reducido -------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  :where(body.pk-publico) .pk-home .pk-city__img,
  :where(body.pk-publico) .pk-home .pk-type,
  :where(body.pk-publico) .pk-home .pk-search__submit,
  :where(body.pk-publico) .pk-home .pk-segmented__option span,
  :where(body.pk-publico) .pk-prof--tarjeta { transition: none; }
  :where(body.pk-publico) .pk-home .pk-city:hover .pk-city__img,
  :where(body.pk-publico) .pk-home .pk-city:focus-visible .pk-city__img,
  :where(body.pk-publico) .pk-home .pk-type:hover,
  :where(body.pk-publico) .pk-home .pk-type:focus-visible,
  :where(body.pk-publico) .pk-home .pk-search__submit:hover,
  :where(body.pk-publico) .pk-prof--tarjeta:hover,
  :where(body.pk-publico) .pk-prof--tarjeta:focus-visible { transform: none; }
}

/* Wide bar: the button reads "Buscar" (like USA's short "Search homes") so the
   four fields keep room for their Spanish values. */
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-search__submit-resto { display: none; }
}

/* Owner 2026-11-04: an unchosen dropdown reads like the location field's
   placeholder (grey prompt), not as a value and not as an empty box. */
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__select:has(option[value=""]:checked) {
  color: var(--pk-n400);
  font-weight: 500;
}
:where(body.pk-publico) .pk-home .pk-search__field .pk-search__select option {
  color: var(--pk-txt);
}

/* =========================================================================
   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 home ---- */
/* PGT-55 HS-01: from 640 px the hero is as tall as its content (it kept 660 px with 72 px above and below, so no listing reached the first desktop screen). From 1200 px the lead sets in two lines; the headline keeps its measure. */
@media (min-width: 640px) {
  :where(body.pk-publico) .pk-home .pk-hero--photo { min-height: 0; }
  :where(body.pk-publico) .pk-home .pk-hero__inner { padding-block: 56px 48px; }
}
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-home .pk-hero__copy,
  :where(body.pk-publico) .pk-home .pk-hero__lead { max-width: 740px; }
  :where(body.pk-publico) .pk-home .pk-hero__title { max-width: 660px; }
}

/* PGT-55 HS-02: one section order at every width, as on propeka.com: hero, recent listings (and the ad slot), value strip, zones, property types, agencies, publisher band. These rules replace the phone-only order block above (same weight, later in the sheet). */
:where(body.pk-publico) .pk-home {
  display: flex;
  flex-direction: column;
}
:where(body.pk-publico) .pk-home > * { min-width: 0; }
:where(body.pk-publico) .pk-home > .pk-hero,
:where(body.pk-publico) .pk-home > .pk-featured,
:where(body.pk-publico) .pk-home > .pk-home__anuncio { order: 0; }
:where(body.pk-publico) .pk-home > .pk-strip { order: 1; }
:where(body.pk-publico) .pk-home > .pk-cities { order: 2; }
:where(body.pk-publico) .pk-home > .pk-browse { order: 3; }
:where(body.pk-publico) .pk-home > .pk-agents { order: 4; }
:where(body.pk-publico) .pk-home > .pk-publish { order: 5; }
/* Rhythm: the strip closes the listings with a rule above it and one section gap below; no double gap before the dark band. */
:where(body.pk-publico) .pk-home > .pk-strip {
  margin-bottom: 56px;
  border-top: 1px solid var(--pk-n100);
}
:where(body.pk-publico) .pk-home > .pk-cities,
:where(body.pk-publico) .pk-home > .pk-browse,
:where(body.pk-publico) .pk-home > .pk-agents { padding-top: 0; }
:where(body.pk-publico) .pk-home > .pk-publish { margin-top: 0; }
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-home > .pk-strip { margin-bottom: 40px; }
}
@media (max-width: 639.98px) {
  :where(body.pk-publico) .pk-home > .pk-featured { padding-bottom: 28px; }
}

/* PGT-55 HS-06: between 640 and 1199 px the scrim reaches the right end of the copy (the lead ended on pale cloud at 1.8-2.8:1); lead and prompt carry a soft shadow and the prompt gains weight at every width. Below 992 px the lead runs to 80-96% of the width over the brightest clouds of this photo, so the right half is a step darker than on propeka.com. */
@media (min-width: 640px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-home .pk-hero__media::before {
    background: linear-gradient(90deg, rgba(13, 35, 56, .9) 0%, rgba(13, 35, 56, .8) 45%, rgba(13, 35, 56, .55) 75%, rgba(13, 35, 56, .3) 100%);
  }
}
@media (min-width: 640px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-hero__media::before {
    background: linear-gradient(90deg, rgba(13, 35, 56, .9) 0%, rgba(13, 35, 56, .82) 45%, rgba(13, 35, 56, .68) 75%, rgba(13, 35, 56, .52) 100%);
  }
}
:where(body.pk-publico) .pk-home .pk-hero__lead,
:where(body.pk-publico) .pk-home .pk-search__alt { text-shadow: 0 1px 10px rgba(13, 35, 56, .55); }
:where(body.pk-publico) .pk-home .pk-search__alt { font-weight: 500; }
:where(body.pk-publico) .pk-home .pk-search__alt a {
  font-weight: 700;
  text-decoration-color: rgba(255, 255, 255, .7);
}

/* PGT-55 HS-07: the search button gets the size, weight and hover this sheet already declares for it. The site sheet's generic submit rule (0,2,2) out-ranked them, leaving a 44 px button with a 600 label; the extra .pk-search__bar class (0,3,0) wins without !important. The colour is fixed for every primary submit button in propeka-paridad.css. */
:where(body.pk-publico) .pk-home .pk-search__bar .pk-search__submit {
  min-height: 62px;
  padding: 0 30px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
}
:where(body.pk-publico) .pk-home .pk-search__bar .pk-search__submit:hover,
:where(body.pk-publico) .pk-home .pk-search__bar .pk-search__submit:focus-visible { box-shadow: 0 8px 20px rgba(197, 0, 33, .28); }
/* !important only because the focus ring it replaces is !important. */
:where(body.pk-publico) .pk-home .pk-search__bar .pk-search__submit:focus-visible { box-shadow: 0 0 0 3px var(--pk-enlace), 0 8px 20px rgba(197, 0, 33, .28) !important; }

/* PGT-55 HS-03: below 992 px Comprar/Alquilar sits on the search card and the prompt with its two links follows the zone chips (the prompt row stood between the switch and the card, and its link broke in two on phones). Phones: the chip row fades where it scrolls and, from 360 px, the type field shares a row with a one-word button. */
@media (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-search {
    display: flex;
    flex-direction: column;
  }
  :where(body.pk-publico) .pk-home .pk-search__intent-row { display: contents; }
  :where(body.pk-publico) .pk-home .pk-search__intent {
    align-self: flex-start;
    margin-bottom: 8px;
  }
  :where(body.pk-publico) .pk-home .pk-search__alt {
    order: 3;
    gap: 4px 20px;
    margin-top: 14px;
  }
  :where(body.pk-publico) .pk-home .pk-search__alt > span { display: contents; }
  :where(body.pk-publico) .pk-home .pk-search__alt a { white-space: nowrap; }
}
@media (max-width: 639.98px) {
  :where(body.pk-publico) .pk-home .pk-search__alt { margin-top: 10px; }
  :where(body.pk-publico) .pk-home .pk-search__quick {
    padding-right: 32px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  :where(body.pk-publico) .pk-home .pk-search__bar .pk-search__submit {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 1rem;
  }
}
@media (min-width: 360px) and (max-width: 639.98px) {
  :where(body.pk-publico) .pk-home .pk-search__bar { grid-template-columns: minmax(0, 1fr) auto; }
  :where(body.pk-publico) .pk-home .pk-search__bar .pk-search__submit {
    grid-column: auto;
    width: auto;
    padding-inline: 18px;
  }
  :where(body.pk-publico) .pk-home .pk-search__submit-resto { display: none; }
}
/* Narrow phones: the prompt and its two links keep to one line each. */
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-home .pk-search__alt {
    gap: 4px 14px;
    font-size: .8125rem;
  }
}

/* PGT-55 HS-10: recent listings - every card reserves two title lines, so locations and publisher rows share a line across the row. */
:where(body.pk-publico) .pk-home .pk-featured .pk-tarjeta__titulo { min-height: calc(2 * 1.35em); }

/* PGT-55 HS-12: the value strip stays two by two up to 1199 px (four 228 px columns left 132 px of text: three-line headings and six-line blurbs at 1024). */
@media (min-width: 992px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-home .pk-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-home .pk-strip__item {
    padding-right: 0;
    border-right: 0;
  }
}

/* PGT-55 HS-13: phones - 44 px touch targets for the hero prompt links and the dark band's text links (the negative margins keep the spacing as it was) and 40 px zone chips. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-home .pk-publish__actions .pk-link-light {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block: -10px;
  }
  :where(body.pk-publico) .pk-home .pk-search__alt a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-block: -8px;
  }
}
@media (max-width: 639.98px) {
  :where(body.pk-publico) .pk-home .pk-chip--glass {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding-block: 0;
  }
}

/* PGT-55 HS-14: property types - the count sits right under its label (the two-line reservation left an empty line in four of six cards); at 15 px with 16 px side padding the longest label fits on one line from about 1240 px. Below 1200 px the hint gets its own leading (it inherited 24 px for 13 px text). */
:where(body.pk-publico) .pk-home .pk-type__hint { line-height: 1.35; }
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-home .pk-type { padding-inline: 16px; }
  :where(body.pk-publico) .pk-home .pk-type__go { right: 16px; }
  :where(body.pk-publico) .pk-home .pk-type__label {
    min-height: 0;
    font-size: 15px;
  }
}

/* PGT-55 HS-15: at laptop width the four benefits run in one column beside the copy (two 213 px columns broke the headings); the eyebrow gets its own leading so its two phone lines read as one label. */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-home .pk-publish__grid { gap: 48px; }
  :where(body.pk-publico) .pk-home .pk-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}
:where(body.pk-publico) .pk-home .pk-eyebrow { line-height: 1.4; }

/* PGT-55 HS-16: arrows end on their edge (see propeka-paridad.css): type cards and the band's publish button. */
:where(body.pk-publico) .pk-home .pk-type__go > .pk-icono,
:where(body.pk-publico) .pk-home .pk-publish__actions .pk-btn > .pk-icono:last-child { margin-right: -4px; }

/* PGT-55 HS-17: zone tiles - from 640 px every tile's name starts on the same line and every count ends on the same line, with or without a city line. The label block reserves the height of its three rows (name line + two 24 px lines + 8 px of gaps: 80 px from 992, 76.4 px on tablets); a name that needs two lines uses the empty city row. On tablets the city line fits its 144 px tile. */
@media (min-width: 640px) {
  :where(body.pk-publico) .pk-home .pk-city__text {
    grid-template-rows: auto 1fr auto;
    min-height: 76.4px;
  }
  :where(body.pk-publico) .pk-home .pk-city__count { grid-row: 3; }
}
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-city__text { min-height: 80px; }
}
@media (min-width: 640px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-city__state { font-size: .8125rem; }
}

/* PGT-55 HS-05: from 992 px the header stays in reach while the home page scrolls (it left after 660 px of a 4300 px page). Home only for now: results, listing and document pages pin a filter bar, a contact rail and a side card at the top of the window and need their offsets first. The site sheet sets position and shadow on this wrapper with weight 0,2,1, hence the body class; its z-index (50) is kept, so nothing new is stacked. */
@media (min-width: 992px) {
  body.pk-publico header.header-main-wrap {
    position: sticky;
    top: 0;
    box-shadow: 0 2px 12px rgba(13, 35, 56, .06);
  }
  body.pk-publico.admin-bar header.header-main-wrap { top: 32px; }
  html:has(.pk-home) { scroll-padding-top: 96px; }
}

/* PGT-55 HS-11: agencies band. The pin is part of the address line (as a flex item it floated at the left edge of two centred lines) and a wrapped address does not leave one word alone. From 992 px, beside a single agency, the invitation reads as a row: text on the left, the plans link as an outlined button on the right. (The phone rules that stood here - a full row only for an odd-child invitation, and an inline link whose arrow could drop alone to a second line - are replaced by the HS-11 phone block of the 2026-11-18 follow-up at the end of this sheet.) */
:where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__lugar {
  display: block;
  line-height: 1.35;
  text-wrap: pretty;
}
:where(body.pk-publico) .pk-home .pk-prof--tarjeta .pk-prof__lugar .pk-icono {
  display: inline-block;
  margin-right: 4px;
  vertical-align: -2px;
}
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    gap: 6px 40px;
    padding: 32px 40px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita__titulo {
    margin: 0;
    font-size: 24px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita p {
    margin: 0;
    font-size: 1rem;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-enlace-flecha {
    grid-column: 2;
    grid-row: 1 / span 2;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--pk-n200);
    border-radius: 10px;
    background: var(--pk-n0);
    transition: border-color var(--pk-t), color var(--pk-t);
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-enlace-flecha:hover,
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-enlace-flecha:focus-visible {
    border-color: var(--pk-accion);
    text-decoration: none;
  }
}

/* =========================================================================
   PGT-55 follow-up 2026-11-18: HS-11, HS-17, value strip at 320, hero
   prompt from 1200 px, and (found in review) zone tile names from 992 px.
   From the live recheck of the PGT-55 audit. Two parts
   sit beside the rules they correct instead of here: the phone zone tile
   (HS-17 c) is in the phone block above, where the photo-above-panel rules
   were, and the first PGT-55 phone rules for the invitation (HS-11) were
   taken out of the PGT-55 HS-11 block.
   ========================================================================= */

/* PGT-55 follow-up 2026-11-18: HS-17 (a)(b) - between 640 and 767 px the 4:5 tiles are 141-171 px wide and the city line (134 px at 13 px) wrapped below about 715 px: those labels grew to four lines and the tile without a city line had its name 24 px lower. Here the label starts 8 px from the left edge and may run to 4 px from the right one (the text is left-aligned, so the right inset only decides where a line breaks), the city line is 12 px (124 px) and the gap is 12 px: the city line holds one line with 5 px to spare at the narrowest tile (141 px, at 641) and every name starts on the same line. In a desktop window with a classic scrollbar that spare room is down to 1-3 px, so the city line is also kept from wrapping: it can never grow the label again, and a longer city name would end in an ellipsis. */
@media (min-width: 640px) and (max-width: 767.98px) {
  :where(body.pk-publico) .pk-home .pk-city-grid { gap: 12px; } /* HS-17 */
  :where(body.pk-publico) .pk-home .pk-city__text { /* HS-17 */
    right: 4px;
    bottom: 10px;
    left: 8px;
  }
  :where(body.pk-publico) .pk-home .pk-city__state { /* HS-17 */
    overflow: hidden;
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
/* PGT-55 follow-up 2026-11-18: HS-17 - tablet tile names. With the names on one shared line they sit 86-88 px above the tile's bottom edge, where the percentage scrim of the wide tile is still thin in these 4:5 tiles: over the pale ceilings and skies of today's photos the 17 px name had a worst pixel of 2.6:1 at 640 px, 3.3:1 at 700 and 3.8:1 at 768 (it reached 4.5:1 only from about 900 px). As on phones, the scrim is tied to the label: 62% where the 76 px label block starts, clear 40% of the tile height above it. The name keeps at least 4.7:1 from 640 to 991 px and the top of the photo stays as bright as before. */
@media (min-width: 640px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-city::after { background: linear-gradient(0deg, rgba(13, 35, 56, .92) 0, rgba(13, 35, 56, .62) 92px, rgba(13, 35, 56, 0) calc(92px + 40%)); } /* HS-17 */
}
/* PGT-55 follow-up 2026-11-18 (review): zone tile names from 992 px, a defect the review found on the same tile. The 4:3 tiles are 167-214 px tall there and the name starts 96 px above the bottom edge, where the percentage scrim is thin: over the pale ceilings, walls and sky of today's photos the 20 px name had a worst pixel of 2.0:1 at 992 and 1024 px (56-60% of its pixels under 4.5:1), 2.9:1 at 1200 and 3.2:1 at 1440, and the city line 4.1:1 at 992-1024. As on tablets and phones, the scrim is tied to the label: 62% where the 96 px label block starts, clear 40% of the tile height above it. */
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-city::after { background: linear-gradient(0deg, rgba(13, 35, 56, .92) 0, rgba(13, 35, 56, .62) 100px, rgba(13, 35, 56, 0) calc(100px + 40%)); } /* tile-name-992 */
}
/* PGT-55 follow-up 2026-11-18: HS-17 - narrow phones: a 12 px city line, a 10 px gap, the label 8 px from the left and up to 4 px from the right, so the 143 px tile at 320 px leaves 131 px for the 125 px city line (it wrapped in all 7 tiles that have one). */
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-home .pk-city-grid { gap: 10px; } /* HS-17 */
  :where(body.pk-publico) .pk-home .pk-city__text { /* HS-17 */
    right: 4px;
    bottom: 8px;
    left: 8px;
    min-height: 60.4px;
  }
  :where(body.pk-publico) .pk-home .pk-city__state,
  :where(body.pk-publico) .pk-home .pk-city__count { font-size: .75rem; line-height: 1.3; } /* HS-17 */
}

/* PGT-55 follow-up 2026-11-18: value strip below 360 px - one column with the icon beside the text (two 140 px columns set the headings in 3 lines and the blurbs in 5: a 450 px strip at 320). */
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-home .pk-strip__grid { /* strip-320 */
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  :where(body.pk-publico) .pk-home .pk-strip__item { /* strip-320 */
    flex-direction: row;
    gap: 12px;
  }
}

/* PGT-55 follow-up 2026-11-18: HS-11 phones - the invitation takes the whole row whatever the number of agencies (the odd-child rule missed the single-agency case and left it a 142-193 px column), and an agency that would sit beside an empty cell takes its row too. The plans link stays on one line with its arrow (at 430 px the arrow dropped alone to a second line). */
@media (max-width: 639.98px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita { grid-column: 1 / -1; } /* HS-11 */
  /* A rule of its own: a browser without :has() drops only this one and keeps the full-row invitation. */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla > li:nth-child(odd):has(+ .pk-prof-rejilla__invita) { grid-column: 1 / -1; } /* HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-invita { /* HS-11 */
    gap: 6px;
    padding: 18px 16px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-invita__titulo { margin: 0; } /* HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-invita p { /* HS-11 */
    margin: 0 0 9px; /* review: with 4 px the keyboard focus ring of the 44 px link (3 px, 2 px away) ran through the bottom of the paragraph's last line; with 9 px it stops at the paragraph's edge */
    text-wrap: pretty;
  }
  :where(body.pk-publico) .pk-home .pk-prof-invita .pk-enlace-flecha { /* HS-11 */
    min-height: 44px; /* a 44 px touch target; the negative margin keeps the spacing of the 24 px line */
    margin-block: -10px;
    white-space: nowrap; /* replaces the phone block's white-space: normal: in the full row the link fits on one line at 320 px, and the site's arrow link (inline-flex) keeps its arrow beside the last word */
  }
}

/* PGT-55 follow-up 2026-11-18: HS-11 from 992 px - beside a single agency the invitation is as tall as the agency card (309 px holding a 61 px line of text, 18% filled). It now reads as a filled panel, not an empty dashed slot: the agency card's solid border and shadow, a soft tint, the strip's round icon (the building mark of propeka_icono('edificio')) and a larger title, text and button stacked beside it, centred in the height. */
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita { /* HS-11 */
    grid-template-columns: 112px minmax(0, 1fr);
    justify-items: start;
    gap: 10px 32px;
    padding: 40px 48px;
    border: 1px solid var(--pk-n100);
    background:
      radial-gradient(520px 320px at 100% 0%, rgba(237, 0, 40, .07), rgba(237, 0, 40, 0) 70%),
      linear-gradient(135deg, var(--pk-n0) 0%, var(--pk-n50) 100%);
    box-shadow: var(--pk-s1);
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita::before { /* HS-11 */
    content: "";
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--pk-primario-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c50021' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 21V10h4a1 1 0 0 1 1 1v10M3 21h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E") center / 52px no-repeat;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita__titulo { /* HS-11 */
    grid-column: 2;
    font-size: 28px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-prof-invita p { /* HS-11 */
    grid-column: 2;
    font-size: 1.0625rem;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(2):last-child .pk-enlace-flecha { /* HS-11 */
    grid-column: 2;
    grid-row: auto;
    margin-top: 10px;
  }
}

/* PGT-55 follow-up 2026-11-18: hero prompt from 1200 px - the scrim followed the window width and was down to 28-6% under the prompt, so 'Publica tu propiedad' sat on a light patch of the house (worst pixel 2.4-3.7:1 from 1200 to 1920, 2-5% of its pixels under 4.5:1) and 'Buscar en el mapa' on sky at 1200 and 1920. The middle stops now follow the content (the prompt ends about 310 px right of centre), so the copy keeps at least 4.5:1 and the right of the photo stays bright. */
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-home .pk-hero__media::before { /* hero-prompt-1200 */
    background: linear-gradient(90deg, rgba(13, 35, 56, .9) 0%, rgba(13, 35, 56, .7) calc(50% - 300px), rgba(13, 35, 56, .5) calc(50% + 310px), rgba(13, 35, 56, .06) 100%);
  }
}

/* PGT-55 follow-up 2026-11-19 (review notes): the plans link of the agencies invitation was 24 px tall between 640 and 767 px, where the other home text links are 44 px touch targets (HS-13); and between 992 and 1199 px 'Buscar en el mapa' had a few pixels under 4.5:1 (worst 4.42:1 at 1024), so the 75% stop of that scrim goes from .55 to .6 (HS-06). */
@media (min-width: 640px) and (max-width: 767.98px) {
  :where(body.pk-publico) .pk-home .pk-prof-invita .pk-enlace-flecha { display: inline-flex; align-items: center; min-height: 44px; margin-block: -10px; } /* HS-13 */
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-home .pk-hero__media::before { /* HS-06 */
    background: linear-gradient(90deg, rgba(13, 35, 56, .9) 0%, rgba(13, 35, 56, .8) 45%, rgba(13, 35, 56, .6) 75%, rgba(13, 35, 56, .3) 100%);
  }
}

/* PGT-55 open items 2026-11-19: HS-11 between 640 and 991 px - beside the agency card the invitation was still the dashed 294-465 x 309 px slot, its title, text and link floating in the middle of the height with 33-41% of the box filled. It now reads as the same finished panel as from 992 px: solid border, shadow and soft tint, the round building icon above a left-aligned title and text, and the plans link as an outlined 48 px button (this undoes the HS-13 negative margin of the 640-767 rule above, which kept the old 24 px line spacing). An invitation that follows two agencies is alone on its row: it takes the whole row with the icon beside the text, as from 992 px. Below 640 and from 992 nothing changes. */
@media (min-width: 640px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita { /* PGT-55 open items 2026-11-19: HS-11 */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 8px;
    padding: 28px 24px;
    border: 1px solid var(--pk-n100);
    background:
      radial-gradient(520px 320px at 100% 0%, rgba(237, 0, 40, .07), rgba(237, 0, 40, 0) 70%),
      linear-gradient(135deg, var(--pk-n0) 0%, var(--pk-n50) 100%);
    box-shadow: var(--pk-s1);
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita::before { /* PGT-55 open items 2026-11-19: HS-11 - the building mark of the 992 px panel */
    content: "";
    width: 56px;
    height: 56px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--pk-primario-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c50021' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 21V10h4a1 1 0 0 1 1 1v10M3 21h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E") center / 26px no-repeat;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita__titulo { /* PGT-55 open items 2026-11-19: HS-11 */
    margin: 0;
    text-wrap: balance;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita p { /* PGT-55 open items 2026-11-19: HS-11 */
    margin: 0;
    text-wrap: pretty;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-enlace-flecha { /* PGT-55 open items 2026-11-19: HS-11 */
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin: 8px 0 0;
    padding: 0 20px;
    border: 1px solid var(--pk-n200);
    border-radius: 10px;
    background: var(--pk-n0);
    transition: border-color var(--pk-t), color var(--pk-t);
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-enlace-flecha:hover,
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-enlace-flecha:focus-visible { /* PGT-55 open items 2026-11-19: HS-11 */
    border-color: var(--pk-accion);
    text-decoration: none;
  }
  /* After two agencies the invitation is the third item: the whole row, icon on the left as from 992 px. */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(odd) { grid-column: 1 / -1; } /* PGT-55 open items 2026-11-19: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(odd) .pk-prof-invita { /* PGT-55 open items 2026-11-19: HS-11 */
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 28px;
    padding: 28px 32px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(odd) .pk-prof-invita::before { /* PGT-55 open items 2026-11-19: HS-11 */
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    width: 72px;
    height: 72px;
    margin: 0;
    background-size: 34px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(odd) .pk-prof-invita > * { grid-column: 2; } /* PGT-55 open items 2026-11-19: HS-11 */
}
/* From 768 px the box is 354-465 px wide: a larger title and text, with the same 28 px inset all round. At 768 the title takes two lines and the panel (305 px) still fits inside the 309 px agency card, so the card does not grow. */
@media (min-width: 768px) and (max-width: 991.98px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita { padding: 28px; } /* PGT-55 open items 2026-11-19: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita__titulo { font-size: 22px; } /* PGT-55 open items 2026-11-19: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita p { font-size: 1rem; } /* PGT-55 open items 2026-11-19: HS-11 */
}

/* PGT-55 last items 2026-11-20: HS-11 from 992 px with two or three agencies. The finished panel above only matched an invitation that is the second child (one agency); after two or three agencies the invitation was still the dashed 223-285 x 309 px column with a 24 px text link, and after two agencies the fourth column stayed empty. It now reads as the same finished panel at every count, as between 640 and 991 px: solid border, shadow, soft tint, the round building icon and the plans link as an outlined 48 px button. After two agencies the invitation takes the two last columns with the icon beside the text (a panel that spans columns, like the one beside a single agency); after three agencies it is the fourth card, the icon above a left-aligned title and text. The one-agency panel (an invitation that is the second child) is not matched. With four agencies the template prints no invitation. */
@media (min-width: 992px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-prof-invita { /* PGT-55 last items 2026-11-20: HS-11 */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    justify-items: start;
    gap: 8px;
    padding: 24px 20px;
    border: 1px solid var(--pk-n100);
    background:
      radial-gradient(520px 320px at 100% 0%, rgba(237, 0, 40, .07), rgba(237, 0, 40, 0) 70%),
      linear-gradient(135deg, var(--pk-n0) 0%, var(--pk-n50) 100%);
    box-shadow: var(--pk-s1);
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-prof-invita::before { /* PGT-55 last items 2026-11-20: HS-11 - the building mark of the one-agency panel */
    content: "";
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--pk-primario-suave) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c50021' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v16M15 21V10h4a1 1 0 0 1 1 1v10M3 21h18M8 8h3M8 12h3M8 16h3'/%3E%3C/svg%3E") center / 26px no-repeat;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-prof-invita__titulo { /* PGT-55 last items 2026-11-20: HS-11 */
    margin: 0;
    text-wrap: balance;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-prof-invita p { /* PGT-55 last items 2026-11-20: HS-11 */
    margin: 0;
    text-wrap: balance; /* PGT-55 last items review 2026-11-20: HS-11 - balanced as in the one-agency panel; with pretty, 'Propeka.' stood alone on the last line at 992 px with three agencies, and with two agencies the second line was only 'en Propeka.' from 1199 px. Same line count and height at every width. */
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-enlace-flecha { /* PGT-55 last items 2026-11-20: HS-11 */
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    margin: 8px 0 0;
    padding: 0 20px;
    border: 1px solid var(--pk-n200);
    border-radius: 10px;
    background: var(--pk-n0);
    transition: border-color var(--pk-t), color var(--pk-t);
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-enlace-flecha:hover,
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:not(:nth-child(2)) .pk-enlace-flecha:focus-visible { /* PGT-55 last items 2026-11-20: HS-11 */
    border-color: var(--pk-accion);
    text-decoration: none;
  }
  /* After two agencies the invitation is the third item: the two last columns, the icon beside the text. */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(3) { grid-column: 3 / -1; } /* PGT-55 last items 2026-11-20: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(3) .pk-prof-invita { /* PGT-55 last items 2026-11-20: HS-11 */
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 28px;
    padding: 32px 36px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(3) .pk-prof-invita::before { /* PGT-55 last items 2026-11-20: HS-11 */
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: center;
    width: 88px;
    height: 88px;
    margin: 0;
    background-size: 40px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(3) .pk-prof-invita > * { grid-column: 2; } /* PGT-55 last items 2026-11-20: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(3) .pk-prof-invita__titulo { font-size: 24px; } /* PGT-55 last items 2026-11-20: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(3) .pk-prof-invita p { font-size: 1rem; } /* PGT-55 last items 2026-11-20: HS-11 */
}
/* After three agencies, between 992 and 1199 px the fourth column is 223-249 px wide (219 at 992 in a window with a classic scrollbar): a 16 px side inset, a 48 px icon and the plans label at 14 px (the size of the agency cards' 'Ver perfil'), so the button keeps a 12 px inset inside the panel and the panel stays within the 309 px height of the agency cards. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(4) .pk-prof-invita { padding: 24px 16px; } /* PGT-55 last items 2026-11-20: HS-11 */
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(4) .pk-prof-invita::before { /* PGT-55 last items 2026-11-20: HS-11 */
    width: 48px;
    height: 48px;
    background-size: 22px;
  }
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita:nth-child(4) .pk-enlace-flecha { /* PGT-55 last items 2026-11-20: HS-11 */
    padding: 0 12px;
    font-size: .875rem;
  }
}

/* PGT-55 last items 2026-11-20: HS-11 on phones - below 640 px the invitation was the last dashed box on the home page while from 640 px it is the finished panel; it now has the same solid border, tint and shadow (still the compact full-row band, no icon). */
@media (max-width: 639.98px) {
  :where(body.pk-publico) .pk-home .pk-prof-rejilla__invita .pk-prof-invita { /* PGT-55 last items 2026-11-20: HS-11 */
    border: 1px solid var(--pk-n100);
    background:
      radial-gradient(420px 260px at 100% 0%, rgba(237, 0, 40, .07), rgba(237, 0, 40, 0) 70%),
      linear-gradient(135deg, var(--pk-n0) 0%, var(--pk-n50) 100%);
    box-shadow: var(--pk-s1);
  }
}
