/* =========================================================================
   Propeka — Marco común con la presentación de propeka.com
   =========================================================================
   Instrucción del propietario: «propeka.gt as close as possible to
   propeka.com» (D-PAR-01, D-PAR-02, D-PAR-03; 2026-11-03).

   Esta hoja se carga la ÚLTIMA en toda página pública (`body.pk-publico`):
   depende de cada hoja de Propeka que la página tenga en cola
   (propeka-assets.php), así que gana los empates por orden de carga. Las
   hojas de página (portada, ficha, resultados, planes, estáticas,
   profesionales) cargan después de esta.

   Reglas de convivencia:
     - los componentes de Propeka se acotan con `:where(body.pk-publico)`, que
       no suma especificidad (validate-source.ps1, comprobación 4c);
     - solo las superficies del proveedor que usan `!important` o CSS en
       línea de Houzez (cabecera de 70 px, `.container`, `.btn-primary`, la
       ventana de acceso) se escalan con `body.pk-publico` y `!important`;
     - el panel (`body.pk-panel`) no recibe esta hoja: conserva su aspecto
       hasta la fase 8 y las superficies congeladas F-01, F-02 y F-03 no
       cambian.

   Valores resueltos de propeka-site.css de EE. UU.; los nombres de clase de
   Guatemala se conservan donde los leen el JavaScript o las pruebas.

   Orden: 1 tipografía · 2 foco · 3 cabecera · 4 cabecera móvil y cajón ·
          5 pie · 6 botones, enlaces, chips y distintivos · 7 campos ·
          8 cabeceras de sección · 9 saltar al contenido · 10 avisos de acceso
   ========================================================================= */

/* --- 1. Tipografía (S2, D-PAR-01) -------------------------------------- */
body.pk-publico { --pk-fuente: var(--pk-fuente-marca); }
:where(body.pk-publico) .pk-app { font-family: var(--pk-fuente); }

/* Houzez imprime su tipografía sin reserva («Plus Jakarta Sans» a secas) en
   estos selectores; se repite la misma familia con la cara de reserva. */
body.pk-publico .btn,
body.pk-publico .form-control,
body.pk-publico .bootstrap-select .text,
body.pk-publico .item-title,
body.pk-publico .footer-wrap {
  font-family: var(--pk-fuente);
}

/* Encabezados de página: la escala de propeka.com (S13). */
body.pk-publico .page-title h1,
body.pk-publico .page-title,
body.pk-publico h1.entry-title {
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
:where(body.pk-publico) .pk-h1 { font-weight: 800; }
:where(body.pk-publico) .pk-h2 { font-weight: 700; }

/* --- 2. Foco (S10) ------------------------------------------------------ */
/* Enlaces: contorno de 3 px en el azul de enlace. Botones y campos: anillo
   de 3 px con `box-shadow`, porque el padre remata `button:focus` y
   `.btn:focus` con `outline: none !important`. Nada de marino. */
:where(body.pk-publico) a:focus-visible {
  outline: 3px solid var(--pk-enlace);
  outline-offset: 2px;
}
:where(body.pk-publico) .mobile-navbar-nav .nav-link:focus-visible,
:where(body.pk-publico) .dropdown-item:focus-visible { outline-offset: -3px; }
:where(body.pk-publico) button:focus-visible,
:where(body.pk-publico) .btn:focus-visible,
:where(body.pk-publico) .pk-btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px var(--pk-enlace) !important;
}

/* --- 3. Cabecera de escritorio (S6) ------------------------------------- */
body.pk-publico #header-section.header-v1 {
  position: relative;
  z-index: 1020; /* el menú de la cuenta abre por encima de la barra de filtros */
  background: var(--pk-n0);
  border-bottom: 1px solid var(--pk-linea);
  box-shadow: none;
}
/* Houzez fija `height: 70px` en línea; propeka.com usa 78. */
body.pk-publico #header-section.header-v1 .header-inner-wrap,
body.pk-publico #header-section.header-v1 .navbar {
  height: auto !important;
  min-height: 78px;
}
body.pk-publico #header-section.header-v1 .navbar { align-items: center; }
body.pk-publico #header-section .logo img {
  width: auto;
  height: 30px;
  max-height: none;
  max-width: none;
}
body.pk-publico #header-section .logo-desktop { margin-right: 0; }

/* Navegación: cinco entradas planas, 15/600 en tinta, subrayado animado. */
body.pk-publico #header-section .main-nav,
body.pk-publico #header-section .main-nav .navbar-nav {
  height: auto !important;
  align-items: center;
}
body.pk-publico #header-section .main-nav .navbar-nav {
  justify-content: flex-start !important; /* la utilidad de Bootstrap es !important */
  gap: 4px;
  margin-left: 36px;
}
body.pk-publico #header-section .main-nav .navbar-nav > li {
  display: flex;
  align-items: center;
  height: auto;
}
body.pk-publico #header-section .main-nav .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: auto !important;
  min-height: 44px;
  padding: 10px 14px !important;
  border-radius: 8px;
  background: transparent;
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2 !important; /* Houzez imprime line-height: 70px */
  text-transform: none;
}
body.pk-publico #header-section .main-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border: 0;
  border-radius: 2px;
  background: var(--pk-primario);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s cubic-bezier(.2,.7,.4,1);
}
body.pk-publico #header-section .main-nav .nav-link:hover,
body.pk-publico #header-section .main-nav .nav-link:focus-visible,
body.pk-publico #header-section .main-nav .current-menu-item > .nav-link {
  background: transparent;
  color: var(--pk-accion);
}
body.pk-publico #header-section .main-nav .nav-link:hover::after,
body.pk-publico #header-section .main-nav .current-menu-item > .nav-link::after { transform: scaleX(1); }

/* Acceso como texto y la acción principal. */
body.pk-publico #header-section .login-register { margin-left: auto; }
body.pk-publico #header-section .login-register-nav { gap: 4px; }
body.pk-publico #header-section .login-register-nav > li { margin: 0; padding: 0; }
body.pk-publico #header-section .login-register .login-link a,
body.pk-publico #header-section .login-register .register-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
body.pk-publico #header-section .login-register .login-link a:hover,
body.pk-publico #header-section .login-register .register-link a:hover { color: var(--pk-primario-osc); }
/* El enlace de favoritas de Houzez no está en la cabecera de propeka.com;
   las favoritas siguen en el cajón móvil y en el menú de la cuenta. */
body.pk-publico #header-section .login-register-nav .favorite-link { display: none; }

body.pk-publico #header-section .btn.btn-create-listing {
  display: inline-flex !important; /* `d-md-block` de Bootstrap es !important */
  align-items: center;
  height: auto;
  min-height: 44px;
  margin-left: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--pk-accion);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 44px;
  text-transform: none;
  transition: background-color var(--pk-t), transform var(--pk-t), box-shadow var(--pk-t);
}
body.pk-publico #header-section .btn.btn-create-listing:hover,
body.pk-publico #header-section .btn.btn-create-listing:focus-visible {
  background: var(--pk-accion-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(237, 0, 40, .25);
}
body.pk-publico #header-section .btn.btn-create-listing:active { transform: none; box-shadow: none; }
body.pk-publico #header-section .btn.btn-create-listing:focus-visible {
  box-shadow: 0 0 0 3px var(--pk-enlace) !important;
}

/* De 992 a 1199 px (cabecera de escritorio de Houzez) la fila no cabía: logo
   120 + menú 586 + acceso 419 = 1125 px frente a 952-1152 útiles, y
   `.navbar { flex-wrap: wrap }` de Bootstrap bajaba el acceso a una segunda
   fila (cabecera de 90 px y logo pegado arriba a 1024; medido el 2026-11-10).
   Aquí solo se compactan rellenos y huecos; los objetivos siguen en 44 px. Con
   8 px de relleno lateral la fila pedía 938 px y a 992 con la barra de
   desplazamiento clásica de Windows (15 px) quedan 937: con 7 px pide 924. El
   `!important` del relleno solo vence al de esta misma hoja (más arriba). */
@media (min-width: 992px) and (max-width: 1199.98px) {
  body.pk-publico #header-section .main-nav .navbar-nav { margin-left: 12px; gap: 0; }
  body.pk-publico #header-section .main-nav .nav-link { padding: 10px 7px !important; font-size: 14px; }
  body.pk-publico #header-section .main-nav .nav-link::after { right: 7px; left: 7px; }
  body.pk-publico #header-section .login-register-nav { gap: 0; }
  body.pk-publico #header-section .login-register .login-link a,
  body.pk-publico #header-section .login-register .register-link a { padding: 10px 7px; font-size: 14px; }
  body.pk-publico #header-section .btn.btn-create-listing { margin-left: 4px; padding: 0 14px; font-size: 14px; }
}

/* Con sesión: avatar redondo de 42 px o iniciales sobre tinta. */
body.pk-publico #header-section .navbar-logged-in-wrap .dropdown-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 4px;
  border-radius: 50%;
}
body.pk-publico #header-section .navbar-logged-in-wrap .dropdown-toggle::after { display: none; }
body.pk-publico #header-section .navbar-logged-in-wrap .dropdown-toggle img {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50% !important;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--pk-n200);
}
body.pk-publico #header-section .navbar-logged-in-wrap .dropdown-toggle.pk-avatar--iniciales img { display: none; }
body.pk-publico #header-section .navbar-logged-in-wrap .dropdown-toggle.pk-avatar--iniciales::before {
  content: attr(data-pk-iniciales);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pk-tinta);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background var(--pk-t);
}
body.pk-publico #header-section .navbar-logged-in-wrap .dropdown-toggle.pk-avatar--iniciales:hover::before { background: var(--pk-primario-osc); }
body.pk-publico #header-section .logged-in-nav.dropdown-menu {
  min-width: 224px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--pk-n100);
  border-radius: 12px;
  box-shadow: var(--pk-s3);
}
body.pk-publico #header-section .logged-in-nav .side-menu-item { border: 0; }
body.pk-publico #header-section .logged-in-nav .side-menu-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 600;
}
body.pk-publico #header-section .logged-in-nav .side-menu-item a:hover {
  background: var(--pk-n50);
  color: var(--pk-primario-osc);
}
body.pk-publico #header-section .logged-in-nav .side-menu-item a .houzez-icon {
  margin: 0 !important;
  color: var(--pk-txt-sec);
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  body.pk-publico #header-section .main-nav .nav-link::after,
  body.pk-publico #header-section .btn.btn-create-listing { transition: none; }
  body.pk-publico #header-section .btn.btn-create-listing:hover { transform: none; }
}

/* --- 4. Cabecera móvil y cajón (S8) ------------------------------------- */
body.pk-publico #header-mobile {
  height: auto;
  min-height: 64px;
  background: var(--pk-n0);
  border-bottom: 1px solid var(--pk-linea);
}
body.pk-publico #header-mobile .logo img {
  width: auto;
  height: 26px;
  max-height: none;
}
body.pk-publico #header-mobile .toggle-button-left,
body.pk-publico #header-mobile .toggle-button-right {
  min-width: 44px;
  min-height: 44px;
  padding: 0; /* no hereda el relleno de 22 px de `.btn` (sección 6) */
  color: var(--pk-tinta);
  font-size: 20px;
}
/* Sin fondo rojo al apuntar los dos botones de la cabecera móvil. */
body.pk-publico #header-mobile .toggle-button-left:hover,
body.pk-publico #header-mobile .toggle-button-right:hover {
  background: var(--pk-n50);
  color: var(--pk-tinta);
}

body.pk-publico .offcanvas.offcanvas-mobile-menu { width: min(340px, 88vw); }
body.pk-publico .offcanvas-mobile-menu .offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--pk-n100);
}
body.pk-publico .offcanvas-mobile-menu .offcanvas-title {
  color: var(--pk-tinta);
  font-size: .75rem !important;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
body.pk-publico .offcanvas-mobile-menu .offcanvas-title img {
  display: block;
  width: auto;
  height: 26px;
}
body.pk-publico .offcanvas-mobile-menu .offcanvas-header .btn-close {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 -6px 0 auto;
  padding: 0;
  border-radius: 50%;
  background: var(--pk-n50);
  color: var(--pk-tinta);
  opacity: 1;
}
body.pk-publico .offcanvas-mobile-menu .offcanvas-header .btn-close .houzez-icon {
  font-size: 14px;
  line-height: 1;
}
body.pk-publico .mobile-navbar-nav .nav-item { border-color: var(--pk-n100) !important; }
body.pk-publico .mobile-navbar-nav .nav-link {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 20px !important;
  color: var(--pk-tinta) !important;
  font-size: 1rem;
  font-weight: 600;
}
body.pk-publico .mobile-navbar-nav .nav-link:hover,
body.pk-publico .mobile-navbar-nav .current-menu-item > .nav-link { color: var(--pk-primario-osc) !important; }

/* Acciones por rol al pie del cajón (#pk-acciones-movil). */
:where(body.pk-publico) .pk-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}
:where(body.pk-publico) .pk-mobile-actions__primary,
:where(body.pk-publico) .pk-mobile-actions__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
:where(body.pk-publico) .pk-mobile-actions__primary {
  grid-column: 1 / -1;
  border: 0;
  background: var(--pk-accion);
  color: #fff !important;
}
:where(body.pk-publico) .pk-mobile-actions__primary:hover { background: var(--pk-accion-hover); }
:where(body.pk-publico) .pk-mobile-actions__secondary {
  border: 1px solid var(--pk-n200);
  background: var(--pk-n0);
  color: var(--pk-tinta) !important;
}
:where(body.pk-publico) .pk-mobile-actions__secondary:hover { border-color: var(--pk-tinta); }
:where(body.pk-publico) .pk-mobile-actions__primary + .pk-mobile-actions__secondary:last-child { grid-column: 1 / -1; }

/* --- 5. Pie de marca (S9) ----------------------------------------------- */
:where(body.pk-publico) .pk-pie.pk-pie--marca {
  margin-top: 0;
  padding: 36px 0 20px;
  border-top: 1px solid var(--pk-linea);
  background: var(--pk-n50);
  color: var(--pk-tinta-suave);
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__interior {
  padding-block: 0;
  padding-inline: max(16px, var(--pk-pad));
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__cabecera {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--pk-linea);
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__rejilla {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  border: 0;
}
:where(body.pk-publico) .pk-pie__logo { display: inline-flex; align-items: center; min-height: 44px; }
:where(body.pk-publico) .pk-pie__logo img { display: block; width: auto; height: 30px; }
:where(body.pk-publico) .pk-pie__entrada {
  max-width: 42ch;
  margin: 6px 0 0;
  color: var(--pk-tinta-suave);
  font-size: 15px;
  line-height: 1.6;
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__titulo {
  margin: 0 0 8px;
  padding: 0;
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: none;
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__lista {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__lista li,
:where(body.pk-publico) .pk-pie--marca .pk-pie__lista li + li { margin: 0; }
:where(body.pk-publico) .pk-pie--marca .pk-pie__lista a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--pk-tinta-suave);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__lista a:hover,
:where(body.pk-publico) .pk-pie--marca .pk-pie__lista a:focus-visible {
  color: var(--pk-primario-osc);
  text-decoration: underline;
  text-underline-offset: 3px;
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__nota {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  justify-self: end;
  gap: 12px 16px;
  width: min(100%, 28rem);
  padding: 12px;
  border: 1px solid var(--pk-linea);
  border-radius: var(--pk-r-lg);
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__nota .pk-pie__titulo { margin: 0; }
:where(body.pk-publico) .pk-pie--marca .pk-pie__nota-enlace {
  gap: 6px;
  min-height: 44px;
  padding-inline: 12px;
  font-size: 14px;
  white-space: nowrap;
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__nota-enlace .pk-icono { width: 16px; height: 16px; }
:where(body.pk-publico) .pk-pie--marca .pk-pie__base {
  display: block;
  margin-top: 24px;
  padding: 16px 0 0;
  border-top: 1px solid var(--pk-linea);
}
:where(body.pk-publico) .pk-pie--marca .pk-pie__aviso { margin: 0; color: var(--pk-apagado); font-size: 13px; }

@media (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-pie--marca .pk-pie__lista { gap: 0; }
  :where(body.pk-publico) .pk-pie--marca .pk-pie__lista a {
    display: flex;
    min-width: 44px;
    min-height: 44px;
  }
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-pie.pk-pie--marca { padding-top: 24px; }
  :where(body.pk-publico) .pk-pie--marca .pk-pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :where(body.pk-publico) .pk-pie--marca .pk-pie__cabecera {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }
  :where(body.pk-publico) .pk-pie--marca .pk-pie__nota { width: 100%; }
  :where(body.pk-publico) .pk-pie--marca .pk-pie__base { margin-top: 16px; padding-top: 12px; }
}

/* «Búsquedas populares» con el aspecto de las búsquedas relacionadas de
   propeka.com (`.pk-related`). Conserva sus doce enlaces. */
:where(body.pk-publico) .pk-populares.pk-related {
  margin: 0;
  padding: 48px 0 40px;
  border-top: 1px solid var(--pk-linea);
  background: var(--pk-n0);
}
:where(body.pk-publico) .pk-related__title {
  margin: 0 0 18px;
  color: var(--pk-tinta);
  font-size: clamp(1.375rem, 1.1rem + .8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
:where(body.pk-publico) .pk-related__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(body.pk-publico) .pk-related__list a {
  display: inline-block;
  padding-block: 6px;
  color: var(--pk-enlace);
  font-size: 15px;
  text-decoration: none;
}
:where(body.pk-publico) .pk-related__list a:hover {
  color: var(--pk-primario-osc);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-populares.pk-related { padding-block: 26px 22px; }
  :where(body.pk-publico) .pk-populares .pk-related__title { margin-bottom: 8px; }
  :where(body.pk-publico) .pk-populares .pk-related__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
  }
  :where(body.pk-publico) .pk-populares .pk-related__list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-block: 4px;
    font-size: 14px;
    line-height: 1.35;
    text-wrap: balance;
  }
}
@media (max-width: 359.98px) {
  :where(body.pk-publico) .pk-populares .pk-related__list { grid-template-columns: minmax(0, 1fr); }
}

/* --- 6. Botones, enlaces, chips y distintivos (S10) --------------------- */
:where(body.pk-publico) .pk-btn,
body.pk-publico .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--pk-t), border-color var(--pk-t), color var(--pk-t), box-shadow var(--pk-t), transform var(--pk-t);
}
/* Controles compactos: barra de resultados, hoja de filtros, orden. */
:where(body.pk-publico) :is(.pk-barra, .pk-movil-barra, .pk-hoja, .pk-orden) .pk-btn { min-height: 44px; }
body.pk-publico .btn.btn-sm { min-height: 36px; padding: 0 14px; }

/* Un solo rojo para todo botón (#c50021, 6,2:1 con blanco). */
:where(body.pk-publico) .pk-btn--primario,
:where(body.pk-publico) .pk-btn--primary {
  border-color: var(--pk-accion);
  background: var(--pk-accion);
  color: #fff;
}
:where(body.pk-publico) .pk-btn--primario:hover,
:where(body.pk-publico) .pk-btn--primary:hover {
  border-color: var(--pk-accion-hover);
  background: var(--pk-accion-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(237, 0, 40, .25);
}
:where(body.pk-publico) :is(.pk-btn--primario, .pk-btn--primary):active { transform: none; box-shadow: none; }
body.pk-publico .btn-primary:not(.btn-secondary-outlined),
body.pk-publico .btn-primary:not(.btn-secondary-outlined):focus {
  border-color: var(--pk-accion);
  background-color: var(--pk-accion);
  color: #fff;
}
body.pk-publico .btn-primary:not(.btn-secondary-outlined):hover,
body.pk-publico .btn-primary:not(.btn-secondary-outlined):active {
  border-color: var(--pk-accion-hover);
  background-color: var(--pk-accion-hover);
}
body.pk-publico .login-form-wrap .btn-login,
body.pk-publico .login-form-wrap .btn-primary,
body.pk-publico #houzez-login-btn,
body.pk-publico #houzez-register-btn,
body.pk-publico .btn-login,
body.pk-publico .btn-search {
  border-color: var(--pk-accion) !important;
  background: var(--pk-accion) !important;
  color: #fff !important;
}
body.pk-publico .login-form-wrap .btn-login:hover,
body.pk-publico .login-form-wrap .btn-primary:hover,
body.pk-publico #houzez-login-btn:hover,
body.pk-publico #houzez-register-btn:hover,
body.pk-publico .btn-login:hover,
body.pk-publico .btn-search:hover {
  border-color: var(--pk-accion-hover) !important;
  background: var(--pk-accion-hover) !important;
}

:where(body.pk-publico) .pk-btn--secundario,
:where(body.pk-publico) .pk-btn--secondary,
:where(body.pk-publico) .pk-btn--borde {
  border: 1px solid var(--pk-n200);
  background: var(--pk-n0);
  color: var(--pk-tinta);
  box-shadow: none;
}
:where(body.pk-publico) .pk-btn--secundario:hover,
:where(body.pk-publico) .pk-btn--secondary:hover,
:where(body.pk-publico) .pk-btn--borde:hover {
  border-color: var(--pk-tinta);
  background: var(--pk-n0);
  color: var(--pk-tinta);
}
:where(body.pk-publico) .pk-btn--fantasma { color: var(--pk-tinta); }
:where(body.pk-publico) .pk-btn--grande,
:where(body.pk-publico) .pk-btn--lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

/* «Ver todas…»: enlace con flecha (alias de `.pk-link-arrow`). */
:where(body.pk-publico) .pk-enlace-flecha,
:where(body.pk-publico) .pk-link-arrow,
:where(body.pk-publico) .pk-seccion__enlace,
:where(body.pk-publico) .pk-section__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pk-primario-osc);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
:where(body.pk-publico) :is(.pk-enlace-flecha, .pk-link-arrow, .pk-seccion__enlace, .pk-section__link):hover {
  color: var(--pk-accion-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}
:where(body.pk-publico) :is(.pk-enlace-flecha, .pk-link-arrow, .pk-seccion__enlace, .pk-section__link) .pk-icono {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

:where(body.pk-publico) .pk-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--pk-n200);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--pk-tinta);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Distintivos de Houzez en la ficha y en las páginas compuestas, con el
   mismo estilo que `.pk-badge` (propeka.css). */
body.pk-publico .label-featured,
body.pk-publico .label-wrap .label-featured {
  background: var(--pk-primario);
  color: #fff;
  letter-spacing: .01em;
  text-transform: none;
}
body.pk-publico .label-status,
body.pk-publico .label.label-status {
  background: rgba(255, 255, 255, .94);
  color: var(--pk-tinta);
  letter-spacing: .01em;
  text-transform: none;
}
body.pk-publico :is(.label-featured, .label-status) {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 24px;
}

/* --- 7. Campos de formulario (S11) -------------------------------------- */
/* Un solo sistema de campos en las páginas públicas: 48 px, radio 10, filete
   n200, tinta a 15 px (16 en teléfonos, para que iOS no amplíe). Sustituye a
   los dos lenguajes de propeka-sitio.css en estas páginas. El asistente de
   publicación (F-02) es del panel y no recibe esta hoja. */
:where(body.pk-publico) .pk-campo,
body.pk-publico .form-control {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  background-color: var(--pk-n0);
  color: var(--pk-tinta);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: none;
}
:where(body.pk-publico) textarea.pk-campo,
body.pk-publico textarea.form-control {
  min-height: 132px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}
:where(body.pk-publico) .pk-campo:focus,
body.pk-publico .form-control:focus {
  border-color: var(--pk-tinta);
  box-shadow: var(--pk-foco);
  outline: none;
}
:where(body.pk-publico) .pk-campo::placeholder,
body.pk-publico .form-control::placeholder { color: var(--pk-txt-ter); opacity: 1; }
:where(body.pk-publico) select.pk-campo,
body.pk-publico select.form-control {
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' 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-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  appearance: none;
}
:where(body.pk-publico) .pk-etiqueta,
body.pk-publico .form-label {
  display: block;
  margin: 0 0 6px;
  color: var(--pk-tinta);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
:where(body.pk-publico) .pk-campo__ayuda {
  margin: 6px 0 0;
  color: var(--pk-apagado);
  font-size: 13px;
  line-height: 1.5;
}
:where(body.pk-publico) .pk-campo__error {
  margin: 6px 0 0;
  color: var(--pk-error);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
:where(body.pk-publico) .pk-campo.is-invalid,
body.pk-publico .form-control.is-invalid {
  border: 2px solid var(--pk-error);
}
:where(body.pk-publico) .pk-campo__obligatorio { margin-left: 2px; color: var(--pk-accion); }
:where(body.pk-publico) .pk-campo__opcional { color: var(--pk-apagado); font-weight: 400; }
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-campo,
  body.pk-publico .form-control { font-size: 16px; }
}

/* El formulario de soporte de /contacto/ y el de sugerencias tienen su hoja
   de página desde la fase 5: propeka-estaticas.css (`.pk-support-form*`). */

/* --- 8. Cabeceras de sección (S13) -------------------------------------- */
:where(body.pk-publico) .pk-seccion__cab,
:where(body.pk-publico) .pk-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}
:where(body.pk-publico) .pk-seccion__titulo,
:where(body.pk-publico) .pk-section__title {
  margin: 0;
  color: var(--pk-tinta);
  font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.018em;
  line-height: 1.18;
  text-wrap: balance;
}
:where(body.pk-publico) .pk-seccion__entrada,
:where(body.pk-publico) .pk-section__lead {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--pk-txt-sec);
  font-size: 16px;
  line-height: 1.5;
}
/* Ritmo de las secciones nuevas (clases de propeka.com). `.pk-seccion` no se
   toca aquí: la hoja de filtros la usa con su propio ritmo. */
:where(body.pk-publico) .pk-section { padding: 56px 0; }
:where(body.pk-publico) .pk-section + .pk-section { padding-top: 0; }
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-seccion__cab,
  :where(body.pk-publico) .pk-section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
  }
  :where(body.pk-publico) .pk-section { padding: 40px 0; }
  :where(body.pk-publico) .pk-section + .pk-section { padding-top: 0; }
}

/* --- 9. Saltar al contenido principal (S14) ----------------------------- */
:where(body.pk-publico) .pk-skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--pk-r-sm);
  background: var(--pk-n0);
  box-shadow: var(--pk-s3);
  color: var(--pk-tinta);
  font-family: var(--pk-fuente);
  font-size: var(--pk-fs-base);
  font-weight: var(--pk-fw-semi);
  line-height: var(--pk-lh-base);
  text-decoration: none;
}
:where(body.pk-publico) .pk-skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  box-shadow: none;
}
:where(body.pk-publico) .pk-skip-link:focus { outline: 3px solid var(--pk-enlace); outline-offset: 2px; }
:where(body.pk-publico.admin-bar) .pk-skip-link { top: 40px; }
@media (max-width: 782px) {
  :where(body.pk-publico.admin-bar) .pk-skip-link { top: 54px; }
}
:where(body.pk-publico) .pk-skip-target:focus { outline: 0; }

/* --- 10. Avisos de la ventana de acceso (S15) --------------------------- */
/* El aviso de intención de publicar y el recuadro del plan, como el
   `.pk-auth-notice` de propeka.com: panel plano con filete de tinta. */
:where(body.pk-publico) .pk-auth-notice,
:where(body.pk-publico) .pk-registro-plan {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--pk-n100);
  border-left: 3px solid var(--pk-tinta);
  border-radius: 10px;
  background: var(--pk-n50);
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================================================
   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 and shell ---- */
/* PGT-55 HS-04: listing card - the property type chip always shows its whole label. It shares the row with the price while both fit and drops under the price when they do not (it was cut to "Local Come..." at 320, 375 and 1440). Loads after the card rules in propeka.css with the same weight, so no extra specificity. */
:where(body.pk-publico) .pk-tarjeta__fila-precio {
  flex-wrap: wrap;
  row-gap: 4px;
}
:where(body.pk-publico) .pk-tarjeta__tipo {
  flex: none;
  max-width: 100%;
}

/* PGT-55 HS-10: listing card - the type chip is centred on the price (baseline alignment left it hanging 3-5 px below), and the save button uses the badge's 12 px inset (was 10 px). */
:where(body.pk-publico) .pk-tarjeta__fila-precio { align-items: center; }
:where(body.pk-publico) .pk-tarjeta .pk-fav {
  top: 12px;
  right: 12px;
}

/* PGT-55 HS-07: one red for every primary button. The site sheet paints every submit button in the fill red (body.pk-sitio button[type="submit"], weight 0,2,2), which out-ranked the zero-weight .pk-btn--primario rule above; three classes (0,3,0) win it back without !important. */
:where(body.pk-publico) .pk-btn.pk-btn--primario[type="submit"],
:where(body.pk-publico) .pk-btn.pk-btn--primary[type="submit"] {
  border-color: var(--pk-accion);
  background: var(--pk-accion);
}
:where(body.pk-publico) .pk-btn.pk-btn--primario[type="submit"]:hover,
:where(body.pk-publico) .pk-btn.pk-btn--primario[type="submit"]:focus-visible,
:where(body.pk-publico) .pk-btn.pk-btn--primary[type="submit"]:hover,
:where(body.pk-publico) .pk-btn.pk-btn--primary[type="submit"]:focus-visible {
  border-color: var(--pk-accion-hover);
  background: var(--pk-accion-hover);
}

/* PGT-55 HS-08: the wordmark sits on the bar's centre line. The parent theme lifts it 3 px (.logo img { top: -3px }), so it rode above the nav labels and above the phone menu and account icons. */
body.pk-publico #header-section .logo img,
body.pk-publico #header-mobile .logo img { top: 0; }

/* PGT-55 HS-09: phone and tablet bar - the menu and account icons start and end on the page gutter (they sat 2 to 14 px inside it) and the wordmark is centred between them; the 44 px touch areas now reach the screen edge. The menu glyph has 2 px of empty space on its left, the account glyph none on its right. */
body.pk-publico #header-mobile { padding-inline: 0; }
body.pk-publico #header-mobile .header-mobile-left,
body.pk-publico #header-mobile .header-mobile-right {
  flex: none;
  width: auto;
  min-width: 0;
}
body.pk-publico #header-mobile .toggle-button-left {
  width: auto;
  padding-inline: calc(var(--pk-pad) - 2px) 12px;
}
body.pk-publico #header-mobile .toggle-button-right {
  width: auto;
  padding-inline: 12px var(--pk-pad);
}
body.pk-publico #header-mobile .toggle-button-right .houzez-icon { margin-left: 0 !important; /* Bootstrap .ms-1 on the Houzez icon is !important */ }

/* PGT-55 HS-13: phones - the "see all" link beside a section heading is a 44 px touch target. The negative margin keeps the heading block exactly where it was. */
@media (max-width: 767.98px) {
  :where(body.pk-publico) .pk-seccion__cab > .pk-seccion__enlace,
  :where(body.pk-publico) .pk-section__head > .pk-section__link {
    min-height: 44px;
    margin-block: -10px;
  }
}

/* PGT-55 HS-16: the arrow icon carries empty space after its tip (5 of its 24 units: 4 px at 19-20 px, 3 px at 16-18 px), so right-aligned arrows stopped short of the gutter, the card's text edge and the button's optical padding. */
:where(body.pk-publico) :is(.pk-enlace-flecha, .pk-seccion__enlace) > .pk-icono:last-child { margin-right: -4px; }
:where(body.pk-publico) .pk-anunciante__ir > .pk-icono,
:where(body.pk-publico) .pk-pie--marca .pk-pie__nota-enlace > .pk-icono:last-child { margin-right: -3px; }

/* PGT-55 HS-18: popular searches read in ink with the brand red on hover, like the related searches of propeka.com; they were the only indigo block on the page. From 1200 px the twelve links fill three rows of four. */
:where(body.pk-publico) .pk-populares .pk-related__list a {
  color: var(--pk-tinta);
  font-weight: 500;
}
:where(body.pk-publico) .pk-populares .pk-related__list a:hover,
:where(body.pk-publico) .pk-populares .pk-related__list a:focus-visible {
  color: var(--pk-primario-osc);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (min-width: 1200px) {
  :where(body.pk-publico) .pk-populares .pk-related__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- PGT-55 sign-in dialog ---- */
/* PGT-55 auth-02: el conmutador ocupa la fila en dos mitades iguales (como la
   tarjeta de acceso de propeka.com) y el cierre conserva sus 44 px a cualquier
   ancho. Antes el conmutador medía 280 px fijos: a 360 px dejaba el cierre en
   20 x 44 px y en escritorio sobraban 62 px. Las reglas con `body.pk-publico`
   igualan la especificidad (0,5,1) de propeka-sitio.css y ganan por orden de
   carga; las demás no tienen rival y van con `:where()`. */
:where(body.pk-publico) :is(.login-register-form, .reset-password-form) .modal-header { gap: 8px; }
:where(body.pk-publico) .login-register-form .modal-header .login-register-tabs { flex: 1 1 auto; min-width: 0; }
body.pk-publico .login-register-form .modal-header .login-register-tabs .nav-tabs { display: flex; }
:where(body.pk-publico) .login-register-form .modal-header .login-register-tabs .nav-item { flex: 1 1 0; min-width: 0; }
body.pk-publico .login-register-form .modal-header .login-register-tabs .nav-link {
  justify-content: center;
  width: 100%;
  padding-right: 4px;
  padding-left: 4px;
}
:where(body.pk-publico) :is(.login-register-form, .reset-password-form) .modal-header .close { flex: 0 0 44px; }

/* PGT-55 auth-16: el mismo aire en los cuatro lados de la ventana (28 px en
   escritorio, 20 px en teléfonos). El relleno derecho de la cabecera deja el
   aspa del cierre sobre el borde derecho de los campos y sitio para su anillo
   de foco. Misma especificidad (0,3,1) que propeka-sitio.css; gana por orden
   de carga. */
body.pk-publico :is(.login-register-form, .reset-password-form) .modal-header { padding: 28px 12px 0 28px; }
@media (max-width: 575.98px) {
  body.pk-publico :is(.login-register-form, .reset-password-form) .modal-header { padding: 20px 6px 0 20px; }
  body.pk-publico :is(.login-register-form, .reset-password-form) .modal-body { padding: 16px 20px 20px; }
}

/* PGT-55 auth-07: por debajo de 375 px la ventana lleva 16 px a los lados. A
   360 px la columna pasa de 296 a 304 px y la verificación del alta cabe a
   todo lo ancho (el guion elige la caja compacta de 150 px por debajo de
   300 px). */
@media (max-width: 374.98px) {
  body.pk-publico :is(.login-register-form, .reset-password-form) .modal-header { padding: 16px 6px 0 16px; }
  body.pk-publico :is(.login-register-form, .reset-password-form) .modal-body { padding: 16px; }
}

/* PGT-55 auth-08: la ventana se ancla por arriba en vez de centrarse. Las dos
   pestañas miden distinto (452 y 567 px a 1440), así que al cambiar de pestaña
   el conmutador recién pulsado saltaba entre 43 y 104 px. El borde superior
   queda donde empezaría la pestaña más alta (unos 580 px) si estuviera
   centrada, de modo que la ventana se sigue viendo centrada; en teléfonos
   sube al 10 % del alto para dejar sitio al teclado. `min-height: 0` evita que
   el margen sume altura y aparezca desplazamiento. Misma especificidad
   (0,3,1) que la regla de propeka-sitio.css para la ventana de recuperación. */
body.pk-publico :is(.login-register-form, .reset-password-form) .modal-dialog {
  align-items: flex-start;
  min-height: 0;
  margin-top: max(12px, calc(50vh - 290px));
}
@media (max-width: 575.98px) {
  body.pk-publico :is(.login-register-form, .reset-password-form) .modal-dialog { margin-top: clamp(12px, 10vh, 96px); }
}

/* PGT-55 auth-12: el aspa del cierre es un dibujo y no el carácter de
   multiplicar: queda centrada en el botón en las dos ventanas (en la de
   recuperar contraseña caía 5 px) y no depende de la tipografía. Los trazos
   son bordes, no fondos, para que sigan viéndose con colores forzados. */
:where(body.pk-publico) :is(.login-register-form, .reset-password-form) .modal-header .close span {
  position: relative;
  top: 0;
  display: block;
  width: 16px;
  height: 16px;
  font-size: 0;
  line-height: 0;
}
:where(body.pk-publico) :is(.login-register-form, .reset-password-form) .modal-header .close span::before,
:where(body.pk-publico) :is(.login-register-form, .reset-password-form) .modal-header .close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 0;
  border-top: 2px solid currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}
:where(body.pk-publico) :is(.login-register-form, .reset-password-form) .modal-header .close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* PGT-55 auth-05: el aviso sobre el acceso usa el mismo panel que los demás
   avisos de la ventana (`.pk-auth-notice`: filete de tinta, fondo n50). Antes
   llevaba el marino #004274 y el mismo borde y radio que los campos de debajo,
   así que se leía como un tercer campo. */
:where(body.pk-publico) .login-register-form .pk-acceso-aviso {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--pk-n100);
  border-left: 3px solid var(--pk-tinta);
  border-radius: 10px;
  background: var(--pk-n50);
  color: var(--pk-tinta);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  text-wrap: balance;
}

/* PGT-55 auth-03: 16 px en teléfonos para que iOS no amplíe la página al
   tocar un campo. La regla de 15 px de propeka-sitio.css (0,4,2) vencía a la de
   16 px de esta hoja; misma especificidad, gana por orden de carga. */
@media (max-width: 767.98px) {
  body.pk-publico .login-register-form :is(.login-form-wrap, .register-form-wrap) .form-group-field input { font-size: 16px; }
}

/* PGT-55 auth-13: el botón de envío mide lo mismo que los campos (48 px) y
   las filas de casilla quedan a 20 px del campo y del botón (antes 32 y 32).
   El botón iguala la especificidad (1,2,1) de propeka-sitio.css. */
body.pk-publico .login-register-form :is(#houzez-login-btn, #houzez-register-btn) { min-height: 48px; }
:where(body.pk-publico) .login-register-form .form-tools { margin-top: 8px; margin-bottom: 8px; }

:where(body.pk-publico) .pk-social-form {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
/* La regla general de envío de propeka-sitio.css tiene peso (0,2,2). */
:where(body.pk-publico) .pk-social-form .pk-social-form__boton[type="submit"] {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--pk-n200);
  border-radius: var(--pk-r);
  background-color: var(--pk-n0);
  color: var(--pk-tinta);
  font-family: var(--pk-fuente-marca);
  font-size: var(--pk-fs-sm);
  font-weight: var(--pk-fw-semi);
  line-height: var(--pk-lh-sm);
  text-align: center;
}
:where(body.pk-publico) .pk-social-form .pk-social-form__boton[type="submit"]:hover {
  border-color: var(--pk-n400);
  background-color: var(--pk-n25);
}
:where(body.pk-publico) .pk-social-form__boton:focus-visible {
  outline: 3px solid var(--pk-enlace) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}
:where(body.pk-publico) .pk-social-form__marca {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
:where(body.pk-publico) .pk-social-form__marca--facebook {
  background-color: #0866ff;
  mask: url("../../../houzez/img/f_logo.png") center / contain no-repeat;
  forced-color-adjust: none;
}
@media (forced-colors: active) {
  :where(body.pk-publico) .pk-social-form__boton:focus-visible {
    outline: 2px solid Highlight !important;
    outline-offset: 2px;
  }
}

/* PGT-55 auth-01: «No cerrar sesión» y «¿Olvidaste tu contraseña?» ya no se
   parten en dos líneas cada uno en teléfonos. La fila necesitaba 331 px y a
   390 px de ancho hay 326: con la sangría de 30 px y los 8 px de separación de
   propeka.com cabe en una línea; donde no cabe, el enlace baja entero a la
   izquierda. Misma especificidad (0,4,1) que propeka-sitio.css. */
body.pk-publico .login-register-form .form-tools .d-flex { flex-wrap: wrap; gap: 0 8px; }
body.pk-publico .login-register-form .form-tools .control { padding-left: 30px; }

/* PGT-55 auth-15: los rótulos de las casillas van en peso normal (antes 600,
   como las etiquetas de campo y los enlaces), también con la casilla marcada
   (Houzez pone la frase en 700 al marcarla y la línea cambiaba de ancho). Los
   enlaces dan señal: el legal va subrayado y todos se oscurecen y subrayan al
   pasar. Los enlaces necesitan `body.pk-publico` para vencer a
   `body.pk-sitio .login-register-form .form-tools a` (0,3,2). */
:where(body.pk-publico) .login-register-form .form-tools .control,
:where(body.pk-publico) .login-register-form .form-tools .control > span:not(.control__indicator) { font-weight: 400; }
body.pk-publico .login-register-form .form-tools .control a,
body.pk-publico .login-register-form .form-tools a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.pk-publico .login-register-form .form-tools a:hover { color: var(--pk-accion-hover); }

/* PGT-55 auth-14: el enlace de los términos vuelve a ser texto en línea. Como
   caja de 44 px de alto, a 320 px partía la frase con un salto de 33 px y la
   casilla quedaba entre las dos líneas; el objetivo de 44 px ya lo da el
   rótulo. */
body.pk-publico .login-register-form .form-tools .control a { display: inline; min-height: 0; }

/* PGT-55 auth-04: la casilla de propeka.com: borde visible (n400), esquinas
   de 6 px, relleno del color de los botones al marcarla y anillo de foco con
   teclado (antes el foco caía en el input oculto y no se veía nada). */
:where(body.pk-publico) .login-register-form .control--checkbox .control__indicator {
  border: 1.5px solid var(--pk-n400);
  border-radius: var(--pk-r-sm);
}
:where(body.pk-publico) .login-register-form .control--checkbox input:checked ~ .control__indicator {
  border-color: var(--pk-accion);
  background-color: var(--pk-accion);
}
:where(body.pk-publico) .login-register-form .control--checkbox .control__indicator::after {
  top: 2px;
  left: 6px;
  width: 6px;
  height: 11px;
  border-width: 0 2px 2px 0;
}
:where(body.pk-publico) .login-register-form .control--checkbox input:focus-visible ~ .control__indicator {
  outline: 3px solid var(--pk-enlace);
  outline-offset: 2px;
}

/* PGT-55 auth-07 + auth-13: la verificación del alta se separa como un campo
   (16 px arriba) y queda a 20 px de la casilla. `!important` porque el margen
   viene de un atributo `style`. Sin altura de línea no queda el hueco de 6 px
   bajo el marco. */
:where(body.pk-publico) .login-register-form .pk-registration-turnstile {
  margin: 16px 0 8px !important;
  line-height: 0;
}

/* PGT-55 auth-06: el mensaje de verificación del alta es un aviso de la
   familia de `.pk-auth-notice` (filete de tinta, fondo n50, texto de 14 px, a
   12 px del botón) y no texto de cuerpo pegado a él. Neutro, porque la misma
   caja lleva el «espera» y el fallo. Vacío, no ocupa sitio. */
:where(body.pk-publico) .pk-registration-guard-message {
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--pk-n100);
  border-left: 3px solid var(--pk-tinta);
  border-radius: 10px;
  background: var(--pk-n50);
  color: var(--pk-txt);
  font-size: 14px;
  line-height: 20px;
}
:where(body.pk-publico) .pk-registration-guard-message:empty { display: none; }

/* PGT-55 auth-11: la ventana de recuperar contraseña usa el campo y el botón
   de la de acceso (48 px, radio 10, borde n200, 15 px y 16 px en teléfonos,
   el mismo foco en tinta, botón en 700). Las reglas genéricas
   `body.pk-sitio input[type="text"]` y `button[type="submit"]` (0,2,2)
   vencían a las de esta hoja. */
body.pk-publico .reset-password-form .form-control {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--pk-n200);
  border-radius: 10px;
  font-size: 15px;
}
body.pk-publico .reset-password-form .form-control:focus {
  border-color: var(--pk-tinta);
  box-shadow: 0 0 0 3px rgba(13, 35, 56, .12);
}
body.pk-publico .reset-password-form .btn-primary { min-height: 48px; font-weight: 700; }
@media (max-width: 767.98px) {
  body.pk-publico .reset-password-form .form-control { font-size: 16px; }
}

/* ---- PGT-55 (2026-11-16, second pass): shell items seen on every template, and the listing card raised to the owner reference ---- */

/* PGT-55 results-10 / detail-15 / PR-15 / PRO-GT-18 / content-07 / content-08: from 992 px the header stays in reach on every public page, results included, as on the home page (HS-05) and on propeka.com (at these widths the results filter bar scrolls with the page; it is pinned on phones only, where the header is not). What was pinned at 24 px (the contact rail of a listing, the side card of a document page) now clears the 80 px header. The wordmark and the phone icons of these findings are HS-08 and HS-09 above. */
@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(body.pk-publico) { scroll-padding-top: 104px; }
  :where(body.pk-publico) .pk-ficha .pk-ficha__rail--fija,
  :where(body.pk-publico) .pk-pagina .pk-pagina__tarjeta { top: 104px; }
  :where(body.pk-publico.admin-bar) .pk-ficha .pk-ficha__rail--fija,
  :where(body.pk-publico.admin-bar) .pk-pagina .pk-pagina__tarjeta { top: 136px; }
}

/* PGT-55 content-10: the title of the popular-searches band is no larger than the headings of the page it closes (it was 28 px under 24 px headings). */
:where(body.pk-publico) .pk-populares .pk-related__title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }

/* PGT-55 content-16: a footer link that wraps to two lines gets the same air above and below as a one-line link (it was squeezed into the 44 px row: 14 px to its neighbours instead of 24). */
@media (max-width: 1023.98px) {
  :where(body.pk-publico) .pk-pie--marca .pk-pie__lista a {
    padding-block: 12px;
    line-height: 20px;
  }
}

/* PGT-55 auth-09 / auth-10: the sign-in fields carry the visible labels of the sign-up tab, and every password field of the dialog ends with a "Mostrar" / "Ocultar" control (propeka-sitio.js adds both). The field keeps room for the longer word, so a long password never runs under it. */
:where(body.pk-publico) .pk-clave-caja {
  position: relative;
  display: block;
}
/* PGT-55 follow-up 2026-11-18: auth-10. The reserve lost to the 12px 14px field padding of propeka-sitio.css (body.pk-sitio .login-register-form .login-form-wrap .form-group-field input, 0,4,2), so the text ran 63 px under the button. This selector is 0,5,2 and changes padding-right only. */
body.pk-publico .login-register-form .form-group-field .pk-clave-caja > input.form-control { padding-right: 92px; } /* auth-10 */
:where(body.pk-publico) .pk-clave-ver {
  position: absolute;
  top: 2px;
  right: 2px;
  bottom: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--pk-tinta);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
:where(body.pk-publico) .pk-clave-ver:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(body.pk-publico) .pk-clave-ver:focus-visible { outline: 0; box-shadow: var(--pk-foco); }

/* PGT-55 card (owner reference, 2026-11-16; also results-06, results-15, detail-14, PRO-GT-17). The public card opens with a status line, what it is and how it is offered behind a coloured dot, then the price with the contact action beside it, the facts, the title, the place and a one-line publisher. The type pill, the operation badge on the photo and the arrow of the publisher row are gone (tarjeta.php prints them only in the account area). */
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref {
  gap: 6px;
  padding: 16px 18px;
}
:where(body.pk-publico) .pk-tarjeta__estado {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
  color: var(--pk-txt-sec);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}
:where(body.pk-publico) .pk-tarjeta__punto {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pk-vendida);
}
:where(body.pk-publico) .pk-tarjeta__estado--venta .pk-tarjeta__punto { background: var(--pk-exito); }
:where(body.pk-publico) .pk-tarjeta__estado--alquiler .pk-tarjeta__punto { background: var(--pk-enlace); }
:where(body.pk-publico) .pk-tarjeta__estado-txt {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Inside the status line the type is plain text: it sheds the pill it has in the account area. */
:where(body.pk-publico) .pk-tarjeta__estado .pk-tarjeta__tipo {
  max-width: none;
  overflow: visible;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
}
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-tarjeta__fila-precio {
  flex-wrap: nowrap;
  align-items: center;
  min-height: 36px;
}
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-precio {
  min-width: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}
/* PGT-55 follow-up 2026-11-18: card price row. "Precio pendiente de confirmación" takes two lines beside the Contactar action. At 1rem with a 1.3 line height they made the row 41.6 px, so in a row of several cards the facts, title and address of that card sat 5.6 px lower than its neighbours. Two 18 px lines fill exactly the 36 px every price row already reserves. The second selector covers a promoted card of the results grid (the 1rem rule for it in propeka-resultados.css never applied and was removed on 2026-11-20). */
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-precio.pk-tarjeta__precio--consultar,
:where(body.pk-publico) .pk-resultados .pk-rejilla > .pk-tarjeta.pk-promo .pk-tarjeta__cuerpo--ref .pk-precio.pk-tarjeta__precio--consultar { /* card price row */
  font-size: 15px;
  line-height: 18px;
}
/* The contact action sits above the link that covers the card: 36 px high with a 44 px touch area. */
:where(body.pk-publico) .pk-tarjeta__contactar {
  position: relative;
  z-index: 2;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--pk-r-pill);
  background: var(--pk-accion);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--pk-t);
}
:where(body.pk-publico) .pk-tarjeta__contactar::before {
  content: "";
  position: absolute;
  inset: -4px 0;
}
:where(body.pk-publico) .pk-tarjeta__contactar:hover,
:where(body.pk-publico) .pk-tarjeta__contactar:focus-visible {
  background: var(--pk-accion-hover);
  color: #fff;
  text-decoration: none;
}
:where(body.pk-publico) .pk-tarjeta__contactar:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pk-tinta);
}
:where(body.pk-publico) .pk-tarjeta__contactar .pk-icono {
  display: none;
  width: 18px;
  height: 18px;
}
/* A narrow card (three columns at laptop width, four on the home page) keeps the whole price: the action becomes a 36 px round button with the envelope. */
@container (max-width: 335px) {
  :where(body.pk-publico) .pk-tarjeta__contactar {
    width: 36px;
    padding: 0;
  }
  :where(body.pk-publico) .pk-tarjeta__contactar .pk-icono { display: block; }
  :where(body.pk-publico) .pk-tarjeta__contactar-txt {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  :where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-precio { font-size: 1.375rem; }
}
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-datos {
  gap: 4px 12px;
  font-size: 14px;
}
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-tarjeta__titulo {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
/* results-15 (d): in a row of several cards a one-line title no longer lifts the address above its neighbours. */
@media (min-width: 768px) {
  :where(body.pk-publico) :is(.pk-rejilla, .pk-posiciones__pista) .pk-tarjeta__cuerpo--ref .pk-tarjeta__titulo { min-height: calc(2 * 1.35em); }
}
/* The publisher is one quiet line under the address: 24 px mark, no rule, no arrow. results-06: the name is never cut, because the caption "Publicado por" gives way first on a narrow card. */
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-anunciante {
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 0;
  font-size: 13px;
  line-height: 18px;
}
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref :is(.pk-anunciante__logo, .pk-anunciante__iniciales) {
  width: 24px;
  height: 24px;
  font-size: 9px;
}
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-anunciante__txt {
  flex-direction: row;
  align-items: baseline;
  gap: 4px;
  line-height: 18px;
}
@container (max-width: 335px) {
  :where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-anunciante__txt {
    gap: 0;
    font-size: 0;
  }
  :where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-anunciante__txt strong { font-size: 13px; }
}

/* PGT-55 follow-up 2026-11-18: auth-05, auth-07, PRO-GT-14, card photo (auth-10 and the card price row are corrected beside their own rules above) */

/* auth-05: on phones the sign-in notice takes 14 px text with 10/14 px padding, as the sign-up verification message does (auth-06), so from 390 px it is 2 lines (62 px) instead of 3 (93.5 px); from 320 to 375 px the same words still need 3 lines (82 px). Wording unchanged. */
@media (max-width: 575.98px) {
  :where(body.pk-publico) .login-register-form .pk-acceso-aviso { /* auth-05 */
    padding: 10px 14px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* PGT-55 open items 2026-11-19: auth-05. Below 375 px (where the dialog keeps 16 px at the sides, auth-07) the notice was still 3 lines (82 px) at 320, 340 and 360. It takes 13 px text with 10 px padding, on the same 20 px line, and its two longer texts end in "Te regresamos al terminar." (propeka-sitio.js, was "Te llevamos de vuelta al terminar."), so every text is 2 lines (62 px) from 320 px up, with at least 13 px to spare on the longest line at 320: "Inicia sesión o crea tu cuenta para continuar. Te regresamos al terminar.", "Inicia sesión para continuar con tu plan. Te regresamos al terminar." and "Inicia sesión para continuar." (1 line, unchanged). From 375 px the 14 px rule above already gives 2 lines. */
@media (max-width: 374.98px) {
  :where(body.pk-publico) .login-register-form .pk-acceso-aviso { /* PGT-55 open items 2026-11-19: auth-05 */
    padding: 10px;
    font-size: 13px;
  }
}

/* auth-07: below 356 px the sign-up column is narrower than 300 px and the guard renders the compact 150 x 140 verification box; it is centred in the column instead of sitting at the left with 114 px empty beside it at 320. The box is an inline frame, so text-align centres it at any width (also when the phone is turned after it was drawn); the full-width strip fills the column and is unaffected. */
:where(body.pk-publico) .login-register-form .pk-registration-turnstile { text-align: center; } /* auth-07 */

/* PRO-GT-14: on the public card the mark of a company (agency or developer) is a rounded square with the thin border of the directory, as in the directory, the profile and the listing detail (it was a 24 px disc that cut the corners off a square logo). tarjeta.php prints the --marca class on public pages only. The picture of a person and the initial-letter avatar of a publisher without a logo keep their circle. */
:where(body.pk-publico) .pk-tarjeta__cuerpo--ref .pk-anunciante__logo--marca { /* PRO-GT-14 */
  padding: 2px;
  border: 1px solid var(--pk-n200);
  border-radius: var(--pk-r-sm);
  object-fit: contain;
}

/* Card photo: the photo fills its 4:3 or 16:10 frame and is cropped from the centre. The site rule body.pk-sitio img { height: auto } (0,1,2) beat height: 100% of .pk-tarjeta__img, so the img kept the file's own ratio (480 x 438: 324.8 px in a 222.5 px frame at 390) and lost its bottom. On public pages only; a promoted card keeps its own photo rules (propeka.css, propeka-resultados.css). */
:where(body.pk-publico) .pk-tarjeta:not(.pk-promo) .pk-tarjeta__foto > .pk-tarjeta__img { /* card photo */
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}
