/*
Theme Name: Cementerio Británico de Madrid
Theme URI: https://
Author: Guille
Description: Tema a medida para el Cementerio Británico de Madrid (Carabanchel, 1854). Al activarlo crea las páginas Inicio, Historia, Servicios, Noticias, Galería, Colabora y Contacto con sus textos, y el menú principal.
Version: 1.2.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cementerio-britanico
*/

/* ---------- Fuentes (alojadas en el tema) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

/* ---------- Variables ---------- */
:root {
	--green-900: #16291f;
	--green-800: #1f3a2c;
	--green-700: #2c5040;
	--ivory: #f8f5ee;
	--stone: #ece6d9;
	--stone-dark: #d8cfbd;
	--gold: #9c7b3f;
	--gold-light: #c9ad78;
	--ink: #262622;
	--ink-soft: #57564f;
	--white: #fff;

	--font-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

	--wrap: 1180px;
	--wrap-narrow: 760px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
img, iframe, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	color: var(--green-800);
	margin: 0 0 .6em;
	letter-spacing: .005em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.2em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--green-800); color: var(--white); padding: .6em 1em; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
	font-family: var(--font-body);
	font-size: .78rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0 0 .8em;
}
.eyebrow--light { color: var(--gold-light); }

.button, .wp-block-button__link, .contact-form button {
	display: inline-block;
	padding: .8em 1.6em;
	border: 1px solid var(--green-800);
	border-radius: var(--radius);
	background: var(--green-800);
	color: var(--white);
	font-family: var(--font-body);
	font-size: .95rem;
	letter-spacing: .03em;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.button:hover, .wp-block-button__link:hover, .contact-form button:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.button--light { background: var(--ivory); border-color: var(--ivory); color: var(--green-900); }
.button--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--green-900); color: var(--stone); font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 1rem; padding-top: .45rem; padding-bottom: .45rem; }

.site-header { position: sticky; top: 0; z-index: 50; isolation: isolate; border-bottom: 1px solid var(--stone-dark); transition: border-color .4s, box-shadow .4s; }
/* El fondo va en un pseudo-elemento: un backdrop-filter en la propia cabecera rompería el menú móvil (position: fixed). */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory); transition: background-color .4s; }
.is-scrolled .site-header { border-bottom-color: transparent; box-shadow: 0 6px 24px rgba(22,41,31,.08); }
.is-scrolled .site-header::before { background: rgba(248,245,238,.82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; transition: min-height .4s cubic-bezier(.2,.65,.3,1); }
.is-scrolled .site-header__inner { min-height: 64px; }
.brand__mark, .brand__logo, .brand__name { transition: transform .4s cubic-bezier(.2,.65,.3,1), font-size .4s, color .3s; }
.is-scrolled .brand__mark { transform: scale(.85); }
.is-scrolled .brand__name { font-size: 1.3rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--green-800); }
.brand:hover { color: var(--green-800); }
.brand__mark { width: 34px; height: 41px; color: var(--gold); flex: none; }
.brand__logo { max-height: 64px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; }
.brand__since { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: .25em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.main-nav a {
	position: relative; display: block; padding: .5em .75em;
	color: var(--ink); text-decoration: none; font-size: .95rem;
	transition: color .3s;
}
/* Subrayado dorado que se dibuja de izquierda a derecha. */
.main-nav a::after {
	content: ""; position: absolute; left: .75em; right: .75em; bottom: .25em; height: 1px;
	background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s cubic-bezier(.2,.65,.3,1);
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current_page_parent > a { color: var(--green-800); }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after, .main-nav .current_page_parent > a::after { transform: scaleX(1); }
.main-nav .sub-menu { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; z-index: 2; }
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
	position: absolute; left: 10px; width: 24px; height: 2px; background: var(--green-800); content: ""; transition: transform .35s, top .35s, background-color .35s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before { left: 0; top: -7px; }
.nav-toggle__bar::after { left: 0; top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); background: var(--ivory); }
.nav-open .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); background: var(--ivory); }

/* Menú móvil a pantalla completa. */
@media (max-width: 1020px) {
	.nav-toggle { display: block; }
	.brand { position: relative; z-index: 2; }
	.nav-open { overflow: hidden; }
	.nav-open .brand, .nav-open .brand__since { color: var(--ivory); }
	.nav-open .site-header { box-shadow: none; }
	.main-nav {
		position: fixed; inset: 0; z-index: 1;
		display: flex; flex-direction: column; justify-content: center;
		padding: 100px var(--gutter) 3rem;
		background: radial-gradient(120% 80% at 100% 0%, var(--green-700) 0%, var(--green-900) 60%);
		opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s;
		overflow-y: auto;
	}
	.nav-open .main-nav { opacity: 1; visibility: visible; transition: opacity .45s ease; }
	.main-nav ul { flex-direction: column; gap: 0; }
	.main-nav li { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s cubic-bezier(.2,.65,.3,1); }
	.nav-open .main-nav li { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 55ms); }
	.main-nav a { padding: .25em 0; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); color: var(--ivory); }
	.main-nav a::after { left: 0; right: auto; width: 2.5rem; bottom: .2em; background: var(--gold-light); }
	.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current_page_parent > a { color: var(--gold-light); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) {
	.topbar__hours { display: none; }
	.admin-bar .site-header { top: 0; }
	.brand__name { font-size: 1.2rem; }
}

/* ---------- Portada ---------- */
.hero {
	position: relative; overflow: hidden;
	color: var(--white);
	background: var(--green-900);
	min-height: min(82vh, 720px);
	display: flex; align-items: flex-end;
}
/* Foto con zoom lento ("Ken Burns") + paralaje (--py lo mueve main.js). */
.hero__bg {
	position: absolute; inset: -10% 0;
	background: var(--hero-image) center / cover no-repeat;
	translate: 0 var(--py, 0px);
	animation: cbm-kenburns 22s cubic-bezier(.2,.65,.3,1) both;
	will-change: scale, translate;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: 1;
	background: linear-gradient(180deg, rgba(22,41,31,.25) 0%, rgba(22,41,31,.55) 55%, rgba(22,41,31,.9) 100%);
}
.hero__inner { position: relative; z-index: 2; padding-top: 6rem; padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.hero__title { color: var(--white); font-size: clamp(2.6rem, 6.5vw, 4.8rem); max-width: 14ch; margin-bottom: .3em; }
.hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero__title .word > span { display: inline-block; animation: cbm-word-up 1.1s cubic-bezier(.2,.65,.3,1) both; animation-delay: calc(250ms + var(--i, 0) * 110ms); }
.hero__subtitle { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40ch; color: var(--stone); font-style: italic; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero .eyebrow { animation: cbm-fade-up .9s cubic-bezier(.2,.65,.3,1) .1s both; }
.hero__subtitle { animation: cbm-fade-up 1s cubic-bezier(.2,.65,.3,1) .8s both; }
.hero__actions { animation: cbm-fade-up 1s cubic-bezier(.2,.65,.3,1) 1s both; }
.hero__scroll {
	position: absolute; left: 50%; bottom: 1.2rem; z-index: 2; width: 1px; height: 46px;
	background: linear-gradient(var(--gold-light), transparent); transform-origin: top;
	animation: cbm-scroll-hint 2.4s ease-in-out 1.6s infinite both;
}
.button { transition: background .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(22,41,31,.18); }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section--stone { background: var(--stone); }
.section--green { background: var(--green-800); color: var(--stone); }
.section--green h2 { color: var(--white); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__head h2 { margin: 0; }

/* Bienvenida de la Cónsul */
.welcome .wp-block-quote, .wp-block-quote.is-style-welcome {
	border: 0; margin: 0; padding: 0; text-align: center;
	font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.5; color: var(--green-800);
}
.wp-block-quote.is-style-welcome::before {
	content: "“"; display: block; font-size: 5rem; line-height: .6; color: var(--gold-light); margin-bottom: .2em;
}
.wp-block-quote.is-style-welcome p { text-align: center; hyphens: manual; }
.wp-block-quote.is-style-welcome cite {
	display: block; margin-top: 1.5em;
	font-family: var(--font-body); font-style: normal; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft);
}

/* Tarjetas de secciones */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.tile {
	display: flex; flex-direction: column; gap: .6rem;
	padding: 2rem 1.6rem; background: var(--ivory); border-top: 3px solid var(--gold);
	text-decoration: none; color: var(--ink);
	transition: transform .2s, box-shadow .2s;
}
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,58,44,.1); color: var(--ink); }
.tile__img { width: calc(100% + 3.2rem); max-width: none; margin: -2rem -1.6rem .6rem; aspect-ratio: 3 / 2; object-fit: cover; }
.tile__title { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; color: var(--green-800); line-height: 1.1; }
.tile__text { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.tile__more { font-size: .85rem; color: var(--gold); letter-spacing: .04em; }

/* Noticias */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.card { background: var(--white); border: 1px solid var(--stone); display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--stone); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--stone), var(--stone-dark)); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; }
.card__date { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.card__title { font-size: 1.55rem; margin: .3em 0 .4em; }
.card__title a { color: var(--green-800); text-decoration: none; }
.card__title a:hover { color: var(--gold); }
.card__excerpt { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.empty { text-align: center; color: var(--ink-soft); font-style: italic; padding: 2rem 0; }

.pagination { margin-top: 3rem; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: .4em .85em; border: 1px solid var(--stone-dark); text-decoration: none; color: var(--ink); }
.pagination .current { background: var(--green-800); color: var(--white); border-color: var(--green-800); }

/* Visita / mapa */
.visit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.visit__list { margin: 0 0 2rem; display: grid; grid-template-columns: auto 1fr; gap: .7rem 1.5rem; }
.visit__list dt { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); padding-top: .25em; }
.visit__list dd { margin: 0; color: var(--white); }
.section--green .button { background: var(--ivory); border-color: var(--ivory); color: var(--green-900); }
.section--green .button:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); filter: saturate(.85); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.page-hero { background: var(--green-800); padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem); text-align: center; position: relative; }
.page-hero::after { content: ""; display: block; width: 56px; height: 2px; background: var(--gold-light); margin: 1.4rem auto 0; animation: cbm-line .9s cubic-bezier(.2,.65,.3,1) .45s both; }
.page-hero__title { color: var(--white); margin: 0; animation: cbm-fade-up .9s cubic-bezier(.2,.65,.3,1) .1s both; }
.page-hero__meta { animation: cbm-fade-up .9s cubic-bezier(.2,.65,.3,1) both; }
.page-hero__meta { display: block; color: var(--gold-light); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.page-figure { margin-top: clamp(2rem, 5vw, 3rem); }
.page-figure img { width: 100%; }

/* Contenido editable — textos justificados (preferencia de la clienta) */
.entry-content > p,
.entry-content li,
.entry-content .wp-block-media-text__content p,
.entry-content .wp-block-column p {
	text-align: justify;
	hyphens: auto;
	-webkit-hyphens: auto;
}
/* En móviles estrechos el justificado deja huecos muy grandes entre palabras. */
@media (max-width: 599px) {
	.entry-content > p,
	.entry-content li,
	.entry-content .wp-block-media-text__content p,
	.entry-content .wp-block-column p { text-align: left; }
}
.entry-content h2 { margin-top: 2.2em; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.4em; }
.entry-content li { margin-bottom: .6em; }
.entry-content li::marker { color: var(--gold); }
.entry-content .is-lead { font-size: 1.2rem; color: var(--ink-soft); }
.entry-content .has-drop-cap:not(:focus)::first-letter {
	font-family: var(--font-display); font-weight: 600; color: var(--green-800);
	font-size: 4.6em; line-height: .8; margin: .06em .1em 0 0;
}
.entry-content .wp-block-image img, .entry-content .wp-block-gallery img { border-radius: 2px; }
.entry-content figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.entry-content .wp-block-embed { margin: 0 0 2rem; }
.entry-content .alignwide { width: min(1100px, calc(100vw - 2 * var(--gutter))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .wp-block-quote:not(.is-style-welcome) {
	border-left: 3px solid var(--gold); margin: 2rem 0; padding: .2rem 0 .2rem 1.5rem;
	font-family: var(--font-display); font-size: 1.4rem; color: var(--green-800);
}
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--stone-dark); margin: 3rem auto; }

.post-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--stone-dark); font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.contact__box { padding: 1.4rem 1.6rem; background: var(--stone); border-left: 3px solid var(--gold); margin-bottom: 1.2rem; }
.contact__box p { margin: 0; text-align: left; }
.contact__email { margin-top: .4em !important; font-size: 1.1rem; overflow-wrap: anywhere; }
.contact__form h2 { font-size: 2rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

.contact-form label { display: block; font-size: .9rem; color: var(--ink-soft); margin-bottom: .3em; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
	width: 100%; padding: .75em .9em; font: inherit; font-size: 1rem; color: var(--ink);
	background: var(--white); border: 1px solid var(--stone-dark); border-radius: var(--radius);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--gold-light); border-color: var(--gold); }
.contact-form .check { display: flex; gap: .6rem; align-items: flex-start; }
.contact-form .check input { margin-top: .4em; }
.contact-form .check label { margin: 0; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius); }
.notice--ok { background: #e3eee6; color: var(--green-800); }
.notice--error { background: #f6e3df; color: #7a2a1d; }

/* ---------- Pie ---------- */
.site-footer { background: var(--green-900); color: var(--stone-dark); font-size: .95rem; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.site-footer__name { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); line-height: 1.2; }
.site-footer__title { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.2rem; padding-bottom: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; flex-wrap: wrap; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---------- Visitas guiadas (portada) ---------- */
.feature__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.feature__media { position: relative; }
/* Marco dorado desplazado detrás de la foto. */
.feature__media::before { content: ""; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem; border: 1px solid var(--gold-light); opacity: .6; }
.feature__media img { position: relative; translate: 0 var(--py, 0px); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.feature__text p { color: var(--stone); }
.feature__list { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.feature__list li { padding: .35em .9em; border: 1px solid rgba(201,173,120,.45); border-radius: 999px; font-size: .85rem; color: var(--gold-light); }
@media (max-width: 860px) {
	.feature__grid { grid-template-columns: 1fr; }
	.feature__media { margin-right: 1.4rem; }
	.feature__media img { aspect-ratio: 4 / 3; }
}

/* ---------- Colabora (portada) ---------- */
.support__head { max-width: 680px; margin: 0 auto 3rem; text-align: center; }
.support__head h2::after { content: ""; display: block; width: 48px; height: 2px; margin: .4em auto 0; background: var(--gold-light); }
.support__head p:last-child { color: var(--ink-soft); }
.support__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.support__card {
	position: relative; padding: 2.2rem 1.8rem 2rem; background: var(--ivory);
	border-bottom: 3px solid transparent;
	transition: border-color .4s, transform .4s cubic-bezier(.2,.65,.3,1), box-shadow .4s;
}
.support__card:hover { border-bottom-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(31,58,44,.1); }
.support__num { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-light); margin-bottom: .6rem; }
.support__card h3 { margin-bottom: .4em; }
.support__card p { font-size: .97rem; color: var(--ink-soft); margin: 0; }
.support__link { display: inline-block; margin-top: 1rem; font-size: .9rem; }
.support__cta { text-align: center; margin: 2.8rem 0 0; }
@media (max-width: 860px) { .support__grid { grid-template-columns: 1fr; } }

/* ---------- Cifras ---------- */
.stats { border-top: 1px solid var(--stone-dark); border-bottom: 1px solid var(--stone-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 2.4rem 1rem; }
.stat + .stat { border-left: 1px solid var(--stone-dark); }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1; color: var(--green-800); font-variant-numeric: lining-nums tabular-nums; }
.stat__label { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 640px) {
	.stats__grid { grid-template-columns: 1fr; }
	.stat + .stat { border-left: 0; border-top: 1px solid var(--stone-dark); }
	.stat { padding: 1.6rem 1rem; }
}

/* ---------- Animaciones al hacer scroll (main.js añade .reveal / .is-visible) ---------- */
.js .reveal {
	opacity: 0; transform: translateY(32px);
	transition: opacity 1s cubic-bezier(.2,.65,.3,1) var(--d, 0ms), transform 1s cubic-bezier(.2,.65,.3,1) var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Línea dorada que se dibuja bajo los títulos. */
.entry-content h2::after, .section__head h2::after, .visit h2::after, .contact__form h2::after, .feature__text h2::after {
	content: ""; display: block; width: 48px; height: 2px; margin-top: .35em;
	background: var(--gold-light); transform-origin: left;
	transition: transform 1s cubic-bezier(.2,.65,.3,1) calc(var(--d, 0ms) + 250ms);
}
.js h2.reveal:not(.is-visible)::after { transform: scaleX(0); }

/* Imágenes: zoom suave al pasar el ratón y paralaje en la imagen destacada. */
.entry-content .wp-block-image, .entry-content .wp-block-gallery .wp-block-image { overflow: hidden; }
.entry-content .wp-block-image img { transition: transform .8s cubic-bezier(.2,.65,.3,1), filter .8s; }
.entry-content .wp-block-image:hover img { transform: scale(1.04); }
.lb-trigger { cursor: zoom-in; }
.page-figure { overflow: hidden; }
.page-figure img { scale: 1.08; translate: 0 var(--py, 0px); will-change: translate; }
.site-main { animation: cbm-fade .7s ease both; }

/* Lightbox de la galería. */
.lb {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	background: rgba(14,26,20,.94);
	opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lb__img { max-width: min(92vw, 1600px); max-height: 82vh; width: auto; height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: scale(.96); opacity: 0; transition: transform .45s cubic-bezier(.2,.65,.3,1), opacity .45s; }
.lb.is-open .lb__img.is-loaded { transform: none; opacity: 1; }
.lb__caption { position: absolute; left: 0; right: 0; bottom: 1.4rem; text-align: center; color: var(--stone); font-size: .9rem; padding: 0 4rem; }
.lb button {
	position: absolute; width: 52px; height: 52px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
	background: rgba(255,255,255,.06); color: var(--ivory); font-size: 1.4rem; line-height: 1; cursor: pointer;
	transition: background .3s, border-color .3s;
}
.lb button:hover { background: var(--gold); border-color: var(--gold); }
.lb__close { top: 1.2rem; right: 1.2rem; }
.lb__prev { left: 1.2rem; top: 50%; translate: 0 -50%; }
.lb__next { right: 1.2rem; top: 50%; translate: 0 -50%; }
.lb--single .lb__prev, .lb--single .lb__next { display: none; }
.lb-open { overflow: hidden; }

/* ---------- Keyframes ---------- */
@keyframes cbm-kenburns { from { scale: 1.18; } to { scale: 1; } }
@keyframes cbm-word-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes cbm-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cbm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cbm-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cbm-scroll-hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* Quien tenga activado "reducir movimiento" ve la web sin animaciones. */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.hero__bg, .page-figure img, .feature__media img { translate: none; scale: none; }
}
