/* ───────────────────────────────────────────────────────────────────────────
   Bacca · capa de marca sobre Tabler (modo claro).
   Se carga SIEMPRE después de tabler.min.css.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
	--bacca-green: #149e5f;
	--bacca-green-dark: #0f8250;
	--bacca-mint: #2ecc81;
	--bacca-gold: #d99a17;
	--bacca-ink: #14212b;

	/* Pisa el primario de Tabler para que botones, links y acentos sean verdes */
	--tblr-primary: #149e5f;
	--tblr-primary-rgb: 20, 158, 95;
	--tblr-primary-darken: #0f8250;
	--tblr-link-color: #0f8250;
	--tblr-link-hover-color: #0b6b41;
	--tblr-font-sans-serif:
		"Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
		sans-serif;
}

body {
	background: #f4f7f9;
	color: var(--bacca-ink);
	-webkit-font-smoothing: antialiased;
}

.hidden {
	display: none !important;
}

/* ── Marca ──────────────────────────────────────────────────────────────── */
.brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}
.brand-lockup .brand-dot {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--bacca-mint), var(--bacca-green));
	color: #fff;
	font-size: 18px;
	box-shadow: 0 6px 16px rgba(20, 158, 95, 0.32);
}
.brand-lockup .brand-name {
	font-size: 1.18rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--bacca-ink);
	line-height: 1.1;
}
.brand-lockup .brand-tag {
	display: block;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: #718096;
	text-transform: uppercase;
}

/* ── Cabecera de página ─────────────────────────────────────────────────── */
.page-header .page-title {
	font-weight: 700;
	letter-spacing: -0.01em;
}
.page-pretitle {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--bacca-green);
}

/* ── Tarjetas de métrica ────────────────────────────────────────────────── */
.card-metric .metric-icon {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-size: 19px;
	background: rgba(20, 158, 95, 0.12);
	color: var(--bacca-green);
}
.card-metric.is-blue .metric-icon {
	background: rgba(32, 107, 196, 0.12);
	color: #206bc4;
}
.card-metric.is-gold .metric-icon {
	background: rgba(217, 154, 23, 0.15);
	color: #a97610;
}
.card-metric.is-red .metric-icon {
	background: rgba(214, 57, 57, 0.12);
	color: #d63939;
}
.card-metric.is-gray .metric-icon {
	background: rgba(98, 105, 118, 0.12);
	color: #626976;
}
.card-metric .metric-value {
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1;
	color: var(--bacca-ink);
}

/* ── Insignias de plan ──────────────────────────────────────────────────── */
.badge-plan {
	font-weight: 600;
	letter-spacing: 0.02em;
}
.badge-plan.basic {
	background: #eceff3;
	color: #626976;
}
.badge-plan.pro {
	background: rgba(32, 107, 196, 0.14);
	color: #1a5aa3;
}
.badge-plan.ultra {
	background: rgba(217, 154, 23, 0.18);
	color: #916508;
}

/* ── Estados de texto ───────────────────────────────────────────────────── */
.txt-ok {
	color: var(--bacca-green);
	font-weight: 600;
}
.txt-bad {
	color: #d63939;
	font-weight: 600;
}
.txt-warn {
	color: #a97610;
	font-weight: 600;
}

/* ── Superposicion de modales (sin depender del JS de Tabler) ───────────── */
.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 1050;
	display: none;
	overflow-y: auto;
	padding: 28px 14px;
	background: rgba(20, 33, 43, 0.55);
	backdrop-filter: blur(2px);
}
.modal-overlay.show {
	display: block;
}
.modal-overlay .modal-panel {
	max-width: 660px;
	margin: 0 auto;
}
.modal-overlay .modal-panel.narrow {
	max-width: 460px;
}

/* ── Aviso (toast) ──────────────────────────────────────────────────────── */
.toast-box {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 1100;
	display: none;
	max-width: 380px;
	padding: 13px 16px;
	border-radius: 10px;
	border-left: 4px solid var(--bacca-green);
	background: #fff;
	color: var(--bacca-ink);
	font-size: 0.9rem;
	box-shadow: 0 12px 32px rgba(20, 33, 43, 0.18);
}
.toast-box.error {
	border-left-color: #d63939;
}

/* ── Navbar: el menú siempre en fila, nunca en columna ─────────────────── */
.navbar .navbar-nav {
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
}
.navbar .navbar-nav .nav-item {
	flex-direction: row !important;
	width: auto;
}

/* ── Planes (página de pagos) ───────────────────────────────────────────── */
.plan-card {
	height: 100%;
	border: 1px solid #e3e8ee;
	border-radius: 14px;
	background: #fff;
	padding: 28px 24px;
	display: flex;
	flex-direction: column;
	transition:
		transform 0.18s ease,
		box-shadow 0.18s ease,
		border-color 0.18s ease;
}
.plan-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 40px rgba(20, 33, 43, 0.1);
}
.plan-card.featured {
	border-color: var(--bacca-green);
	box-shadow: 0 16px 40px rgba(20, 158, 95, 0.16);
	position: relative;
}
.plan-card .plan-ribbon {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	padding: 4px 14px;
	border-radius: 999px;
	background: var(--bacca-green);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.plan-card .plan-name {
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}
.plan-card .plan-sub {
	font-size: 0.83rem;
	color: #718096;
	margin-top: 2px;
}
.plan-card .plan-price {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.plan-card .plan-price .price-top {
	display: flex;
	align-items: center;
	gap: 8px;
}
.plan-card .plan-price .price-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: linear-gradient(135deg, #149e5f, #2ecb84);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(20, 158, 95, 0.35);
}
.plan-card .plan-price .price-antes {
	font-size: 1rem;
	font-weight: 600;
	color: #98a2b3;
	text-decoration: line-through;
	text-decoration-color: #e0584f;
	text-decoration-thickness: 2px;
}
.plan-card .plan-price .price-bottom {
	display: flex;
	align-items: baseline;
	gap: 5px;
}
.plan-card .plan-price .price-descuento {
	font-size: 2.75rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	background: linear-gradient(135deg, #0f8b52 10%, #2ecb84 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.plan-card .plan-price .price-periodo {
	font-size: 0.95rem;
	font-weight: 600;
	color: #718096;
}
.plan-card ul.plan-feats {
	list-style: none;
	padding: 0;
	margin: 18px 0 24px;
	flex: 1;
}
.plan-card ul.plan-feats li {
	position: relative;
	padding: 5px 0 5px 24px;
	font-size: 0.9rem;
	color: #465569;
}
.plan-card ul.plan-feats li::before {
	content: "✓";
	position: absolute;
	left: 2px;
	color: var(--bacca-green);
	font-size: 14px;
	font-weight: 700;
}
.plan-card ul.plan-feats li.off {
	color: #a3adba;
}
.plan-card ul.plan-feats li.off::before {
	content: "✕";
	color: #c3cad4;
}

/* ── Icono de viñeta (features / pasos) ─────────────────────────────────── */
.feat-ico {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	font-size: 19px;
	background: rgba(20, 158, 95, 0.12);
	color: var(--bacca-green);
	margin-bottom: 8px;
}

/* ── Cajas de aviso / bloqueo ───────────────────────────────────────────── */
.notice-box {
	border-radius: 12px;
	padding: 16px 18px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
	border: 1px solid;
}
.notice-box .notice-ico {
	font-size: 22px;
	line-height: 1;
	margin-top: 1px;
}
.notice-box.info {
	background: rgba(32, 107, 196, 0.07);
	border-color: rgba(32, 107, 196, 0.3);
	color: #1a5aa3;
}
.notice-box.warn {
	background: rgba(217, 154, 23, 0.08);
	border-color: rgba(217, 154, 23, 0.35);
	color: #8a5f08;
}
.notice-box.danger {
	background: rgba(214, 57, 57, 0.07);
	border-color: rgba(214, 57, 57, 0.32);
	color: #b02a2a;
}
.notice-box .notice-title {
	font-weight: 700;
	font-size: 0.95rem;
	margin-bottom: 3px;
}
.notice-box p {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.5;
}

/* ── Bloqueo de datos de cuenta ─────────────────────────────────────────── */
.locked-panel {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
}
.locked-panel .locked-mask {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	text-align: center;
	padding: 22px;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(4px);
}

/* ── Pie ────────────────────────────────────────────────────────────────── */
.foot-note {
	text-align: center;
	font-size: 0.8rem;
	color: #8a97a6;
	padding: 22px 0 6px;
}
.foot-note a {
	color: var(--bacca-green-dark);
	text-decoration: none;
}
.foot-note a:hover {
	text-decoration: underline;
}

/* ── Tablas ─────────────────────────────────────────────────────────────── */
.table thead th {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #718096;
	font-weight: 700;
	background: #f8fafb;
}
.table td {
	vertical-align: middle;
}
.td-actions {
	white-space: nowrap;
	text-align: right;
}
