/* Pricing Table — i am Eiva */

.eiva-pt {
	--eiva-pt-cols: 3;
	--eiva-pt-total-cols: 4;
	--eiva-pt-gap: 20px;
	--eiva-pt-table-gap: 40px;
	--eiva-pt-accent: #5351d4;
	--eiva-pt-card-bg: #ffffff;
	--eiva-pt-card-border: #e5e5ea;
	--eiva-pt-radius: 12px;
	--eiva-pt-divider: #ececf0;
	--eiva-pt-check-bg: #5351d4;
	--eiva-pt-check-color: #ffffff;
	--eiva-pt-label-w: minmax(180px, 1.15fr);
	--eiva-pt-plan-w: minmax(0, 1fr);

	font-family: "Plus Jakarta Sans", sans-serif;
	color: #111111;
	box-sizing: border-box;
}

.eiva-pt *,
.eiva-pt *::before,
.eiva-pt *::after {
	box-sizing: border-box;
}

/* Desktop visible by default */
.eiva-pt__desktop {
	display: block;
}

.eiva-pt__mobile {
	display: none;
}

/* —— Cards row —— */
.eiva-pt__cards {
	display: grid;
	grid-template-columns: var(--eiva-pt-label-w) repeat(var(--eiva-pt-cols), var(--eiva-pt-plan-w));
	gap: var(--eiva-pt-gap);
	align-items: stretch;
	margin-bottom: var(--eiva-pt-table-gap);
}

.eiva-pt__cards-spacer {
	min-height: 1px;
}

.eiva-pt__cards-grid {
	display: grid;
	grid-column: 2 / -1;
	grid-template-columns: repeat(var(--eiva-pt-cols), minmax(0, 1fr));
	gap: var(--eiva-pt-gap);
}

.eiva-pt-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--eiva-pt-card-bg);
	border: 1px solid var(--eiva-pt-card-border);
	border-radius: var(--eiva-pt-radius);
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
	height: 100%;
}

.eiva-pt-card.is-featured {
	border-color: var(--eiva-pt-accent);
	border-width: 2px;
}

.eiva-pt-card__badge {
	display: block;
	width: 100%;
	padding: 8px 12px;
	background: var(--eiva-pt-accent);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.eiva-pt-card__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px 22px 22px;
	flex: 1;
}

.eiva-pt-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
	color: #111111;
}

.eiva-pt-card__desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #6b6b73;
}

.eiva-pt-card__price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px;
	margin: 6px 0 4px;
}

.eiva-pt-card__amount {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #111111;
}

.eiva-pt-card__period {
	font-size: 14px;
	font-weight: 500;
	color: #6b6b73;
}

.eiva-pt-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: auto;
	padding: 12px 16px;
	border: 1px solid #111111;
	border-radius: 8px;
	background: #ffffff;
	color: #111111;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.eiva-pt-card__btn:hover {
	transform: translateY(-1px);
	text-decoration: none;
	color: #111111;
}

.eiva-pt-card.is-featured .eiva-pt-card__btn {
	background: var(--eiva-pt-accent);
	border-color: var(--eiva-pt-accent);
	color: #ffffff;
}

.eiva-pt-card.is-featured .eiva-pt-card__btn:hover {
	color: #ffffff;
}

/* —— Comparison table —— */
.eiva-pt__table {
	display: flex;
	flex-direction: column;
}

.eiva-pt-row {
	display: grid;
	grid-template-columns: var(--eiva-pt-label-w) repeat(var(--eiva-pt-cols), var(--eiva-pt-plan-w));
	gap: var(--eiva-pt-gap);
	align-items: center;
}

.eiva-pt-row--feature {
	border-bottom: 1px solid var(--eiva-pt-divider);
}

.eiva-pt-row--section {
	margin-top: 28px;
	margin-bottom: 4px;
}

.eiva-pt-row--section:first-child {
	margin-top: 0;
}

.eiva-pt-cell {
	min-width: 0;
	padding: 16px 8px;
}

.eiva-pt-cell--label {
	padding-left: 0;
}

.eiva-pt-cell--value {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.eiva-pt-section {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #111111;
	padding-top: 8px;
	padding-bottom: 4px;
}

.eiva-pt-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #3a3a42;
}

.eiva-pt-value {
	font-size: 14px;
	font-weight: 500;
	color: #3a3a42;
}

.eiva-pt-empty {
	font-size: 16px;
	font-weight: 500;
	color: #b0b0b8;
	line-height: 1;
}

.eiva-pt-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--eiva-pt-check-bg);
	color: var(--eiva-pt-check-color);
}

/* Tooltip */
.eiva-pt-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	cursor: help;
	outline: none;
}

.eiva-pt-tip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid #c5c5cd;
	color: #8a8a93;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	background: #ffffff;
}

.eiva-pt-tip::after {
	content: attr(data-tip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%) translateY(4px);
	min-width: 160px;
	max-width: 240px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #1f1f24;
	color: #ffffff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	z-index: 5;
}

.eiva-pt-tip:hover::after,
.eiva-pt-tip:focus::after,
.eiva-pt-tip:focus-visible::after {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

/* —— Mobile stacked (imagen 3) —— */
.eiva-pt-mobile-block {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.eiva-pt-mobile-block + .eiva-pt-mobile-block {
	margin-top: 40px;
}

.eiva-pt__mobile .eiva-pt-card {
	width: 100%;
}

.eiva-pt-mobile-features {
	display: flex;
	flex-direction: column;
}

.eiva-pt-mobile-section {
	margin: 20px 0 4px;
	padding: 0;
}

.eiva-pt-mobile-section:first-child {
	margin-top: 0;
}

.eiva-pt-mobile-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--eiva-pt-divider);
}

.eiva-pt-mobile-value {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
	min-width: 48px;
}

/* Tablet: keep table, slightly tighter */
@media (max-width: 1024px) {
	.eiva-pt {
		--eiva-pt-label-w: minmax(140px, 1fr);
	}

	.eiva-pt-card__inner {
		padding: 20px 16px 18px;
	}

	.eiva-pt-card__amount {
		font-size: 30px;
	}

	.eiva-pt-cell {
		padding: 14px 4px;
	}
}

/* Mobile: switch to stacked layout */
@media (max-width: 767px) {
	.eiva-pt__desktop {
		display: none;
	}

	.eiva-pt__mobile {
		display: block;
		max-width: 480px;
		margin-inline: auto;
	}

	.eiva-pt-card__inner {
		padding: 22px 20px 20px;
	}

	.eiva-pt-card__amount {
		font-size: 34px;
	}

	/* En móvil todos los CTA van sólidos (mejor tap + match diseño) */
	.eiva-pt__mobile .eiva-pt-card__btn {
		background: var(--eiva-pt-accent);
		border-color: var(--eiva-pt-accent);
		color: #ffffff;
	}

	.eiva-pt__mobile .eiva-pt-card__btn:hover {
		color: #ffffff;
	}

	.eiva-pt-tip::after {
		left: 0;
		transform: translateX(0) translateY(4px);
		min-width: 140px;
		max-width: 200px;
	}

	.eiva-pt-tip:hover::after,
	.eiva-pt-tip:focus::after,
	.eiva-pt-tip:focus-visible::after {
		transform: translateX(0) translateY(0);
	}
}
