/* ==========================================================================
   Tema UCIN · estilos
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-var-italic.woff2") format("woff2");
	font-weight: 100 900;
	font-style: italic;
	font-display: swap;
}

:root {
	--verde: #0A7A3E;
	--verde-hover: #085C2F;
	--verde-oscuro: #0A5C30;
	--verde-noche: #0B2E1C;
	--verde-suave: #E8F2EA;
	--naranja: #F29120;
	--naranja-texto: #B85C00;
	--naranja-claro: #F5A54A;
	--naranja-suave: #FFF4E3;
	--tinta: #14201A;
	--texto: #2F3B35;
	--texto-suave: #4A5650;
	--crema: #FAF7F0;
	--arena: #F4EFE4;
	--linea: #ECE6D9;
	--linea-fuerte: #CFC8B8;
	--blanco: #FFFFFF;

	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--radio: 24px;
	--radio-sm: 14px;
	--ancho: 1240px;
	--gutter: clamp(20px, 4vw, 32px);
	--sombra: 0 18px 40px rgba(20, 32, 26, 0.12);
}

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

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

body {
	margin: 0;
	background: var(--crema);
	color: var(--tinta);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--verde); text-underline-offset: 3px; }
a:hover { color: var(--verde-hover); }

:focus-visible { outline: 3px solid var(--naranja); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; color: var(--tinta); margin: 0; letter-spacing: -0.01em; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0;
	position: fixed !important; top: 12px; left: 12px; z-index: 1000;
	padding: 12px 18px; background: var(--blanco); color: var(--tinta);
	border-radius: 10px; box-shadow: var(--sombra);
}

.wrap { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 980px; }
.wrap--video { max-width: 1040px; }

.section { padding-block: clamp(64px, 9vw, 104px); }
.section--top-0 { padding-top: 0; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	margin: 0;
	font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--verde-oscuro);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--naranja); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 40px; }
.section-head--sub { margin-top: 72px; margin-bottom: 28px; }
.section-title { font-size: clamp(38px, 5vw, 52px); line-height: 1.05; }
.section-title--sm { font-size: clamp(28px, 3.5vw, 36px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }

/* Botones -------------------------------------------------------------- */
.btn,
.wp-block-button__link,
.wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 0 26px;
	border: 1.5px solid transparent; border-radius: 999px;
	font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--lg { min-height: 54px; padding: 0 30px; }
.btn--primary,
.wp-block-button__link,
.wpcf7-submit { background: var(--verde); color: var(--blanco); }
.btn--primary:hover,
.wp-block-button__link:hover,
.wpcf7-submit:hover { background: var(--verde-hover); color: var(--blanco); }
.btn--outline,
.is-style-outline .wp-block-button__link { background: transparent; border-color: var(--tinta); color: var(--tinta); }
.btn--outline:hover,
.is-style-outline .wp-block-button__link:hover { background: var(--tinta); color: var(--blanco); }
.btn--dark { background: var(--tinta); color: var(--blanco); }
.btn--dark:hover { background: #000; color: var(--blanco); }
.btn--light { background: var(--blanco); color: var(--verde-oscuro); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cabecera ------------------------------------------------------------- */
.site-header { position: relative; z-index: 50; background: var(--blanco); border-bottom: 1px solid var(--linea); }

.topbar { background: var(--verde-oscuro); color: var(--blanco); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; min-height: 40px; }
.topbar__text { margin: 0; padding-block: 6px; }
.topbar a { color: var(--blanco); font-weight: 600; text-decoration: none; }

.social { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: inherit; border-radius: 999px; }
.social a:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: 84px; padding-block: 12px; }
.site-logo { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.site-logo img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav .menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.main-nav .menu > li { position: relative; display: flex; align-items: center; }
.main-nav .menu > li > a {
	display: inline-flex; align-items: center; gap: 4px;
	min-height: 44px; padding: 0 14px; border-radius: 999px;
	color: var(--tinta); font-size: 15px; font-weight: 500; text-decoration: none;
}
.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current-menu-parent > a,
.main-nav .menu > li.current_page_item > a,
.main-nav .menu > li.current_page_ancestor > a { background: var(--verde-suave); color: var(--verde-oscuro); }
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a { font-weight: 600; }

.main-nav .sub-menu,
.main-nav .children {
	display: none;
	position: absolute; top: 100%; left: 0;
	min-width: 280px; margin: 0; padding: 8px;
	list-style: none;
	background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-sm);
	box-shadow: var(--sombra);
}
.main-nav .sub-menu .sub-menu,
.main-nav .children .children { position: static; display: block; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
.main-nav .sub-menu a,
.main-nav .children a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--tinta); font-size: 15px; line-height: 1.35; text-decoration: none; }
.main-nav .sub-menu .sub-menu a { color: var(--texto-suave); font-size: 14px; }
.main-nav .sub-menu a:hover,
.main-nav .children a:hover,
.main-nav .sub-menu .current-menu-item > a { background: var(--crema); color: var(--verde-oscuro); }

.submenu-toggle { display: none; }
.nav-toggle { display: none; }

@media (min-width: 1101px) {
	.main-nav .menu > li:hover > .sub-menu,
	.main-nav .menu > li:focus-within > .sub-menu,
	.main-nav .menu > li.is-open > .sub-menu,
	.main-nav .menu > li:hover > .children,
	.main-nav .menu > li:focus-within > .children { display: block; }
	.main-nav .menu > li > .submenu-toggle { display: none; }
}

@media (max-width: 1100px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; border: 1px solid var(--linea); border-radius: 999px;
		background: var(--blanco); color: var(--tinta); cursor: pointer;
	}
	.nav-toggle__close { display: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: inline-flex; }

	.main-nav {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 28px;
		background: var(--blanco); border-bottom: 1px solid var(--linea); box-shadow: var(--sombra);
		max-height: calc(100vh - 140px); overflow-y: auto;
	}
	.nav-open .main-nav { display: flex; }
	.main-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--linea); }
	.main-nav .menu > li > a { flex: 1; padding: 0 4px; min-height: 52px; border-radius: 0; font-size: 17px; }
	.main-nav .menu > li > a:hover { background: none; }
	.main-nav .menu > li > a .icon-chevron { display: none; }
	.submenu-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 48px; height: 48px; border: 0; background: none; color: var(--tinta); cursor: pointer;
	}
	.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.main-nav .sub-menu,
	.main-nav .children { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; }
	.main-nav .is-open > .sub-menu,
	.main-nav .is-open > .children { display: block; }
	.btn--cta { align-self: flex-start; }
}

/* Portada --------------------------------------------------------------- */
.home-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: clamp(56px, 8vw, 88px) clamp(64px, 9vw, 96px); }
.home-hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.home-hero__title { font-size: clamp(46px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.02em; }
.home-hero__title em { font-style: italic; color: var(--verde); }
.home-hero__subtitle { margin: 0; max-width: 560px; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--texto); }
.home-hero__subtitle strong { color: var(--tinta); }
.home-hero .btn-row { padding-top: 6px; }
.home-hero__media { flex: 1 1 420px; min-width: 0; position: relative; }
.home-hero__media img { width: 100%; height: clamp(320px, 40vw, 520px); object-fit: cover; border-radius: 28px; }
/* Vídeo de presentación */
.hero-video {
	position: relative; display: block; width: 100%; height: clamp(320px, 40vw, 520px);
	padding: 0; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer;
	background: var(--verde-noche); color: #fff; text-align: left; isolation: isolate;
	box-shadow: var(--sombra);
}
.hero-video__poster, .hero-video__preview {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0;
	transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.home-hero__media .hero-video img { height: 100%; border-radius: 0; }
.hero-video__shade {
	position: absolute; inset: 0; z-index: 1;
	background:
		linear-gradient(180deg, rgba(11,46,28,.55) 0%, rgba(11,46,28,0) 28%),
		linear-gradient(0deg, rgba(11,46,28,.82) 0%, rgba(11,46,28,.25) 42%, rgba(11,46,28,0) 62%);
}
.hero-video__chip {
	position: absolute; z-index: 2; top: 22px; left: 24px;
	display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px;
	border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.28);
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero-video__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--naranja); box-shadow: 0 0 0 4px rgba(242,145,32,.25); }
.hero-video__time { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.35); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hero-video__play {
	position: absolute; z-index: 2; top: 50%; left: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px;
	display: grid; place-items: center; border-radius: 50%;
	background: #fff; color: var(--verde);
	box-shadow: 0 18px 40px rgba(0,0,0,.28);
	transition: transform .35s cubic-bezier(.2,.7,.2,1), background .25s, color .25s;
}
.hero-video__play::before {
	content: ""; position: absolute; inset: -12px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.55); animation: ucin-pulse 2.4s ease-out infinite;
}
.hero-video__play svg { width: 34px; height: 34px; margin-left: 5px; }
.hero-video__title {
	position: absolute; z-index: 2; right: 28px; bottom: 26px; max-width: max(42%, calc(100% - 300px));
	font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; line-height: 1.12; text-align: right;
	text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hero-video:hover .hero-video__poster, .hero-video:hover .hero-video__preview { transform: scale(1.04); }
.hero-video:hover .hero-video__play, .hero-video:focus-visible .hero-video__play { transform: scale(1.08); background: var(--verde); color: #fff; }
.hero-video:focus-visible { outline: 3px solid var(--naranja); outline-offset: 4px; }
@keyframes ucin-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-video__play::before { animation: none; } .hero-video__poster, .hero-video__preview { transition: none; } }
@media (max-width: 600px) {
	.hero-video__play { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
	.hero-video__title { right: 18px; bottom: 76px; max-width: 70%; }
	.hero-video__chip { top: 14px; left: 14px; }
}

/* Ventana del vídeo */
.video-modal {
	width: min(1100px, 94vw); max-width: none; max-height: none; padding: 0; border: 0;
	background: transparent; overflow: visible;
}
.video-modal::backdrop { background: rgba(8,20,13,.88); backdrop-filter: blur(4px); }
.video-modal__box { position: relative; }
.video-modal__frame { aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.video-modal__frame iframe, .video-modal__frame video { display: block; width: 100%; height: 100%; border: 0; }
.video-modal__close {
	position: absolute; top: -54px; right: 0; width: 44px; height: 44px; border: 0; border-radius: 50%;
	background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
}
.video-modal__close:hover, .video-modal__close:focus-visible { background: var(--naranja); color: var(--tinta); }
html.has-modal { overflow: hidden; }

.home-hero__badge {
	position: absolute; z-index: 3; left: -20px; bottom: 36px; margin: 0;
	max-width: 260px; padding: 18px 24px;
	background: var(--naranja); color: var(--tinta); border-radius: 20px; box-shadow: var(--sombra);
	font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2;
}
@media (max-width: 600px) { .home-hero__badge { left: 12px; bottom: 12px; font-size: 18px; } }

.home-intro { background: var(--blanco); border-block: 1px solid var(--linea); padding-block: clamp(64px, 9vw, 96px); text-align: center; }
.home-intro__lead { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.4; }
.home-intro__lead span { color: var(--verde); }
.home-intro__text { margin: 28px auto 0; max-width: 720px; font-size: 18px; line-height: 1.65; color: var(--texto); }
.home-intro__text strong { color: var(--tinta); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.feature-card { display: flex; flex-direction: column; overflow: hidden; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); }
.feature-card__img { width: 100%; height: 240px; object-fit: cover; background: #EFE8D8; }
.feature-card__img.is-cutout { object-fit: contain; object-position: bottom; }
.feature-card__body { display: flex; align-items: baseline; gap: 18px; padding: 28px 28px 32px; }
.feature-card__num { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--naranja-texto); }
.feature-card__title { font-size: 26px; line-height: 1.2; }

.home-news { background: var(--verde-oscuro); color: var(--blanco); padding-block: clamp(64px, 9vw, 96px); }
.home-news .section-title,
.home-news .link-arrow { color: var(--blanco); }
.home-news__feed { background: var(--blanco); color: var(--tinta); border-radius: var(--radio); padding: clamp(16px, 3vw, 32px); }
.home-news__feed .card-grid { margin: 0; }
.notice-admin { margin: 0; padding: 16px; border: 1.5px dashed var(--linea-fuerte); border-radius: var(--radio-sm); color: var(--texto-suave); }

.home-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.cta-card { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(32px, 5vw, 48px); background: var(--blanco); border: 1px solid var(--linea); border-radius: 28px; }
.cta-card h2 { font-size: clamp(34px, 4vw, 44px); line-height: 1.05; }
.cta-card p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--texto); }
.cta-card .btn { margin-top: 12px; }
.cta-card--orange { background: var(--naranja); border-color: var(--naranja); }
.cta-card--orange p { color: var(--tinta); }

.home-reviews { padding-top: 0; }
.home-reviews .section-title { margin-bottom: 24px; }

/* Tarjetas de entradas ----------------------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; background: var(--blanco); border: 1px solid var(--linea); border-radius: 22px; }
.post-card__img img { width: 100%; height: 200px; object-fit: cover; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 26px; }
.post-card__date { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--naranja-texto); }
.post-card__title { font-size: 22px; line-height: 1.25; }
.post-card__title a { color: var(--tinta); text-decoration: none; }
.post-card__title a:hover { color: var(--verde); }
.post-card__excerpt { margin: 0; font-size: 15px; color: var(--texto); }

/* Vídeos ----------------------------------------------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; gap: 14px; }
.video-card__title { font-family: var(--sans); font-size: 17px; font-weight: 600; line-height: 1.35; }
.video-card__title a { color: inherit; text-decoration: none; }
.video-card__title a:hover { text-decoration: underline; }
.home-news .video-card__title a { color: var(--blanco); }

.video-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--tinta); }
.video-player iframe,
.video-player video,
.video-player .wp-video,
.video-player .mejs-container { position: absolute; inset: 0; width: 100% !important; height: 100% !important; border: 0; }
.video-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: var(--tinta); cursor: pointer; }
.video-player__poster img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity .2s ease; }
.video-player__poster:hover img { opacity: 1; }
.video-player__play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 72px; height: 72px; border-radius: 999px;
	background: var(--naranja); color: var(--tinta);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.video-player__play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-player--embed { aspect-ratio: auto; background: none; }
.single-ucin_video .wrap--video { margin-bottom: 48px; }

/* Páginas ---------------------------------------------------------------- */
.page-hero { padding-block: clamp(56px, 8vw, 88px) clamp(40px, 6vw, 64px); }
.page-hero__inner { display: flex; flex-direction: column; gap: 22px; }
.page-hero__title { max-width: 980px; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.02em; }
.page-hero__lead { margin: 0; max-width: 820px; font-size: clamp(19px, 2vw, 22px); line-height: 1.55; color: var(--texto); }

.has-hero-verde .page-hero { background: var(--verde-oscuro); color: var(--blanco); margin-bottom: clamp(48px, 7vw, 80px); }
.has-hero-verde .page-hero__title { color: var(--blanco); }
.has-hero-verde .page-hero__lead { color: #D6E6DB; }
.has-hero-verde .eyebrow { color: var(--naranja-claro); }
.has-hero-naranja .page-hero { background: var(--naranja); margin-bottom: clamp(48px, 7vw, 80px); }
.has-hero-naranja .page-hero__lead { color: var(--tinta); }
.has-hero-naranja .eyebrow { color: var(--tinta); }
.has-hero-naranja .eyebrow::before { background: var(--tinta); }

.page-body { padding-bottom: clamp(72px, 10vw, 112px); }
.page-body__image { margin: 0 auto 56px; }
.page-body__image img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 28px; }

/* Contenido del editor ----------------------------------------------------- */
.entry-content { font-size: 18px; line-height: 1.7; color: var(--texto); }
.entry-content > * { max-width: 820px; margin-block: 0 1.1em; }
.entry-content > .alignwide,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-group.alignwide,
.entry-content > .wpcf7,
.entry-content > .ucin-wide,
.entry-content > [class*="cff-"],
.entry-content > #cff { max-width: none; }
.entry-content > .alignfull { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
.entry-content h2 { font-size: clamp(30px, 3.6vw, 44px); margin-top: 1.6em; margin-bottom: 0.6em; color: var(--tinta); }
.entry-content h3 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.4em; margin-bottom: 0.5em; color: var(--tinta); }
.entry-content h4 { font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verde-oscuro); margin-top: 1.6em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content strong { color: var(--tinta); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.45em; }
.entry-content blockquote,
.entry-content .wp-block-quote { margin-inline: 0; padding: 6px 0 6px 28px; border-left: 3px solid var(--naranja); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--tinta); }
.entry-content blockquote p { margin: 0; }
.entry-content hr,
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--linea-fuerte); margin-block: 3em; max-width: none; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th,
.entry-content td { padding: 12px 14px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: top; }
.entry-content figure { margin-inline: 0; }
.entry-content .wp-block-image img { border-radius: 22px; }
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.entry-content .wp-block-embed iframe { width: 100%; border-radius: 20px; }
.entry-content .wp-block-embed.is-type-video .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.entry-content .wp-block-embed.is-type-video iframe { position: absolute; inset: 0; height: 100%; }

.entry-content details,
.entry-content .wp-block-details { border: 1px solid var(--linea); border-radius: var(--radio-sm); padding: 18px 22px; background: var(--blanco); }
.entry-content details summary { cursor: pointer; font-weight: 600; color: var(--tinta); min-height: 24px; }
.entry-content details[open] summary { margin-bottom: 12px; }
.entry-content details > :not(summary) { font-size: 16px; }

/* Bloques con clase: añade la clase en «Avanzado → Clases CSS adicionales». */
.ucin-card { padding: clamp(28px, 4vw, 40px); background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); }
.ucin-card > :last-child { margin-bottom: 0; }
.ucin-card--verde { background: var(--verde-oscuro); border-color: var(--verde-oscuro); color: #E7EFE9; }
.ucin-card--verde h2,
.ucin-card--verde h3,
.ucin-card--verde strong,
.ucin-card--verde a { color: var(--blanco); }
.ucin-card--naranja { background: var(--naranja); border-color: var(--naranja); color: var(--tinta); }
.ucin-card--suave { background: var(--naranja-suave); border-color: var(--naranja-suave); }

.ucin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.ucin-stats > * { margin: 0; padding: 32px; border-radius: var(--radio); background: var(--blanco); border: 1px solid var(--linea); font-size: 16px; line-height: 1.5; }
.ucin-stats > *:nth-child(1) { background: var(--verde-oscuro); border-color: var(--verde-oscuro); color: #D6E6DB; }
.ucin-stats > *:nth-child(2) { background: var(--naranja); border-color: var(--naranja); color: var(--tinta); }
.ucin-stats strong { display: block; margin-bottom: 12px; font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1; color: var(--verde); }
.ucin-stats > *:nth-child(1) strong { color: var(--blanco); }
.ucin-stats > *:nth-child(2) strong { color: var(--tinta); }

/* Lista numerada grande (Código Ético, pasos). */
ol.ucin-numbered { counter-reset: ucin; list-style: none; padding: 0; border-top: 1px solid var(--linea-fuerte); }
ol.ucin-numbered > li { counter-increment: ucin; position: relative; margin: 0; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--linea-fuerte); }
ol.ucin-numbered > li::before { content: counter(ucin, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--naranja-texto); }

/* Lista «PALABRA: texto» (Nuestros Principios). */
ul.ucin-keylist { list-style: none; padding: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; }
ul.ucin-keylist > li { margin: 0; padding: 18px 28px; border-bottom: 1px solid #F0EBE0; font-size: 17px; }
ul.ucin-keylist > li:last-child { border-bottom: 0; }
ul.ucin-keylist strong { display: inline-block; min-width: 190px; margin-right: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde-oscuro); }

.ucin-columns-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }

/* Formularios (Contact Form 7) -------------------------------------------- */
.wpcf7 { max-width: 920px !important; }
.wpcf7 form,
.wpcf7 .form { display: flex; flex-direction: column; gap: 18px; }
.wpcf7 h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 28px 0 0; }
.wpcf7 h2:first-child { margin-top: 0; }
.wpcf7 h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; margin: 8px 0 0; }
.wpcf7 p { margin: 0; }
.wpcf7 label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--tinta); }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
	width: 100%; min-height: 52px; padding: 12px 16px;
	font: 400 16px/1.4 var(--sans); color: var(--tinta);
	background: var(--blanco); border: 1px solid var(--linea-fuerte); border-radius: 12px;
	appearance: none;
}
.wpcf7 select {
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314201A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center;
}
.wpcf7 textarea { min-height: 140px; resize: vertical; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { outline: 2px solid var(--verde); outline-offset: 1px; border-color: var(--verde); }
.wpcf7 input[type="file"] { width: 100%; padding: 12px; font: 400 15px var(--sans); background: var(--blanco); border: 1px dashed var(--linea-fuerte); border-radius: 12px; }
.wpcf7 .wpcf7-list-item { display: block; margin: 0 0 8px; }
.wpcf7 .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 12px; margin: 0; font-weight: 500; font-size: 15px; line-height: 1.5; cursor: pointer; }
.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--verde); }
.wpcf7-radio .wpcf7-list-item label { padding: 16px 18px; background: var(--blanco); border: 1.5px solid var(--linea); border-radius: 14px; }
.wpcf7-radio .wpcf7-list-item label:has(input:checked) { border-color: var(--verde); background: var(--verde-suave); }
.wpcf7 .wpcf7-submit { align-self: flex-start; min-height: 56px; padding: 0 40px; font-size: 16px; text-transform: none; }
.wpcf7 .wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7-not-valid { border-color: #B3261E !important; }
.wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 14px; color: #B3261E; }
.wpcf7 form .wpcf7-response-output { margin: 8px 0 0; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--arena); font-size: 15px; }
.wpcf7 form.sent .wpcf7-response-output { background: var(--verde-suave); color: var(--verde-oscuro); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { background: #FCE8E6; color: #8C1D18; }
.wpcf7 .form__group { display: flex; flex-direction: column; }
.wpcf7-hidden-field { display: none !important; }

/* Textos largos dentro de formularios (Estatutos, protección de datos). */
.wpcf7 .form-lopd,
.wpcf7 .ucin-legal { max-height: 320px; overflow-y: auto; padding: 20px 22px; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-sm); font-size: 15px; line-height: 1.6; }
.wpcf7 .ucin-legal p + p { margin-top: 0.8em; }

/* Custom Facebook Feed: ajustes suaves para que case con el tema. */
#cff,
.cff-wrapper { font-family: var(--sans) !important; }
#cff .cff-item { border-color: var(--linea) !important; }

/* Pie --------------------------------------------------------------------- */
.site-footer { background: var(--verde-noche); color: #E7EFE9; font-size: 15px; }
.site-footer a { color: #E7EFE9; }
.site-footer a:hover { color: var(--blanco); }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 48px; padding-block: 72px 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 18px; }
.site-footer__brand .site-logo img { height: 40px; }
.site-footer__tagline { margin: 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--blanco); }
.site-footer .social a { border: 1px solid #3E5E4C; width: 44px; height: 44px; }
.site-footer__col { display: flex; flex-direction: column; gap: 6px; }
.site-footer__col p { margin: 0; }
.site-footer__heading { margin-bottom: 10px !important; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--naranja-claro); }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu a { display: inline-block; padding: 7px 0; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }
.site-footer__phone { font-family: var(--serif); font-size: 26px; text-decoration: none; color: var(--blanco) !important; }
.site-footer__address { margin-top: 8px !important; font-size: 14px; color: #B9C9BF; }
.site-footer__bottom { border-top: 1px solid #23452F; font-size: 13px; color: #B9C9BF; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 18px; }
.site-footer__bottom p { margin: 0; }
.legal-menu { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.legal-menu a { color: #B9C9BF; display: inline-block; padding: 6px 0; }

/* Paginación ------------------------------------------------------------ */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; color: var(--tinta); }
.pagination .page-numbers.current { background: var(--verde); border-color: var(--verde); color: var(--blanco); }

/* Movimiento reducido ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* Impresión -------------------------------------------------------------- */
@media print {
	.site-header, .site-footer, .nav-toggle { display: none; }
	body { background: #fff; }
}

/* Formulario de afiliación (marcado del formulario actual de CF7). */
.wpcf7 .doble-columna { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.wpcf7 .column-1,
.wpcf7 .column-2,
.wpcf7 .column-3 { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wpcf7 .fa-bloque { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 4vw, 36px); background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio); }
.wpcf7 .bloque-texto-legal { max-height: 340px; overflow-y: auto; padding: 20px 22px; background: var(--crema); border: 1px solid var(--linea); border-radius: var(--radio-sm); font-size: 15px; line-height: 1.6; }
.wpcf7 .bloque-texto-legal p + p,
.wpcf7 .bloque-texto-legal ul { margin-top: 0.8em; }
.wpcf7 .form-checkbox { margin-top: 4px; }

.entry-content .ucin-pdf { display: block; width: 100%; height: 750px; border: 1px solid var(--linea); border-radius: var(--radio-sm); background: var(--arena); }
@media (max-width: 700px) { .entry-content .ucin-pdf { height: 520px; } }
.entry-content .ucin-card { margin-bottom: 24px; }
.entry-content .ucin-card h3:first-child { margin-top: 0; }
.entry-content .ucin-stats { margin-block: 8px 40px; }

/* Lo imprescindible del CSS de Contact Form 7 (su hoja está desactivada). */
.wpcf7 .hidden-fields-container { display: contents; border: 0; margin: 0; padding: 0; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; word-wrap: normal !important; }
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output { display: none; }
.wpcf7-spinner { visibility: hidden; display: inline-block; width: 24px; height: 24px; border-radius: 100%; background-color: var(--texto-suave); opacity: .75; position: relative; vertical-align: middle; }
form.submitting .wpcf7-spinner { visibility: visible; }
.wpcf7-spinner::before { content: ""; position: absolute; background-color: var(--blanco); top: 4px; left: 4px; width: 6px; height: 6px; border: none; border-radius: 100%; transform-origin: 8px 8px; animation: ucin-spin 1000ms linear infinite; }
@keyframes ucin-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.wpcf7 [inert] { opacity: .5; }
ul.ucin-keylist > li { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 20px; align-items: baseline; }
ul.ucin-keylist strong { min-width: 0; margin-right: 0; }
@media (max-width: 600px) { ul.ucin-keylist > li { grid-template-columns: 1fr; row-gap: 4px; padding: 16px 20px; } }
.entry-content .notice-admin { margin-bottom: 20px; }

/* ==========================================================================
   Custom Facebook Feed como fichas (portada y página Noticias).
   En el plugin, usa el diseño «Lista» y desactiva la cabecera del feed.
   ========================================================================== */
.home-news__feed { background: transparent; padding: 0; color: var(--tinta); }
.ucin-fb #cff,
.home-news__feed #cff { background: transparent !important; padding: 0 !important; width: 100% !important; }

.home-news__feed #cff:not(.cff-masonry) .cff-posts-wrap,
.ucin-fb #cff:not(.cff-masonry) .cff-posts-wrap,
.page .entry-content #cff:not(.cff-masonry) .cff-posts-wrap {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 24px;
	align-items: stretch;
}
.home-news__feed #cff .cff-item,
.page .entry-content #cff .cff-item {
	display: flex !important; flex-direction: column;
	width: auto !important; float: none !important;
	margin: 0 !important; padding: 0 !important;
	background: var(--blanco) !important;
	border: 1px solid var(--linea) !important; border-radius: 22px;
	overflow: hidden; box-shadow: none !important;
	font-family: var(--sans) !important; color: var(--texto) !important;
}
.page .entry-content #cff.cff-masonry .cff-item { margin-bottom: 24px !important; }
.home-news__feed #cff .cff-item > *,
.page .entry-content #cff .cff-item > * { padding-inline: 22px; }
.home-news__feed #cff .cff-item > .cff-media-link,
.home-news__feed #cff .cff-item > .cff-photo,
.home-news__feed #cff .cff-item > .cff-html5-video,
.home-news__feed #cff .cff-item > .cff-iframe-wrap,
.page .entry-content #cff .cff-item > .cff-media-link,
.page .entry-content #cff .cff-item > .cff-photo,
.page .entry-content #cff .cff-item > .cff-html5-video,
.page .entry-content #cff .cff-item > .cff-iframe-wrap { order: -1; padding: 0; margin: 0 0 18px !important; }
.home-news__feed #cff .cff-item img,
.page .entry-content #cff .cff-item img { width: 100%; height: auto; }
.home-news__feed #cff .cff-media-link img,
.home-news__feed #cff .cff-photo img,
.page .entry-content #cff .cff-media-link img,
.page .entry-content #cff .cff-photo img { aspect-ratio: 4 / 3; object-fit: cover; max-height: 260px; }
.home-news__feed #cff .cff-author,
.page .entry-content #cff .cff-author { margin-top: 18px; }
.home-news__feed #cff .cff-text,
.home-news__feed #cff .cff-post-text,
.page .entry-content #cff .cff-text,
.page .entry-content #cff .cff-post-text { font-size: 15px !important; line-height: 1.55 !important; color: var(--texto) !important; }
.home-news__feed #cff .cff-date,
.page .entry-content #cff .cff-date { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--naranja-texto) !important; }
.home-news__feed #cff .cff-post-links,
.home-news__feed #cff .cff-meta-wrap,
.page .entry-content #cff .cff-post-links,
.page .entry-content #cff .cff-meta-wrap { margin-top: auto !important; padding-top: 14px; padding-bottom: 18px; border-top: 1px solid var(--linea); font-size: 13px; }
.home-news__feed #cff .cff-post-links a,
.page .entry-content #cff .cff-post-links a { color: var(--verde) !important; font-weight: 600; }
.home-news__feed #cff .cff-load-more,
.page .entry-content #cff .cff-load-more { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; min-height: 48px; margin-top: 28px !important; padding: 0 28px !important; border-radius: 999px !important; background: var(--verde) !important; color: var(--blanco) !important; font-weight: 700; }
.home-news__feed #cff .cff-likebox,
.home-news__feed #cff .cff-header { display: none !important; }

/* Noticias propias + feed de Facebook */
.home-news__manual { margin-bottom: 24px; }
.home-news__manual .post-card { color: var(--tinta); }
.ucin-news { margin-bottom: 56px; }
.ucin-news-title { font-size: clamp(28px, 3.4vw, 36px) !important; margin: 0 0 24px !important; }
.entry-content > .ucin-news,
.entry-content > p > .ucin-news { max-width: none; }
.entry-content .ucin-news .post-card__title { margin: 0; font-size: 22px; }
.entry-content .ucin-news .post-card__title a { text-decoration: none; }
.post-card.is-featured { border-color: var(--naranja); box-shadow: 0 0 0 2px var(--naranja) inset; }
.post-card__badge { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--naranja); color: var(--tinta); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

/* CFF 4.x: diseño «media / texto» apilado dentro de la ficha. */
.home-news__feed #cff .cff-item,
.page .entry-content #cff .cff-item { display: flex !important; flex-direction: column !important; }
.home-news__feed #cff .cff-media-wrap,
.page .entry-content #cff .cff-media-wrap {
	order: -1; float: none !important; width: 100% !important; max-width: none !important;
	margin: 0 0 18px !important; padding: 0 !important;
}
.home-news__feed #cff .cff-media-wrap img,
.page .entry-content #cff .cff-media-wrap img { width: 100% !important; height: 240px !important; object-fit: cover; }
.home-news__feed #cff .cff-text-wrapper,
.page .entry-content #cff .cff-text-wrapper {
	float: none !important; width: auto !important; max-width: none !important;
	margin: 0 !important; padding: 0 22px !important;
	display: flex; flex-direction: column; flex: 1;
}
.home-news__feed #cff .cff-author,
.page .entry-content #cff .cff-author { margin: 0 0 12px !important; }
.home-news__feed #cff .cff-author-img img,
.page .entry-content #cff .cff-author-img img { width: 36px !important; height: 36px !important; border-radius: 999px; }
.home-news__feed #cff .cff-post-text,
.page .entry-content #cff .cff-post-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.home-news__feed #cff .cff-meta-wrap,
.page .entry-content #cff .cff-meta-wrap { margin-top: auto !important; padding: 14px 0 18px !important; }
.home-news__feed #cff .cff-comments-box,
.page .entry-content #cff .cff-comments-box { display: none !important; }

/* Fichas de noticias propias: tamaño fijo aunque haya una sola. */
.ucin-news-grid,
.home-news__manual .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card__img { display: block; overflow: hidden; }
.post-card__img img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; transition: transform .3s ease; }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.entry-content .post-card__img img { border-radius: 0; margin: 0; }
.entry-content .post-card__excerpt { margin: 0; }
.wpcf7 .form-nota { margin: -4px 0 0; font-size: 14px; color: var(--gris, #5b6470); }
