/**
 * Facetoshi Autores - interfaz pública.
 */

.fa {
	--fa-ink: #12233b;
	--fa-soft: #5a6b80;
	--fa-line: #d9e4f0;
	--fa-blue: #1f5fa8;
	--fa-blue-dark: #133f72;
	--fa-gold: #e3b04b;
	--fa-bg: #f7fbff;
	--fa-green: #177245;
	--fa-red: #a3321f;

	max-width: 980px;
	margin: 2rem auto;
	padding: 0 1rem;
	color: var(--fa-ink);
	font-size: 16px;
	line-height: 1.55;
	box-sizing: border-box;
}

.fa *,
.fa *::before,
.fa *::after {
	box-sizing: inherit;
}

.fa-hero {
	padding: clamp(1.5rem, 5vw, 3rem);
	background: radial-gradient(circle at 90% 10%, #eaf3fd 0, #f8fbff 45%, #ffffff 100%);
	border: 1px solid var(--fa-line);
	border-radius: 20px;
	text-align: center;
}

.fa-kicker {
	display: inline-block;
	padding: 5px 12px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fa-blue-dark);
	background: #e6f0fb;
	border-radius: 999px;
}

.fa-title {
	margin: 1rem 0 0.5rem;
	font-size: clamp(1.8rem, 4.5vw, 2.7rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--fa-ink);
}

.fa-sub {
	max-width: 620px;
	margin: 0 auto 1.5rem;
	color: var(--fa-soft);
}

.fa-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0.85rem 1.6rem;
	font-weight: 700;
	color: #1d2327;
	background: #fff;
	border: 1px solid #c3ccd8;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(18, 35, 59, 0.08);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fa-google:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(18, 35, 59, 0.12);
	color: #1d2327;
}

.fa-note,
.fa-links {
	color: var(--fa-soft);
	font-size: 12.5px;
}

.fa-links {
	margin-top: 1.2rem;
}

.fa-links a {
	color: var(--fa-blue);
}

.fa-plans {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin: 22px 0;
}

.fa-plans--single {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}

.fa-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--fa-line);
	border-radius: 18px;
}

.fa-plan--featured {
	border-color: var(--fa-gold);
	box-shadow: 0 10px 30px rgba(227, 176, 75, 0.15);
}

.fa-plan__tag {
	align-self: flex-start;
	padding: 3px 9px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fa-blue-dark);
	background: #e8f2fc;
	border-radius: 999px;
}

.fa-plan__tag--gold {
	color: #6b4a07;
	background: #fdf1d5;
}

.fa-plan h3 {
	margin: 12px 0 4px;
	font-size: 1.2rem;
	line-height: 1.25;
	color: var(--fa-ink);
}

.fa-price {
	margin: 6px 0;
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--fa-ink);
}

.fa-plan__desc {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--fa-soft);
}

.fa-plan ul {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
	font-size: 13.5px;
	color: var(--fa-soft);
}

.fa-sub-estado {
	margin: 0 0 12px;
	padding: 12px 14px;
	font-size: 12.5px;
	line-height: 1.5;
	border: 1px solid #bfe8d0;
	border-radius: 10px;
	color: var(--fa-green);
	background: #f0fbf5;
}

.fa-sub-estado--pending {
	color: #8a5a00;
	background: #fdf8ec;
	border-color: #f0d9a6;
}

.fa-sub-estado strong,
.fa-sub-estado span {
	display: block;
}

.fa-sub-estado span {
	margin-top: 2px;
	font-size: 12px;
	opacity: 0.9;
}

.fa-plan li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 20px;
}

.fa-plan li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--fa-green);
	font-weight: 800;
}

.fa-buy {
	margin-top: auto;
}

.fa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.2rem;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	border: 1px solid transparent;
	border-radius: 999px;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.1s ease;
}

.fa-btn--primary {
	color: #fff;
	background: var(--fa-blue);
}

.fa-btn--primary:hover {
	color: #fff;
	background: var(--fa-blue-dark);
	transform: translateY(-1px);
}

.fa-btn--ghost {
	color: var(--fa-blue-dark);
	background: #fff;
	border-color: var(--fa-line);
}

.fa-btn--ghost:hover {
	color: var(--fa-blue-dark);
	background: #f2f8ff;
}

.fa-btn--full {
	width: 100%;
}

.fa-btn[disabled],
.fa-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.fa-dashboard {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.fa-user {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 20px 22px;
	background: #fff;
	border: 1px solid var(--fa-line);
	border-radius: 18px;
}

.fa-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.fa-user__info {
	flex: 1 1 260px;
	min-width: 0;
}

.fa-user__info h2 {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.25;
	color: var(--fa-ink);
}

.fa-user__info p {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: var(--fa-soft);
	overflow-wrap: anywhere;
}

.fa-verified {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	font-size: 10.5px;
	font-weight: 700;
	color: var(--fa-green);
	background: #e8f7ef;
	border-radius: 999px;
}

.fa-logout {
	font-size: 12.5px;
	color: var(--fa-soft);
}

.fa-balance {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px;
	border-radius: 18px;
	color: #fff;
	background: linear-gradient(135deg, #163f6b 0%, #1f5fa8 65%, #2b74c4 100%);
}

.fa-balance.is-empty {
	background: linear-gradient(135deg, #6b4a07 0%, #a97a12 100%);
}

.fa-balance__label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.fa-balance__number {
	display: block;
	font-size: 2.6rem;
	line-height: 1.1;
}

.fa-balance__expiry {
	display: block;
	font-size: 12px;
	opacity: 0.85;
}

.fa-balance__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fa-balance .fa-btn--ghost {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.fa-balance .fa-btn--ghost:hover {
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
}

.fa-section-title {
	margin: 10px 0 0;
	font-size: 1.2rem;
	color: var(--fa-ink);
}

.fa-alert {
	margin: 0 0 16px;
	padding: 13px 16px;
	font-size: 14px;
	border: 1px solid;
	border-radius: 12px;
}

.fa-alert--error {
	color: var(--fa-red);
	background: #fef4f1;
	border-color: #f3c9be;
}

.fa-alert--success {
	color: var(--fa-green);
	background: #f0fbf5;
	border-color: #bfe8d0;
}

.fa-alert--info {
	color: var(--fa-blue-dark);
	background: #f2f8ff;
	border-color: #cfe3f7;
}

.fa-alert a {
	color: inherit;
	font-weight: 700;
}

.fa-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--fa-line);
	border-radius: 14px;
}

.fa-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	background: #fff;
}

.fa-table th,
.fa-table td {
	padding: 11px 14px;
	text-align: left;
	border-bottom: 1px solid #eef4fa;
	white-space: nowrap;
}

.fa-table th {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--fa-soft);
	background: #f8fbfe;
}

.fa-table tr:last-child td {
	border-bottom: 0;
}

.fa-badge {
	display: inline-block;
	padding: 2px 9px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	background: #eef2f7;
	color: #455468;
}

.fa-badge--approved {
	background: #e8f7ef;
	color: var(--fa-green);
}

.fa-badge--pending {
	background: #fdf6e3;
	color: #8a5a00;
}

.fa-badge--error,
.fa-badge--rejected,
.fa-badge--cancelled {
	background: #fdeeea;
	color: var(--fa-red);
}

.fa-badge--draft {
	background: #f1f3f6;
	color: #455468;
}

.fa-badge--pending,
.fa-badge--future {
	background: #fdf6e3;
	color: #8a5a00;
}

.fa-badge--private {
	background: #f3e8ff;
	color: #6b21a8;
}

.fa-list__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.fa-list__head .fa-title {
	margin: 0;
	font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.fa-list__head .fa-sub {
	margin: 4px 0 0;
}

.fa-list__acciones {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.fa-inline {
	display: inline;
	margin: 0;
}

.fa-link-danger {
	padding: 0;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--fa-red);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
}

.fa-link-danger:hover {
	color: #7f1d1d;
}

.fa-edit {
	max-width: 760px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--fa-line);
	border-radius: 18px;
}

.fa-field {
	margin: 0 0 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fa-field label {
	font-weight: 700;
	font-size: 13px;
	color: var(--fa-ink);
}

.fa-field input[type="text"],
.fa-field textarea,
.fa-field select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	font: inherit;
	font-size: 14px;
	color: var(--fa-ink);
	background: #fff;
	border: 1px solid var(--fa-line);
	border-radius: 9px;
}

.fa-field textarea {
	resize: vertical;
	min-height: 220px;
}

.fa-field input:focus,
.fa-field textarea:focus,
.fa-field select:focus {
	outline: none;
	border-color: var(--fa-blue);
	box-shadow: 0 0 0 3px rgba(31, 95, 168, 0.14);
}

.fa-edit__acciones {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
}

@media (max-width: 680px) {
	.fa-plans {
		grid-template-columns: 1fr;
	}

	.fa-balance__actions {
		width: 100%;
	}

	.fa-balance__actions .fa-btn {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fa * {
		transition: none !important;
	}
}
