/**
 * Ecogestos Editorial — sistema visual
 * Direcció: paper editorial contemporani. Marca clara, ritme consistent, motion amb propòsit.
 */

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */

:root {
	--eg-forest: #173f2b;
	--eg-ink: #1c211d;
	--eg-accent: #97c22c;
	--eg-ivory: #f6f4ec;
	--eg-white: #ffffff;
	--eg-muted: #687168;
	--eg-sand: #dcd5c5;
	--eg-border: #e4e5df;
	--eg-focus: #173f2b;
	--eg-header-h: 4.5rem;
	--eg-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
	--eg-ease-move: cubic-bezier(0.65, 0, 0.35, 1);
	--eg-ease-hover: cubic-bezier(0.25, 0.1, 0.25, 1);
	--eg-duration: 550ms;
	--eg-duration-fast: 180ms;
	--eg-radius: 8px;
	--eg-paper:
		radial-gradient(ellipse 120% 80% at 10% -20%, rgba(23, 63, 43, 0.06), transparent 55%),
		radial-gradient(ellipse 80% 60% at 100% 0%, rgba(151, 194, 44, 0.08), transparent 45%),
		linear-gradient(180deg, var(--eg-ivory) 0%, var(--eg-white) 42%, var(--eg-ivory) 100%);
	--eg-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

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

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	background-color: var(--eg-ivory);
	background-image: var(--eg-grain), var(--eg-paper);
	background-attachment: fixed;
	color: var(--eg-ink);
}

img,
video,
svg {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

figure {
	margin: 0;
}

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

a:focus:not(:focus-visible) {
	outline: none;
}

/* --------------------------------------------------------------------------
   Accesibilidad
   -------------------------------------------------------------------------- */

.skip-link.screen-reader-text {
	position: absolute;
	top: -1000px;
	left: 0;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: var(--eg-forest);
	color: var(--eg-white);
	font-family: var(--wp--preset--font-family--ui-sans, system-ui, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 6px 0;
}

.skip-link.screen-reader-text:focus {
	top: 0;
	left: 0;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	overflow: visible;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.ecogestos-reveal {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
}

/* --------------------------------------------------------------------------
   Motion system
   -------------------------------------------------------------------------- */

.ecogestos-reveal {
	opacity: 0;
	transform: translate3d(0, 1.25rem, 0);
	transition:
		opacity var(--eg-duration) var(--eg-ease-out),
		transform var(--eg-duration) var(--eg-ease-out);
	will-change: opacity, transform;
}

.ecogestos-reveal.is-visible {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	will-change: auto;
}

.ecogestos-reveal-delay-1 { transition-delay: 60ms; }
.ecogestos-reveal-delay-2 { transition-delay: 120ms; }
.ecogestos-reveal-delay-3 { transition-delay: 180ms; }
.ecogestos-reveal-delay-4 { transition-delay: 240ms; }

.ecogestos-intro .ecogestos-intro-kicker,
.ecogestos-intro .ecogestos-intro-title,
.ecogestos-intro .ecogestos-intro-lead,
.ecogestos-intro .ecogestos-intro-actions,
.ecogestos-intro .ecogestos-hero-figure {
	opacity: 0;
	transform: translate3d(0, 1.1rem, 0);
	animation: eg-intro-in 720ms var(--eg-ease-out) forwards;
}

.ecogestos-intro .ecogestos-intro-kicker { animation-delay: 40ms; }
.ecogestos-intro .ecogestos-intro-title { animation-delay: 110ms; }
.ecogestos-intro .ecogestos-intro-lead { animation-delay: 180ms; }
.ecogestos-intro .ecogestos-intro-actions { animation-delay: 250ms; }
.ecogestos-intro .ecogestos-hero-figure {
	animation-name: eg-intro-visual;
	animation-delay: 160ms;
	transform: translate3d(1.25rem, 0, 0) scale(0.97);
}

@keyframes eg-intro-in {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes eg-intro-visual {
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes eg-accent-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes eg-soft-float {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -8px, 0); }
}

@keyframes eg-orbit-spin {
	to { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   Cabecera
   -------------------------------------------------------------------------- */

.ecogestos-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(246, 244, 236, 0.88);
	backdrop-filter: blur(14px) saturate(1.15);
	-webkit-backdrop-filter: blur(14px) saturate(1.15);
	border-bottom: 1px solid transparent;
	transition:
		border-color var(--eg-duration-fast) var(--eg-ease-hover),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover),
		background-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-header.is-scrolled {
	border-bottom-color: var(--eg-border);
	box-shadow: 0 8px 24px rgba(28, 33, 29, 0.04);
	background: rgba(255, 255, 255, 0.92);
}

.ecogestos-header .wp-block-group {
	min-height: var(--eg-header-h);
}

.ecogestos-header .wp-block-site-logo img {
	height: 40px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
	transition: transform var(--eg-duration-fast) var(--eg-ease-out);
}

.ecogestos-header .wp-block-site-logo a:hover img {
	transform: scale(1.03);
}

@media (max-width: 781px) {
	.ecogestos-header .wp-block-site-logo img {
		height: 32px;
		max-width: 160px;
	}
}

.ecogestos-header .wp-block-site-logo:has(img) ~ .wp-block-site-title {
	display: none;
}

.ecogestos-header .wp-block-site-logo:not(:has(img)) {
	display: none;
}

.ecogestos-header .wp-block-site-title a {
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-size: 1rem;
	font-weight: 700;
	color: var(--eg-forest);
	text-decoration: none;
	position: relative;
}

.ecogestos-header .wp-block-site-title a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 100%;
	height: 2px;
	background: var(--eg-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 220ms var(--eg-ease-out);
}

.ecogestos-header .wp-block-site-title a:hover::after,
.ecogestos-header .wp-block-site-title a:focus-visible::after {
	transform: scaleX(1);
}

.ecogestos-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.5rem 0.4rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	position: relative;
	transition: color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0.4rem;
	right: 0.4rem;
	bottom: 0.35rem;
	height: 2px;
	background: var(--eg-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 220ms var(--eg-ease-out);
}

.ecogestos-header .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.ecogestos-header .wp-block-navigation .wp-block-navigation-item__content:focus-visible::after,
.ecogestos-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.ecogestos-header .wp-block-navigation__responsive-container-open,
.ecogestos-header .wp-block-navigation__responsive-container-close {
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
}

.ecogestos-header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ecogestos-header-actions .wp-block-search {
	margin: 0;
}

.ecogestos-header-actions .wp-block-search__button {
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
	background: transparent;
	color: var(--eg-ink);
	border: 1px solid transparent;
	border-radius: 6px;
	transition:
		background-color var(--eg-duration-fast) var(--eg-ease-hover),
		border-color var(--eg-duration-fast) var(--eg-ease-hover),
		transform 120ms var(--eg-ease-out);
}

.ecogestos-header-actions .wp-block-search__button:hover,
.ecogestos-header-actions .wp-block-search__button:focus-visible {
	background: var(--eg-white);
	border-color: var(--eg-border);
}

.ecogestos-header-actions .wp-block-search__button:active {
	transform: scale(0.96);
}

.ecogestos-header-newsletter .wp-block-button__link {
	background: var(--eg-forest);
	color: var(--eg-white);
	border: 1px solid var(--eg-forest);
	padding: 0.55rem 1rem;
	font-size: 0.875rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition:
		background-color var(--eg-duration-fast) var(--eg-ease-hover),
		color var(--eg-duration-fast) var(--eg-ease-hover),
		transform 120ms var(--eg-ease-out),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-header-newsletter .wp-block-button__link:hover {
	background: var(--eg-ink);
	border-color: var(--eg-ink);
	box-shadow: 0 6px 16px rgba(23, 63, 43, 0.18);
}

.ecogestos-header-newsletter .wp-block-button__link:active {
	transform: scale(0.97);
}

/* --------------------------------------------------------------------------
   Sistema de secciones (ritmo consistente)
   -------------------------------------------------------------------------- */

.ecogestos-section {
	position: relative;
	padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.ecogestos-section--ivory {
	background:
		linear-gradient(180deg, rgba(246, 244, 236, 0.96), rgba(246, 244, 236, 0.88)),
		var(--eg-grain);
}

.ecogestos-section--white {
	background: rgba(255, 255, 255, 0.72);
}

.ecogestos-section--forest {
	background:
		radial-gradient(ellipse 90% 70% at 0% 0%, rgba(151, 194, 44, 0.16), transparent 50%),
		linear-gradient(160deg, #123224 0%, var(--eg-forest) 55%, #0f2a1d 100%);
	color: #e8ebe6;
}

.ecogestos-section--forest h2,
.ecogestos-section--forest h3,
.ecogestos-section--forest .ecogestos-section-title {
	color: #fff;
}

.ecogestos-section--forest .ecogestos-section-label {
	color: rgba(232, 235, 230, 0.72);
}

.ecogestos-section--forest .ecogestos-section-lead {
	color: rgba(232, 235, 230, 0.82);
}

.ecogestos-section-header {
	max-width: 40rem;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.ecogestos-section-header--center {
	margin-inline: auto;
	text-align: center;
}

.ecogestos-section-label {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 0.85rem;
	font-family: var(--wp--preset--font-family--ui-sans, system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--eg-muted);
}

.ecogestos-section-label::before {
	content: "";
	display: inline-block;
	width: 1.75rem;
	height: 2px;
	background: var(--eg-accent);
	transform-origin: left;
	animation: eg-accent-draw 700ms var(--eg-ease-out) both;
}

.ecogestos-section--forest .ecogestos-section-label::before {
	background: var(--eg-accent);
}

.ecogestos-section-title {
	margin: 0 0 0.75rem;
	color: var(--eg-forest);
	letter-spacing: -0.02em;
}

.ecogestos-section-lead {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.6;
	color: var(--eg-muted);
	max-width: 38rem;
}

.ecogestos-section-header--center .ecogestos-section-lead {
	margin-inline: auto;
}

.ecogestos-section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin-top: 1.5rem;
	align-items: center;
}

.ecogestos-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--eg-forest);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition:
		gap var(--eg-duration-fast) var(--eg-ease-out),
		border-color var(--eg-duration-fast) var(--eg-ease-hover),
		color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-link-arrow::after {
	content: "→";
	transition: transform var(--eg-duration-fast) var(--eg-ease-out);
}

.ecogestos-link-arrow:hover,
.ecogestos-link-arrow:focus-visible {
	color: var(--eg-ink);
	border-bottom-color: var(--eg-accent);
	gap: 0.65rem;
}

.ecogestos-link-arrow:hover::after,
.ecogestos-link-arrow:focus-visible::after {
	transform: translateX(3px);
}

.ecogestos-accent-line {
	width: 2.75rem !important;
	height: 3px !important;
	background: var(--eg-accent) !important;
	border: 0 !important;
	margin: 0 0 1.25rem !important;
	transform-origin: left;
}

/* --------------------------------------------------------------------------
   Intro / hero amplio (primer viewport)
   -------------------------------------------------------------------------- */

.ecogestos-intro {
	position: relative;
	overflow: clip;
	isolation: isolate;
	width: 100%;
	background:
		radial-gradient(ellipse 55% 70% at 92% 40%, rgba(151, 194, 44, 0.16), transparent 58%),
		radial-gradient(ellipse 45% 55% at 8% 85%, rgba(23, 63, 43, 0.07), transparent 50%),
		linear-gradient(118deg, #f9f7f0 0%, var(--eg-ivory) 42%, #f3f1e8 100%);
}

.ecogestos-intro::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--eg-grain);
	opacity: 0.65;
	pointer-events: none;
	z-index: 0;
}

.ecogestos-intro::after {
	content: "";
	position: absolute;
	right: max(-4rem, -6vw);
	top: 50%;
	translate: 0 -50%;
	width: min(48vw, 34rem);
	height: min(48vw, 34rem);
	border-radius: 50%;
	border: 1px solid rgba(23, 63, 43, 0.07);
	pointer-events: none;
	z-index: 0;
}

.ecogestos-intro > * {
	position: relative;
	z-index: 1;
}

.ecogestos-intro-grid {
	align-items: center;
	min-height: clamp(22rem, 58vh, 34rem);
}

.ecogestos-intro-copy {
	max-width: 40rem;
}

.ecogestos-intro-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1.25rem;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: clamp(1.05rem, 1.7vw, 1.25rem);
	font-style: italic;
	line-height: 1.35;
	color: var(--eg-muted);
}

.ecogestos-intro-kicker::before {
	content: "";
	display: inline-block;
	width: 2.25rem;
	height: 3px;
	flex-shrink: 0;
	background: var(--eg-accent);
	border-radius: 2px;
	transform-origin: left;
	animation: eg-accent-draw 700ms var(--eg-ease-out) both;
}

.ecogestos-intro-title {
	margin: 0 0 1.15rem;
	max-width: 16ch;
	color: var(--eg-forest);
	letter-spacing: -0.03em;
	line-height: 1.05;
	font-size: clamp(2.6rem, 6.2vw, 4.75rem) !important;
}

.ecogestos-intro-lead {
	margin: 0;
	max-width: 36rem;
	font-size: clamp(1.1rem, 1.7vw, 1.3rem);
	line-height: 1.55;
	color: var(--eg-ink);
}

.ecogestos-intro-actions {
	margin-top: 1.75rem;
}

.ecogestos-intro-visual {
	display: flex;
	justify-content: center;
	align-items: center;
}

.ecogestos-hero-figure {
	margin: 0;
	width: min(100%, 34rem);
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	position: relative;
}

.ecogestos-hero-figure::before {
	content: "";
	position: absolute;
	inset: 8%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(151, 194, 44, 0.12) 0%, transparent 68%);
	z-index: 0;
}

.ecogestos-hero-illustration {
	position: relative;
	z-index: 1;
	width: 100%;
	height: auto;
	display: block;
	animation: eg-soft-float 7.5s var(--eg-ease-move) infinite;
	filter: drop-shadow(0 18px 36px rgba(23, 63, 43, 0.08));
}

.ecogestos-intro .wp-block-button__link {
	min-height: 48px;
	padding-inline: 1.35rem;
	text-decoration: none;
	transition:
		transform 120ms var(--eg-ease-out),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover),
		background-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-intro .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--eg-forest);
	color: #fff;
	box-shadow: 0 10px 28px rgba(23, 63, 43, 0.16);
}

.ecogestos-intro .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: var(--eg-ink);
	box-shadow: 0 12px 32px rgba(23, 63, 43, 0.22);
}

.ecogestos-intro .wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--eg-forest);
	border: 1px solid rgba(23, 63, 43, 0.35);
}

.ecogestos-intro .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--eg-forest);
	background: rgba(255, 255, 255, 0.55);
}

.ecogestos-intro .wp-block-button__link:active {
	transform: scale(0.98);
}

@media (max-width: 781px) {
	.ecogestos-intro-grid {
		min-height: 0;
	}

	.ecogestos-intro-copy {
		max-width: none;
	}

	.ecogestos-intro-title {
		max-width: 12ch;
		font-size: clamp(2.35rem, 11vw, 3.25rem) !important;
	}

	.ecogestos-hero-figure {
		width: min(72%, 20rem);
		margin-inline: auto;
		margin-top: 0.5rem;
	}

	.ecogestos-intro .ecogestos-hero-figure {
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ecogestos-hero-illustration {
		animation: none;
	}
}

/* --------------------------------------------------------------------------
   Lectura / artículos
   -------------------------------------------------------------------------- */

#main-content:focus {
	outline: none;
}

.ecogestos-entry-content,
.entry-content {
	font-size: 1.125rem;
	line-height: 1.7;
	max-width: 760px;
}

.ecogestos-entry-content > * + *,
.entry-content > * + * {
	margin-block-start: 1.35em;
}

.ecogestos-entry-content h2,
.entry-content h2 {
	margin-block-start: 2em;
	margin-block-end: 0.6em;
}

.ecogestos-entry-content h3,
.entry-content h3,
.ecogestos-entry-content h4,
.entry-content h4 {
	margin-block-start: 1.75em;
	margin-block-end: 0.5em;
}

.ecogestos-entry-content ul,
.ecogestos-entry-content ol,
.entry-content ul,
.entry-content ol {
	padding-inline-start: 1.35em;
}

.ecogestos-entry-content li + li,
.entry-content li + li {
	margin-block-start: 0.4em;
}

.ecogestos-entry-content .alignleft {
	float: left;
	margin: 0.35em 1.5em 1em 0;
	max-width: 45%;
}

.ecogestos-entry-content .alignright {
	float: right;
	margin: 0.35em 0 1em 1.5em;
	max-width: 45%;
}

.ecogestos-entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

@media (max-width: 600px) {
	.ecogestos-entry-content .alignleft,
	.ecogestos-entry-content .alignright {
		float: none;
		display: block;
		margin: 1em 0;
		max-width: 100%;
	}
}

.ecogestos-entry-content iframe,
.entry-content iframe {
	max-width: 100%;
}

.ecogestos-post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1rem;
	color: var(--eg-muted);
	font-size: 0.875rem;
}

.ecogestos-modified-date {
	margin: 0;
	font-size: 0.875rem;
	color: var(--eg-muted);
}

.ecogestos-meta-label {
	font-weight: 600;
}

.ecogestos-post-header .wp-block-post-title {
	overflow-wrap: anywhere;
	hyphens: auto;
}

.ecogestos-no-featured-image .ecogestos-featured-image {
	display: none;
}

.ecogestos-featured-image:empty,
.ecogestos-featured-image:not(:has(img)) {
	display: none;
}

/* --------------------------------------------------------------------------
   Listados y destacado
   -------------------------------------------------------------------------- */

.ecogestos-post-list .wp-block-post {
	border-bottom: 1px solid var(--eg-border);
	padding-block: 1.85rem;
	margin: 0;
	transition: background-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-post-list .wp-block-post:first-child {
	padding-top: 0;
}

.ecogestos-post-list .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: var(--eg-radius);
}

.ecogestos-post-list .wp-block-post-featured-image img,
.ecogestos-featured-editorial .wp-block-post-featured-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
	border-radius: var(--eg-radius);
	transition: transform 500ms var(--eg-ease-out);
}

.ecogestos-post-list .wp-block-post:hover .wp-block-post-featured-image img,
.ecogestos-featured-editorial .wp-block-post:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.ecogestos-post-list .wp-block-post-title a,
.ecogestos-featured-editorial .wp-block-post-title a,
.ecogestos-featured-secondary .wp-block-post-title a {
	text-decoration: none;
	background-image: linear-gradient(var(--eg-accent), var(--eg-accent));
	background-position: 0 100%;
	background-repeat: no-repeat;
	background-size: 0% 2px;
	transition:
		background-size 280ms var(--eg-ease-out),
		color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-post-list .wp-block-post-title a:hover,
.ecogestos-featured-editorial .wp-block-post-title a:hover,
.ecogestos-featured-secondary .wp-block-post-title a:hover {
	background-size: 100% 2px;
}

.ecogestos-featured-editorial .wp-block-post-featured-image {
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 18px 40px rgba(28, 33, 29, 0.08);
}

.ecogestos-featured-secondary .wp-block-post {
	border-top: 1px solid var(--eg-border);
	padding-top: 1.35rem;
	margin-top: 1.35rem;
	position: relative;
	padding-left: 1rem;
	transition: border-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-featured-secondary .wp-block-post::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.35rem;
	bottom: 0;
	width: 2px;
	background: var(--eg-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform 280ms var(--eg-ease-out);
}

.ecogestos-featured-secondary .wp-block-post:first-child {
	border-top: 0;
	padding-top: 0;
	margin-top: 0;
}

.ecogestos-featured-secondary .wp-block-post:first-child::before {
	top: 0;
}

.ecogestos-featured-secondary .wp-block-post:hover::before,
.ecogestos-featured-secondary .wp-block-post:focus-within::before {
	transform: scaleY(1);
}

.ecogestos-category-list .wp-block-post:first-child {
	padding-bottom: 2.25rem;
	margin-bottom: 0.5rem;
	border-bottom-width: 2px;
}

.ecogestos-category-list .wp-block-post:first-child .wp-block-post-title {
	font-size: clamp(1.75rem, 3vw, 2.35rem);
}

/* --------------------------------------------------------------------------
   Temas interactivos
   -------------------------------------------------------------------------- */

.ecogestos-topic-item {
	position: relative;
	border-left: 3px solid var(--eg-accent);
	padding: 1.15rem 1.15rem 1.15rem 1.35rem;
	height: 100%;
	background: rgba(255, 255, 255, 0.55);
	border-radius: 0 var(--eg-radius) var(--eg-radius) 0;
	transition:
		transform 220ms var(--eg-ease-out),
		background-color var(--eg-duration-fast) var(--eg-ease-hover),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-topic-item:hover,
.ecogestos-topic-item:focus-within {
	transform: translateY(-3px);
	background: var(--eg-white);
	box-shadow: 0 14px 32px rgba(28, 33, 29, 0.07);
}

.ecogestos-topic-item a {
	text-decoration: none;
}

.ecogestos-topic-item a:hover .ecogestos-topic-title,
.ecogestos-topic-item a:focus-visible .ecogestos-topic-title {
	color: var(--eg-ink);
}

.ecogestos-topic-title {
	margin: 0 0 0.4rem;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	color: var(--eg-forest);
	transition: color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-topic-desc {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--eg-muted);
	line-height: 1.55;
}

.ecogestos-topic-cta {
	display: inline-flex;
	margin-top: 0.85rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--eg-forest);
	opacity: 0.85;
	transition:
		opacity var(--eg-duration-fast) var(--eg-ease-hover),
		transform var(--eg-duration-fast) var(--eg-ease-out);
}

.ecogestos-topic-item:hover .ecogestos-topic-cta {
	opacity: 1;
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Newsletter
   -------------------------------------------------------------------------- */

.ecogestos-newsletter {
	position: relative;
	overflow: clip;
	border: 0;
	border-radius: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, rgba(151, 194, 44, 0.18), transparent 55%),
		linear-gradient(160deg, #123224 0%, var(--eg-forest) 60%, #0f2a1d 100%);
	color: #e8ebe6;
}

.ecogestos-newsletter h2 {
	color: #fff;
}

.ecogestos-newsletter .has-muted-color {
	color: rgba(232, 235, 230, 0.82) !important;
}

.ecogestos-newsletter-slot {
	min-height: 3.5rem;
	padding: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--eg-radius);
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(8px);
	transition:
		border-color var(--eg-duration-fast) var(--eg-ease-hover),
		background-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-newsletter-slot:focus-within {
	border-color: var(--eg-accent);
	background: rgba(255, 255, 255, 0.12);
}

.ecogestos-newsletter-legal {
	font-size: 0.8125rem;
	color: rgba(232, 235, 230, 0.65);
	line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Libros / recomendaciones
   -------------------------------------------------------------------------- */

.ecogestos-book-selection .wp-block-group.is-style-book-card,
.wp-block-group.is-style-book-card {
	border: 1px solid var(--eg-border);
	border-radius: 10px;
	padding: 1.35rem;
	background: rgba(255, 255, 255, 0.8);
	height: 100%;
	transition:
		transform 220ms var(--eg-ease-out),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover),
		border-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-book-selection .wp-block-group.is-style-book-card:hover,
.wp-block-group.is-style-book-card:hover {
	transform: translateY(-4px);
	border-color: var(--eg-sand);
	box-shadow: 0 16px 36px rgba(28, 33, 29, 0.08);
}

.ecogestos-book-label {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--eg-forest);
	margin-bottom: 0.5rem;
	padding: 0.2rem 0.5rem;
	background: rgba(151, 194, 44, 0.18);
	border-radius: 4px;
}

.ecogestos-affiliate-note {
	font-size: 0.8125rem;
	color: var(--eg-muted);
}

/* --------------------------------------------------------------------------
   Estilos de bloque
   -------------------------------------------------------------------------- */

.wp-block-group.is-style-editorial-note,
.wp-block-group.is-style-practical-tip,
.wp-block-group.is-style-important-fact,
.wp-block-group.is-style-sources-box,
.wp-block-group.is-style-article-update,
.wp-block-group.is-style-affiliate-notice {
	padding: 1.25rem 1.35rem;
	border-radius: var(--eg-radius);
	margin-block: 1.75rem;
}

.wp-block-group.is-style-editorial-note {
	background: var(--eg-ivory);
	border-left: 3px solid var(--eg-forest);
}

.wp-block-group.is-style-practical-tip {
	background: #f3f7eb;
	border-left: 3px solid var(--eg-accent);
}

.wp-block-group.is-style-important-fact {
	background: var(--eg-white);
	border: 1px solid var(--eg-sand);
	border-left: 3px solid var(--eg-ink);
}

.wp-block-group.is-style-sources-box {
	background: var(--eg-ivory);
	border: 1px solid var(--eg-border);
	font-size: 0.9375rem;
}

.wp-block-group.is-style-article-update {
	background: var(--eg-white);
	border: 1px solid var(--eg-accent);
}

.wp-block-group.is-style-affiliate-notice {
	background: var(--eg-ivory);
	border: 1px solid var(--eg-sand);
	font-size: 0.875rem;
	color: var(--eg-muted);
}

.wp-block-paragraph.is-style-lede {
	font-size: clamp(1.15rem, 2vw, 1.35rem);
	line-height: 1.55;
	color: var(--eg-ink);
}

.wp-block-paragraph.is-style-meta-text {
	font-size: 0.875rem;
	color: var(--eg-muted);
}

.wp-block-list.is-style-editorial-checklist {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-editorial-checklist li {
	position: relative;
	padding-left: 1.5rem;
	margin-bottom: 0.65rem;
}

.wp-block-list.is-style-editorial-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 2px;
	background: var(--eg-accent);
}

/* --------------------------------------------------------------------------
   Archivos / breadcrumbs
   -------------------------------------------------------------------------- */

.ecogestos-archive-header {
	border-bottom: 1px solid var(--eg-border);
	padding-bottom: 1.5rem;
	margin-bottom: 2rem;
}

.ecogestos-breadcrumb-slot:empty {
	display: none;
}

.ecogestos-breadcrumb-slot,
.ecogestos-breadcrumb-slot .breadcrumb,
.ecogestos-breadcrumb-slot .rank-math-breadcrumb,
.ecogestos-breadcrumb-slot .yoast-breadcrumb,
.yoast-breadcrumbs,
.rank-math-breadcrumb {
	font-size: 0.8125rem;
	color: var(--eg-muted);
	margin-bottom: 1rem;
}

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

.ecogestos-footer {
	position: relative;
	background:
		radial-gradient(ellipse 70% 50% at 100% 0%, rgba(151, 194, 44, 0.12), transparent 50%),
		linear-gradient(180deg, #123224 0%, var(--eg-forest) 100%);
	color: #e8ebe6;
	margin-top: 0;
	overflow: clip;
}

.ecogestos-footer a {
	color: #e8ebe6;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition:
		color var(--eg-duration-fast) var(--eg-ease-hover),
		border-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-footer a:hover,
.ecogestos-footer a:focus-visible {
	color: #ffffff;
	border-bottom-color: var(--eg-accent);
}

.ecogestos-footer .wp-block-site-title a,
.ecogestos-footer .wp-block-site-title {
	color: #ffffff;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.ecogestos-footer .wp-block-navigation .wp-block-navigation-item__content {
	color: #e8ebe6;
}

.ecogestos-footer-meta {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.8125rem;
	color: #c5cdc4;
}

.ecogestos-footer .wp-block-social-links:not(.has-icon-color) .wp-social-link a {
	color: #e8ebe6;
}

.ecogestos-footer .wp-block-social-links:empty {
	display: none;
}

/* --------------------------------------------------------------------------
   Búsqueda / 404 / comentarios / paginación
   -------------------------------------------------------------------------- */

.ecogestos-search-form .wp-block-search__inside-wrapper {
	gap: 0.5rem;
}

.ecogestos-search-form .wp-block-search__input {
	min-height: 48px;
	border: 1px solid var(--eg-border);
	border-radius: 6px;
	padding: 0.65rem 0.9rem;
	background: rgba(255, 255, 255, 0.9);
	transition:
		border-color var(--eg-duration-fast) var(--eg-ease-hover),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-search-form .wp-block-search__input:focus {
	border-color: var(--eg-forest);
	box-shadow: 0 0 0 3px rgba(23, 63, 43, 0.12);
	outline: none;
}

.ecogestos-search-form .wp-block-search__button {
	min-height: 48px;
	padding-inline: 1.25rem;
}

.ecogestos-comments {
	border-top: 1px solid var(--eg-border);
	padding-top: 2.5rem;
	margin-top: 3rem;
}

.ecogestos-comments .wp-block-comments:empty {
	display: none;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	max-width: 100%;
	border: 1px solid var(--eg-border);
	border-radius: 6px;
	padding: 0.65rem 0.85rem;
	font-family: inherit;
	font-size: 1rem;
	background: var(--eg-white);
}

.comment-form .form-submit .submit {
	background: var(--eg-forest);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	cursor: pointer;
	min-height: 44px;
	transition: background-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.comment-form .form-submit .submit:hover,
.comment-form .form-submit .submit:focus-visible {
	background: var(--eg-ink);
}

.wp-block-query-pagination {
	gap: 1rem;
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--eg-border);
}

.wp-block-query-pagination a {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.5rem;
	transition: color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-post-navigation {
	border-top: 1px solid var(--eg-border);
	border-bottom: 1px solid var(--eg-border);
	padding-block: 1.75rem;
	margin-block: 2.5rem;
}

.ecogestos-post-navigation .wp-block-post-navigation-link a {
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display, Georgia, serif);
	font-size: 1.125rem;
	color: var(--eg-forest);
	transition: color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-post-navigation .wp-block-post-navigation-link a:hover {
	color: var(--eg-ink);
	text-decoration: underline;
	text-decoration-color: var(--eg-accent);
	text-underline-offset: 4px;
}

.ecogestos-tags .wp-block-post-terms a {
	display: inline-block;
	padding: 0.3rem 0.65rem;
	margin: 0.2rem 0.25rem 0.2rem 0;
	border: 1px solid var(--eg-border);
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--eg-muted);
	text-decoration: none;
	transition:
		border-color var(--eg-duration-fast) var(--eg-ease-hover),
		color var(--eg-duration-fast) var(--eg-ease-hover),
		background-color var(--eg-duration-fast) var(--eg-ease-hover);
}

.ecogestos-tags .wp-block-post-terms a:hover {
	border-color: var(--eg-forest);
	color: var(--eg-forest);
	background: rgba(151, 194, 44, 0.1);
}

/* --------------------------------------------------------------------------
   Botones globales
   -------------------------------------------------------------------------- */

.wp-element-button,
.wp-block-button__link {
	border-radius: 6px;
	transition:
		transform 120ms var(--eg-ease-out),
		background-color var(--eg-duration-fast) var(--eg-ease-hover),
		box-shadow var(--eg-duration-fast) var(--eg-ease-hover);
}

.wp-element-button:active,
.wp-block-button__link:active {
	transform: scale(0.98);
}

/* --------------------------------------------------------------------------
   Utilidades
   -------------------------------------------------------------------------- */

.wp-site-blocks {
	overflow-x: clip;
}

.wp-block-group,
.wp-block-columns {
	min-width: 0;
}
