/* Sarpi Precios · estilos del sitio. Todo va bajo .spx para no afectar el tema. */
.spx {
	--spx-ink: #161616;
	--spx-bg: #efefef;
	--spx-card: #f7f7f7;
	--spx-muted: #6b6b6b;
	--spx-line: #d6d6d6;
	--spx-accent: #16a34a;
	color: var(--spx-ink);
	background: var(--spx-bg);
	padding: 0; /* sin espacio propio: los márgenes se manejan desde el editor */
	line-height: 1.4;
}
.spx *, .spx *::before, .spx *::after { box-sizing: border-box; }
.spx .spx-wrap { max-width: var(--spx-maxw, 100%); margin: 0; } /* ocupa todo el ancho del widget, alineado a la izquierda */

/* Encabezado */
.spx .spx-head { margin: 0 0 30px; }
.spx .spx-eyebrow { font-size: 12px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--spx-muted); margin: 0 0 6px; }
.spx .spx-title { font-family: inherit; font-weight: 900; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; color: var(--spx-ink); margin: 0 0 10px; }
.spx .spx-sub { font-size: 15px; line-height: 1.5; color: var(--spx-muted); max-width: 620px; margin: 0; }

/* Pestañas */
.spx .spx-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.spx button.spx-tab {
	font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .03em; text-decoration: none;
	margin: 0; padding: 10px 18px; border: 1px solid var(--spx-ink); border-radius: 2px;
	background: transparent; color: var(--spx-ink); box-shadow: none; cursor: pointer;
	transition: background .2s, color .2s;
}
.spx button.spx-tab:hover, .spx button.spx-tab:focus { background: rgba(0, 0, 0, .06); color: var(--spx-ink); border-color: var(--spx-ink); }
.spx button.spx-tab[aria-selected="true"] { background: var(--spx-ink); color: #fff; }
.spx button.spx-tab:focus-visible, .spx button.spx-period:focus-visible, .spx a.spx-btn:focus-visible { outline: 2px solid var(--spx-ink); outline-offset: 2px; }

/* Paneles */
.spx .spx-panel { display: none; }
.spx .spx-panel.is-active { display: block; animation: spxFade .35s ease; }
@keyframes spxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.spx.is-stacked .spx-panel + .spx-panel { margin-top: 64px; }
.spx .spx-section-title { font-family: inherit; font-weight: 800; font-size: 20px; line-height: 1.2; text-transform: uppercase; color: var(--spx-ink); margin: 0 0 8px; }
.spx .spx-intro { font-size: 14px; line-height: 1.5; color: var(--spx-muted); max-width: 620px; margin: 0 0 22px; }

/* Selector de periodo */
.spx .spx-periods { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 26px; border: 1px solid var(--spx-line); border-radius: 30px; background: var(--spx-card); }
.spx button.spx-period {
	font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1.2;
	text-transform: uppercase; letter-spacing: .03em;
	margin: 0; padding: 8px 15px; border: 0; border-radius: 30px;
	background: transparent; color: var(--spx-muted); box-shadow: none; cursor: pointer;
	transition: background .2s, color .2s;
}
.spx button.spx-period:hover, .spx button.spx-period:focus { background: rgba(0, 0, 0, .06); color: var(--spx-ink); }
.spx button.spx-period.is-on { background: var(--spx-ink); color: #fff; }
.spx button.spx-period em { font-style: normal; font-weight: 700; font-size: 11px; color: var(--spx-accent); margin-left: 5px; }
.spx button.spx-period.is-on em { color: inherit; opacity: .75; }

/* Grilla */
.spx .spx-grid { display: grid; gap: 16px; padding-top: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spx .spx-grid.spx-cols-1 { grid-template-columns: minmax(0, 420px); }
.spx .spx-grid.spx-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spx .spx-grid.spx-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tarjetas */
.spx .spx-card {
	position: relative; display: flex; flex-direction: column;
	padding: 28px 24px; border: 1px solid var(--spx-line); border-radius: 4px;
	background: var(--spx-card); color: var(--spx-ink);
	transition: transform .2s, box-shadow .2s;
}
.spx .spx-cols-4 .spx-card { padding: 26px 20px; }
.spx .spx-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .07); }
.spx .spx-card.is-featured { background: var(--spx-ink); color: #fff; border-color: var(--spx-ink); }
.spx .spx-badge {
	position: absolute; top: -11px; left: 24px;
	font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.4;
	padding: 3px 10px; border: 1px solid var(--spx-ink); border-radius: 20px; background: #fff; color: var(--spx-ink);
}
.spx .spx-name { font-family: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; text-transform: uppercase; color: inherit; margin: 0 0 6px; }
.spx .spx-desc { font-size: 13px; line-height: 1.5; color: var(--spx-muted); margin: 0 0 20px; min-height: 40px; }
.spx .spx-from { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--spx-muted); }
.spx .spx-price { font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; color: inherit; margin: 4px 0 2px; }
.spx .spx-cols-4 .spx-price { font-size: 30px; }
.spx .spx-price small { font-size: 14px; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.spx .spx-price--text { font-size: 26px; }
.spx .spx-pv { display: none; }
.spx .spx-pv.is-on { display: block; }
.spx .spx-save { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--spx-accent); margin: 6px 0 0; min-height: 1.4em; }
.spx .spx-note { font-size: 12px; color: var(--spx-muted); margin: 6px 0 20px; }
.spx .is-featured .spx-desc, .spx .is-featured .spx-note, .spx .is-featured .spx-from { color: #b5b5b5; }
.spx .is-featured .spx-save { color: #4ade80; }

/* Lista de características */
.spx .spx-list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.spx .spx-spacer { flex: 1; }
.spx .spx-list li { position: relative; list-style: none; margin: 0; padding: 7px 0 7px 24px; font-size: 13.5px; line-height: 1.4; border-top: 1px dashed var(--spx-line); }
.spx .is-featured .spx-list li { border-color: #333; }
.spx .spx-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.spx .spx-list li.spx-inherit { font-weight: 700; }
.spx .spx-list li.spx-inherit::before { content: "+"; top: 6px; left: 2px; width: auto; height: auto; border: 0; transform: none; font-weight: 800; }

/* Botones */
.spx a.spx-btn {
	display: block; text-align: center; text-decoration: none;
	font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em;
	padding: 12px; border: 1px solid var(--spx-ink); border-radius: 2px;
	background: transparent; color: var(--spx-ink); box-shadow: none;
	transition: background .2s, color .2s;
}
.spx a.spx-btn:hover, .spx a.spx-btn:focus { background: var(--spx-ink); color: #fff; text-decoration: none; }
.spx .is-featured a.spx-btn { background: #fff; color: var(--spx-ink); border-color: #fff; }
.spx .is-featured a.spx-btn:hover, .spx .is-featured a.spx-btn:focus { background: transparent; color: #fff; }

/* Pie de sección */
.spx .spx-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; padding: 18px 22px; border: 1px solid var(--spx-line); border-radius: 4px; background: var(--spx-card); }
.spx .spx-foot p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--spx-ink); }
.spx .spx-foot strong { font-weight: 800; }
.spx .spx-foot a.spx-btn { display: inline-block; padding: 11px 20px; background: var(--spx-ink); color: #fff; }
.spx .spx-foot a.spx-btn:hover, .spx .spx-foot a.spx-btn:focus { background: transparent; color: var(--spx-ink); }

.spx .spx-legal { font-size: 11.5px; color: var(--spx-muted); margin: 14px 0 0; }
.spx-empty { padding: 12px 14px; border: 1px dashed #b32d2e; font-size: 13px; }

/* Responsive */
@media (max-width: 1024px) {
	.spx .spx-grid.spx-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 860px) {
	.spx .spx-grid.spx-cols-3 { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
	.spx .spx-desc { min-height: 0; }
}
@media (max-width: 680px) {
	.spx .spx-periods { border-radius: 16px; }
	.spx .spx-grid.spx-cols-2, .spx .spx-grid.spx-cols-4 { grid-template-columns: minmax(0, 1fr); }
	.spx .spx-grid.spx-cols-1 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.spx .spx-panel.is-active { animation: none; }
	.spx .spx-card, .spx .spx-card:hover { transition: none; transform: none; }
}
