/* Centro Neotropical de Entrenamiento en Humedales — hoja de estilos unica del sitio */

:root {
	--color-accent: #2ea3f2;
	--color-gold: #efcb10;
	--color-text: #666;
	--color-heading: #333;
	--color-footer-bg: #222;
	--color-footer-bottom: #171717;
	--max-width: 1200px;
	--font-base: "Open Sans", Arial, Helvetica, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-base);
	font-size: 16px;
	line-height: 1.7;
	color: var(--color-text);
	background: #fff;
}

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

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

h1, h2, h3, h4 {
	color: var(--color-heading);
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 20px;
}
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 18px; }

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

/* ---------- Header ---------- */

#site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: #fff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.logo-link img {
	height: 56px;
	width: auto;
}

nav#main-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	flex: 1;
	justify-content: flex-end;
}

nav#main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 26px;
	flex-wrap: wrap;
}

nav#main-nav a {
	color: var(--color-heading);
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}
nav#main-nav a:hover,
nav#main-nav a[aria-current="page"] {
	color: var(--color-accent);
	border-bottom-color: var(--color-accent);
}

#search-toggle {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-heading);
	padding: 6px;
	display: flex;
}
#search-toggle svg { width: 20px; height: 20px; }

#nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}
#nav-toggle svg { width: 26px; height: 26px; color: var(--color-heading); }

#header-search-bar {
	border-top: 1px solid #eee;
	background: #fafafa;
	padding: 14px 0;
}
#header-search-bar.is-hidden { display: none; }
#header-search-bar form {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	gap: 10px;
}
#header-search-bar input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 15px;
	font-family: inherit;
}
#header-search-bar button {
	padding: 10px 18px;
	border: none;
	border-radius: 3px;
	background: var(--color-accent);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

@media (max-width: 900px) {
	nav#main-nav {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(80vw, 320px);
		background: #fff;
		flex-direction: column;
		align-items: flex-start;
		padding: 90px 28px 28px;
		gap: 0;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
	}
	nav#main-nav.is-open { transform: translateX(0); }
	nav#main-nav ul { flex-direction: column; gap: 0; width: 100%; }
	nav#main-nav li { width: 100%; border-bottom: 1px solid #f0f0f0; }
	nav#main-nav a { display: block; padding: 14px 0; }
	#nav-toggle { display: block; }
	.nav-backdrop {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.4);
		z-index: 400;
	}
	.nav-backdrop.is-open { display: block; }
}

/* ---------- Hero slider (home) ---------- */

.hero-slider {
	position: relative;
	height: 60vh;
	min-height: 320px;
	max-height: 560px;
	overflow: hidden;
	background: var(--color-accent);
}
.slide {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease;
}
.slide.is-active { opacity: 1; }
.hero-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
}
.hero-caption {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 20px 60px;
	color: #fff;
}
.hero-caption.is-active { display: flex; }
.hero-caption h2 {
	color: #fff;
	font-size: 28px;
	max-width: 900px;
	margin-bottom: 16px;
}
.hero-caption p {
	max-width: 700px;
	font-size: 15px;
	margin-bottom: 24px;
	color: #eee;
}
.hero-caption a.hero-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid #fff;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 13px;
	font-weight: 600;
	border-radius: 2px;
}
.hero-caption a.hero-btn:hover { background: #fff; color: var(--color-heading); text-decoration: none; }
@media (max-width: 700px) {
	.hero-caption { padding: 20px 30px; }
	.hero-caption h2 { font-size: 20px; }
}
.hero-dots {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.hero-dots button {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	padding: 0;
}
.hero-dots button.is-active { background: #fff; }

/* ---------- Layout helpers ---------- */

.page-content {
	padding: 50px 0 70px;
}
.two-col {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 50px;
}
@media (max-width: 800px) {
	.two-col { grid-template-columns: 1fr; }
}

/* ---------- Recent post cards ---------- */

.post-card { margin-bottom: 40px; }
.post-card img { border-radius: 3px; margin-bottom: 16px; }
.post-card h3 { margin-bottom: 6px; }
.post-card h3 a { color: var(--color-heading); }
.post-card .post-date { color: #999; font-size: 13px; margin-bottom: 10px; display: block; }

.post-list-item {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 30px;
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #eee;
}
@media (max-width: 700px) {
	.post-list-item { grid-template-columns: 1fr; }
}
.post-list-item img { border-radius: 3px; }

/* ---------- Gold info boxes ---------- */

.info-boxes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 50px 0;
}
@media (max-width: 800px) {
	.info-boxes { grid-template-columns: 1fr; }
}
.info-box {
	background: var(--color-gold);
	color: #fff;
	padding: 34px 26px;
	text-align: center;
	border-radius: 3px;
}
.info-box h4 {
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 20px;
}
.info-box p { color: #fff; margin: 0; font-size: 14px; }

/* ---------- Partner logos ---------- */

.partner-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 36px;
	margin: 40px 0;
	padding-top: 40px;
	border-top: 1px solid #eee;
}
.partner-logos a { display: block; }
.partner-logos img { max-height: 70px; width: auto; filter: grayscale(20%); }

/* ---------- Galleries (carrusel grande por seccion) ---------- */

.gallery-section { margin-bottom: 60px; }
.gallery-slider {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	max-height: 600px;
	border-radius: 4px;
	overflow: hidden;
	background: #eee;
}
.slide-prev, .slide-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.4);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
}
.slide-prev:hover, .slide-next:hover { background: rgba(0, 0, 0, 0.65); }
.slide-prev { left: 14px; }
.slide-next { right: 14px; }
.gallery-dots {
	position: absolute;
	bottom: 14px;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	gap: 7px;
	z-index: 3;
}
.gallery-dots button {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	padding: 0;
}
.gallery-dots button.is-active { background: #fff; }
@media (max-width: 700px) {
	.gallery-slider { aspect-ratio: 4 / 3; }
	.slide-prev, .slide-next { width: 36px; height: 36px; font-size: 20px; }
}

/* ---------- Videos ---------- */

.video-grid { display: grid; gap: 30px; }
.video-embed { position: relative; padding-top: 56.25%; }
.video-embed iframe {
	position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 3px;
}

/* ---------- Publications list ---------- */

.pub-list-item {
	display: grid;
	grid-template-columns: 80px 1fr;
	gap: 20px;
	margin-bottom: 26px;
	align-items: start;
}
.pub-list-item img { border-radius: 3px; }

/* ---------- Contact form ---------- */

.contact-form { max-width: 640px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--color-heading);
	font-size: 14px;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-family: inherit;
	font-size: 15px;
	background: #f4f4f4;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button {
	padding: 12px 30px;
	background: #fff;
	border: 2px solid var(--color-accent);
	color: var(--color-accent);
	border-radius: 3px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.contact-form button:hover { background: var(--color-accent); color: #fff; }
.contact-form button:disabled { opacity: 0.6; cursor: default; }
.form-message { margin-bottom: 18px; font-size: 14px; }
.form-message.success { color: #2a7a3d; }
.form-message.error { color: #b00020; }

.contact-info { margin-top: 40px; }
.contact-info h3 { margin-bottom: 12px; }

/* ---------- Share links (fila dentro del contenido de un post) ---------- */

.share-links { display: flex; gap: 10px; margin: 30px 0; }
.share-links a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f0f0f0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-heading);
	transition: background 0.15s, color 0.15s;
}
.share-links a:hover { background: var(--color-accent); color: #fff; text-decoration: none; }
.share-links svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Barra flotante de compartir (todas las paginas) ---------- */

.floating-share {
	position: fixed;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 300;
	display: flex;
	flex-direction: column;
}
.floating-share a {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: width 0.15s;
}
.floating-share a:hover { width: 48px; text-decoration: none; }
.floating-share svg { width: 17px; height: 17px; fill: currentColor; }
.floating-share .share-facebook { background: #3b5998; }
.floating-share .share-twitter { background: #1da1f2; }
.floating-share .share-pinterest { background: #e60023; }
.floating-share .share-email { background: #6b6b6b; }
.floating-share .share-reddit { background: #ff4500; }
.floating-share .share-linkedin { background: #0077b5; }
.floating-share .share-blogger { background: #f57d00; }
.floating-share .share-tumblr { background: #35465c; }
@media (max-width: 700px) {
	.floating-share { display: none; }
}

/* ---------- Search page ---------- */

.search-page-wrap { max-width: 800px; }
.search-form-page { display: flex; gap: 10px; margin: 30px 0 40px; }
.search-form-page input[type="search"] {
	flex: 1; padding: 12px 16px; font-size: 16px; border: 1px solid #ccc; border-radius: 3px;
}
.search-form-page button {
	padding: 12px 22px; font-size: 16px; border: none; border-radius: 3px;
	background: var(--color-accent); color: #fff; cursor: pointer;
}
.search-summary { color: #999; margin-bottom: 20px; }
.search-result { padding: 20px 0; border-bottom: 1px solid #eee; }
.search-result h2 { margin: 0 0 6px; font-size: 20px; }
.search-result h2 a { color: var(--color-accent); }
.search-result p { margin: 0 0 6px; }
.search-result-link { font-size: 13px; color: #999; }
.search-hint, .search-empty { color: #999; }

/* ---------- Footer ---------- */

#site-footer {
	background: var(--color-footer-bg);
	color: #ccc;
	margin-top: 60px;
}
.footer-main { padding: 44px 0; }
.footer-main h3 {
	color: var(--color-accent);
	font-size: 18px;
	margin-bottom: 14px;
}
.footer-main p { margin: 0 0 8px; font-size: 14px; }
.footer-bottom {
	background: var(--color-footer-bottom);
	padding: 14px 0;
	font-size: 12px;
	color: #999;
}
.footer-bottom a { color: #ccc; }

/* ---------- Sonido ambiental ---------- */

#sound-toggle {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 300;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: var(--color-heading);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
#sound-toggle svg { width: 22px; height: 22px; position: absolute; }
#sound-toggle .icon-sound-off { display: none; }
#sound-toggle[aria-pressed="true"] .icon-sound-on { display: none; }
#sound-toggle[aria-pressed="true"] .icon-sound-off { display: block; }
#sound-toggle:hover { color: var(--color-accent); }

/* ---------- Efecto de aves siguiendo el mouse ---------- */

#cursor-birds {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 250;
}
.cursor-bird {
	position: absolute;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	color: var(--color-gold);
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
	will-change: transform;
}
.cursor-bird svg { width: 100%; height: 100%; display: block; }
.cursor-bird .wing {
	transform-origin: 12px 12px;
	animation: bird-flap 0.35s ease-in-out infinite alternate;
}
.cursor-bird.bird-2 .wing { animation-duration: 0.28s; }
@keyframes bird-flap {
	from { transform: scaleY(1); }
	to { transform: scaleY(0.35); }
}
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
	#cursor-birds { display: none; }
}

/* ---------- Utility ---------- */

.entry-title { margin-bottom: 30px; }
.pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
