/* Página de planes (page-planes.php) — diseño independiente, con modo oscuro y móvil. */

.pl-page{
	--pl-bg: #fafafa;
	--pl-surface: #ffffff;
	--pl-text: #171717;
	--pl-muted: #6b7280;
	--pl-border: #e5e7eb;
	--pl-soft: #f4f4f5;
	--pl-accent: #0b5bd3;
	--pl-accent-soft: #eef3fd;
	--pl-dash: #c4c7cd;
	--pl-star: #f5b400;

	background: var(--pl-bg);
	color: var(--pl-text);
	font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
	min-height: 100vh;
	padding: 40px 20px 56px;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] .pl-page{
	--pl-bg: #0b1220; --pl-surface: #141d30; --pl-text: #eef3fa; --pl-muted: #aab4c8;
	--pl-border: #26324a; --pl-soft: #1a2540; --pl-accent: #4d8dff; --pl-accent-soft: #16233f; --pl-dash: #3b4863;
}
@media (prefers-color-scheme: dark){
	html:not([data-theme="light"]):not([data-theme="dark"]) .pl-page{
		--pl-bg: #0b1220; --pl-surface: #141d30; --pl-text: #eef3fa; --pl-muted: #aab4c8;
		--pl-border: #26324a; --pl-soft: #1a2540; --pl-accent: #4d8dff; --pl-accent-soft: #16233f; --pl-dash: #3b4863;
	}
}
.pl-page *{ box-sizing: border-box; }

/* Encabezado */
.pl-head{ text-align: center; max-width: 640px; margin: 0 auto 28px; }
.pl-logo{ display: inline-block; }
.pl-logo img{ height: 74px; width: auto; margin: 0 auto; }
.pl-page h1{
	font-family: 'Inter', -apple-system, sans-serif; font-size: 32px; font-weight: 700;
	letter-spacing: -.01em; margin: 4px 0 10px; color: var(--pl-text);
}
.pl-head p{ color: var(--pl-muted); font-size: 16px; line-height: 1.6; margin: 0 0 26px; }

/* Selector Mensual / Anual */
.pl-toggle{
	display: inline-flex; padding: 4px; gap: 2px; background: var(--pl-soft);
	border: 1px solid var(--pl-border); border-radius: 10px;
}
.pl-toggle button{
	font: inherit; font-size: 14px; font-weight: 500; color: var(--pl-muted); background: transparent;
	border: 0; border-radius: 7px; padding: 8px 18px; cursor: pointer;
}
.pl-toggle button.is-active{ background: var(--pl-surface); color: var(--pl-text); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

/* Mostrar solo el precio del periodo elegido */
.pl-page[data-period="monthly"] .pl-only-annual{ display: none; }
.pl-page[data-period="annual"] .pl-only-monthly{ display: none; }

/* Tarjetas */
.pl-cards{
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
	max-width: 1000px; margin: 0 auto 28px; padding-top: 12px;
}
.pl-card{
	position: relative; text-align: center; background: var(--pl-surface);
	border: 1px solid var(--pl-border); border-radius: 14px; padding: 22px 22px 24px; min-width: 0;
}
.pl-card.is-popular{ border-color: var(--pl-accent); box-shadow: 0 0 0 1px var(--pl-accent), 0 8px 24px -12px rgba(11,91,211,.35); }
.pl-badge{
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
	background: #0b5bd3; color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px;
}
.pl-badge svg{ width: 12px; height: 12px; }
.pl-page h2{
	font-family: 'Inter', -apple-system, sans-serif; font-size: 17px; font-weight: 600;
	margin: 0 0 10px; color: var(--pl-text);
}
.pl-price{ display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 6px; }
.pl-price strong{ font-size: 30px; font-weight: 700; letter-spacing: -.01em; color: var(--pl-text); }
.pl-price span{ font-size: 14px; color: var(--pl-muted); }
.pl-alt{ font-size: 13px; color: var(--pl-muted); margin: 0 0 18px; }
.pl-alt em{ font-style: normal; color: var(--pl-accent); font-weight: 500; }

/* Botones */
.pl-btn{
	display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
	padding: 11px 16px; font-size: 14px; font-weight: 500; text-decoration: none;
	color: var(--pl-text); background: var(--pl-soft); border: 1px solid var(--pl-border); border-radius: 8px;
	transition: background-color .15s ease, border-color .15s ease;
}
.pl-btn:hover{ border-color: var(--pl-muted); }
.pl-card.is-popular .pl-btn{ background: var(--pl-accent); border-color: var(--pl-accent); color: #fff; }
html[data-theme="dark"] .pl-card.is-popular .pl-btn{ color: #0b1220; }
.pl-card.is-popular .pl-btn:hover{ filter: brightness(1.08); }
.pl-btn--inline{ display: inline-flex; width: auto; padding: 11px 22px; background: var(--pl-surface); }

/* Tabla comparativa */
.pl-table-wrap{
	max-width: 1000px; margin: 0 auto; background: var(--pl-surface);
	border: 1px solid var(--pl-border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pl-table{ width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.pl-table th, .pl-table td{ padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--pl-border); color: var(--pl-text); }
.pl-table tbody tr:last-child th, .pl-table tbody tr:last-child td{ border-bottom: 0; }
.pl-table thead th{ background: var(--pl-soft); font-weight: 500; }
.pl-table th:first-child{ text-align: left; width: 38%; font-weight: 400; padding-left: 16px; }
.pl-table thead th:first-child{ font-weight: 500; }
.pl-table tbody th{ background: var(--pl-surface); }
.pl-table .is-pro{ background: var(--pl-accent-soft); }
.pl-table thead th.is-pro{ color: var(--pl-accent); background: var(--pl-soft); }
.pl-star{ fill: var(--pl-star); stroke: var(--pl-star); vertical-align: -2px; margin-left: 4px; }
.pl-check{ color: var(--pl-accent); display: inline-flex; }
.pl-dash{ color: var(--pl-dash); }

/* Pie */
.pl-foot{ text-align: center; margin-top: 30px; }
.pl-foot p{ color: var(--pl-muted); font-size: 14px; margin: 0 0 14px; }

/* Móvil */
@media (max-width: 820px){
	.pl-cards{ grid-template-columns: 1fr; max-width: 420px; gap: 26px; }
	.pl-card.is-popular{ order: -1; }
	.pl-page h1{ font-size: 26px; }
	.pl-page{ padding: 28px 14px 44px; }
	.pl-table th:first-child{ position: sticky; left: 0; z-index: 1; min-width: 170px; }
	.pl-table thead th:first-child{ background: var(--pl-soft); }
}
