/* ============================================================
   CD Atletismo Dromos — sistema de diseño
   Δρόμος: la pista del estadio. El nombre del club es literal:
   la carrera, la calzada, el camino que se recorre corriendo.
   ============================================================ */

:root {
	--navy: #14237A;
	--navy-soft: #223294;
	--blue: #2F5FD1;
	--blue-bright: #5C82E8;
	--sky: #EEF1FB;
	--white: #FFFFFF;
	--track: #C1452B;
	--track-soft: #E7C9BE;
	--ink: #1B2430;
	--ink-soft: #52607A;
	--line: #D9E3F2;

	--font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
	--font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

	--container: 1160px;
	--radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--ink);
	background-color: var(--sky);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000'%3E%3Cg fill='none' stroke='rgb(20,35,122)' stroke-width='9'%3E%3Cpath d='M325,-183 A480,480 0 0,1 -192,228' opacity='0.035'/%3E%3Cpath d='M409,-171 A565,565 0 0,1 -199,313' opacity='0.038'/%3E%3Cpath d='M493,-160 A649,649 0 0,1 -207,397' opacity='0.042'/%3E%3Cpath d='M577,-148 A734,734 0 0,1 -214,481' opacity='0.045'/%3E%3Cpath d='M661,-136 A819,819 0 0,1 -221,566' opacity='0.048'/%3E%3Cpath d='M745,-124 A903,903 0 0,1 -229,650' opacity='0.052'/%3E%3Cpath d='M828,-112 A988,988 0 0,1 -236,734' opacity='0.055'/%3E%3Cpath d='M912,-101 A1073,1073 0 0,1 -243,819' opacity='0.058'/%3E%3Cpath d='M996,-89 A1157,1157 0 0,1 -251,903' opacity='0.062'/%3E%3Cpath d='M1080,-77 A1242,1242 0 0,1 -258,987' opacity='0.065'/%3E%3Cpath d='M1164,-65 A1327,1327 0 0,1 -266,1072' opacity='0.068'/%3E%3Cpath d='M1248,-54 A1411,1411 0 0,1 -273,1156' opacity='0.072'/%3E%3Cpath d='M1331,-42 A1496,1496 0 0,1 -280,1240' opacity='0.075'/%3E%3Cpath d='M1415,-30 A1581,1581 0 0,1 -288,1325' opacity='0.078'/%3E%3Cpath d='M1499,-18 A1665,1665 0 0,1 -295,1409' opacity='0.082'/%3E%3Cpath d='M1583,-6 A1750,1750 0 0,1 -303,1493' opacity='0.085'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-attachment: fixed;
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

/* Alineación de imágenes insertadas desde el editor de contenido (CKEditor) */
img.align_center { margin-left: auto; margin-right: auto; }
img.align_left { float: left; margin: 0 1.4em 1em 0; }
img.align_right { float: right; margin: 0 0 1em 1.4em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 800;
	letter-spacing: 0.01em;
	line-height: 1.02;
	color: var(--navy);
	margin: 0 0 0.4em;
	text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); text-transform: none; letter-spacing: normal; }

p { margin: 0 0 1em; }

.eyebrow {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--track);
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin-bottom: 0.9em;
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--track);
	display: inline-block;
}

/* ---------- header ---------- */

#site-header {
	background: var(--navy);
	position: sticky;
	top: 0;
	z-index: 40;
	border-bottom: 3px solid var(--track);
}

#site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding-top: 14px;
	padding-bottom: 14px;
	gap: 10px 24px;
}

.brand { min-width: 0; flex-shrink: 0; }

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--white);
	line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand-logo {
	height: 64px;
	width: 64px;
	object-fit: cover;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--white);
}
.brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.brand-mark {
	font-family: var(--font-display);
	font-weight: 900;
	font-size: 2.1rem;
	letter-spacing: 0.03em;
	color: var(--white);
	white-space: nowrap;
}
.brand-sub {
	font-family: var(--font-mono);
	font-size: 0.76rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #A9C0E0;
	margin-top: 3px;
	white-space: nowrap;
}

.nav-toggle { display: none; }
.nav-toggle-label {
	display: none;
	width: 30px;
	height: 22px;
	position: relative;
	cursor: pointer;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	background: var(--white);
	left: 0;
}
.nav-toggle-label span { top: 10px; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

#main-nav ul {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
#main-nav a {
	color: #D9E4F5;
	font-weight: 600;
	font-size: 0.86rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 8px 12px;
	border-radius: var(--radius);
	display: block;
}
#main-nav a:hover,
#main-nav a.current {
	color: var(--white);
	background: rgba(255,255,255,0.08);
	text-decoration: none;
}

#main-nav li { position: relative; }
.has-submenu > a::after {
	content: "▾";
	font-size: 0.65em;
	margin-left: 5px;
	opacity: 0.7;
}
.submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 881px) {
	.submenu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 220px;
		background: var(--navy-soft);
		border-radius: var(--radius);
		box-shadow: 0 12px 28px rgba(0,0,0,0.35);
		padding: 8px;
		opacity: 0;
		visibility: hidden;
		transform: translateY(4px);
		transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
		z-index: 50;
	}
	.has-submenu:hover .submenu,
	.has-submenu:focus-within .submenu {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.submenu a {
		font-size: 0.82rem;
		text-transform: none;
		letter-spacing: normal;
		padding: 9px 12px;
		white-space: nowrap;
	}
}

@media (max-width: 880px) {
	.nav-toggle-label { display: block; }
	#main-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--navy-soft);
		max-height: 0;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transition: max-height 0.25s ease;
	}
	#main-nav ul { flex-direction: column; padding: 8px 20px 20px; }
	#main-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; }
	.submenu { padding-left: 16px; }
	.submenu a { font-size: 0.82rem; text-transform: none; letter-spacing: normal; color: #A9C0E0; }
	.nav-toggle:checked ~ #main-nav { max-height: calc(100vh - 80px); }

	/* El menú desplegado ocupa toda la altura disponible con scroll propio:
	   sin esto, el gesto de scroll caía a la página de detrás y era
	   imposible llegar a las últimas opciones del menú. */
	body:has(.nav-toggle:checked) { overflow: hidden; }
}

/* ---------- hero ---------- */

.hero {
	position: relative;
	background: var(--navy);
	color: var(--white);
	overflow: hidden;
	padding: 84px 0 64px;
}
.header-lanes {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.35;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-eyebrow {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #9FC1EC;
	margin-bottom: 1.2em;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-lede {
	font-size: 1.15rem;
	color: #C7D7EE;
	max-width: 46ch;
	margin: 1.1em 0 1.8em;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 0.92rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 13px 26px;
	border-radius: var(--radius);
	border: 2px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--track); color: var(--white); }
.btn-primary:hover { background: #A83A22; }
.btn-outline { border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.stat-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 2.4rem;
	border-top: 1px solid rgba(255,255,255,0.18);
	padding-top: 1.6rem;
}
.stat {
	font-family: var(--font-mono);
}
.stat-value {
	font-size: 1.6rem;
	color: var(--white);
	font-weight: 600;
}
.stat-label {
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9FB4D6;
}

/* ---------- sections ---------- */

.section { padding: 68px 0; background: var(--white); }
.section-sky { background: var(--sky); }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

.grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card-tag {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--track);
}
.card h3 { margin: 0; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-figure {
	background: var(--navy);
	border-radius: var(--radius);
	aspect-ratio: 4/3;
	position: relative;
	overflow: hidden;
}
.split-figure svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.cta-banner {
	background: var(--track);
	color: var(--white);
	border-radius: var(--radius);
	padding: 44px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner p { color: #F6DED6; margin: 0.4em 0 0; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.6); }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---------- content pages ---------- */

.page-header {
	position: relative;
	overflow: hidden;
	background: var(--navy);
	color: var(--white);
	padding: 32px 0 24px;
}
.page-header .wrap { position: relative; z-index: 2; }
.breadcrumbs {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: #9FB4D6;
	margin-bottom: 0.6em;
}
.breadcrumbs a { color: #C7D7EE; }
.page-header h1 { color: var(--white); text-transform: none; font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: none; }

.page-body {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(18,35,63,0.09);
	padding: 46px 52px 54px;
	max-width: 76ch;
	margin: -40px auto 72px;
	position: relative;
	z-index: 3;
}
@media (max-width: 640px) { .page-body { padding: 32px 24px 40px; margin-top: -24px; } }

.page-body h2 {
	font-size: 1.5rem;
	text-transform: none;
	margin-top: 1.7em;
	padding-bottom: 0.35em;
	border-bottom: 2px solid var(--line);
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin-top: 1.4em; }
.page-body p, .page-body li { color: var(--ink-soft); }
.page-body a:not(.btn):not(.card) { text-decoration: underline; }
.page-body a.card:hover { text-decoration: none; }
.page-body a.card h3 { color: var(--navy); }
.page-body ul, .page-body ol { padding-left: 1.3em; }
.page-body ul li::marker { color: var(--track); }
.page-body li { margin-bottom: 0.4em; }
.page-body blockquote {
	margin: 1.6em 0;
	padding: 0.4em 0 0.4em 1.2em;
	border-left: 3px solid var(--track);
	font-style: italic;
	color: var(--ink);
}

.doc-list { margin: 1.6em 0 2.2em; }
.doc-list h3 { margin-top: 0; }
.doc-list ul { list-style: none; padding-left: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.doc-list li { margin-bottom: 0; }
.doc-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 16px;
	text-decoration: none !important;
	transition: border-color 0.15s, background 0.15s;
}
.doc-list a:hover { border-color: var(--track); background: var(--sky); }
.doc-ext {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: var(--white);
	background: var(--track);
	border-radius: 4px;
	padding: 3px 7px;
	flex-shrink: 0;
}
.doc-name { color: var(--navy); font-weight: 600; flex: 1; }
.doc-size { color: var(--ink-soft); font-size: 0.85rem; flex-shrink: 0; }

.notice-highlight {
	background: var(--sky);
	border: 1px solid var(--line);
	border-left: 4px solid var(--track);
	border-radius: var(--radius);
	padding: 22px 24px;
	margin: 0 0 2em;
}
.notice-highlight > strong {
	display: block;
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--navy);
	font-size: 1.1rem;
	margin-bottom: 0.5em;
}
.notice-highlight p { margin-bottom: 0.8em; }
.notice-highlight p:last-child { margin-bottom: 0; }

.notice-pending {
	font-family: var(--font-mono);
	font-size: 0.82rem;
	background: var(--sky);
	border: 1px dashed var(--blue);
	color: var(--navy-soft);
	padding: 12px 16px;
	border-radius: var(--radius);
	margin-bottom: 1.6em;
}

/* ---------- footer ---------- */

#site-footer {
	background: var(--navy);
	color: #A9C0E0;
	padding: 32px 0 20px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
	color: var(--white);
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: #C7D7EE; font-size: 0.9rem; }
.footer-lede { color: #C7D7EE; font-size: 0.9rem; max-width: 32ch; margin: 0; }
.footer-bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 14px;
	font-size: 0.78rem;
	font-family: var(--font-mono);
}
.footer-bottom a { color: #9FB4D6; }

/* ---------- Formulario de contacto ---------- */
.contact-form { max-width: 680px; margin: 2.4em 0 1em; padding: 28px 28px 32px; background: var(--sky); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form h2 { margin-top: 0; }
.contact-form .form-row { margin-bottom: 1.1em; }
.contact-form .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; color: var(--navy); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
	width: 100%; padding: 10px 12px; font: inherit; color: var(--ink);
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .form-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.captcha-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.captcha-box img { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); max-width: 100%; height: auto; }
.captcha-reload { font: inherit; font-size: 0.85rem; padding: 6px 10px; border: 1px solid var(--line); background: var(--white); color: var(--navy); border-radius: var(--radius); cursor: pointer; }
.captcha-reload:hover { border-color: var(--blue); }
.contact-form .captcha-input { max-width: 200px; text-transform: uppercase; letter-spacing: 0.18em; font-family: var(--font-mono); }
.contact-form .form-hint { font-size: 0.82rem; color: var(--ink-soft); margin: 6px 0 0; }
.contact-form .form-check { display: flex; gap: 10px; align-items: flex-start; }
.contact-form .form-check input { margin-top: 4px; flex: none; }
.contact-form .form-check label { font-weight: 400; margin: 0; color: var(--ink); }
.form-error { background: #FBEAE6; border: 1px solid var(--track); color: #7A2412; padding: 10px 16px; border-radius: var(--radius); margin-bottom: 1.2em; }
.form-error ul { margin: 0; padding-left: 1.2em; }
.form-ok { max-width: 680px; margin: 2em 0; padding: 16px 20px; background: #E8F4EA; border: 1px solid #3C8A4B; color: #1D4A27; border-radius: var(--radius); }
@media (max-width: 600px) { .contact-form { padding: 20px 16px 24px; } .contact-form .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Visor de revista (hojear el PDF) ---------- */
html.fb-lock, html.fb-lock body { overflow: hidden; }
.fb-trigger { cursor: pointer; }
.fb-trigger:hover, .fb-trigger:focus-visible { opacity: 0.8; }
.fb-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
h3.fb-trigger:hover { text-decoration: underline; text-decoration-color: var(--track); text-underline-offset: 4px; }
.fb-hide { display: none; }
.fb-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(10, 16, 48, 0.96); color: var(--white); }
.fb-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--navy); border-bottom: 2px solid var(--track); flex: none; }
.fb-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fb-pager { font-family: var(--font-mono); font-size: 0.85rem; color: #BFD0F5; white-space: nowrap; }
.fb-btn { font: inherit; font-size: 1.1rem; line-height: 1; min-width: 40px; height: 40px; padding: 0 12px; color: var(--white); background: var(--navy-soft); border: 1px solid #3A4BB0; border-radius: var(--radius); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.fb-btn-text { font-size: 0.85rem; font-weight: 600; }
.fb-btn:hover:not(:disabled) { background: var(--blue); }
.fb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.fb-btn:disabled { opacity: 0.35; cursor: default; }
.fb-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 14px; position: relative; }
.fb-book { max-width: 100%; max-height: 100%; }
.fb-msg { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 24px; color: #DCE6FF; }
.fb-msg[hidden] { display: none; }
.fb-page { background: #fff; overflow: hidden; position: relative; box-shadow: inset 0 0 0 1px rgba(20, 35, 122, 0.08); }
.fb-page canvas { display: block; width: 100%; height: 100%; }
.fb-page-n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 2rem; color: #C9D3EE; pointer-events: none; }
.fb-page.fb-done .fb-page-n { display: none; }
@media (max-width: 600px) {
	.fb-bar { flex-wrap: wrap; row-gap: 6px; }
	.fb-title { flex: 1 1 100%; order: -1; }
	.fb-btn-text { display: none; }
	.fb-stage { padding: 8px; }
}

/* Enlaces del PDF dentro del visor */
.fb-links { position: absolute; inset: 0; pointer-events: none; }
.fb-link { position: absolute; display: block; pointer-events: auto; cursor: pointer; border-radius: 3px; background: transparent; transition: background 0.15s; }
.fb-link:hover, .fb-link:focus-visible { background: rgba(47, 95, 209, 0.18); outline: 2px solid rgba(47, 95, 209, 0.6); }

/* ---------- Buscador ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search input {
	width: 100%; font: inherit; font-size: 0.86rem; color: var(--white);
	background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius);
	padding: 8px 36px 8px 12px; transition: width 0.2s ease, background 0.2s ease;
}
.nav-search input::placeholder { color: #B8C9E6; opacity: 1; }
.nav-search input:focus { background: rgba(255,255,255,0.18); outline: 2px solid #fff; outline-offset: 1px; }
.nav-search input::-webkit-search-cancel-button { display: none; }
.nav-search button { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: flex; padding: 7px; background: none; border: 0; color: #D9E4F5; cursor: pointer; }
.nav-search button:hover, .nav-search button:focus-visible { color: var(--white); }
@media (min-width: 881px) {
	#main-nav { display: flex; align-items: center; gap: 6px; }
	.nav-search { margin-left: 8px; }
	.nav-search input { width: 118px; }
	.nav-search input:focus { width: 190px; }
}
/* Entre 881 y 1099 px el menú va justo: la lupa se queda en icono y se abre al pulsarla */
@media (min-width: 881px) and (max-width: 1099px) {
	.nav-search input { width: 40px; padding-right: 8px; color: transparent; cursor: pointer; }
	.nav-search input::placeholder { color: transparent; }
	.nav-search input:focus { width: 180px; color: var(--white); cursor: text; padding-right: 36px; }
	.nav-search input:focus::placeholder { color: #B8C9E6; }
}
@media (max-width: 880px) {
	#main-nav { display: flex; flex-direction: column; }
	.nav-search { order: -1; margin: 14px 20px 4px; }
}

.search-form { display: flex; gap: 10px; max-width: 680px; margin: 0 0 1.6em; }
.search-form input[type="search"] { flex: 1 1 auto; min-width: 0; font: inherit; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.search-form input[type="search"]:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.search-help { max-width: 680px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-chips span { font-size: 0.9rem; color: var(--ink-soft); margin-right: 2px; }
.search-chips a { display: inline-block; padding: 6px 12px; font-size: 0.9rem; background: var(--sky); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.search-chips a:hover { background: var(--white); border-color: var(--blue); }
.search-count { color: var(--ink-soft); font-size: 0.92rem; margin: 0 0 0.4em; }
.search-h { font-size: 1.25rem; margin: 1.6em 0 0.5em; }
.search-list { list-style: none; margin: 0; padding: 0; }
.search-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: block; }
.search-list li:last-child { border-bottom: 0; }
.search-title { font-weight: 600; font-size: 1.05rem; }
.search-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--navy); background: var(--sky); border: 1px solid var(--line); border-radius: 3px; vertical-align: 2px; white-space: nowrap; }
.search-detail { display: block; margin-top: 3px; font-size: 0.92rem; color: var(--ink-soft); }
.search-where { display: block; margin-top: 3px; font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-mono); }
@media (max-width: 480px) { .search-form { flex-direction: column; } }
