:root {
	--app-bg: #f4f7fb;
	--app-surface: #fff;
	--app-surface-muted: #f7f9fc;
	--app-text: #152033;
	--app-muted: #64708a;
	--app-border: #dde5ef;
	--app-primary: #0074c8;
	--app-primary-dark: #005896;
	--app-teal: #0aaf95;
	--app-amber: #be7819;
	--app-navy: #07182e;
	--app-green: #198754;
	--app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
	--app-shadow-md: 0 18px 42px rgba(15, 23, 42, 0.12);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: linear-gradient(180deg, #f8fafc 0%, var(--app-bg) 42%, #edf3f8 100%) fixed;
	color: var(--app-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

button,
input,
textarea,
select {
	font: inherit;
}

img,
svg {
	display: block;
}

.site-header {
	inset: 0 0 auto;
	position: fixed;
	z-index: 20;
}

.site-nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.94);
	border-bottom: 1px solid rgba(221, 229, 239, 0.95);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	min-height: 68px;
	padding: 0 1.25rem;
	width: 100vw;
	backdrop-filter: blur(16px);
}

.brand {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	font-weight: 800;
	gap: 0.65rem;
	min-height: 44px;
}

.brand-mark {
	align-items: center;
	background: #eef8ff;
	border: 1px solid #d6eafa;
	border-radius: 8px;
	display: inline-flex;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.brand-mark img {
	height: 32px;
	object-fit: contain;
	width: auto;
}

.brand-name {
	color: var(--app-text);
	font-size: 1rem;
}

.nav-links {
	align-items: center;
	display: flex;
	gap: 0.25rem;
}

.nav-links a,
.nav-action {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	color: #455168;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 750;
	gap: 0.42rem;
	min-height: 42px;
	padding: 0.6rem 0.72rem;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-action:hover,
.nav-action:focus {
	background: #edf6ff;
	border-color: #d8ebfb;
	color: var(--app-primary-dark);
}

.nav-action {
	background: var(--app-primary);
	border-color: var(--app-primary);
	color: #fff;
	padding-inline: 0.95rem;
}

.nav-action:hover,
.nav-action:focus {
	background: var(--app-primary-dark);
	border-color: var(--app-primary-dark);
	color: #fff;
	transform: translateY(-1px);
}

.nav-action svg,
.btn svg,
.module-card svg,
.overview-icon svg {
	flex: 0 0 auto;
	height: 1.18rem;
	width: 1.18rem;
	fill: currentColor;
}

.hero {
	align-items: end;
	background: url("./assets/img/fondo.jpg") center / cover no-repeat;
	color: #fff;
	display: grid;
	min-height: 82vh;
	padding: 8rem 1.25rem 5.2rem;
	position: relative;
}

.hero-overlay {
	background: linear-gradient(90deg, rgba(3, 15, 34, 0.9) 0%, rgba(3, 15, 34, 0.72) 48%, rgba(3, 15, 34, 0.28) 100%);
	inset: 0;
	position: absolute;
}

.hero-inner {
	margin: 0 auto;
	max-width: 1180px;
	position: relative;
	width: 100%;
}

.eyebrow {
	color: #2d7db3;
	font-size: 0.8rem;
	font-weight: 850;
	letter-spacing: 0;
	margin: 0 0 0.8rem;
	text-transform: uppercase;
}

.hero .eyebrow,
.cta .eyebrow {
	color: #aee1ff;
}

h1,
h2,
h3,
p {
	letter-spacing: 0;
}

h1 {
	font-size: 5.4rem;
	line-height: 0.95;
	margin: 0;
	max-width: 840px;
}

h2 {
	font-size: 3.05rem;
	line-height: 1.08;
	margin: 0;
	max-width: 820px;
}

h3 {
	font-size: 1.05rem;
	line-height: 1.22;
	margin: 0;
}

.hero-copy {
	color: rgba(255, 255, 255, 0.88);
	font-size: 1.28rem;
	line-height: 1.55;
	margin: 1.35rem 0 0;
	max-width: 720px;
}

.hero-actions,
.cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.8rem;
}

.btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 8px;
	display: inline-flex;
	font-weight: 800;
	gap: 0.5rem;
	justify-content: center;
	min-height: 46px;
	padding: 0.72rem 1rem;
	transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover,
.btn:focus {
	box-shadow: var(--app-shadow-sm);
	transform: translateY(-1px);
}

.btn-primary {
	background: var(--app-primary);
	border-color: var(--app-primary);
	color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
	background: var(--app-primary-dark);
	border-color: var(--app-primary-dark);
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(255, 255, 255, 0.94);
	color: #172033;
}

.btn-secondary:hover,
.btn-secondary:focus {
	background: #fff;
	border-color: #fff;
}

.hero-proof {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
	max-width: 900px;
}

.hero-proof span {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	color: rgba(255, 255, 255, 0.82);
	display: inline-flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 200px;
	padding: 0.85rem 1rem;
	backdrop-filter: blur(10px);
}

.hero-proof strong {
	color: #fff;
	font-size: 1rem;
}

.overview {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: -2.4rem auto 0;
	max-width: 1180px;
	padding: 0 1.25rem;
	position: relative;
	z-index: 2;
}

.overview-item,
.module-card,
.workspace-shell,
.document-shot,
.workflow-step {
	background: var(--app-surface);
	border: 1px solid var(--app-border);
	border-radius: 8px;
	box-shadow: var(--app-shadow-sm);
}

.overview-item {
	align-items: flex-start;
	display: flex;
	gap: 1rem;
	padding: 1.2rem;
}

.overview-icon {
	align-items: center;
	border-radius: 8px;
	display: inline-flex;
	flex: 0 0 auto;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.overview-blue {
	background: #edf6ff;
	color: var(--app-primary);
}

.overview-teal {
	background: #e9fbf6;
	color: var(--app-teal);
}

.overview-amber {
	background: #fff5e7;
	color: var(--app-amber);
}

.overview-item strong {
	display: block;
	font-size: 1rem;
	margin-bottom: 0.4rem;
}

.overview-item p {
	color: var(--app-muted);
	line-height: 1.5;
	margin: 0;
}

.section {
	display: grid;
	gap: 3rem;
	margin: 0 auto;
	max-width: 1180px;
	padding: 6rem 1.25rem 0;
}

.platform-section {
	align-items: center;
	grid-template-columns: minmax(0, 0.84fr) minmax(560px, 1.16fr);
}

.section-copy p:not(.eyebrow),
.document-copy p:not(.eyebrow),
.cta-copy p {
	color: var(--app-muted);
	font-size: 1.05rem;
	line-height: 1.68;
	margin: 1.15rem 0 0;
	max-width: 660px;
}

.check-list {
	display: grid;
	gap: 0.65rem;
	list-style: none;
	margin: 1.35rem 0 0;
	padding: 0;
}

.check-list li {
	align-items: flex-start;
	color: #3f4c63;
	display: flex;
	gap: 0.55rem;
	line-height: 1.45;
}

.check-list li::before {
	background: var(--app-teal);
	border-radius: 50%;
	content: "";
	flex: 0 0 auto;
	height: 0.55rem;
	margin-top: 0.45rem;
	width: 0.55rem;
}

.workspace-shell {
	overflow: hidden;
}

.workspace-topbar {
	align-items: center;
	background: var(--app-surface-muted);
	border-bottom: 1px solid var(--app-border);
	display: grid;
	gap: 0.8rem;
	grid-template-columns: auto 1fr auto;
	min-height: 52px;
	padding: 0.75rem 1rem;
}

.workspace-window {
	display: flex;
	gap: 0.42rem;
}

.workspace-window span {
	background: #cbd5e1;
	border-radius: 50%;
	height: 10px;
	width: 10px;
}

.workspace-search,
.workspace-badge {
	border: 1px solid var(--app-border);
	border-radius: 8px;
	color: #67748a;
	font-size: 0.9rem;
	min-height: 34px;
}

.workspace-search {
	align-items: center;
	background: #fff;
	display: flex;
	padding: 0 0.8rem;
}

.workspace-badge {
	align-items: center;
	background: #edf8f5;
	color: #087e6b;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	padding: 0 0.8rem;
}

.workspace-body {
	display: grid;
	grid-template-columns: 132px 1fr;
	min-height: 520px;
}

.workspace-sidebar {
	background: #f1f5f9;
	border-right: 1px solid var(--app-border);
	display: grid;
	gap: 0.6rem;
	grid-auto-rows: 38px;
	padding: 1rem;
}

.workspace-sidebar span {
	align-items: center;
	border-radius: 8px;
	color: #68768d;
	display: flex;
	font-size: 0.85rem;
	font-weight: 750;
	padding: 0 0.72rem;
}

.workspace-sidebar .active {
	background: #dff0ff;
	box-shadow: inset 3px 0 0 var(--app-primary);
	color: var(--app-primary-dark);
}

.workspace-main {
	background: #fff;
	padding: 1rem;
}

.dashboard-head {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.dashboard-head strong,
.panel-title strong {
	display: block;
	font-size: 1rem;
}

.dashboard-head span,
.panel-title span {
	color: var(--app-muted);
	display: block;
	font-size: 0.86rem;
	margin-top: 0.18rem;
}

.dashboard-head button {
	background: var(--app-primary);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: default;
	font-size: 0.88rem;
	font-weight: 800;
	min-height: 38px;
	padding: 0 0.85rem;
}

.kpi-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-bottom: 0.9rem;
}

.kpi-card,
.activity-panel,
.cash-panel {
	border: 1px solid var(--app-border);
	border-radius: 8px;
}

.kpi-card {
	background: linear-gradient(180deg, #fff, #f8fbff);
	display: grid;
	gap: 0.25rem;
	min-height: 112px;
	padding: 0.85rem;
}

.kpi-card span,
.kpi-card small {
	color: var(--app-muted);
	font-size: 0.84rem;
}

.kpi-card strong {
	font-size: 1.35rem;
}

.work-grid {
	display: grid;
	gap: 0.85rem;
	grid-template-columns: 1.15fr 0.85fr;
}

.activity-panel,
.cash-panel {
	background: #fff;
	padding: 0.95rem;
}

.panel-title {
	align-items: flex-start;
	display: flex;
	gap: 0.6rem;
	justify-content: space-between;
	margin-bottom: 0.9rem;
}

.activity-row {
	align-items: flex-start;
	border-top: 1px solid #edf1f6;
	display: grid;
	gap: 0.65rem;
	grid-template-columns: auto 1fr auto;
	padding: 0.78rem 0;
}

.activity-row:first-of-type {
	border-top: 0;
	padding-top: 0;
}

.activity-row strong,
.activity-row small,
.activity-row em {
	display: block;
}

.activity-row strong {
	font-size: 0.92rem;
}

.activity-row small {
	color: var(--app-muted);
	font-size: 0.82rem;
	margin-top: 0.14rem;
}

.activity-row em {
	color: #445066;
	font-size: 0.82rem;
	font-style: normal;
	font-weight: 850;
	white-space: nowrap;
}

.dot {
	border-radius: 50%;
	height: 0.7rem;
	margin-top: 0.25rem;
	width: 0.7rem;
}

.dot-blue {
	background: var(--app-primary);
}

.dot-teal {
	background: var(--app-teal);
}

.dot-amber {
	background: var(--app-amber);
}

.bar-row {
	align-items: center;
	display: grid;
	gap: 0.55rem;
	grid-template-columns: 68px 1fr 42px;
	margin-top: 0.8rem;
}

.bar-row span,
.bar-row strong {
	color: #445066;
	font-size: 0.82rem;
}

.bar-row div {
	background: #e8eef6;
	border-radius: 999px;
	height: 9px;
	overflow: hidden;
}

.bar-row i {
	background: var(--app-teal);
	display: block;
	height: 100%;
}

.cash-note {
	background: #f8fafc;
	border: 1px solid #e5ebf3;
	border-radius: 8px;
	display: grid;
	gap: 0.3rem;
	margin-top: 1.2rem;
	padding: 0.8rem;
}

.cash-note strong {
	font-size: 0.9rem;
}

.cash-note span {
	color: var(--app-muted);
	font-size: 0.84rem;
	line-height: 1.45;
}

.modules-section {
	display: block;
}

.section-heading {
	margin-bottom: 1.6rem;
}

.module-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
	min-height: 198px;
	padding: 1.25rem;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.module-card:hover {
	border-color: #c6d5e8;
	box-shadow: var(--app-shadow-md);
	transform: translateY(-2px);
}

.module-card svg {
	color: var(--app-primary);
	height: 1.6rem;
	margin-bottom: 1rem;
	width: 1.6rem;
	fill: currentColor;
}

.module-card p {
	color: var(--app-muted);
	line-height: 1.56;
	margin: 0.75rem 0 0;
}

.document-section {
	align-items: center;
	grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
}

.document-stats {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1.4rem;
	max-width: 680px;
}

.document-stats span {
	background: #fff;
	border: 1px solid var(--app-border);
	border-radius: 8px;
	color: var(--app-muted);
	display: grid;
	gap: 0.2rem;
	padding: 0.85rem;
}

.document-stats strong {
	color: var(--app-text);
}

.document-gallery {
	display: grid;
	gap: 1rem;
	grid-template-columns: 0.82fr 1.18fr;
}

.document-shot {
	margin: 0;
	overflow: hidden;
}

.document-shot img {
	aspect-ratio: 4 / 5;
	background: #f8fafc;
	height: auto;
	object-fit: cover;
	object-position: top center;
	width: 100%;
}

.document-shot-wide img {
	aspect-ratio: 6 / 5;
	object-position: top center;
}

.document-shot figcaption {
	background: #fff;
	border-top: 1px solid var(--app-border);
	color: #445066;
	font-size: 0.9rem;
	font-weight: 800;
	padding: 0.8rem 0.9rem;
}

.workflow {
	margin: 0 auto;
	max-width: 1180px;
	padding: 6rem 1.25rem 0;
}

.workflow-heading {
	align-items: end;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.6rem;
}

.workflow-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-step {
	min-height: 220px;
	padding: 1.2rem;
	position: relative;
}

.workflow-step span {
	color: var(--app-primary);
	display: block;
	font-size: 0.82rem;
	font-weight: 850;
	margin-bottom: 2.2rem;
}

.workflow-step strong {
	display: block;
	font-size: 1.1rem;
}

.workflow-step p {
	color: var(--app-muted);
	line-height: 1.56;
	margin: 0.75rem 0 0;
}

.cta {
	align-items: center;
	background: var(--app-navy);
	color: #fff;
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr auto;
	margin: 6rem auto 0;
	max-width: 1180px;
	padding: 2rem;
}

.cta h2 {
	max-width: 760px;
}

.cta-copy p {
	color: rgba(255, 255, 255, 0.75);
	max-width: 680px;
}

.cta .btn-secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
}

.cta .btn-secondary:hover,
.cta .btn-secondary:focus {
	background: rgba(255, 255, 255, 0.08);
}

.site-footer {
	align-items: center;
	color: var(--app-muted);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin: 0 auto;
	max-width: 1180px;
	padding: 2rem 1.25rem;
}

.site-footer span:first-child {
	color: var(--app-text);
	font-weight: 850;
}

.funding-strip {
	margin: 2rem auto 0;
	max-width: 1180px;
	padding: 0 1.25rem;
}

.funding-inner {
	align-items: center;
	background: #fff;
	border: 1px solid var(--app-border);
	border-radius: 8px;
	box-shadow: var(--app-shadow-sm);
	color: #4b576e;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(220px, 1fr) auto minmax(150px, 0.42fr) auto minmax(260px, 1.1fr);
	padding: 1.05rem 1.15rem;
}

.funding-logo {
	height: auto;
	max-height: 74px;
	object-fit: contain;
	width: 100%;
}

.funding-logo-eu {
	max-height: 70px;
}

.funding-logo-prtr {
	max-height: 82px;
}

.funding-government {
	color: var(--app-text);
	font-size: 0.96rem;
	font-weight: 850;
	line-height: 1.25;
	text-align: center;
}

.funding-divider {
	background: #e7edf5;
	display: block;
	height: 62px;
	width: 1px;
}

@media (max-width: 1100px) {
	.platform-section,
	.document-section {
		grid-template-columns: 1fr;
	}

	.workspace-shell,
	.document-gallery {
		max-width: 100%;
	}
}

@media (max-width: 900px) {
	h1 {
		font-size: 4.2rem;
	}

	h2 {
		font-size: 2.45rem;
	}

	.nav-links {
		display: none;
	}

	.overview,
	.module-grid,
	.workflow-grid,
	.cta {
		grid-template-columns: 1fr;
	}

	.section,
	.workflow {
		padding-top: 4.5rem;
	}

	.workspace-body {
		grid-template-columns: 1fr;
	}

	.workspace-sidebar {
		border-bottom: 1px solid var(--app-border);
		border-right: 0;
		display: flex;
		overflow-x: auto;
	}

	.workspace-sidebar span {
		flex: 0 0 auto;
	}

	.work-grid,
	.document-gallery,
	.document-stats {
		grid-template-columns: 1fr;
	}

	.cta {
		margin-inline: 1.25rem;
	}

	.funding-inner {
		gap: 0.85rem;
		grid-template-columns: 1fr;
	}

	.funding-divider {
		height: 1px;
		width: 100%;
	}

	.funding-logo {
		justify-self: center;
		max-width: 460px;
	}
}

@media (max-width: 640px) {
	.site-nav {
		padding: 0 0.75rem;
	}

	.brand-name {
		display: none;
	}

	.nav-action {
		padding-inline: 0.75rem;
	}

	.hero {
		min-height: 76vh;
		padding: 7rem 1rem 4rem;
	}

	h1 {
		font-size: 3.25rem;
	}

	h2 {
		font-size: 2rem;
	}

	.hero-copy {
		font-size: 1.08rem;
	}

	.btn {
		width: 100%;
	}

	.hero-proof span {
		width: 100%;
	}

	.overview {
		margin-top: -1.6rem;
		padding-inline: 1rem;
	}

	.overview-item {
		display: grid;
	}

	.section,
	.workflow {
		padding-inline: 1rem;
	}

	.workspace-topbar {
		grid-template-columns: 1fr;
	}

	.workspace-window {
		display: none;
	}

	.kpi-grid {
		grid-template-columns: 1fr;
	}

	.activity-row {
		grid-template-columns: auto 1fr;
	}

	.activity-row em {
		grid-column: 2;
	}

	.bar-row {
		grid-template-columns: 62px 1fr 38px;
	}

	.cta {
		margin-inline: 1rem;
		padding: 1.25rem;
	}

	.funding-strip {
		padding-inline: 1rem;
	}

	.site-footer {
		align-items: flex-start;
		flex-direction: column;
	}
}
