/* Newsreader © 2020 The Newsreader Project Authors, SIL OFL 1.1 — /fonts/NEWSREADER-OFL.txt
   Figtree © 2022 The Figtree Project Authors, SIL OFL 1.1 — /fonts/FIGTREE-OFL.txt */

@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-400-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/newsreader-latin-ext-600-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/figtree-latin-ext-500-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("/fonts/figtree-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Figtree";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--paper: #f3ecdf;
	--paper-deep: #e7dcc8;
	--ink: #1c1915;
	--ink-soft: #4a433a;
	--muted: #74695c;
	--oxblood: #7a2e2a; /* warnings only: new inquiries, delete, errors */
	--olive-deep: #243024;
	--gold: #c9a24a;
	--gold-soft: #e0c27a;
	--gold-deep: #7a5a14;
	--cream: #fff8ea;
	--accent: var(--gold-deep);
	--olive: #3d4a38;
	--line: rgba(28, 25, 21, 0.16);
	--serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--sans: "Figtree", "Avenir Next", "Segoe UI", sans-serif;
	color-scheme: light;
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--ink);
	background:
		linear-gradient(90deg, rgba(61, 74, 56, 0.07), transparent 7rem),
		var(--paper);
	font-family: var(--sans);
	font-size: 1.05rem;
	line-height: 1.55;
	font-weight: 400;
}

a { color: inherit; }

a:hover { color: var(--accent); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.shell {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 1fr);
	min-height: 100vh;
}

.rail {
	margin: 0;
	padding: 1.4rem 0;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--olive);
}

.sheet {
	padding: 1.6rem 6vw 4rem 2.2rem;
	max-width: 74rem;
}

.top {
	display: grid;
	grid-template-columns: minmax(12rem, 1fr) auto auto;
	gap: 1rem 1.4rem;
	align-items: end;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--ink);
}

.mark {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 500;
	text-decoration: none;
	letter-spacing: -0.02em;
}

.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.1rem;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nav a { text-decoration: none; }

.nav a[aria-current="page"] {
	color: var(--accent);
	box-shadow: inset 0 -1px 0 var(--accent);
}


.lang {
	justify-self: end;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	border: 1px solid var(--ink);
	padding: 0.35rem 0.45rem;
}

.hero { padding: 3.2rem 0 2rem; max-width: 46rem; }

.kicker {
	margin: 0 0 0.8rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--olive);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; }

h1 {
	margin: 0;
	font-size: clamp(3.4rem, 8vw, 6.4rem);
	line-height: 0.88;
	font-weight: 500;
}

.role {
	margin: 1.4rem 0 0;
	max-width: 36rem;
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.lede {
	margin: 1rem 0 0;
	max-width: 38rem;
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.35;
	color: var(--ink-soft);
}

.button {
	display: inline-block;
	margin-top: 1.8rem;
	padding: 0.75rem 1.15rem;
	background: var(--ink);
	color: var(--cream);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.button:hover, .button:focus-visible { color: var(--ink); background: var(--gold); }

.hires, .index, .proofs, .page-intro { margin-top: 3.2rem; }

.hires h2, .index h2, .proofs h2, .page-intro h1, .service-list h2, .points h2, .timeline h2 {
	font-size: 1.7rem;
	margin: 0;
}

.hires ul {
	list-style: none;
	margin: 1rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.4rem 2rem;
	max-width: 42rem;
}

.hires li {
	padding-top: 0.45rem;
	border-top: 1px solid var(--line);
}

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

.section-head a {
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.index ol, .service-list, .points, .timeline {
	list-style: none;
	margin: 0;
	padding: 0;
}

.index li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 0.8rem;
	align-items: baseline;
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
}

.index li span, .service-list li > span, .points li > span {
	font-variant-numeric: tabular-nums;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--olive);
}

.index a {
	font-family: var(--serif);
	font-size: 1.45rem;
	text-decoration: none;
	line-height: 1.15;
}

.proofs > div {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
	margin-top: 1rem;
}

.proofs article {
	border-top: 2px solid var(--olive);
	padding-top: 0.8rem;
}

.proofs h3 {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
}

.proofs p, .page-intro p, .service-list p, .points p, .timeline p, .prose p {
	margin: 0.35rem 0 0;
	color: var(--ink-soft);
}

.page-intro { max-width: 40rem; padding-top: 2.4rem; }

.page-intro h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 0.95; }

.service-list li, .points li, .timeline li {
	display: grid;
	grid-template-columns: 3rem 1fr;
	gap: 0.6rem 1rem;
	padding: 1.3rem 0;
	border-top: 1px solid var(--line);
}

.timeline { max-width: 52rem; }

.timeline li {
	grid-template-columns: 9.5rem minmax(0, 1fr);
	align-items: start;
	column-gap: 1.6rem;
}

.timeline li > div { min-width: 0; }

.years {
	grid-column: 1;
	margin: 0.35rem 0 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent);
}

.where { font-weight: 600; color: var(--ink); }

.prose { max-width: 40rem; padding-bottom: 2rem; }

.prose p + p { margin-top: 1rem; }

.helper {
	margin: 0 0 1.2rem;
	padding-left: 0.9rem;
	border-left: 3px solid var(--accent);
	color: var(--ink-soft);
	max-width: 40rem;
}

.inquiry { max-width: 40rem; }

.fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem 1.2rem;
}

.fields label {
	display: grid;
	gap: 0.35rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wide { grid-column: 1 / -1; }

input, select, textarea {
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--ink);
	background: transparent;
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	letter-spacing: 0;
	text-transform: none;
	font-weight: 400;
	padding: 0.45rem 0;
	border-radius: 0;
}

textarea {
	resize: vertical;
	min-height: 8rem;
	border: 1px solid var(--line);
	padding: 0.7rem 0.8rem;
	background: rgba(255, 252, 247, 0.45);
}

.hp {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.cf-turnstile { margin: 1rem 0; }

.inquiry button, .status-form button, .delete-form button, .private-access button {
	margin-top: 0.6rem;
	border: 0;
	background: var(--ink);
	color: var(--cream);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 0.7rem 1.1rem;
	cursor: pointer;
}

.inquiry button:hover, .status-form button:hover, .private-access button:hover,
.inquiry button:focus-visible, .status-form button:focus-visible, .private-access button:focus-visible {
	background: var(--gold);
	color: var(--ink);
}
.delete-form button, .delete-form button:hover { background: transparent; color: var(--oxblood); padding-left: 0; }

.form-error, .mail-fail {
	color: var(--oxblood);
	font-weight: 600;
}

.notice, .success {
	max-width: 36rem;
	padding-top: 0.8rem;
	border-top: 2px solid var(--olive);
}

.success strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.success:focus { outline: none; }

.foot {
	margin-top: 4rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.92rem;
}

.foot p { margin: 0.2rem 0; }

.foot a { margin-right: 1.2rem; }

.credit {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 0.85rem;
	font-size: 0.82rem;
}

.credit a { margin-right: 0; }

.fish {
	width: 1.55rem;
	height: 0.78rem;
	flex: none;
	color: var(--accent);
}

.admin {
	max-width: 52rem;
	margin: 0 auto;
	padding: 2.5rem 1.4rem 4rem;
}

.admin-top h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 0.95; }

.admin-top p { color: var(--ink-soft); }

.empty {
	font-family: var(--serif);
	font-style: italic;
	font-size: 1.25rem;
	max-width: 32rem;
}

.inbox { list-style: none; margin: 1.5rem 0 0; padding: 0; }

.inbox li { border-top: 1px solid var(--line); padding: 0.9rem 0; }

.inbox a {
	display: grid;
	grid-template-columns: 7rem 1.4fr 1fr 1fr auto;
	gap: 0.6rem;
	align-items: baseline;
	text-decoration: none;
}

.inbox strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }

.inbox em { font-style: normal; color: var(--ink-soft); }

.inbox time, .inbox a > span:last-child { color: var(--muted); font-size: 0.92rem; }

.status { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

.status-nueva { color: var(--oxblood); }
.status-leida, .status-respondida { color: var(--olive); }
.status-archivada { color: var(--muted); }

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

.meta div { border-top: 1px solid var(--line); padding-top: 0.45rem; }

.meta dt {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.meta dd { margin: 0.2rem 0 0; }

.message {
	margin: 1rem 0 1.6rem;
	padding: 1rem 0;
	border-top: 2px solid var(--ink);
	border-bottom: 1px solid var(--line);
	white-space: pre-wrap;
	font-family: var(--serif);
	font-size: 1.2rem;
	line-height: 1.45;
}

.status-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.status-form button { margin-top: 0; }

.delete-form {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}

.delete-form label {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	width: fit-content;
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.delete-form input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	border: 1px solid var(--ink);
	accent-color: var(--oxblood);
}

@media (max-width: 800px) {
	.shell { grid-template-columns: 1fr; }
	.rail {
		writing-mode: horizontal-tb;
		transform: none;
		padding: 0.8rem 1rem 0;
	}
	.sheet { padding: 1rem 1rem 3rem; }
	.top { grid-template-columns: 1fr auto; }
	.nav { grid-column: 1 / -1; letter-spacing: 0.04em; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.hires ul, .proofs > div, .fields, .meta, .inbox a, .timeline li {
		grid-template-columns: 1fr;
	}
	.years { margin-top: 0; }
	h1 { font-size: 3.1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

.shell { display: block; }
.sheet { max-width: 78rem; margin-inline: auto; padding: 0 clamp(1rem, 4vw, 4rem) 2rem; }
.top {
	align-items: center;
	padding-block: 1.35rem;
	border-bottom-color: var(--line);
}
.mark { font-size: 1.4rem; }
.lang { letter-spacing: 0; font-size: .86rem; padding: .45rem .7rem; }

.hero {
	max-width: none;
	margin: 0;
	padding: 0;
	background: linear-gradient(130deg, var(--olive-deep), #44563b);
	color: var(--cream);
}
.hero .hero-inner { padding-block: clamp(3rem, 8vw, 7rem); }
.hero .kicker { color: var(--gold-soft); }
.hero .lede { color: #f0e7d6; }
.hero h1 { max-width: 16ch; font-size: clamp(2.7rem, 6.5vw, 6rem); line-height: .98; }
.hero .lede { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.hero-actions .button { margin: 0; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); }
.hero-actions .button:hover, .hero-actions .button:focus-visible { background: var(--olive-deep); color: var(--gold); }
.hero-actions > a:hover { color: var(--gold); }
.hero :focus-visible { outline-color: var(--gold); }

.foot { background: var(--paper-deep); padding: 1.5rem; }
.foot a { display: inline-block; }
.admin-nav, .inbox-filters, .inbox-pages { display: flex; flex-wrap: wrap; gap: .6rem 1rem; }
.admin-nav { justify-content: space-between; margin-bottom: 1.25rem; }
.inbox-filters { margin-block: 1rem; }
.inbox-filters a { border: 1px solid var(--line); padding: .4rem .7rem; text-decoration: none; }
.inbox-filters [aria-current="page"] { background: var(--olive); color: white; }
.inbox-search { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-block: 1rem; }
.inbox-search label { width: 100%; }
.inbox-search input { flex: 1 1 14rem; }
.inbox-search button { margin: 0; }
.inbox-pages { margin-top: 1rem; }

@media (max-width: 800px) {
	.top .lang { grid-column: 2; grid-row: 1; }
	.site-header .top { row-gap: .5rem; }
	.nav a { padding-block: .45rem; }
}

@media (prefers-reduced-motion: no-preference) {
	a, button { transition: color .16s ease, background-color .16s ease; }
	.hero-inner > * { animation: hero-enter .45s ease-out both; }
	@keyframes hero-enter {
		from { opacity: 0; transform: translateY(.5rem); }
		to { opacity: 1; transform: translateY(0); }
	}
}

.site-header {
	background: var(--olive-deep);
	color: var(--cream);
	border-bottom: 1px solid var(--gold);
}
.site-header a:hover, .site-header .nav a[aria-current="page"] { color: var(--gold); }
.site-header .nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--gold); }
.site-header .lang { border-color: var(--cream); }
.site-header .lang:hover { border-color: var(--gold); }
.site-header :focus-visible { outline-color: var(--gold); }
/* Home page: light header so it does not sit green-on-green above the hero. */
.site-header-light { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.site-header-light a:hover, .site-header-light .nav a[aria-current="page"] { color: var(--accent); }
.site-header-light .nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.site-header-light .lang { border-color: var(--ink); }
.site-header-light .lang:hover { border-color: var(--accent); }
.site-header-light :focus-visible { outline-color: var(--accent); }
.site-header .top {
	min-height: 4.75rem;
	border: 0;
	padding-block: 1rem;
}
.site-main { flex: 1; }
.shell:has(.site-main) { display: flex; flex-direction: column; }
.site-header .sheet, .site-main, .site-footer .sheet { width: 100%; }

.site-footer { background: var(--olive-deep); color: var(--cream); border-top: 2px solid var(--gold); }
.site-footer .foot {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1.5rem 2.5rem;
	margin-top: 0;
	padding-block: 2.25rem 1.25rem;
	background: transparent;
	border: 0;
	color: inherit;
}
.site-footer .mark { margin-right: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: start; gap: .55rem 1.25rem; }
.site-footer nav a, .site-footer .credit a { margin-right: 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .fish { color: var(--gold); }
.site-footer :focus-visible { outline-color: var(--gold); }
.site-footer .credit {
	grid-column: 1 / -1;
	padding-top: 1rem;
	border-top: 1px solid rgba(201, 162, 74, .35);
	color: #e4dccd;
}

@media (max-width: 800px) {
	.site-footer .foot { grid-template-columns: 1fr; }
	.site-footer nav { gap: .25rem 1.25rem; }
	.site-footer nav a { padding-block: .6rem; }
}

.private-access h1 { margin-top: 1.25rem; font-size: clamp(2.7rem, 7vw, 4.8rem); }

.private-access form { max-width: 24rem; margin-block: 1.5rem; }
.private-access input { margin-bottom: 1rem; }

/* ---------- private dashboard: menu left, content right ---------- */
/* The menu comes after the content in the HTML, so keyboard and screen-reader users reach the content first. */
.admin-layout {
	display: grid;
	grid-template-columns: 15.5rem minmax(0, 1fr);
	min-height: 100vh;
}
.admin-main { min-width: 0; max-width: 64rem; width: 100%; padding: 2.5rem clamp(1.2rem, 4vw, 3rem) 4rem; }
.admin-side {
	order: -1;
	padding: 2rem 1.4rem;
	background: var(--olive-deep);
	border-right: 2px solid var(--gold);
	color: var(--cream);
	letter-spacing: 0;
	text-transform: none;
}
.admin-side-inner { position: sticky; top: 2rem; display: flex; flex-direction: column; gap: 1.5rem; }
.inbox-search button {
	border: 0;
	background: var(--ink);
	color: var(--cream);
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	padding: .55rem .95rem;
	cursor: pointer;
}
.inbox-search button:hover, .inbox-search button:focus-visible { background: var(--gold); color: var(--ink); }
.admin-brand { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.admin-brand span { display: block; margin-top: .3rem; color: var(--gold-soft); font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.admin-side nav { display: flex; flex-direction: column; gap: .15rem; }
.admin-side a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .6rem .75rem;
	border-left: 3px solid transparent;
	color: var(--cream);
	text-decoration: none;
}
.admin-side a:hover { color: var(--gold); background: rgba(255, 248, 234, .05); }
.admin-side a[aria-current="page"] { border-left-color: var(--gold); color: var(--gold); background: rgba(201, 162, 74, .1); font-weight: 600; }
.admin-side :focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.admin-side form { margin: 0; }
.admin-side button {
	width: 100%;
	padding: .6rem .75rem;
	border: 1px solid rgba(255, 248, 234, .45);
	background: transparent;
	color: var(--cream);
	font: inherit;
	font-size: .95rem;
	cursor: pointer;
}
.admin-side button:hover, .admin-side button:focus-visible { border-color: var(--gold); color: var(--gold); }
.admin-side a.admin-external { padding: .4rem .75rem; color: var(--gold-soft); font-size: .9rem; }
.crm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.campaign-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .campaign-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.campaign-status { font-size: .85rem; font-weight: 600; }
.campaign-sent { color: var(--olive); }
.campaign-queued, .campaign-inProcess { color: var(--gold-deep); }
.campaign-draft, .campaign-archive { color: var(--muted); }
.campaign-suspended { color: var(--oxblood); }
.badge { min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: .8rem; font-weight: 600; text-align: center; }

.admin-main .admin-top h1 { margin-top: 0; overflow-wrap: anywhere; }
.flash { padding: .7rem .9rem; border-left: 3px solid var(--olive); background: rgba(61, 74, 56, .08); font-weight: 600; }
.flash-error { border-left-color: var(--oxblood); background: rgba(122, 46, 42, .07); color: var(--oxblood); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-block: 1rem; }
.admin-button, a.admin-button {
	display: inline-block;
	border: 0;
	background: var(--ink);
	color: var(--cream);
	font: inherit;
	font-size: .95rem;
	font-weight: 600;
	padding: .65rem 1.05rem;
	text-decoration: none;
	cursor: pointer;
}
.admin-button:hover, .admin-button:focus-visible, a.admin-button:hover { background: var(--gold); color: var(--ink); }

.contact-filters select, .inbox-search select { flex: 1 1 11rem; width: auto; }

.table-wrap { overflow-x: auto; margin-block: 1rem; }
.crm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.crm-table th, .crm-table td { padding: .65rem .6rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.crm-table thead th { border-top: 0; color: var(--muted); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.crm-table tbody th { font-weight: 600; }
.crm-table small { display: block; color: var(--muted); font-weight: 400; }
.tag { display: inline-block; margin: 0 .3rem .3rem 0; padding: .05rem .45rem; border: 1px solid var(--line); font-size: .8rem; }
.stage, .consent { font-size: .85rem; font-weight: 600; }
.stage-cliente, .stage-aliado, .consent-si { color: var(--olive); }
.stage-inactivo, .consent-desconocido { color: var(--muted); }
.consent-no { color: var(--oxblood); }

.crm-form { max-width: 44rem; margin-block: 1.5rem; }
.crm-form .fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.4rem; margin-bottom: 1.2rem; }
.crm-form label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.crm-form small { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.crm-form label.inline, .consent-field label.inline { display: flex; align-items: center; gap: .5rem; margin-block: .5rem; font-size: .95rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.crm-form input[type="checkbox"], .crm-form input[type="radio"] { width: auto; accent-color: var(--olive); }
.crm-form input[type="file"] { border: 1px dashed var(--line); padding: 1rem; margin-block: .5rem 1rem; }
.consent-field { margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); }
.consent-field legend { padding: 0 .3rem; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.crm-form > a { margin-left: 1rem; }
.crm-section { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.crm-section h2 { margin-top: 0; font-size: 1.5rem; }
.crm-link { margin-block: 1.5rem; padding: 1rem 1.1rem; background: rgba(61, 74, 56, .06); border-left: 3px solid var(--olive); }
.crm-link p { margin-top: 0; }
.plain-list { margin: 0; padding-left: 1.1rem; }
.steps { padding-left: 1.2rem; max-width: 44rem; }
.steps li { margin-bottom: .4rem; }
.skipped { margin-block: 1rem; }
.skipped summary { cursor: pointer; font-weight: 600; }

@media (max-width: 860px) {
	.admin-layout { grid-template-columns: 1fr; }
	.admin-side { order: -1; padding: 1rem 1.2rem; border-right: 0; border-bottom: 2px solid var(--gold); }
	.admin-side-inner {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: .6rem 1rem;
	}
	.admin-brand { width: 100%; }
	.admin-brand span { display: inline; margin-left: .5rem; }
	.admin-side nav { flex-direction: row; flex-wrap: wrap; flex: 1 1 auto; }
	.admin-side a { border-left: 0; border-bottom: 2px solid transparent; padding: .5rem .55rem; }
	.admin-side a[aria-current="page"] { border-bottom-color: var(--gold); }
	.admin-side button { width: auto; }
	.crm-form .fields { grid-template-columns: 1fr; }
	.admin-main { padding-top: 1.5rem; }
}

[hidden] { display: none !important; }
