:root {
	--navy: #082848;
	--navy-deep: #041828;
	--ink: #173044;
	--muted: #5c6e80;
	--gold: #e0b848;
	--gold-deep: #c4962a;
	--paper: #f6f3ec;
	--line: #e7e1d6;
	--white: #fff;
	--header: 152px;
	--shadow: 0 18px 50px rgba(8, 40, 72, 0.12);
	font-family: "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	color: var(--ink);
	background: var(--white);
	font-size: 17px;
	line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; }

button, input, textarea { font: inherit; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; color: var(--navy); }

p { margin: 0 0 1rem; }

.container { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 40px)); }

.sr-only,
.skip-link {
	position: absolute;
	left: 16px;
	top: -40px;
	background: var(--gold);
	color: var(--navy);
	padding: 8px 12px;
	z-index: 100;
}

.skip-link:focus { top: 12px; }

.hp { position: absolute; left: -9999px; }

.section { padding: 96px 0; }

.section-label {
	margin: 0 0 10px;
	color: var(--gold-deep);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.section-label.light { color: var(--gold); }

.section h2,
.page-banner h1,
.not-found h1 {
	margin: 0 0 18px;
	font-size: clamp(34px, 4vw, 52px);
}

.section-intro { max-width: 720px; color: var(--muted); margin-bottom: 36px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border-radius: 40px;
	border: 2px solid transparent;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	transition: 0.2s ease;
}

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-line { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

.site-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 40;
	color: #fff;
	transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

body.admin-bar .site-header { top: 32px; }

.site-header.is-solid {
	background: #fff;
	color: var(--navy);
	box-shadow: 0 8px 30px rgba(8, 40, 72, 0.08);
}

.header-bar {
	display: flex;
	align-items: stretch;
	height: var(--header);
	padding-left: 22px;
	gap: 12px;
}

.brand,
.custom-logo-link {
	display: flex;
	align-items: center;
	align-self: center;
	line-height: 0;
}

.custom-logo-link,
.custom-logo {
	background: transparent;
}

.brand img,
.custom-logo { height: 152px; width: auto; display: block; }

.brand .logo-light { display: none; }
.site-header:not(.is-solid) .logo-dark { display: none; }
.site-header:not(.is-solid) .logo-light { display: block; }

.primary-nav { margin-left: auto; display: flex; align-items: center; }

.menu,
.footer-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu a,
.footer-menu a {
	display: block;
	padding: 10px 11px;
	color: inherit;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.menu a:hover,
.footer-menu a:hover,
.menu .current-menu-item > a,
.menu .current_page_item > a { color: var(--gold-deep); }

.donate-link {
	display: flex;
	align-items: center;
	padding: 0 32px;
	margin-left: 10px;
	background: var(--gold);
	color: var(--navy);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.donate-link:hover { background: var(--gold-deep); color: var(--navy); }

.nav-toggle {
	display: none;
	align-self: center;
	width: 46px;
	height: 46px;
	margin-right: 12px;
	border: 0;
	background: transparent;
	color: inherit;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
	display: block;
	height: 2px;
	width: 22px;
	background: currentColor;
}

.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: calc(var(--header) + 28px) 0 150px;
}

.hero-overlay,
.donate-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(4, 24, 40, 0.88) 0%, rgba(8, 40, 72, 0.62) 48%, rgba(224, 184, 72, 0.28) 100%);
}

.hero-social {
	position: absolute;
	z-index: 2;
	left: 22px;
	top: 50%;
	transform: translateY(-50%);
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hero-social a {
	width: 38px;
	height: 38px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
}

.hero-social .icon { width: 16px; height: 16px; }

.hero-content {
	position: relative;
	z-index: 2;
	width: min(820px, calc(100% - 140px));
	margin-left: max(72px, calc((100% - 1140px) / 2));
}

.hero-kicker {
	margin: 0 0 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 800;
}

.hero h1,
.donate-content h1,
.donate-content h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(46px, 6vw, 78px);
}

.hero h1 span,
.quote-band blockquote,
.page-quote {
	font-family: "Caveat", cursive;
	color: var(--gold);
	font-weight: 700;
}

.hero h1 span {
	display: block;
	font-size: 1.08em;
	line-height: 0.9;
	margin-top: 4px;
}

.hero-lead {
	max-width: 560px;
	margin: 22px 0 28px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; }
.hero-links a { color: #fff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,.45); }

.hero-panel {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	display: grid;
	grid-template-columns: 1.1fr 1fr 1.3fr 1fr;
	background: #fff;
	color: var(--navy);
	min-height: 108px;
}

.hero-panel > * { padding: 22px 28px; display: flex; flex-direction: column; justify-content: center; }
.hero-panel > * + * { border-left: 1px solid var(--line); }
.hero-panel a,
.hero-panel p { margin: 0; color: var(--navy); font-weight: 800; }
.panel-label { color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; margin-bottom: 4px; }
.hero-panel-cta { background: var(--navy); color: #fff !important; font-size: 18px; letter-spacing: 0.02em; }
.hero-panel-cta:hover { background: var(--gold); color: var(--navy) !important; }

.about-grid,
.contact-grid,
.mission-grid,
.project-single {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 64px;
	align-items: center;
}

.about-copy p:last-of-type { color: var(--muted); }

.about-photo { position: relative; margin: 0; }
.about-photo img { width: 100%; height: 480px; object-fit: cover; }
.about-photo::after {
	content: "";
	position: absolute;
	inset: 22px -22px -22px 22px;
	border: 3px solid var(--gold);
	z-index: -1;
}

.quote-band { background: var(--navy); padding: 72px 0; }
.quote-band blockquote,
.page-quote {
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1.15;
}
.page-quote { color: var(--navy); font-size: 40px; margin-bottom: 28px; }

.values-section { background: var(--paper); }
.values-grid,
.stats-grid,
.news-grid,
.project-grid {
	display: grid;
	gap: 28px;
}
.values-grid { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.value-icon {
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	color: var(--gold-deep);
	box-shadow: var(--shadow);
	margin-bottom: 16px;
}
.value-icon .icon { width: 30px; height: 30px; }
.values-grid h3 { margin: 0 0 10px; font-size: 20px; }
.values-grid p { color: var(--muted); font-size: 15px; }

.project-grid { grid-template-columns: repeat(2, 1fr); }
.project-card,
.news-card {
	background: #fff;
	box-shadow: var(--shadow);
	overflow: hidden;
}
.project-media img,
.news-card img,
.project-single .entry-content img { width: 100%; height: 280px; object-fit: cover; }
.project-body,
.news-card { padding: 0; }
.project-body { padding: 26px 28px 32px; }
.news-card { padding-bottom: 24px; }
.news-card h2, .news-card h3, .news-card p, .news-card .project-meta { padding: 0 24px; }
.project-meta { margin: 0 0 8px; color: var(--gold-deep); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.project-body h3,
.news-card h2,
.news-card h3 { margin: 0 0 10px; font-size: 28px; }
.project-body h3 a,
.news-card a { color: var(--navy); }
.project-body p,
.news-card p { color: var(--muted); }

.stats-band { background: var(--navy-deep); color: #fff; padding: 80px 0; }
.stats-band h2 { color: #fff; }
.stats-grid { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.stat-num { display: block; color: var(--gold); font-size: clamp(40px, 4vw, 64px); font-weight: 800; line-height: 1; }
.stats-grid p { margin: 8px 0 0; color: rgba(255,255,255,.82); }

.mission-grid { align-items: stretch; }
.mission-grid article { background: var(--paper); padding: 36px; border-top: 4px solid var(--gold); }
.mission-grid p:last-child { margin-bottom: 0; color: var(--ink); }

.donate-band {
	position: relative;
	min-height: 520px;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}
.donate-content { position: relative; z-index: 1; width: min(820px, calc(100% - 40px)); }
.donate-content h2 { color: #fff; font-size: clamp(36px, 5vw, 60px); }
.donate-content p { color: rgba(255,255,255,.9); }
.iban {
	display: inline-block;
	margin: 8px 0 22px;
	padding: 14px 18px;
	border: 1px solid rgba(255,255,255,.45);
	letter-spacing: 0.08em;
	font-size: clamp(18px, 2vw, 28px);
	font-weight: 800;
	color: var(--gold);
}
.donate-content .hero-actions { justify-content: center; }
.bank-name { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.contact-facts { list-style: none; margin: 24px 0 0; padding: 0; }
.contact-facts li,
.footer-contact li,
.social-list li a {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.contact-facts li { margin: 0 0 16px; }
.contact-facts .icon,
.footer-contact .icon { width: 22px; height: 22px; color: var(--gold-deep); flex: none; margin-top: 3px; }
.contact-facts strong { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

.contact-form {
	background: var(--paper);
	padding: 32px;
	position: relative;
}
.contact-form label { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
	width: 100%;
	margin-bottom: 16px;
	padding: 14px 16px;
	border: 1px solid #ddd4c6;
	background: #fff;
	color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.form-note { padding: 12px 14px; }
.form-note.is-ok { background: #e7f6ea; color: #145c28; }
.form-note.is-error { background: #fdecea; color: #8a1f11; }

.page-banner {
	position: relative;
	isolation: isolate;
	min-height: var(--hero-h, 380px);
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: var(--hero-pos, center);
	background-repeat: no-repeat;
	color: #fff;
	padding: 56px 0;
	overflow: hidden;
}
.page-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		color-mix(in srgb, var(--navy-deep) calc(var(--hero-shade, 0.9) * 100%), transparent) 0%,
		color-mix(in srgb, var(--navy-deep) calc(var(--hero-shade, 0.9) * 82%), transparent) 34%,
		color-mix(in srgb, var(--navy-deep) calc(var(--hero-shade, 0.9) * 42%), transparent) 68%,
		color-mix(in srgb, var(--navy-deep) calc(var(--hero-shade, 0.9) * 16%), transparent) 100%
	);
	pointer-events: none;
}
.page-banner .container {
	position: relative;
	z-index: 1;
	width: min(1440px, calc(100% - 80px));
}
.page-banner .hero-kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	color: var(--gold);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.page-banner .hero-kicker::after {
	content: "";
	width: 48px;
	height: 2px;
	background: var(--gold);
	flex: none;
}
.page-banner h1 {
	margin: 0;
	max-width: 760px;
	color: #fff;
	font-size: clamp(40px, 4vw, 72px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
}
.page-banner .hero-kicker,
.page-banner h1 {
	animation: atenea-hero-in 0.45s ease both;
}
.page-banner h1 { animation-delay: 0.08s; }
@keyframes atenea-hero-in {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.entry-content { width: min(800px, 100%); }
.entry-content h2 { margin-top: 1.4em; }
.entry-content ul, .plain-list { padding-left: 1.1em; }
.plain-list li, .entry-content li { margin: 8px 0; }
.info-project { padding: 16px 0; border-top: 1px solid var(--line); }
.info-project h3 { margin: 0 0 6px; }
.history-section { background: var(--paper); padding-top: 72px; padding-bottom: 72px; }
.legal-note { font-weight: 700; }

.project-single { align-items: start; }
.project-facts { background: var(--paper); padding: 28px; }
.project-facts h2 { font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px; }
.project-facts div { margin-bottom: 22px; }
.project-single .entry-content { width: auto; }
.project-single .entry-content img { height: auto; margin-bottom: 22px; }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: 40px; }
.footer-brand { margin: 0 0 8px; color: #fff; font-size: 28px; font-weight: 800; }
.site-footer h2 { color: #fff; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-menu { flex-direction: column; gap: 0; }
.footer-menu a { padding: 6px 0; }
.footer-contact { list-style: none; margin: 0 0 20px; padding: 0; }
.footer-contact li { margin-bottom: 12px; }
.footer-contact a { color: #fff; }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; padding: 0; }
.social-list a { color: #fff; font-weight: 700; }
.social-list .icon { width: 18px; height: 18px; }
.footer-base { margin-top: 36px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-base p { margin: 0; padding: 18px 0; font-size: 14px; }

.search-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.not-found { min-height: 60vh; display: flex; align-items: center; }

body:not(.home) { padding-top: var(--header); }
#contenido { margin-top: 0; }
.page-banner { margin-top: 0; }

@media (max-width: 1100px) {
	.nav-toggle { display: flex; margin-left: auto; }
	.donate-link { margin-left: 0; padding: 0 18px; }
	.primary-nav {
		position: fixed;
		inset: var(--header) 0 0 0;
		background: var(--navy);
		color: #fff;
		margin: 0;
		padding: 24px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		align-items: flex-start;
		z-index: 30;
	}
	.primary-nav.is-open { transform: none; }
	body.admin-bar .primary-nav { top: calc(var(--header) + 32px); }
	.menu { flex-direction: column; width: 100%; }
	.menu a { font-size: 18px; padding: 14px 0; }
	.hero-social { display: none; }
	.hero-content { width: min(820px, calc(100% - 40px)); margin-left: auto; margin-right: auto; }
	.values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid, .about-grid, .contact-grid, .mission-grid, .project-single { grid-template-columns: 1fr; gap: 32px; }
	.about-photo::after { display: none; }
}

@media (max-width: 720px) {
	:root { --header: 120px; }
	.hero { padding: 140px 0 28px; min-height: auto; }
	.hero-panel { position: static; grid-template-columns: 1fr; }
	.hero-panel > * + * { border-left: 0; border-top: 1px solid var(--line); }
	.project-grid, .news-grid, .values-grid, .stats-grid { grid-template-columns: 1fr; }
	.about-photo img { height: 260px; }
	.section { padding: 64px 0; }
	.brand img, .custom-logo { height: 104px; }
	.donate-link { font-size: 12px; }
	body.admin-bar .site-header { top: 46px; }
	body.admin-bar .primary-nav { top: calc(var(--header) + 46px); }
}

@media (max-width: 767px) {
	.page-banner { min-height: var(--hero-h-m, 280px); padding: 36px 0; }
	.page-banner .container { width: min(1440px, calc(100% - 36px)); }
	.page-banner h1 { font-size: clamp(32px, 9vw, 44px); }
	.page-banner .hero-kicker::after { width: 28px; }
}

body:not(.home) { --header: 96px; }
body:not(.home) .site-header.is-solid {
	background: #fff;
	color: var(--navy);
	border-bottom: 1px solid #e7e1d6;
	box-shadow: none;
}
body:not(.home) .site-header.is-compact {
	box-shadow: 0 4px 18px rgba(8, 40, 72, 0.07);
}
body:not(.home) .header-bar {
	height: var(--header);
	padding-left: 40px;
	gap: 28px;
	transition: height 0.2s ease;
}
body:not(.home) .site-header.is-compact .header-bar { height: 76px; }
body:not(.home) .brand img,
body:not(.home) .custom-logo {
	height: 72px;
	width: auto;
	object-fit: contain;
	transition: height 0.2s ease;
}
body:not(.home) .site-header.is-compact .brand img,
body:not(.home) .site-header.is-compact .custom-logo { height: 54px; }
body:not(.home) .menu { gap: 8px; }
body:not(.home) .menu a {
	position: relative;
	padding: 10px 8px;
	color: var(--navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
}
body:not(.home) .menu a::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 2px;
	height: 2px;
	background: var(--gold);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
body:not(.home) .menu a:hover,
body:not(.home) .menu .current-menu-item > a,
body:not(.home) .menu .current_page_item > a,
body:not(.home) .menu .current-menu-ancestor > a { color: var(--gold-deep); }
body:not(.home) .menu a:hover::after,
body:not(.home) .menu .current-menu-item > a::after,
body:not(.home) .menu .current_page_item > a::after,
body:not(.home) .menu .current-menu-ancestor > a::after { transform: scaleX(1); }
body:not(.home) .donate-link {
	margin-left: 18px;
	padding: 0 28px;
	background: var(--gold);
	color: var(--navy);
	transition: background 0.2s ease;
}
body:not(.home) .donate-link:hover { background: var(--gold-deep); }
body:not(.home) .menu a:focus-visible,
body:not(.home) .donate-link:focus-visible,
body:not(.home) .nav-toggle:focus-visible,
body:not(.home) .brand:focus-visible,
body:not(.home) .custom-logo-link:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}
.donate-link-inmenu { display: none; }
body.header-static:not(.home) { padding-top: 0; }
body.header-static .site-header { position: relative; top: auto; }

@media (max-width: 1100px) {
	body:not(.home) .header-bar { padding-left: 24px; }
	body:not(.home) .primary-nav {
		background: #fff;
		color: var(--navy);
		border-top: 1px solid #e7e1d6;
	}
	body:not(.home) .menu a {
		font-size: 16px;
		padding: 14px 0;
		border-bottom: 1px solid #e7e1d6;
	}
	body:not(.home) .menu a::after { display: none; }
}

@media (max-width: 720px) {
	body:not(.home) { --header: 72px; }
	body:not(.home) .header-bar { padding-left: 16px; }
	body:not(.home) .brand img,
	body:not(.home) .custom-logo { height: 48px; }
	body:not(.home) .site-header.is-compact .header-bar { height: 64px; }
	body:not(.home) .site-header.is-compact .brand img,
	body:not(.home) .site-header.is-compact .custom-logo { height: 42px; }
}

@media (max-width: 420px) {
	body:not(.home) .header-bar > .donate-link { display: none; }
	body:not(.home) .donate-link-inmenu {
		display: inline-flex;
		align-self: flex-start;
		height: 48px;
		margin: 18px 0 0;
		padding: 0 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.page-banner .hero-kicker,
	.page-banner h1,
	body:not(.home) .header-bar,
	body:not(.home) .brand img,
	body:not(.home) .custom-logo { animation: none; transition: none; }
}
