/* =========================================================================
   Propeka — Planes y precios (vista `planes`)
   =========================================================================
   Fase 6 de la paridad con propeka.com (D-PAR, 2026-11-03). Copia casi
   literal de la hoja de precios de propeka.com (`propeka-pricing.css`):
   portada centrada, tarjetas con el plan recomendado enmarcado, comparación,
   «Sobre los planes», preguntas frecuentes y cierre en tinta.

   Reescrito para Guatemala:
     - todo se acota con `:where(body.pk-publico)` (cero especificidad) y gana
       por orden de carga: esta hoja carga después de `propeka-paridad.css`
       (propeka-assets.php);
     - el espaciado de EE. UU. (`--pk-sN`) es aquí `--pk-eN`: los nombres
       `--pk-s1..s4` de Guatemala son SOMBRAS (propeka-tokens.css);
     - `.pk-container` es `.pk-contenedor`, que ya mide 1200 px de contenido;
       las columnas de 820 px redefinen `--pk-ancho` en el propio contenedor;
     - los botones usan los nombres de Guatemala (`pk-btn--primario`,
       `--secundario`) y sus alias de EE. UU. en el mismo selector;
     - se suman el conmutador mensual/anual, el aviso de pasarela de prueba,
       la tarjeta de regalo (sobrescrita desde el tema, porque la hoja del
       complemento se versiona con PROPEKA_VERSION) y la tarjeta Gratis, que
       hoy no se dibuja (Propeka_Gratis::package_id() vale 0).

   Sustituye al bloque «Planes y estados comerciales» de propeka.css (salvo
   `.pk-estado`, que sigue allí).
   ========================================================================= */

:where(body.pk-publico) .pk-pricing {
	background: var(--pk-n25);
	color: var(--pk-text);
	font-family: var(--pk-fuente);
	padding-bottom: var(--pk-e16);
}

/* ---- Portada ------------------------------------------------------------ */

:where(body.pk-publico) .pk-pricing__hero {
	padding: var(--pk-e6) 0;
	text-align: center;
}

:where(body.pk-publico) .pk-pricing__title {
	max-width: 760px;
	margin: 0 auto var(--pk-e2);
	color: var(--pk-ink);
	font-size: clamp(1.75rem, 1.5rem + 0.6vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-wrap: balance;
}

:where(body.pk-publico) .pk-pricing__lead {
	max-width: 640px;
	margin: 0 auto;
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-base);
	line-height: 1.5;
	text-wrap: pretty;
}

:where(body.pk-publico) .pk-pricing__terms {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--pk-e2) var(--pk-e6);
	margin: var(--pk-e6) 0 0;
	padding: 0;
	list-style: none;
	color: var(--pk-n600);
	font-size: var(--pk-fs-sm);
	font-weight: var(--pk-fw-semi);
}

:where(body.pk-publico) .pk-pricing__terms li {
	display: inline-flex;
	align-items: center;
	gap: var(--pk-e2);
}

:where(body.pk-publico) .pk-pricing__terms li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pk-red);
}

/* El periodo se elige antes de las tarjetas; los términos quedan después.
   Son `<button>` con `aria-pressed`; el JS lee `data-pk-modo`. */
:where(body.pk-publico) .pk-pricing__toggle {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--pk-e2) var(--pk-e4);
	margin-top: var(--pk-e4);
}

:where(body.pk-publico) .pk-pricing .pk-cambio {
	display: inline-flex;
	gap: 4px;
	margin: 0;
	padding: 4px;
	border: 1px solid var(--pk-n100);
	border-radius: 12px;
	background: var(--pk-n50);
}

:where(body.pk-publico) .pk-pricing .pk-cambio__op {
	min-height: 44px;
	padding: 8px 20px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--pk-text-secondary);
	font-family: inherit;
	font-size: 15px;
	font-weight: var(--pk-fw-fuerte);
	line-height: 1.2;
	cursor: pointer;
	transition: background-color var(--pk-transition), color var(--pk-transition), box-shadow var(--pk-transition);
}

:where(body.pk-publico) .pk-pricing .pk-cambio__op:hover {
	color: var(--pk-ink);
}

:where(body.pk-publico) .pk-pricing .pk-cambio__op.is-activo {
	background: var(--pk-ink);
	color: #fff;
	box-shadow: var(--pk-shadow-2);
}

:where(body.pk-publico) .pk-pricing__toggle-hint {
	margin: 0;
	color: var(--pk-red-dark);
	font-size: 13px;
	font-weight: var(--pk-fw-semi);
	line-height: 1.4;
}

/* ---- «Tu plan» y avisos de vuelta --------------------------------------- */

:where(body.pk-publico) .pk-pricing__account {
	margin-bottom: var(--pk-e8);
}

:where(body.pk-publico) .pk-pricing__plans + .pk-pricing__account {
	margin-top: var(--pk-e6);
}

:where(body.pk-publico) .pk-pricing__account-card {
	max-width: 760px;
	margin: 0 auto;
	padding: var(--pk-e6);
	border: 1px solid var(--pk-n100);
	border-radius: var(--pk-radius-lg);
	background: #fff;
	box-shadow: var(--pk-shadow-1);
}

:where(body.pk-publico) .pk-pricing__account-title {
	margin: 0 0 var(--pk-e3);
	color: var(--pk-ink);
	font-size: var(--pk-fs-lg);
	font-weight: var(--pk-fw-fuerte);
	line-height: var(--pk-lh-lg);
}

:where(body.pk-publico) .pk-pricing__account-card p {
	margin: 0 0 var(--pk-e2);
	color: var(--pk-text-secondary);
	line-height: 1.55;
}

:where(body.pk-publico) .pk-pricing__account-card > :last-child,
:where(body.pk-publico) .pk-pricing__account-card > :last-child p:last-child {
	margin-bottom: 0;
}

:where(body.pk-publico) .pk-pricing__account-card a:not(.pk-btn) {
	color: var(--pk-red-dark);
	font-weight: var(--pk-fw-semi);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* El aviso: panel plano con filete de tinta (`.pk-auth-notice`). Solo
   «sin capacidad», «error» y «en proceso» —y la cuenta que ya no cabe en
   ningún plan— llevan el color de advertencia. */
:where(body.pk-publico) .pk-pricing__notice,
:where(body.pk-publico) .pk-pricing__account-card .pk-pricing__notice {
	display: block;
	margin: 0 0 var(--pk-e4);
	padding: 12px 16px;
	border: 1px solid var(--pk-n100);
	border-left: 3px solid var(--pk-ink);
	border-radius: 10px;
	background: var(--pk-n50);
	color: var(--pk-ink);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
}

:where(body.pk-publico) .pk-pricing__mine,
:where(body.pk-publico) .pk-pricing__follow {
	margin: 0 0 var(--pk-e4);
}

:where(body.pk-publico) .pk-pricing__mine.pk-pricing__notice--alerta {
	padding: 12px 16px;
	border-left: 3px solid var(--pk-warning);
	border-radius: 10px;
}

:where(body.pk-publico) .pk-pricing__notice--alerta,
:where(body.pk-publico) .pk-pricing__account-card .pk-pricing__notice--alerta {
	border-color: #f1dca8;
	border-left-color: var(--pk-warning);
	background: var(--pk-warning-soft);
	color: #713f12;
}

:where(body.pk-publico) .pk-pricing__account-card .pk-pricing__notice--alerta p {
	color: #713f12;
}

:where(body.pk-publico) .pk-pricing__account-action {
	margin: 0 0 var(--pk-e4);
}

/* Pasarela en prueba: el recuadro de advertencia de propeka.com. */
:where(body.pk-publico) .pk-pricing__test {
	max-width: 760px;
	margin: 0 auto var(--pk-e8);
	padding: var(--pk-e3) var(--pk-e4);
	border-radius: var(--pk-radius-sm);
	background: var(--pk-warning-soft);
	color: #713f12;
	font-size: var(--pk-fs-sm);
	font-weight: var(--pk-fw-semi);
	line-height: 1.45;
	text-align: center;
}

/* ---- Tarjetas de plan ---------------------------------------------------- */

:where(body.pk-publico) .pk-pricing__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--pk-e5);
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(body.pk-publico) .pk-pricing-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--pk-e6);
	border: 1px solid var(--pk-n100);
	border-radius: var(--pk-radius-lg);
	background: #fff;
	box-shadow: var(--pk-shadow-1);
}

/* Cabecera, precio, rasgos y acción comparten pista entre las tarjetas de una
   fila (el distintivo es absoluto y no ocupa pista). 2026-11-10: como columnas
   flex independientes, a 1440 un precio partido en dos líneas (94 px frente a
   67) bajaba los rasgos 27 px, y a 768 una cabecera de dos líneas los bajaba
   20. Va ANTES de la regla de `[hidden]`, que pesa igual y debe ganar. */
@media (min-width: 640px) {
	:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card {
		display: grid;
		grid-template-rows: subgrid;
		grid-row: span 4;
		row-gap: 0;
	}
}

/* `display: flex` le gana a `[hidden]`: el lado del conmutador que no está
   puesto tiene que desaparecer de verdad. */
:where(body.pk-publico) .pk-pricing__grid > [hidden] {
	display: none;
}

:where(body.pk-publico) .pk-pricing-card--recommended {
	border-color: var(--pk-red);
	box-shadow: var(--pk-shadow-3);
}

:where(body.pk-publico) .pk-pricing-card--current {
	border-color: var(--pk-ink);
}

:where(body.pk-publico) .pk-pricing-card__flag {
	position: absolute;
	top: 0;
	left: 50%;
	margin: 0;
	padding: 4px 12px;
	border-radius: var(--pk-radius-pill);
	background: var(--pk-red);
	color: #fff;
	font-size: var(--pk-fs-xs);
	font-weight: var(--pk-fw-fuerte);
	letter-spacing: 0.06em;
	line-height: var(--pk-lh-xs);
	text-transform: uppercase;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

:where(body.pk-publico) .pk-pricing-card--current .pk-pricing-card__flag {
	background: var(--pk-ink);
}

:where(body.pk-publico) .pk-pricing-card__name {
	margin: 0 0 var(--pk-e2);
	color: var(--pk-ink);
	font-size: var(--pk-fs-lg);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: var(--pk-lh-lg);
}

:where(body.pk-publico) .pk-pricing-card__summary {
	margin: 0;
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-sm);
	line-height: var(--pk-lh-sm);
	text-wrap: pretty;
}

:where(body.pk-publico) .pk-pricing-card__head {
	min-height: 0;
}

/* PGT-55 follow-up 2026-11-19: price first (owner). The highlighted box leads with the
   price again: the amount is the large figure, its period sits beside it on the same
   baseline, and the number of properties is one quiet line under them. This withdraws the
   2026-11-10 box, which led with the count as a 36 px figure and put the price under it at
   18 px. The box, its backgrounds by state (recommended, selected, focus, hover) and its
   alignment per row are the same; only what is in it changed. The box is two stacked rows:
   the price row, then the count line. */
:where(body.pk-publico) .pk-pricing-card__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	margin: var(--pk-e4) 0;
	padding: var(--pk-e4);
	border-radius: var(--pk-radius);
	background: var(--pk-n50);
}

:where(body.pk-publico) .pk-pricing-card--recommended .pk-pricing-card__price {
	background: var(--pk-red-soft);
}

/* PGT-55 follow-up 2026-11-19: price first (owner). The price row: amount and period on
   one baseline. Neither is ever broken in two; the period would only drop under the amount
   as a whole if a price much longer than today's longest (the annual Inmobiliaria price)
   ever needed the full row. */
:where(body.pk-publico) .pk-pricing-card__cost {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 6px;
	min-width: 0;
}

/* PGT-55 follow-up 2026-11-19: price first (owner). Was 18 px / 700 under the count. */
:where(body.pk-publico) .pk-pricing-card__amount {
	color: var(--pk-ink);
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	white-space: nowrap;
}

/* PGT-55 follow-up 2026-11-19: price first (owner). Line height 1 so the price row is
   exactly as tall as the amount in every card, with or without a period. */
:where(body.pk-publico) .pk-pricing-card__period {
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-sm);
	font-weight: var(--pk-fw-semi);
	line-height: 1;
	white-space: nowrap;
}

/* PGT-55 follow-up 2026-11-19: price first (owner). The count is one quiet line: figure and
   unit are plain inline text in the secondary grey (the figure was 36 px / 800 and the unit
   16 px / 700, both in ink; those two rules are gone). The template prints the price before
   the count; `order` keeps the price on top wherever the markup still has the count first
   (the Gratis card, which is printed by inc/propeka-gratis.php, and any page cached before
   the template change). */
:where(body.pk-publico) .pk-pricing-card__cupo {
	order: 1;
	min-width: 0;
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-sm);
	font-weight: var(--pk-fw-semi);
	line-height: 1.3;
}

:where(body.pk-publico) .pk-pricing-card__equivalent {
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-sm);
	line-height: 1.3;
}

:where(body.pk-publico) .pk-pricing-card__features {
	flex: 1;
	margin: 0 0 var(--pk-e6);
	padding: 0;
	list-style: none;
}

:where(body.pk-publico) .pk-pricing-card__features li {
	position: relative;
	padding: 7px 0 7px 26px;
	border-top: 1px solid var(--pk-n100);
	color: var(--pk-text);
	font-size: var(--pk-fs-sm);
	line-height: var(--pk-lh-sm);
}

:where(body.pk-publico) .pk-pricing-card__features li:first-child {
	border-top: 0;
}

:where(body.pk-publico) .pk-pricing-card__features li::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 2px;
	width: 12px;
	height: 7px;
	border-bottom: 2px solid var(--pk-red);
	border-left: 2px solid var(--pk-red);
	transform: rotate(-45deg);
}

/* Una limitación, con un guion para que nunca se lea como algo incluido. */
:where(body.pk-publico) .pk-pricing-card__features li.is-excluded {
	color: var(--pk-text-tertiary);
}

:where(body.pk-publico) .pk-pricing-card__features li.is-excluded::before {
	top: 17px;
	width: 10px;
	height: 0;
	border-bottom: 2px solid var(--pk-n400);
	border-left: 0;
	transform: none;
}

:where(body.pk-publico) .pk-pricing-card__action {
	display: flex;
	flex-direction: column;
	gap: var(--pk-e2);
}

:where(body.pk-publico) .pk-pricing-card__button {
	width: 100%;
	text-align: center;
}

:where(body.pk-publico) .pk-pricing-card__state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0 22px;
	border: 1px dashed var(--pk-n300);
	border-radius: 10px;
	background: var(--pk-n50);
	color: var(--pk-n600);
	font-size: 15px;
	font-weight: var(--pk-fw-fuerte);
	text-align: center;
	cursor: default;
}

:where(body.pk-publico) .pk-pricing-card__state--current {
	border: 1px solid var(--pk-ink);
	background: #fff;
	color: var(--pk-ink);
}

:where(body.pk-publico) .pk-pricing-card__note {
	margin: 0;
	color: var(--pk-text-tertiary);
	font-size: var(--pk-fs-xs);
	line-height: 1.45;
	text-align: center;
}

:where(body.pk-publico) .pk-pricing-card__note a {
	color: var(--pk-red-dark);
	font-weight: var(--pk-fw-semi);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---- Títulos de sección ---------------------------------------------------- */

:where(body.pk-publico) .pk-pricing__section-title {
	margin: 0 0 var(--pk-e6);
	color: var(--pk-ink);
	font-size: var(--pk-fs-xl);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: var(--pk-lh-xl);
}

/* ---- Tarjeta de regalo (vista del complemento, retocada desde el tema) ---- */

:where(body.pk-publico) .pk-pricing__gift {
	padding-top: var(--pk-e12);
}

:where(body.pk-publico) .pk-pricing__gift--arriba {
	padding-top: 0;
	padding-bottom: var(--pk-e8);
}

:where(body.pk-publico) .pk-pricing__gift .pk-contenedor {
	--pk-ancho: calc(820px + 2 * var(--pk-gutter));
}

:where(body.pk-publico) .pk-pricing .pk-cupon {
	margin: 0;
	padding: var(--pk-e6) var(--pk-e8);
	border: 1px solid var(--pk-n100);
	border-radius: var(--pk-radius-lg);
	background: #fff;
	box-shadow: var(--pk-shadow-1);
	color: var(--pk-text);
	scroll-margin-top: 7rem;
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__eyebrow {
	display: inline-block;
	margin: 0 0 var(--pk-e3);
	padding: 5px 12px;
	border-radius: var(--pk-radius-pill);
	background: var(--pk-red-soft);
	color: var(--pk-red-dark);
	font-size: var(--pk-fs-xs);
	font-weight: var(--pk-fw-fuerte);
	letter-spacing: 0.08em;
	line-height: var(--pk-lh-xs);
	text-transform: uppercase;
}

:where(body.pk-publico) .pk-pricing .pk-cupon h2 {
	margin: 0 0 var(--pk-e2);
	color: var(--pk-ink);
	font-size: var(--pk-fs-lg);
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: var(--pk-lh-lg);
}

:where(body.pk-publico) .pk-pricing .pk-cupon p {
	margin: 0 0 var(--pk-e3);
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-sm);
	line-height: 1.55;
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__estado {
	color: var(--pk-ink);
	font-weight: var(--pk-fw-semi);
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__error {
	color: var(--pk-error);
}

:where(body.pk-publico) .pk-pricing .pk-cupon label {
	display: block;
	margin-bottom: 6px;
	color: var(--pk-ink);
	font-size: var(--pk-fs-sm);
	font-weight: var(--pk-fw-semi);
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__entrada {
	display: flex;
	flex-wrap: wrap;
	gap: var(--pk-e2);
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__entrada input {
	flex: 1 1 12rem;
	min-width: 0;
	max-width: none;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--pk-n200);
	border-radius: 10px;
	background: #fff;
	color: var(--pk-text);
	font: inherit;
	letter-spacing: .04em;
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__entrada input:focus-visible {
	outline: none;
	border-color: var(--pk-ink);
	box-shadow: var(--pk-focus-ring);
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__entrada button {
	min-height: 48px;
	white-space: normal;
}

:where(body.pk-publico) .pk-pricing .pk-cupon a:focus-visible {
	outline: 3px solid var(--pk-enlace);
	outline-offset: 2px;
}

:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__ayuda {
	margin: var(--pk-e2) 0 0;
	font-size: var(--pk-fs-xs);
}

/* Dos columnas desde 768: el texto a la izquierda, la acción a la derecha. */
@media (min-width: 768px) {
	:where(body.pk-publico) .pk-pricing .pk-cupon {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: var(--pk-e8);
		align-items: start;
	}

	:where(body.pk-publico) .pk-pricing .pk-cupon > * {
		grid-column: 1;
	}

	:where(body.pk-publico) .pk-pricing .pk-cupon > .pk-cupon__eyebrow {
		justify-self: start;
	}

	:where(body.pk-publico) .pk-pricing .pk-cupon > :is(a.pk-btn, form) {
		grid-column: 2;
		grid-row: 1 / span 6;
		align-self: center;
	}

	:where(body.pk-publico) .pk-pricing .pk-cupon > form {
		width: min(360px, 40vw);
	}
}

@media (max-width: 767.98px) {
	:where(body.pk-publico) .pk-pricing .pk-cupon {
		padding: var(--pk-e6) var(--pk-e5);
	}

	:where(body.pk-publico) .pk-pricing .pk-cupon > a.pk-btn,
	:where(body.pk-publico) .pk-pricing .pk-cupon .pk-cupon__entrada :is(input, button) {
		width: 100%;
		flex-basis: 100%;
	}
}

/* ---- Comparación ------------------------------------------------------------ */

:where(body.pk-publico) .pk-pricing__compare {
	padding-top: var(--pk-e16);
}

:where(body.pk-publico) .pk-pricing__scroll-hint {
	display: none;
}

:where(body.pk-publico) .pk-pricing__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--pk-n100);
	border-radius: var(--pk-radius-lg);
	background: #fff;
	box-shadow: var(--pk-shadow-1);
}

:where(body.pk-publico) .pk-pricing__table-wrap:focus-visible {
	outline: none;
	box-shadow: var(--pk-focus-ring);
}

:where(body.pk-publico) .pk-pricing__table {
	width: 100%;
	min-width: 640px;
	margin: 0;
	border-collapse: collapse;
	font-size: var(--pk-fs-sm);
}

:where(body.pk-publico) .pk-pricing__table th,
:where(body.pk-publico) .pk-pricing__table td {
	padding: var(--pk-e4) var(--pk-e5);
	border-bottom: 1px solid var(--pk-n100);
	text-align: center;
	vertical-align: middle;
}

:where(body.pk-publico) .pk-pricing__table tbody tr:last-child th,
:where(body.pk-publico) .pk-pricing__table tbody tr:last-child td {
	border-bottom: 0;
}

:where(body.pk-publico) .pk-pricing__table thead th {
	background: var(--pk-n50);
	color: var(--pk-ink);
	font-weight: var(--pk-fw-fuerte);
}

:where(body.pk-publico) .pk-pricing__table tbody th {
	color: var(--pk-text);
	font-weight: var(--pk-fw-semi);
	text-align: left;
}

:where(body.pk-publico) .pk-pricing__table td {
	color: var(--pk-text-secondary);
}

:where(body.pk-publico) .pk-pricing__table .is-recommended {
	background: var(--pk-red-soft);
	color: var(--pk-ink);
	font-weight: var(--pk-fw-semi);
}

:where(body.pk-publico) .pk-pricing__table thead .is-recommended {
	color: var(--pk-red-dark);
}

/* ---- Sobre los planes --------------------------------------------------------- */

:where(body.pk-publico) .pk-pricing__honesty {
	padding-top: var(--pk-e16);
}

/* Columna de 820 px, como «Sobre los planes» y «Preguntas» en propeka.com. */
:where(body.pk-publico) .pk-pricing__honesty .pk-contenedor,
:where(body.pk-publico) .pk-pricing__faq-inner {
	--pk-ancho: calc(820px + 2 * var(--pk-gutter));
}

:where(body.pk-publico) .pk-pricing__honesty-card {
	padding: var(--pk-e8);
	border: 1px solid var(--pk-n100);
	border-radius: var(--pk-radius-lg);
	background: var(--pk-n50);
	box-shadow: none;
}

:where(body.pk-publico) .pk-pricing__honesty-card .pk-pricing__section-title {
	margin-bottom: var(--pk-e4);
	font-size: var(--pk-fs-lg);
	line-height: var(--pk-lh-lg);
}

:where(body.pk-publico) .pk-pricing__honesty-list {
	display: grid;
	gap: var(--pk-e3);
	margin: 0;
	padding: 0;
	list-style: none;
}

:where(body.pk-publico) .pk-pricing__honesty-list li {
	position: relative;
	padding-left: var(--pk-e5);
	color: var(--pk-text-secondary);
	line-height: 1.6;
}

:where(body.pk-publico) .pk-pricing__honesty-list li::before {
	content: "";
	position: absolute;
	top: 0.7em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--pk-ink);
}

/* ---- Preguntas frecuentes ------------------------------------------------------ */

:where(body.pk-publico) .pk-pricing__faq {
	padding-top: var(--pk-e16);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) {
	border-bottom: 1px solid var(--pk-n200);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion):first-of-type {
	border-top: 1px solid var(--pk-n200);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) summary {
	position: relative;
	display: block;
	padding: var(--pk-e5) var(--pk-e10) var(--pk-e5) 0;
	color: var(--pk-ink);
	font-size: var(--pk-fs-base);
	font-weight: var(--pk-fw-fuerte);
	line-height: var(--pk-lh-base);
	list-style: none;
	cursor: pointer;
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) summary::-webkit-details-marker {
	display: none;
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 6px;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--pk-n500);
	border-bottom: 2px solid var(--pk-n500);
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--pk-transition);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion)[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) summary:focus-visible {
	outline: none;
	box-shadow: var(--pk-focus-ring);
	border-radius: var(--pk-radius-sm);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) p {
	margin: 0 0 var(--pk-e5);
	color: var(--pk-text-secondary);
	line-height: 1.65;
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) p a,
:where(body.pk-publico) .pk-pricing__terms-link a {
	color: var(--pk-red-dark);
	font-weight: var(--pk-fw-semi);
	text-decoration: underline;
	text-underline-offset: 2px;
}

:where(body.pk-publico) .pk-pricing__terms-link {
	margin: var(--pk-e6) 0 0;
	color: var(--pk-text-secondary);
	font-size: var(--pk-fs-sm);
}

/* ---- Cierre ----------------------------------------------------------------- */

:where(body.pk-publico) .pk-pricing__close {
	padding-top: var(--pk-e16);
}

:where(body.pk-publico) .pk-pricing__close-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--pk-e8);
	padding: var(--pk-e10);
	border-radius: var(--pk-radius-xl);
	background: var(--pk-ink);
	color: #fff;
}

:where(body.pk-publico) .pk-pricing__close-title {
	margin: 0 0 var(--pk-e2);
	color: #fff;
	font-size: var(--pk-fs-xl);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: var(--pk-lh-xl);
}

:where(body.pk-publico) .pk-pricing__close-lead {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

:where(body.pk-publico) .pk-pricing__close-card .pk-btn {
	flex: none;
}

/* Foco sobre tinta: el azul de enlace no se ve sobre #0d2338; un anillo blanco
   por fuera del azul sí. */
:where(body.pk-publico) .pk-pricing__close-card .pk-btn:focus-visible {
	box-shadow: 0 0 0 3px var(--pk-enlace), 0 0 0 5px #fff !important;
}

/* Estado vacío (sin paquetes): `.pk-estado` vive en propeka.css. */
:where(body.pk-publico) .pk-pricing .pk-estado {
	margin-top: 0;
	background: #fff;
}

/* ---- Adaptable -------------------------------------------------------------- */

/* Dos planes por fila: cuatro tarjetas estrechas dejan de leerse bajo ~1200. */
@media (max-width: 1199.98px) {
	:where(body.pk-publico) .pk-pricing__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: var(--pk-e8);
	}

	:where(body.pk-publico) .pk-pricing-card__head {
		min-height: 0;
	}
}

@media (max-width: 767.98px) {
	:where(body.pk-publico) .pk-pricing__hero {
		padding: var(--pk-e5) 0 var(--pk-e6);
	}

	:where(body.pk-publico) .pk-pricing__toggle {
		flex-direction: column;
	}

	:where(body.pk-publico) .pk-pricing__close-card {
		flex-direction: column;
		align-items: flex-start;
		padding: var(--pk-e8) var(--pk-e6);
	}

	:where(body.pk-publico) .pk-pricing__close-card .pk-btn {
		width: 100%;
	}

	:where(body.pk-publico) .pk-pricing__honesty-card {
		padding: var(--pk-e6);
	}
}

/* Un plan por fila en teléfonos; el recomendado conserva su marco. */
@media (max-width: 639.98px) {
	:where(body.pk-publico) .pk-pricing__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	:where(body.pk-publico) .pk-pricing__compare,
	:where(body.pk-publico) .pk-pricing__honesty,
	:where(body.pk-publico) .pk-pricing__faq,
	:where(body.pk-publico) .pk-pricing__close {
		padding-top: var(--pk-e12);
	}

	:where(body.pk-publico) .pk-pricing__section-title {
		font-size: var(--pk-fs-lg);
		line-height: var(--pk-lh-lg);
	}

	/* La tabla se desplaza de lado en teléfonos; las etiquetas de fila quedan a
	   la vista y una línea bajo el título avisa de que hay más planes. */
	:where(body.pk-publico) .pk-pricing__scroll-hint {
		display: block;
		margin: 0 0 var(--pk-e3);
		text-align: left;
	}

	:where(body.pk-publico) .pk-pricing__table {
		min-width: 560px;
		font-size: var(--pk-fs-xs);
	}

	:where(body.pk-publico) .pk-pricing__table th,
	:where(body.pk-publico) .pk-pricing__table td {
		padding: var(--pk-e3);
	}

	:where(body.pk-publico) .pk-pricing__table th:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		width: 128px;
		min-width: 128px;
		background: #fff;
		box-shadow: 1px 0 0 var(--pk-n100);
	}

	:where(body.pk-publico) .pk-pricing__table thead th:first-child {
		background: var(--pk-n50);
	}
}

@media (max-width: 380px) {
	:where(body.pk-publico) .pk-pricing .pk-cambio__op {
		padding: 8px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) summary::after,
	:where(body.pk-publico) .pk-pricing .pk-cambio__op {
		transition: none;
	}
}

/* ---- El marco sigue al plan que se mira (propeka.com, 2026-09-30) ----------
 * El marco rojo, la elevación y el precio teñido empiezan en el plan
 * recomendado. El ratón o el foco del teclado los llevan a ese plan; un clic o
 * un toque elige el plan y los deja ahí (`is-selected`, propeka.js); sin nada
 * señalado ni elegido vuelven al recomendado. Los distintivos «Recomendado» y
 * «Tu plan» no se mueven. */
:where(body.pk-publico) .pk-pricing-card {
	transition: border-color var(--pk-transition), box-shadow var(--pk-transition);
}

:where(body.pk-publico) .pk-pricing-card .pk-pricing-card__price {
	transition: background-color var(--pk-transition);
}

:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:focus-within, .pk-pricing-card.is-selected) .pk-pricing-card--recommended:not(:focus-within):not(.is-selected) {
	border-color: var(--pk-n100);
	box-shadow: var(--pk-shadow-1);
}

:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:focus-within, .pk-pricing-card.is-selected) .pk-pricing-card--recommended:not(:focus-within):not(.is-selected) .pk-pricing-card__price {
	background: var(--pk-n50);
}

:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:focus-within) .pk-pricing-card.is-selected:not(:focus-within) {
	border-color: var(--pk-n100);
	box-shadow: var(--pk-shadow-1);
}

:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:focus-within) .pk-pricing-card.is-selected:not(:focus-within) .pk-pricing-card__price {
	background: var(--pk-n50);
}

:where(body.pk-publico) .pk-pricing-card:focus-within,
:where(body.pk-publico) .pk-pricing__grid:not(:has(.pk-pricing-card:focus-within)) .pk-pricing-card.is-selected {
	border-color: var(--pk-red);
	box-shadow: var(--pk-shadow-3);
}

:where(body.pk-publico) .pk-pricing-card:focus-within .pk-pricing-card__price,
:where(body.pk-publico) .pk-pricing__grid:not(:has(.pk-pricing-card:focus-within)) .pk-pricing-card.is-selected .pk-pricing-card__price {
	background: var(--pk-red-soft);
}

:where(body.pk-publico) .pk-pricing-card.is-selectable {
	cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
	:where(body.pk-publico) .pk-pricing-card,
	:where(body.pk-publico) .pk-pricing-card .pk-pricing-card__price {
		transition: none;
	}
}

/* El botón del plan enmarcado es el rojo principal y los de los demás van con
 * borde: el botón sigue al marco (propeka.com, 2026-09-30). */
:where(body.pk-publico) .pk-pricing-card:focus-within .pk-pricing-card__button:is(.pk-btn--secundario, .pk-btn--secondary),
:where(body.pk-publico) .pk-pricing__grid:not(:has(.pk-pricing-card:focus-within)) .pk-pricing-card.is-selected .pk-pricing-card__button:is(.pk-btn--secundario, .pk-btn--secondary) {
	background: var(--pk-action);
	border-color: var(--pk-action);
	color: #fff;
}

:where(body.pk-publico) .pk-pricing-card .pk-pricing-card__button:is(.pk-btn--secundario, .pk-btn--secondary):focus-visible {
	background: var(--pk-action-hover);
	border-color: var(--pk-action-hover);
	color: #fff;
}

:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:focus-within, .pk-pricing-card.is-selected) .pk-pricing-card--recommended:not(:focus-within):not(.is-selected) .pk-pricing-card__button:is(.pk-btn--primario, .pk-btn--primary),
:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:focus-within) .pk-pricing-card.is-selected:not(:focus-within) .pk-pricing-card__button:is(.pk-btn--primario, .pk-btn--primary) {
	background: #fff;
	border-color: var(--pk-n200);
	color: var(--pk-ink);
	box-shadow: none;
	transform: none;
}

/* El ratón es una ayuda del puntero. Al desplazarse en una pantalla táctil, un
 * `:hover` pegado o emulado no debe sustituir al plan elegido (PKUSW-27). */
@media (hover: hover) and (pointer: fine) {
	:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card--recommended:not(:hover):not(:focus-within):not(.is-selected),
	:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card.is-selected:not(:hover):not(:focus-within) {
		border-color: var(--pk-n100);
		box-shadow: var(--pk-shadow-1);
	}

	:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card--recommended:not(:hover):not(:focus-within):not(.is-selected) .pk-pricing-card__price,
	:where(body.pk-publico) .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card.is-selected:not(:hover):not(:focus-within) .pk-pricing-card__price {
		background: var(--pk-n50);
	}

	:where(body.pk-publico) .pk-pricing .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card:hover {
		border-color: var(--pk-red);
		box-shadow: var(--pk-shadow-3);
	}

	:where(body.pk-publico) .pk-pricing .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card:hover .pk-pricing-card__price {
		background: var(--pk-red-soft);
	}

	:where(body.pk-publico) .pk-pricing .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card:hover .pk-pricing-card__button:is(.pk-btn--primario, .pk-btn--primary, .pk-btn--secundario, .pk-btn--secondary) {
		background: var(--pk-action);
		border-color: var(--pk-action);
		color: #fff;
	}

	:where(body.pk-publico) .pk-pricing .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card:hover .pk-pricing-card__button:is(.pk-btn--primario, .pk-btn--primary, .pk-btn--secundario, .pk-btn--secondary):hover {
		background: var(--pk-action-hover);
		border-color: var(--pk-action-hover);
		color: #fff;
	}

	:where(body.pk-publico) .pk-pricing .pk-pricing__grid:has(.pk-pricing-card:hover) .pk-pricing-card:not(:hover):not(:focus-within) .pk-pricing-card__button:is(.pk-btn--primario, .pk-btn--primary, .pk-btn--secundario, .pk-btn--secondary) {
		background: #fff;
		border-color: var(--pk-n200);
		color: var(--pk-ink);
		box-shadow: none;
		transform: none;
	}
}

/* ---- Recuadro del plan en el alta (ventana de acceso sobre esta página) ----
   `propeka_registro_campo_plan()` solo lo imprime en la plantilla de planes.
   «Cambiar de plan» es un ancla a la tarjeta (#plan-<id>), junto al acceso. */
:where(body.pk-publico) .pk-registro-plan :is(.pk-ir-acceso, .pk-registro-plan__cambiar) {
	color: var(--pk-red-dark);
	font-weight: var(--pk-fw-semi);
	text-decoration: underline;
	text-underline-offset: 2px;
}
/* Sin margen a la izquierda de «Cambiar de plan» (2026-11-10): los dos enlaces
   (223 + 117 px) nunca caben juntos en los 338 px del recuadro, así que el
   margen solo sangraba 12 px la línea partida. El espacio del marcado basta. */

/* Estado de la tarjeta histórica Gratis, si vuelve a habilitarse la oferta.
   Cualquier tarjeta comparte la rejilla, sin reservarle una fila adicional. */
:where(body.pk-publico) .pk-pricing-card [data-propeka-gratis-status]:empty {
	display: none;
}

/* Five commercial choices stay together on desktop; the compact hero stays unchanged. */
@media (min-width: 1200px) {
	:where(body.pk-publico) .pk-pricing--commercial .pk-pricing__grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 14px;
	}
	:where(body.pk-publico) .pk-pricing--commercial .pk-pricing-card {
		padding: 20px 16px;
	}
}

/* =========================================================================
   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 plans ---- */
/* PGT-55 PR-01: plan buttons inside the first desktop screen (five-up grid, 1200 and wider).
   Port of PKUSW-85 pricing-01 plus the Guatemala-only pieces: the headline on one line, the
   lead on two, and the annual hint beside the switch instead of under it (the switch stays
   centred: it sits in the middle column of a three-column grid). */
@media (min-width: 1200px) {
	:where(body.pk-publico) .pk-pricing__hero {
		padding: var(--pk-e10) 0 var(--pk-e6);
	}

	:where(body.pk-publico) .pk-pricing__title {
		max-width: none;
	}

	:where(body.pk-publico) .pk-pricing__lead {
		max-width: 880px;
		margin-bottom: var(--pk-e4);
	}

	:where(body.pk-publico) .pk-pricing__toggle {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		align-items: center;
		gap: 0 var(--pk-e4);
		margin-top: var(--pk-e5);
	}

	:where(body.pk-publico) .pk-pricing__toggle .pk-cambio {
		grid-column: 2;
	}

	:where(body.pk-publico) .pk-pricing__toggle-hint {
		grid-column: 3;
		justify-self: start;
	}

	:where(body.pk-publico) .pk-pricing-card {
		padding-top: var(--pk-e6);
		padding-bottom: var(--pk-e5);
	}

	/* PGT-55 PR-01: the heavier selector is the one of the five-up rule it replaces (that
	   rule sets 20 px with this weight). With 16 px sides the text column of a 228.8 px card
	   (a 1248 px page and wider) is 194.8 px: the Individual and Inmobiliaria summaries take
	   three lines there and the other three take two, so the name row is 96 px, 20 px
	   shorter than with 20 px sides, and the two-line cards keep one blank line under their
	   summary. (This comment used to say that every summary fits two lines from 227 px
	   cards; that was never the case.)
	   PGT-55 follow-up 2026-11-18: PR-01. Below a 1248 px page the five cards are narrower
	   (219.2 px at 1200, 216.2 px when a classic scrollbar takes 15 px of a 1200 px window).
	   With a fixed 16 px the text column fell to 182-193 px there: the longest summary took
	   four lines (and at 1200 one feature row took one more), so at 1200x900 the buttons sat
	   at y=878-926, cut by the first screen (858-906 at 1230). The sides now give up exactly
	   what the card loses: half the card's width less 98.375 px (half of a 194.75 px text
	   column plus the 1 px border), which is 11.2 px at 219.2 and 9.7 px at 216.2. The text
	   column therefore stays 194.75 px in every five-up card narrower than 228.8 px, the
	   text wraps as it does from 1248, and the buttons end at y=886 at 1200 as they do
	   there. The percentage is of the card's own grid column. From a 1248 px page the value
	   is capped at the same 16 px as before, so nothing changes there.
	   PGT-55 open items 2026-11-19: PR-01. The Individual and Inmobiliaria summaries were
	   shortened in propeka_planes_resumen() (theme/inc/propeka-planes.php) so they take two
	   lines of the 194.75 px column too: the name row is 76 px from 1200 to 1920 px and no
	   card keeps a blank line under its summary. No CSS change.
	   PGT-55 last items 2026-11-20: PR-01. The summaries are balanced, with -0.01em tracking, so
	   no line runs within 16 px of the column edge (rule at the end of this file). */
	:where(body.pk-publico) .pk-pricing__grid:has(> .pk-pricing-card--gratis) > .pk-pricing-card {
		padding-inline: clamp(var(--pk-e2), calc(50% - 98.375px), var(--pk-e4)); /* PR-01 follow-up: was var(--pk-e4) */
	}

	:where(body.pk-publico) .pk-pricing-card__head {
		min-height: 0;
	}

	:where(body.pk-publico) .pk-pricing-card__price {
		margin: var(--pk-e3) 0;
		padding: var(--pk-e3);
	}

	:where(body.pk-publico) .pk-pricing-card__features {
		margin-bottom: var(--pk-e4);
	}

	:where(body.pk-publico) .pk-pricing-card__features li {
		padding-top: 5px;
		padding-bottom: 5px;
	}
}

/* PGT-55 PR-02, follow-up 2026-11-19: price first (owner). One price-box layout for the five
   desktop cards: the price row, then the count as one quiet line. In the narrow five-up
   cards the amount scales with the window so the longest annual price and its period stay
   on one line, and the count line never wraps. The count-first rules of 2026-11-10 (the
   unit as a two-line caption beside a 36 px count) are gone. */
@media (min-width: 1200px) {
	:where(body.pk-publico) .pk-pricing-card__amount {
		font-size: clamp(1.5rem, 2vw, 1.75rem);
	}

	:where(body.pk-publico) .pk-pricing-card__cupo {
		font-size: 0.8125rem;
		white-space: nowrap;
	}
}

/* PGT-55 PR-03: on phones the comparison table is sized from the screen width, so two plans
   and half of the next one show and the cut column says the table scrolls sideways. Port of
   PKUSW-85 pricing-03 with label columns wide enough for the Spanish row labels. */
@media (max-width: 639.98px) {
	:where(body.pk-publico) .pk-pricing__table {
		min-width: min(153.8vw - 100px, 560px);
		table-layout: fixed;
		line-height: 1.4;
	}

	:where(body.pk-publico) .pk-pricing__table th,
	:where(body.pk-publico) .pk-pricing__table td {
		padding: var(--pk-e3) var(--pk-e2);
	}

	:where(body.pk-publico) .pk-pricing__table th:first-child {
		width: 112px;
		min-width: 112px;
		padding-left: var(--pk-e3);
	}
}

@media (max-width: 380px) {
	:where(body.pk-publico) .pk-pricing__table {
		min-width: max(456px, 160vw - 86px);
	}

	:where(body.pk-publico) .pk-pricing__table th,
	:where(body.pk-publico) .pk-pricing__table td {
		padding-right: 6px;
		padding-left: 6px;
	}

	:where(body.pk-publico) .pk-pricing__table th:first-child {
		width: 96px;
		min-width: 96px;
		padding-left: var(--pk-e3);
	}
}

/* PGT-55 PR-03: the row labels stay put while the plans scroll under them; a visible edge
   line and a soft shadow on the label column, so sliding values are not cut in mid-air.
   Port of PKUSW-85c pricing-c02. `thead th:first-child` is repeated because its own rule
   sets the `background` shorthand with more weight and would erase the edge line. */
@media (max-width: 639.98px) {
	:where(body.pk-publico) .pk-pricing__table th:first-child,
	:where(body.pk-publico) .pk-pricing__table thead th:first-child {
		box-shadow: none;
		background-image: linear-gradient(var(--pk-n200), var(--pk-n200));
		background-position: right top;
		background-size: 1px 100%;
		background-repeat: no-repeat;
	}

	:where(body.pk-publico) .pk-pricing__table th:first-child::after {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 100%;
		width: 8px;
		background: linear-gradient(to right, rgba(13, 35, 56, 0.07), rgba(13, 35, 56, 0));
		pointer-events: none;
	}
}

/* PGT-55 PR-04: full-contrast values, even plan columns, a narrower label column and tight
   leading in the comparison table. Port of PKUSW-85 pricing-09 and PKUSW-85c pricing-c03. */
:where(body.pk-publico) .pk-pricing__table td {
	color: var(--pk-text);
}

@media (min-width: 640px) {
	:where(body.pk-publico) .pk-pricing__table {
		table-layout: fixed;
		line-height: var(--pk-lh-sm);
	}

	:where(body.pk-publico) .pk-pricing__table th:first-child {
		width: 28%;
	}
}

@media (min-width: 640px) and (max-width: 1199.98px) {
	:where(body.pk-publico) .pk-pricing__table th,
	:where(body.pk-publico) .pk-pricing__table td {
		padding: var(--pk-e4) var(--pk-e3);
	}
}

@media (min-width: 640px) and (max-width: 1023.98px) {
	:where(body.pk-publico) .pk-pricing__table th:first-child {
		width: 24%;
	}
}

/* PGT-55 PR-05: wherever the Gratis plan has a row to itself (640 to 1199, the range of the
   rule that gives it that row) it is a band, not a stretched card: name and price box on
   the left, what it includes in the middle, the button and its notes on the right. It
   leaves the shared row tracks (it is alone on its row) and lays out its own three columns;
   the paid cards under it keep theirs. */
@media (min-width: 640px) and (max-width: 1199.98px) {
	:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card--gratis {
		grid-row: auto;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		column-gap: var(--pk-e5);
		align-items: start;
		padding-top: var(--pk-e6);
	}

	:where(body.pk-publico) .pk-pricing-card--gratis .pk-pricing-card__head {
		grid-column: 1;
		grid-row: 1;
	}

	:where(body.pk-publico) .pk-pricing-card--gratis .pk-pricing-card__price {
		grid-column: 1;
		grid-row: 2;
		margin: var(--pk-e4) 0 0;
	}

	:where(body.pk-publico) .pk-pricing-card--gratis .pk-pricing-card__features {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin: 0;
	}

	:where(body.pk-publico) .pk-pricing-card--gratis .pk-pricing-card__action {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: center;
	}
}

/* PGT-55 PR-05: from 768 the band has room for wider gutters between its columns. */
@media (min-width: 768px) and (max-width: 1199.98px) {
	:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card--gratis {
		column-gap: var(--pk-e8);
	}
}

/* PGT-55 PR-06: a text link is never split in two underlined pieces, and no note under a
   plan button ends in a one-word line (PKUSW-85 pricing-06). The links are two or three
   words (the sign-in link, "Mi plan", the terms link), so they always fit their line. The
   balance is scoped to the notes under the buttons: the scroll hint above the comparison
   table shares the note class and stays as it is. */
:where(body.pk-publico) .pk-pricing-card__action .pk-pricing-card__note {
	text-wrap: balance;
}

:where(body.pk-publico) .pk-pricing-card__note a,
:where(body.pk-publico) .pk-pricing__terms-link a {
	white-space: nowrap;
}

/* PGT-55 PR-07: on phones the recommended plan comes first; from 640 the plans keep their
   price order (PKUSW-85 pricing-02). Visual order only. */
@media (max-width: 639.98px) {
	:where(body.pk-publico) .pk-pricing__grid .pk-pricing-card--recommended {
		order: -1;
	}
}

/* PGT-55 PR-08: the hero terms are one block with its dots on one line, centred as a
   block: a single column on phones, two columns up to 1149 (four terms never leave one
   alone on a row). From 1150 they fit one row, as before. Phones also bring the switch
   closer to the list.
   PGT-55 follow-up 2026-11-18: PR-08. The two columns ran only to 1023, but the four terms
   need 1066 px for one row (994 px of text plus three 24 px gaps) and the list is 48 px
   narrower than the page, so from 1024 they wrapped 3 + 1 and left the last term alone
   until the page was 1114 px wide (a 1129 px window with a classic scrollbar). The
   two-column grid now runs to 1149; from 1150 the list is 1087 px or more (1102 px
   without a scrollbar) and holds the row with at least 21 px to spare. */
@media (max-width: 1149.98px) { /* PR-08 follow-up: was 1023.98px */
	:where(body.pk-publico) .pk-pricing__terms {
		display: grid;
		grid-template-columns: auto auto;
		justify-content: center;
		gap: var(--pk-e2) var(--pk-e6);
	}
}

@media (max-width: 639.98px) {
	:where(body.pk-publico) .pk-pricing__terms {
		grid-template-columns: auto;
		gap: var(--pk-e1);
	}

	:where(body.pk-publico) .pk-pricing__toggle {
		margin-top: var(--pk-e5);
	}
}

/* PGT-55 PR-09: the comparison and questions headings follow the centred hero from tablet
   up (PKUSW-85 pricing-08). The heading inside the grey information card stays left. */
@media (min-width: 768px) {
	:where(body.pk-publico) .pk-pricing__compare .pk-pricing__section-title,
	:where(body.pk-publico) .pk-pricing__faq-inner > .pk-pricing__section-title {
		text-align: center;
	}
}

/* PGT-55 PR-10: closing band centred, button under the message (PKUSW-85 pricing-11).
   Phones keep the left-aligned stack. */
@media (min-width: 768px) {
	:where(body.pk-publico) .pk-pricing__close-card {
		flex-direction: column;
		align-items: center;
		gap: var(--pk-e6);
		padding: var(--pk-e12) var(--pk-e10);
		text-align: center;
	}

	:where(body.pk-publico) .pk-pricing__close-title,
	:where(body.pk-publico) .pk-pricing__close-lead {
		text-wrap: balance;
	}
}

/* PGT-55 PR-11: plan-card check marks drawn as one icon with round ends, instead of two
   rotated borders with slanted tips; the "not included" dash gets the same round ends and
   the same centre line. Port of PKUSW-85c pricing-c01. */
:where(body.pk-publico) .pk-pricing-card__features li:not(.is-excluded)::before {
	top: 10px;
	left: 0;
	width: 16px;
	height: 16px;
	border: 0;
	background: var(--pk-red);
	transform: none;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.75 8.5l3.5 3.5 7-7.25' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.75 8.5l3.5 3.5 7-7.25' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}

:where(body.pk-publico) .pk-pricing-card__features li.is-excluded::before {
	left: 3px;
	height: 2px;
	border-bottom: 0;
	border-radius: 1px;
	background: var(--pk-n400);
}

/* PGT-55 PR-11: with the 5 px rows of the desktop grid (PR-01) both marks move up 2 px. */
@media (min-width: 1200px) {
	:where(body.pk-publico) .pk-pricing-card__features li:not(.is-excluded)::before {
		top: 8px;
	}

	:where(body.pk-publico) .pk-pricing-card__features li.is-excluded::before {
		top: 15px;
	}
}

/* PGT-55 PR-12: a heavier red frame for whichever plan is framed (PKUSW-85 pricing-10).
   Every frame state of the card draws var(--pk-shadow-3); it is redefined on the card only
   (1 px ring outside the 1 px border, plus a faint red glow) and handed back unchanged to
   everything inside the card. No new badge or label. */
:where(body.pk-publico) .pk-pricing__grid {
	--pk-pricing-shadow-base: var(--pk-shadow-3);
}

:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card {
	--pk-shadow-3: 0 0 0 1px var(--pk-red), 0 12px 32px rgba(237, 0, 40, 0.12), 0 2px 6px rgba(13, 35, 56, 0.06);
}

:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card > * {
	--pk-shadow-3: var(--pk-pricing-shadow-base);
}

/* PGT-55 PR-12: the visitor's own plan ("Tu plan") keeps its ink border while it rests, so
   its ring is ink there too; it turns red with the border once that plan is the one being
   pointed at, focused or chosen. Without this a plan that is both recommended and the
   visitor's own would rest in a two-colour frame (ink border, red ring). */
:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card--current:not(:focus-within, .is-selected) {
	--pk-shadow-3: 0 0 0 1px var(--pk-ink), 0 12px 32px rgba(13, 35, 56, 0.12), 0 2px 6px rgba(13, 35, 56, 0.06);
}

@media (hover: hover) and (pointer: fine) {
	:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card--current:hover {
		--pk-shadow-3: 0 0 0 1px var(--pk-red), 0 12px 32px rgba(237, 0, 40, 0.12), 0 2px 6px rgba(13, 35, 56, 0.06);
	}
}

/* PGT-55 PR-13: the question arrow sits on the centre line of its row, closed and open, and
   its tip reaches the right end of the divider like the question reaches the left end.
   Port of PKUSW-85c pricing-c04, for both kinds of rows. */
:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion) summary::after {
	right: 2px;
	transform: translateY(-80%) rotate(45deg);
}

:where(body.pk-publico) :is(.pk-pricing__qa, .pk-planes__condicion)[open] summary::after {
	transform: translateY(-20%) rotate(-135deg);
}

/* PGT-55 PR-14: the gift-card heading breaks into two even lines on phones instead of
   leaving one word alone. Same selector weight as the heading rule above it. */
:where(body.pk-publico) .pk-pricing .pk-cupon h2 {
	text-wrap: balance;
}

/* =========================================================================
   PGT-55 follow-up 2026-11-18: PR-05 and PR-02, from the live recheck of the PGT-55 plans
   findings. PR-01 and PR-08 are corrected in place, at their own rules above.
   ========================================================================= */

/* PGT-55 follow-up 2026-11-18: PR-05 (and PR-02 between 640 and 1199). The Gratis band
   above (PR-05) was written for a row of its own, but the rule that gave it that row went
   away with the 2026-11-14 plans rebuild, so it sat in one half-width cell (columns of
   66-146 px, its button label wider than the button) and took only the first row track:
   the Individual card beside it got 223-384 px of blank space and the paid cards were
   staggered. The band now takes the whole first row; its columns are 156-368 px, and the
   four paid cards fill two regular rows under it, each pair sharing its row tracks through
   the 640+ subgrid rule, so the price boxes of a row are the same height (PR-02). */
@media (min-width: 640px) and (max-width: 1199.98px) {
	:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card--gratis {
		grid-column: 1 / -1; /* PR-05 follow-up */
	}
}

/* PGT-55 follow-up 2026-11-18: PR-02 and PR-05, 640 to 767. Three equal-weight columns of a
   608-727 px band are 167-205 px, and below about 705 the first one could not hold the
   price box on two lines ("1 propiedad activa" needs a 185 px box), so the unit dropped
   under the number and the box grew to 126-146 px. Here the first column keeps 192 px and the
   gutters are 16 px. The button column keeps 156 px, the 154 px its label and padding need:
   without that floor a 640 px window with a classic scrollbar (625 px of page) left it
   152 px, 2 px less than the label needs. */
@media (min-width: 640px) and (max-width: 767.98px) {
	:where(body.pk-publico) .pk-pricing__grid > .pk-pricing-card--gratis {
		grid-template-columns: minmax(192px, 1fr) minmax(0, 1.1fr) minmax(156px, 1fr); /* PR-05 follow-up */
		column-gap: var(--pk-e4); /* PR-05 follow-up */
	}
}

/* =========================================================================
   PGT-55 last items 2026-11-20: PR-01, from the live recheck of 2026-11-18.
   ========================================================================= */

/* PGT-55 last items 2026-11-20: PR-01. Every summary of the five-up row fitted two lines, but
   with almost no room: the text column is 194.75 px from 1200 to 1920 px, and the greedy line
   break filled the first line of the Profesional summary to within 1.7 px of the edge and the
   Gratis one to within 2.7 px. A browser that draws the font slightly wider would push a word
   down. Balanced lines put the break where both lines are as short as possible (the same
   treatment as the button notes, PR-06), and a hair of tracking (the card name's -0.01em) adds
   a little more: every line now keeps 16.2 px or more, and 8.9 px or more with 0.02em of extra
   letter-spacing simulated, in both the monthly and the annual view; a third line now needs
   0.045em of extra letter-spacing (was 0.035em). Still two lines in every card, so the head
   row stays 76 px and the buttons keep their place. Size 14 px unchanged; phones and 640 to
   1199 px keep their wrapping. */
@media (min-width: 1200px) {
	:where(body.pk-publico) .pk-pricing--commercial .pk-pricing-card__summary {
		letter-spacing: -0.01em; /* PGT-55 last items 2026-11-20: PR-01 */
		text-wrap: balance; /* PGT-55 last items 2026-11-20: PR-01 (was pretty) */
	}
}
