/**
 * Shared section styles: Planes.
 *
 * Pricing cards. Black is the highlighted (dark) plan with a "El más elegido
 * por los socios" badge; Gold is the plain light card.
 * Reference: smartfit.com.ar "Elegí el plan de tu preferencia".
 *
 * Lived in pages/home/style.css until the individual sede pages needed the
 * exact same block. Moved here — verbatim, no visual change — so both pages
 * render one stylesheet instead of two copies that can drift apart.
 *
 * Markup: template-parts/section-planes.php
 * Enqueued by: qivox_enqueue_section_style( 'planes' ) from the page's thin
 * entry point, before the page stylesheet so page CSS can still override.
 *
 * Only design tokens from assets/css/tokens.css — no hardcoded colours, font
 * sizes, radii or shadows. See DESIGN.md.
 *
 * Note: the vertical rhythm around this section is NOT set here. It comes
 * from the host page's `> :where(section)` rule (.qx-home, .qx-sede), so each
 * page keeps control of its own spacing.
 */

.qx-planes__header {
	max-width: var(--qx-container-narrow);
	margin-inline: auto;
	margin-bottom: var(--qx-space-8);
	text-align: center;
}

.qx-planes__title {
	margin: 0 0 var(--qx-space-3);
	/* A touch smaller than the standard section heading. */
	font-size: calc(var(--qx-fs-h2) * 0.82);
	line-height: var(--qx-lh-heading);
	letter-spacing: var(--qx-ls-heading);
	color: var(--qx-text);
}

.qx-planes__title-accent {
	color: var(--qx-yellow);
}

.qx-planes__subtitle {
	margin: 0;
	font-size: var(--qx-fs-lead);
	line-height: var(--qx-lh-snug);
	color: var(--qx-text-muted);
}

.qx-planes__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--qx-space-6);
	max-width: 920px;
	margin-inline: auto;
}

@media (min-width: 768px) {
	.qx-planes__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.qx-planes__grid--single {
		grid-template-columns: minmax(0, 420px);
		justify-content: center;
	}
}

.qx-planes__card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--qx-space-7) var(--qx-space-6);
	background: var(--qx-bg);
	border: 1px solid var(--qx-border);
	border-radius: var(--qx-radius-lg);
	box-shadow: var(--qx-shadow-sm);
}

.qx-planes__card--highlight {
	background: var(--qx-bg-dark);
	border-color: var(--qx-border-dark);
	box-shadow: var(--qx-shadow-lg);
}

.qx-planes__badge {
	position: absolute;
	top: 0;
	left: var(--qx-space-6);
	transform: translateY(-50%);
	padding: var(--qx-space-2) var(--qx-space-4);
	background: var(--qx-yellow);
	color: var(--qx-ink);
	font-size: var(--qx-fs-small);
	font-weight: var(--qx-fw-bold);
	border-radius: var(--qx-radius-pill);
	white-space: nowrap;
}

.qx-planes__name {
	margin: 0 0 var(--qx-space-4);
	font-size: var(--qx-fs-h3);
	line-height: var(--qx-lh-heading);
	color: var(--qx-text);
}

.qx-planes__card--highlight .qx-planes__name {
	color: var(--qx-text-on-dark);
}

.qx-planes__price-label {
	display: block;
	margin-bottom: var(--qx-space-1);
	font-size: var(--qx-fs-small);
	letter-spacing: var(--qx-ls-eyebrow);
	color: var(--qx-text-muted);
}

.qx-planes__card--highlight .qx-planes__price-label {
	color: var(--qx-text-muted-on-dark);
}

/* The bottom margin used to live on the price note that sat under this line;
   the note was dropped from the copy, so the gap to the CTA moved up here. */
.qx-planes__price {
	display: flex;
	align-items: baseline;
	gap: 0.15em;
	margin: 0 0 var(--qx-space-5);
	font-size: var(--qx-fs-h2);
	font-weight: var(--qx-fw-black);
	line-height: var(--qx-lh-tight);
	color: var(--qx-text);
}

.qx-planes__card--highlight .qx-planes__price {
	color: var(--qx-text-on-dark);
}

.qx-planes__price-currency {
	font-size: 0.5em;
	font-weight: var(--qx-fw-bold);
}

.qx-planes__price-suffix {
	font-size: var(--qx-fs-body);
	font-weight: var(--qx-fw-medium);
	color: var(--qx-text-muted);
}

.qx-planes__card--highlight .qx-planes__price-suffix {
	color: var(--qx-text-muted-on-dark);
}

/* Estilo libre: precio grande multi-línea, sin DESDE / $ / 4 semanas. */
.qx-planes__card--style-libre .qx-planes__price {
	display: block;
	font-size: 35px;
	white-space: normal;
}

.qx-planes__price:has(+ .qx-planes__price-cta) {
	margin-bottom: var(--qx-space-2);
}

.qx-planes__price-cta {
	margin: 0 0 var(--qx-space-5);
	font-size: var(--qx-fs-body);
	font-weight: var(--qx-fw-medium);
	line-height: var(--qx-lh-snug);
	color: var(--qx-text-muted);
}

.qx-planes__card--highlight .qx-planes__price-cta {
	color: var(--qx-text-muted-on-dark);
}

.qx-planes__cta {
	width: 100%;
	margin-bottom: var(--qx-space-6);
	font-size: var(--qx-fs-body);
}

.qx-planes__benefits {
	display: flex;
	flex-direction: column;
	gap: var(--qx-space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.qx-planes__benefits li {
	display: flex;
	align-items: flex-start;
	gap: var(--qx-space-3);
	font-size: var(--qx-fs-small);
	line-height: var(--qx-lh-snug);
	color: var(--qx-text);
}

.qx-planes__card--highlight .qx-planes__benefits li {
	color: var(--qx-text-on-dark);
}

.qx-planes__check {
	flex: 0 0 auto;
	width: 1.15em;
	height: 1.15em;
	margin-top: 0.15em;
}

.qx-planes__check circle {
	fill: none;
	stroke: var(--qx-success);
	stroke-width: 1.5;
}

.qx-planes__check path {
	stroke: var(--qx-success);
}

.qx-planes__fine-print {
	margin-top: auto;
	margin-bottom: 0;
	margin-left: 0;
	margin-right: 0;
	padding-top: var(--qx-space-6);
	font-size: var(--qx-fs-small);
	color: var(--qx-text-muted);
}

.qx-planes__card--highlight .qx-planes__fine-print {
	color: var(--qx-text-muted-on-dark);
}

.qx-planes__fine-print a {
	color: inherit;
	text-decoration: underline;
}

.qx-planes__card--highlight .qx-planes__fine-print a {
	color: var(--qx-text-on-dark);
}

/* Small mobile — tighter card padding and a smaller CTA to match the
   `.qx-btn` size reduction that already kicks in at this breakpoint. */
@media (max-width: 575.98px) {
	.qx-planes__card {
		padding: var(--qx-space-6) var(--qx-space-4);
	}

	.qx-planes__cta {
		font-size: var(--qx-fs-small);
	}
}
