/* ===========================================================
   TS Orbix Memberships Area — public plans page
   Pricing grid inspired by clean commercial subscription pages
   (white cards, soft shadow, uppercase eyebrow, large price in
   es-ES, feature list with green checks / grey crosses, solid CTA).
   Kept inside the Tsorbix brand language (deep teal #14445C,
   lime #15cd72) and the asymmetric border-radius on the CTAs
   we use across the catalogue.
   =========================================================== */

.tsx-ma-plans {
	--tsx-ma-primary: #14445C;
	--tsx-ma-accent:  #15cd72;
	--tsx-ma-ink:     #1d2b33;
	--tsx-ma-muted:   #6c757d;
	--tsx-ma-line:    #e6eaec;
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 64px 16px 80px;
	box-sizing: border-box;
	color: var(--tsx-ma-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Soft decorative background — two huge blurred circles in the
   brand teal/lime, very low opacity, anchored to the corners.
   They sit behind the grid (z-index 0) and don't catch pointer
   events. Replaces the purple wave in the reference with a
   Tsorbix on-brand backdrop. */
.tsx-ma-plans::before,
.tsx-ma-plans::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.18;
	pointer-events: none;
	z-index: 0;
}
.tsx-ma-plans::before {
	width: 520px;
	height: 520px;
	background: #2a8aa6;
	top: -180px;
	left: -160px;
}
.tsx-ma-plans::after {
	width: 480px;
	height: 480px;
	background: var(--tsx-ma-accent);
	bottom: -200px;
	right: -140px;
	opacity: 0.14;
}

.tsx-ma-plans > * { position: relative; z-index: 1; }

.tsx-ma-plans__header {
	text-align: center;
	margin-bottom: 48px;
}

.tsx-ma-plans__notice {
	max-width: 720px;
	margin: 0 auto 28px;
	padding: 18px 22px;
	background: #fff7e8;
	border: 1px solid #f5c98a;
	border-left: 5px solid #d4910a;
	border-radius: 10px;
	color: #6b4a08;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.tsx-ma-plans__notice strong {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: #4a3204;
}
.tsx-ma-plans__notice p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
}
.tsx-ma-plans__eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--tsx-ma-primary);
	background: rgba(20, 68, 92, 0.08);
	padding: 6px 14px;
	border-radius: 999px;
	margin: 0 0 14px;
}
.tsx-ma-plans__title {
	font-family: 'Poppins', sans-serif;
	font-size: clamp(2rem, 4vw, 2.85rem);
	font-weight: 700;
	margin: 0 0 14px;
	color: var(--tsx-ma-primary);
	letter-spacing: -0.01em;
	line-height: 1.15;
}
.tsx-ma-plans__lede {
	font-size: 1.05rem;
	color: var(--tsx-ma-muted);
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.55;
}

.tsx-ma-plans__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	align-items: stretch;
}

@media (max-width: 1023px) {
	.tsx-ma-plans__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.tsx-ma-plans__grid { grid-template-columns: 1fr; }
}

.tsx-ma-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid var(--tsx-ma-line);
	border-radius: 10px;
	padding: 36px 28px 32px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(20, 68, 92, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tsx-ma-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px rgba(20, 68, 92, 0.10);
}
/* Featured plan: a stronger drop shadow + slight lift, matching the
   reference where the middle card sits a touch higher. */
.tsx-ma-card.is-featured {
	transform: translateY(-6px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 24px 48px rgba(20, 68, 92, 0.14);
	border-color: #d6dde1;
}
.tsx-ma-card.is-featured:hover {
	transform: translateY(-9px);
}
/* Current plan: a soft lime accent border + very subtle gradient. */
.tsx-ma-card.is-current {
	border-color: var(--tsx-ma-accent);
	background: linear-gradient(180deg, #f1fbf4 0%, #ffffff 50%);
}

.tsx-ma-card__badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--tsx-ma-accent);
	color: #0a3a1f;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(21, 205, 114, 0.30);
	white-space: nowrap;
}

.tsx-ma-card__current {
	display: inline-block;
	background: var(--tsx-ma-accent);
	color: #0a3a1f;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
	align-self: flex-start;
}

.tsx-ma-card__name {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tsx-ma-primary);
	text-align: center;
	margin: 0 0 18px;
}

.tsx-ma-card__desc {
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--tsx-ma-muted);
	margin: 0 0 22px;
	flex: 0 0 auto;
}
.tsx-ma-card__desc p { margin: 0 0 6px; }
.tsx-ma-card__desc p:last-child { margin: 0; }

.tsx-ma-card__price {
	text-align: center;
	margin: 0 0 24px;
	padding: 16px 0 18px;
	border-top: 1px solid #eef0f2;
	border-bottom: 1px solid #eef0f2;
}
.tsx-ma-card__price-amount {
	display: block;
	font-family: 'Poppins', sans-serif;
	font-size: 2.6rem;
	font-weight: 700;
	color: var(--tsx-ma-ink);
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.tsx-ma-card.is-featured .tsx-ma-card__price-amount {
	color: var(--tsx-ma-primary);
}
.tsx-ma-card__price-amount .tsx-ma-card__price-currency {
	font-size: 1.4rem;
	font-weight: 600;
	vertical-align: top;
	margin-right: 2px;
	color: var(--tsx-ma-muted);
}
.tsx-ma-card__price-period {
	display: block;
	margin-top: 6px;
	font-size: 0.85rem;
	color: var(--tsx-ma-muted);
	font-style: italic;
}

.tsx-ma-card__features {
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	flex: 1 1 auto;
}
.tsx-ma-card__features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.92rem;
	color: var(--tsx-ma-ink);
	padding: 7px 0;
	line-height: 1.4;
}
.tsx-ma-card__features li::before {
	content: "";
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 16px 16px;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315cd72' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
}
.tsx-ma-card__features li.is-disabled {
	color: #6a6a6a;
}
.tsx-ma-card__features li.is-disabled::before {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>");
}
.tsx-ma-card__features li strong {
	font-weight: 700;
}

.tsx-ma-card__cta {
	margin-top: auto;
}
.tsx-ma-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 22px;
	background: var(--tsx-ma-primary);
	color: #ffffff;
	font-weight: 700;
	font-size: 0.82rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease;
	font-family: inherit;
}
.tsx-ma-card__btn:hover {
	background: #0f3a4f;
	color: #ffffff;
	transform: translateY(-1px);
}
/* Featured plan CTA: lime accent to make the recommended option pop,
   matching the reference where the middle card's button stands out. */
.tsx-ma-card.is-featured .tsx-ma-card__btn {
	background: var(--tsx-ma-accent);
	color: #0a3a1f;
}
.tsx-ma-card.is-featured .tsx-ma-card__btn:hover {
	background: #12b562;
	color: #0a3a1f;
}
.tsx-ma-card__btn.is-disabled {
	background: #eaf4f7;
	color: #5a7a85;
	cursor: not-allowed;
}
.tsx-ma-card__btn.is-disabled:hover {
	transform: none;
}

.tsx-ma-plans__empty {
	text-align: center;
	padding: 48px 16px;
	background: #ffffff;
	border: 1px dashed #d6dde1;
	border-radius: 12px;
	color: var(--tsx-ma-muted);
}

.tsx-ma-plans__active {
	margin-top: 56px;
	padding: 28px;
	background: #ffffff;
	border: 1px solid var(--tsx-ma-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.tsx-ma-plans__active-title {
	font-family: 'Poppins', sans-serif;
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--tsx-ma-primary);
}
.tsx-ma-plans__active p {
	margin: 0 0 8px;
	color: var(--tsx-ma-muted);
}
.tsx-ma-plans__manage {
	color: var(--tsx-ma-primary);
	font-weight: 600;
}

/* Payment trust strip — WooCommerce + Stripe badges (the site uses
   Stripe, not PayPal). Inline SVGs, no external assets, sit on a
   soft pill so they read as "we accept these" rather than as
   decorative noise. */
.tsx-ma-plans__payments {
	margin-top: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	color: var(--tsx-ma-muted);
	font-size: 0.85rem;
}
.tsx-ma-plans__payments .tsx-ma-plans__payments-label {
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.tsx-ma-plans__payments .tsx-ma-plans__pay {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ffffff;
	border: 1px solid var(--tsx-ma-line);
	border-radius: 8px;
	padding: 6px 12px;
	font-weight: 700;
	font-size: 0.78rem;
	color: var(--tsx-ma-ink);
}
.tsx-ma-plans__payments .tsx-ma-plans__pay svg {
	width: 18px;
	height: 18px;
}

/* Admin column pill */
.tsx-ma-pill {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.tsx-ma-pill--b2b { background: #fff4e0; color: #8a5a00; }
.tsx-ma-pill--b2c { background: #eaf4f7; color: var(--tsx-ma-primary); }

/* ─── Tabs (Orbixer / Partner) ─────────────────────────────────────────────── */
.tsx-ma-tabs {
	display: flex;
	gap: 8px;
	/* Centre the pill in the content column and centre the tab buttons
	 * inside it. `margin:auto` on a fit-content block centres the
	 * block; `justify-content:center` centres the flex children. */
	margin: 0 auto 28px;
	padding: 6px;
	background: #f1f5f7;
	border-radius: 14px;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	justify-content: center;
}
.tsx-ma-tabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 0.92rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #5a6b75;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.tsx-ma-tabs__btn:hover {
	color: var(--tsx-ma-primary);
}
.tsx-ma-tabs__btn.is-active {
	background: #fff;
	color: var(--tsx-ma-primary);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

/* ─── Panels: only the active tab is visible ───────────────────────────────── */
.tsx-ma-panel[hidden] { display: none !important; }

/* ─── Partner panel intro (selective-access notice) ───────────────────────── */
.tsx-ma-panel__lock {
	background: #fff7ec;
	border: 1px solid #f3d9a8;
	border-radius: 12px;
	padding: 18px 22px;
	margin: 0 0 24px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.tsx-ma-panel__lock-text {
	margin: 0;
	color: #6a4a14;
	font-weight: 600;
}

/* ─── Partner application under review toast ─────────────────────────────── */
.tsx-ma-pending-notice {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 99999;
	max-width: min(92vw, 480px);
	background: #0b3a4d;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.45;
	padding: 14px 22px;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
	animation: tsxMaNoticeIn .25s ease-out;
}
@keyframes tsxMaNoticeIn {
	from { opacity: 0; transform: translateX(-50%) translateY(10px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ─── Current-subscription badge (/mi-perfil/) ─────────────────────────────── */

.tsx-current-subscription {
  margin: 0 0 24px;
  padding: 18px 22px;
  background: #f5f9fb;
  border: 1px solid #d8e3ec;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
}

.tsx-current-subscription__head {
  flex: 1 1 220px;
  min-width: 0;
}

.tsx-current-subscription__eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0b3a4d;
  background: #cfe3f5;
  border-radius: 999px;
}

.tsx-current-subscription__title {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
  color: #0f1d2a;
}

.tsx-current-subscription__details {
  margin: 0;
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.tsx-current-subscription__row {
  display: flex;
  flex-direction: column;
}

.tsx-current-subscription__row dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6a7b8a;
}

.tsx-current-subscription__row dd {
  margin: 0;
  font-size: 0.98rem;
  color: #1f2d3a;
  font-weight: 600;
}

.tsx-current-subscription__empty {
  margin: 0;
  flex: 1 1 100%;
  color: #6a7b8a;
  font-size: 0.95rem;
}

.tsx-current-subscription__footer {
  flex: 0 0 auto;
  margin-left: auto;
}

.tsx-current-subscription__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: var(--tsx-ma-primary, #0b3a4d);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.12s ease;
}

.tsx-current-subscription__cta:hover,
.tsx-current-subscription__cta:focus {
  background: #0f3344;
}
