/*
 * Impulsa Estepona - design tokens and shared UI.
 * Tokens are copied from mockup/index.html (:root) with the --ie- prefix so they
 * cannot collide with a theme. Loaded by the blocks, the account tabs and the
 * profile editor; no web font is loaded here (the theme provides Outfit).
 */
:root {
	--ie-blue: #1c7bc4;
	--ie-blue-2: #2fa4e0;
	--ie-navy: #0d2b4a;
	--ie-navy-2: #123a63;
	--ie-green: #6cc04a;
	--ie-green-2: #4ea836;
	--ie-sand: #f4f8fb;
	--ie-ink: #14243a;
	--ie-muted: #5b6b7f;
	--ie-line: #e3eaf2;
	--ie-white: #fff;
	--ie-radius: 18px;
	--ie-shadow: 0 10px 30px rgba(13, 43, 74, 0.1);
	--ie-max: 1180px;
	--ie-font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Buttons (mockup .btn, .btn-green, .btn-blue, .btn-outline) */
.ie-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.9rem 1.4rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ie-btn:hover {
	transform: translateY(-2px);
}
.ie-btn:focus-visible {
	outline: 3px solid var(--ie-blue-2);
	outline-offset: 2px;
}
.ie-btn--green {
	background: var(--ie-green);
	color: #082a0f;
	box-shadow: 0 8px 22px rgba(108, 192, 74, 0.35);
}
.ie-btn--green:hover {
	background: #7fd05b;
}
.ie-btn--blue {
	background: var(--ie-blue);
	color: #fff;
	box-shadow: 0 8px 22px rgba(28, 123, 196, 0.3);
}
.ie-btn--outline {
	border-color: var(--ie-line);
	background: #fff;
	color: var(--ie-ink);
}

/* Membership status badge (Mi asociacion) */
.ie-badge {
	display: inline-block;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	background: #eef2f6;
	color: var(--ie-muted);
}
.ie-badge--active {
	background: #e8f6e2;
	color: #2f6f1d;
}
.ie-badge--expiring {
	background: #fff3d6;
	color: #7a5200;
}
.ie-badge--expired {
	background: #fde7e4;
	color: #a1281c;
}

.ie-account {
	font-family: var(--ie-font);
	color: var(--ie-ink);
}
.ie-account__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.2rem;
}

/* Owner profile form and notices */
.ie-form {
	max-width: 640px;
	font-family: var(--ie-font);
	color: var(--ie-ink);
}
.ie-form__row {
	display: grid;
	gap: 0.3rem;
	margin: 0 0 1rem;
}
.ie-form__row label {
	font-weight: 600;
}
.ie-form input,
.ie-form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--ie-line);
	border-radius: 12px;
	background: #fff;
	font: inherit;
	color: inherit;
}
.ie-form input:focus-visible,
.ie-form textarea:focus-visible {
	outline: 3px solid var(--ie-blue-2);
	outline-offset: 1px;
}
.ie-notice {
	margin: 0 0 1rem;
	padding: 0.8rem 1rem;
	border-radius: 12px;
	background: #e8f6e2;
	color: #2f6f1d;
	font-family: var(--ie-font);
}
.ie-notice--error {
	background: #fde7e4;
	color: #a1281c;
}

/* Single profile fallback template */
.ie-profile {
	width: min(var(--ie-max), calc(100% - 2.5rem));
	margin: 2rem auto;
	font-family: var(--ie-font);
	color: var(--ie-ink);
}
.ie-profile__card {
	padding: clamp(1rem, 3vw, 2rem);
	border: 1px solid var(--ie-line);
	border-radius: var(--ie-radius);
	background: #fff;
	box-shadow: var(--ie-shadow);
}
.ie-profile__tag {
	display: inline-block;
	margin: 0 0 0.8rem;
	padding: 0.15rem 0.5rem;
	border-radius: 6px;
	background: #e4f3ff;
	color: var(--ie-blue);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ie-profile__data {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem 1rem;
	margin: 1.5rem 0;
}
.ie-profile__data dt {
	color: var(--ie-muted);
	font-weight: 600;
}
.ie-profile__data dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
	.ie-btn {
		transition: none;
	}
	.ie-btn:hover {
		transform: none;
	}
}