/* ==========================================================================
   Proyectos europeos — Fundación Tres Culturas del Mediterráneo
   Versión 1.0.0

   Se carga solo en las landings de proyecto (tipo de contenido tc_proyecto_eu)
   y en las páginas que usan los shortcodes [tc_eu_proyectos] o [tc_eu_eventos].
   Todas las reglas cuelgan de body.tc-eu-page y usan el prefijo .tc-eu-
   para no interferir con Divi ni con el resto de la web.

   Índice
   0. Variables
   1. Utilidades compartidas (contenedor, rótulos, títulos, botones)
   2. Hero de proyecto
   3. Introducción
   4. Franja de logotipos
   5. Datos destacados
   6. Objetivos / líneas de actuación
   7. Actividades (shortcode [tc_eu_eventos])
   8. Resultados y recursos
   9. Socios
   10. CTA final
   11. Índice: hero y grid (shortcode [tc_eu_proyectos])
   12. Responsive (Divi: tablet ≤ 980 px, móvil ≤ 767 px)
   13. Accesibilidad y movimiento reducido
   ========================================================================== */

/* 0. Variables ----------------------------------------------------------- */
body.tc-eu-page {
	--tc-eu-blue: #004f9a;
	--tc-eu-blue-dark: #00386e;
	--tc-eu-ink: #454545;
	--tc-eu-ink-strong: #1f2933;
	--tc-eu-muted: #6b6b6b;
	--tc-eu-line: #e3e3e3;
	--tc-eu-paper: #f7f5f0;
	--tc-eu-yellow: #f8e08e;
	--tc-eu-green: #91d6ac;
	--tc-eu-accent: var(--tc-eu-blue);
	--tc-eu-accent-soft: #e5edf5;
	/* Tríada de la Fundación (mosaico de estrellas): terracota, amarillo y verde azulado. */
	--tc-eu-triad: linear-gradient(90deg, #e5a98c 0 33.33%, #f8e08e 33.33% 66.66%, #7fbfb6 66.66% 100%);
	--tc-eu-radius: 3px;
	--tc-eu-radius-lg: 6px;
	--tc-eu-gap: clamp(20px, 2.4vw, 32px);
	--tc-eu-section-y: clamp(56px, 7vw, 104px);
	--tc-eu-font-body: "Fira Sans", Helvetica, Arial, sans-serif;
	--tc-eu-font-display: "Zilla Slab", Georgia, "Times New Roman", serif;
	/* Mosaico de estrellas de ocho puntas (motivo gráfico de la Fundación). */
	--tc-eu-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.5'%3E%3Crect x='30' y='30' width='36' height='36'/%3E%3Crect x='30' y='30' width='36' height='36' transform='rotate(45 48 48)'/%3E%3C/g%3E%3C/svg%3E");
}

@supports (color: color-mix(in srgb, red 50%, white)) {
	body.tc-eu-page {
		--tc-eu-accent-soft: color-mix(in srgb, var(--tc-eu-accent) 14%, #ffffff);
	}
}

/* 1. Utilidades compartidas ---------------------------------------------- */

/* Filas Divi con clase tc-eu-wrap: ancho editorial homogéneo. */
body.tc-eu-page .tc-eu-wrap.et_pb_row {
	width: 88%;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 0;
	padding-bottom: 0;
}

body.tc-eu-page .tc-eu-section.et_pb_section {
	padding-top: var(--tc-eu-section-y);
	padding-bottom: var(--tc-eu-section-y);
	background-color: #ffffff;
}

body.tc-eu-page .tc-eu-section--paper.et_pb_section {
	background-color: var(--tc-eu-paper);
}

/* Rótulo superior: texto corto en mayúsculas con barra de acento. */
body.tc-eu-page .tc-eu-eyebrow p,
body.tc-eu-page p.tc-eu-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--tc-eu-font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--tc-eu-blue);
}

body.tc-eu-page .tc-eu-eyebrow p::before,
body.tc-eu-page p.tc-eu-eyebrow::before {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	border-radius: 2px;
	background: var(--tc-eu-accent);
}

/* Títulos de sección (H2) con el patrón de la web: texto ligero + palabra destacada. */
body.tc-eu-page .tc-eu-title .et_pb_module_header,
body.tc-eu-page .tc-eu-title h2 {
	margin: 0;
	padding: 0;
	font-family: var(--tc-eu-font-display);
	font-size: clamp(30px, 3.4vw, 46px);
	font-weight: 400;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--tc-eu-ink-strong);
	text-wrap: balance;
}

body.tc-eu-page .tc-eu-title strong {
	font-weight: 600;
	color: var(--tc-eu-blue);
}

body.tc-eu-page .tc-eu-title.et_pb_module {
	margin-bottom: 20px;
}

body.tc-eu-page .tc-eu-lead p {
	font-family: var(--tc-eu-font-body);
	font-size: clamp(17px, 1.4vw, 20px);
	font-weight: 300;
	line-height: 1.6;
	color: var(--tc-eu-ink);
	max-width: 62ch;
}

/* Botones (módulo Botón de Divi: la clase tc-eu-btn se aplica al enlace <a class="et_pb_button">). */
body.tc-eu-page .et_pb_button_module_wrapper:has(> .tc-eu-btn) {
	display: inline-block;
	margin: 0 12px 12px 0;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px !important;
	border: 2px solid var(--tc-eu-blue) !important;
	border-radius: var(--tc-eu-radius) !important;
	background: var(--tc-eu-blue) !important;
	color: #ffffff !important;
	font-family: var(--tc-eu-font-body) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn::after,
body.tc-eu-page a.et_pb_button.tc-eu-btn::before {
	content: none !important;
	display: none !important;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn:hover,
body.tc-eu-page a.et_pb_button.tc-eu-btn:focus-visible {
	background: var(--tc-eu-blue-dark) !important;
	border-color: var(--tc-eu-blue-dark) !important;
	color: #ffffff !important;
}

/* Variante contorno sobre fondo claro. */
body.tc-eu-page a.et_pb_button.tc-eu-btn--ghost {
	background: transparent !important;
	color: var(--tc-eu-blue) !important;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn--ghost:hover,
body.tc-eu-page a.et_pb_button.tc-eu-btn--ghost:focus-visible {
	background: var(--tc-eu-blue) !important;
	color: #ffffff !important;
}

/* Variantes sobre fondo oscuro (hero, CTA). */
body.tc-eu-page a.et_pb_button.tc-eu-btn--light {
	background: #ffffff !important;
	border-color: #ffffff !important;
	color: var(--tc-eu-blue) !important;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn--light:hover,
body.tc-eu-page a.et_pb_button.tc-eu-btn--light:focus-visible {
	background: transparent !important;
	border-color: #ffffff !important;
	color: #ffffff !important;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn--outline-light {
	background: transparent !important;
	border-color: rgba(255, 255, 255, 0.7) !important;
	color: #ffffff !important;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn--outline-light:hover,
body.tc-eu-page a.et_pb_button.tc-eu-btn--outline-light:focus-visible {
	background: #ffffff !important;
	border-color: #ffffff !important;
	color: var(--tc-eu-blue) !important;
}

body.tc-eu-page a.et_pb_button.tc-eu-btn:focus-visible {
	outline: 3px solid var(--tc-eu-yellow);
	outline-offset: 3px;
}

body.tc-eu-page .tc-eu-link {
	font-weight: 500;
	color: var(--tc-eu-blue);
	text-decoration: underline;
	text-decoration-color: var(--tc-eu-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

body.tc-eu-page .tc-eu-link:hover {
	color: var(--tc-eu-blue-dark);
}

/* Columnas Divi convertidas en grid: añadir o quitar módulos no rompe el diseño. */
body.tc-eu-page .tc-eu-grid.et_pb_column {
	display: grid;
	gap: var(--tc-eu-gap);
	align-items: stretch;
}

body.tc-eu-page .tc-eu-grid.et_pb_column > .et_pb_module {
	margin: 0 !important;
	width: auto;
}

body.tc-eu-page .tc-eu-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.tc-eu-page .tc-eu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.tc-eu-page .tc-eu-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.tc-eu-page .tc-eu-grid--auto { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Filas o secciones que se ocultan solas cuando el shortcode no devuelve eventos.
   El aviso para editores (.tc-eu-notice) las mantiene visibles con sesión iniciada. */
body.tc-eu-page .tc-eu-autohide:not(:has(.tc-eu-ev)):not(:has(.tc-eu-notice)) {
	display: none !important;
}

/* Aviso para editores (solo visible con sesión iniciada). */
body.tc-eu-page .tc-eu-notice {
	padding: 14px 18px;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	font-size: 14px;
	color: #3c434a;
}

/* 2. Hero de proyecto ----------------------------------------------------- */
body.tc-eu-page .tc-eu-hero.et_pb_section {
	position: relative;
	overflow: hidden;
	padding-top: clamp(64px, 8vw, 120px);
	padding-bottom: clamp(64px, 8vw, 120px);
	background-color: var(--tc-eu-blue);
	background-image: var(--tc-eu-pattern);
	background-size: 96px 96px;
	color: #ffffff;
}

/* Tríada de colores de la Fundación en la base del hero. */
body.tc-eu-page .tc-eu-hero.et_pb_section::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 8px;
	background: var(--tc-eu-triad);
}

body.tc-eu-page .tc-eu-hero .et_pb_row {
	position: relative;
	z-index: 1;
}

body.tc-eu-page .tc-eu-hero__content.et_pb_column {
	align-self: center;
}

/* Separación entre filas consecutivas de una misma sección (p. ej. próximas / anteriores). */
body.tc-eu-page .tc-eu-row--spaced.et_pb_row {
	margin-top: clamp(48px, 6vw, 88px);
}

body.tc-eu-page .tc-eu-hero__logo.et_pb_image {
	margin-bottom: 28px !important;
	text-align: left;
}

body.tc-eu-page .tc-eu-hero__logo img {
	width: auto;
	max-width: 220px;
	max-height: 96px;
	object-fit: contain;
}

body.tc-eu-page .tc-eu-hero__kicker p {
	margin: 0 0 18px;
	padding: 0;
	font-family: var(--tc-eu-font-body);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.5;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	max-width: 52ch;
}

body.tc-eu-page .tc-eu-hero__title .et_pb_module_header,
body.tc-eu-page .tc-eu-hero__title h1 {
	margin: 0;
	padding: 0;
	font-family: var(--tc-eu-font-display);
	font-size: clamp(40px, 5.6vw, 76px);
	font-weight: 500;
	line-height: 1.02;
	letter-spacing: -0.015em;
	color: #ffffff;
	text-wrap: balance;
}

body.tc-eu-page .tc-eu-hero__title .et_pb_module_header::after {
	content: "";
	display: block;
	width: 72px;
	height: 6px;
	margin-top: 22px;
	border-radius: 3px;
	background: var(--tc-eu-yellow);
}

body.tc-eu-page .tc-eu-hero__title.et_pb_module {
	margin-bottom: 24px !important;
}

body.tc-eu-page .tc-eu-hero__lead p {
	margin: 0 0 32px;
	padding: 0;
	font-family: var(--tc-eu-font-body);
	font-size: clamp(17px, 1.5vw, 21px);
	font-weight: 300;
	line-height: 1.55;
	color: #ffffff;
	max-width: 46ch;
}

body.tc-eu-page .tc-eu-hero__media.et_pb_image {
	margin: 0 !important;
}

body.tc-eu-page .tc-eu-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 640px;
	object-fit: contain;
	background: #ffffff;
	border-radius: var(--tc-eu-radius-lg);
	box-shadow: 0 24px 48px -24px rgba(0, 20, 45, 0.55);
}

body.tc-eu-page .tc-eu-hero__media .et_pb_image_wrap {
	position: relative;
	display: block;
}

/* Marco desplazado con el color del proyecto. */
body.tc-eu-page .tc-eu-hero__media .et_pb_image_wrap::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	z-index: -1;
	border: 2px solid var(--tc-eu-yellow);
	border-radius: var(--tc-eu-radius-lg);
}

/* 3. Introducción --------------------------------------------------------- */
body.tc-eu-page .tc-eu-intro__text p {
	font-family: var(--tc-eu-font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.75;
	color: var(--tc-eu-ink);
	max-width: 68ch;
}

body.tc-eu-page .tc-eu-intro__text p:first-child {
	font-size: clamp(19px, 1.6vw, 22px);
	font-weight: 300;
	line-height: 1.6;
	color: var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-intro__aside.et_pb_column {
	position: relative;
}

@media (min-width: 981px) {
	body.tc-eu-page .tc-eu-intro__aside.et_pb_column {
		position: sticky;
		top: 120px;
		align-self: flex-start;
	}
}

/* 4. Franja de logotipos -------------------------------------------------- */
body.tc-eu-page .tc-eu-logos.et_pb_section {
	padding-top: 36px;
	padding-bottom: 36px;
	border-top: 1px solid var(--tc-eu-line);
	border-bottom: 1px solid var(--tc-eu-line);
	background: #ffffff;
}

body.tc-eu-page .tc-eu-logos__label p {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc-eu-muted);
	text-align: center;
}

body.tc-eu-page .tc-eu-logos__strip.et_pb_image {
	margin: 0 auto !important;
	text-align: center;
}

body.tc-eu-page .tc-eu-logos__strip img {
	width: 100%;
	max-width: 1100px;
	height: auto;
}

body.tc-eu-page .tc-eu-logos__grid.et_pb_column {
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	align-items: center;
	justify-items: center;
}

body.tc-eu-page .tc-eu-logos__grid img {
	max-height: 64px;
	width: auto;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.85;
	transition: filter 0.2s ease, opacity 0.2s ease;
}

body.tc-eu-page .tc-eu-logos__grid a:hover img,
body.tc-eu-page .tc-eu-logos__grid a:focus-visible img {
	filter: none;
	opacity: 1;
}

/* 5. Datos destacados ----------------------------------------------------- */
body.tc-eu-page .tc-eu-facts__grid.et_pb_column {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	border-top: 2px solid var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-fact.et_pb_text {
	padding: 26px 24px 28px 0;
	border-bottom: 1px solid var(--tc-eu-line);
}

body.tc-eu-page .tc-eu-fact p {
	margin: 0;
	padding: 0;
}

body.tc-eu-page .tc-eu-fact p:first-child {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--tc-eu-muted);
}

body.tc-eu-page .tc-eu-fact p:last-child,
body.tc-eu-page .tc-eu-fact strong {
	font-family: var(--tc-eu-font-display);
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 500;
	line-height: 1.2;
	color: var(--tc-eu-ink-strong);
}

/* 6. Objetivos / líneas de actuación ------------------------------------- */
body.tc-eu-page .tc-eu-goals__grid.et_pb_column {
	counter-reset: tc-eu-goal;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

body.tc-eu-page .tc-eu-card.et_pb_text {
	position: relative;
	height: 100%;
	padding: 32px 28px 30px;
	border: 1px solid var(--tc-eu-line);
	border-top: 4px solid var(--tc-eu-accent);
	border-radius: var(--tc-eu-radius);
	background: #ffffff;
	counter-increment: tc-eu-goal;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.tc-eu-page .tc-eu-card.et_pb_text::before {
	content: counter(tc-eu-goal, decimal-leading-zero);
	display: block;
	margin-bottom: 18px;
	font-family: var(--tc-eu-font-display);
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
	color: var(--tc-eu-accent);
}

body.tc-eu-page .tc-eu-card h3 {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--tc-eu-font-body);
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-card p {
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--tc-eu-ink);
}

@media (hover: hover) {
	body.tc-eu-page .tc-eu-card.et_pb_text:hover {
		transform: translateY(-3px);
		box-shadow: 0 16px 32px -20px rgba(0, 40, 80, 0.35);
	}
}

/* 7. Actividades ([tc_eu_eventos]) --------------------------------------- */
body.tc-eu-page .tc-eu-events {
	margin: 0 0 8px;
}

body.tc-eu-page .tc-eu-evgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--tc-eu-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tc-eu-page .tc-eu-ev {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tc-eu-page .tc-eu-ev__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
}

body.tc-eu-page .tc-eu-ev__media {
	display: block;
	overflow: hidden;
	border-radius: var(--tc-eu-radius);
	background: var(--tc-eu-accent-soft);
}

body.tc-eu-page .tc-eu-ev__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s ease;
}

body.tc-eu-page .tc-eu-ev__img--empty {
	background: var(--tc-eu-blue) var(--tc-eu-pattern);
	background-size: 64px 64px;
}

body.tc-eu-page .tc-eu-ev__badge {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	padding: 10px 10px 8px;
	border-radius: var(--tc-eu-radius) 0 var(--tc-eu-radius) 0;
	background: var(--tc-eu-yellow);
	color: var(--tc-eu-ink-strong);
	line-height: 1;
	text-align: center;
}

body.tc-eu-page .tc-eu-ev__month {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.tc-eu-page .tc-eu-ev__day {
	margin-top: 4px;
	font-size: 26px;
	font-weight: 700;
}

body.tc-eu-page .tc-eu-ev__body {
	padding: 18px 0 0;
}

body.tc-eu-page .tc-eu-ev__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--tc-eu-font-body);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-ev__title a {
	color: inherit;
	text-decoration: none;
	background-image: linear-gradient(var(--tc-eu-accent), var(--tc-eu-accent));
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size 0.25s ease;
}

/* Toda la tarjeta es clicable a través del enlace del título. */
body.tc-eu-page .tc-eu-ev__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

body.tc-eu-page .tc-eu-ev__inner:hover .tc-eu-ev__title a,
body.tc-eu-page .tc-eu-ev__title a:focus-visible {
	background-size: 100% 2px;
}

body.tc-eu-page .tc-eu-ev__inner:hover .tc-eu-ev__img {
	transform: scale(1.03);
}

body.tc-eu-page .tc-eu-ev__meta {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--tc-eu-muted);
}

/* Eventos pasados: lista compacta con miniatura. */
body.tc-eu-page .tc-eu-events--pasados .tc-eu-evgrid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--tc-eu-gap);
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__inner {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	padding: 18px 0;
	border-bottom: 1px solid var(--tc-eu-line);
	background: transparent;
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__img {
	aspect-ratio: 1 / 1;
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__badge {
	top: 18px;
	min-width: 44px;
	padding: 6px 6px 5px;
	background: var(--tc-eu-accent-soft);
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__day {
	font-size: 18px;
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__month {
	font-size: 10px;
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__body {
	padding: 0;
}

body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__title {
	font-size: 16px;
}

body.tc-eu-page .tc-eu-events__empty {
	margin: 0;
	padding: 26px 28px;
	border: 1px dashed #c9c9c9;
	border-radius: var(--tc-eu-radius);
	font-size: 16px;
	color: var(--tc-eu-muted);
}

body.tc-eu-page .tc-eu-events__more {
	margin: 28px 0 0;
}

/* 8. Resultados y recursos ------------------------------------------------ */
body.tc-eu-page .tc-eu-resources__grid.et_pb_column {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

body.tc-eu-page .tc-eu-resource.et_pb_text {
	position: relative;
	padding: 24px 26px;
	border-radius: var(--tc-eu-radius);
	background: #ffffff;
	box-shadow: inset 0 0 0 1px var(--tc-eu-line);
	transition: box-shadow 0.2s ease;
}

body.tc-eu-page .tc-eu-resource p {
	margin: 0;
	padding: 0;
}

body.tc-eu-page .tc-eu-resource p:first-child {
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc-eu-muted);
}

body.tc-eu-page .tc-eu-resource h3 {
	margin: 0 0 6px;
	padding: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-resource h3 a {
	color: inherit;
	text-decoration: none;
}

body.tc-eu-page .tc-eu-resource h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

body.tc-eu-page .tc-eu-resource:hover,
body.tc-eu-page .tc-eu-resource:focus-within {
	box-shadow: inset 0 0 0 2px var(--tc-eu-accent);
}

body.tc-eu-page .tc-eu-gallery.et_pb_gallery {
	margin-bottom: 40px !important;
}

/* 9. Socios --------------------------------------------------------------- */
body.tc-eu-page .tc-eu-partners__grid.et_pb_column {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

body.tc-eu-page .tc-eu-partner.et_pb_text {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 26px 24px;
	border-radius: var(--tc-eu-radius);
	background: #ffffff;
	box-shadow: inset 0 0 0 1px var(--tc-eu-line);
}

body.tc-eu-page .tc-eu-partner .et_pb_text_inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

body.tc-eu-page .tc-eu-partner img {
	display: block;
	max-height: 56px;
	width: auto;
	margin: 0 0 18px;
	object-fit: contain;
}

body.tc-eu-page .tc-eu-partner p {
	margin: 0;
	padding: 0;
}

body.tc-eu-page .tc-eu-partner p:first-child {
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc-eu-muted);
}

body.tc-eu-page .tc-eu-partner h3 {
	margin: 0 0 8px;
	padding: 0;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-partner h3 a {
	color: inherit;
	text-decoration: none;
}

body.tc-eu-page .tc-eu-partner h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

body.tc-eu-page .tc-eu-partner p:last-child {
	margin-top: auto;
	padding-top: 12px;
	font-size: 14px;
	color: var(--tc-eu-muted);
}

body.tc-eu-page .tc-eu-partner--lead.et_pb_text {
	box-shadow: inset 0 0 0 2px var(--tc-eu-accent);
}

body.tc-eu-page .tc-eu-partner:hover,
body.tc-eu-page .tc-eu-partner:focus-within {
	box-shadow: inset 0 0 0 2px var(--tc-eu-blue);
}

/* 10. CTA final ----------------------------------------------------------- */
body.tc-eu-page .tc-eu-cta.et_pb_section {
	position: relative;
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
	background-color: var(--tc-eu-blue);
	background-image: var(--tc-eu-pattern);
	background-size: 96px 96px;
	color: #ffffff;
}

body.tc-eu-page .tc-eu-cta.et_pb_section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 8px;
	background: var(--tc-eu-triad);
}

body.tc-eu-page .tc-eu-cta .tc-eu-title .et_pb_module_header,
body.tc-eu-page .tc-eu-cta .tc-eu-title h2 {
	color: #ffffff;
}

body.tc-eu-page .tc-eu-cta .tc-eu-title strong {
	color: #ffffff;
	box-shadow: inset 0 -0.18em 0 var(--tc-eu-yellow);
}

body.tc-eu-page .tc-eu-cta .tc-eu-lead p,
body.tc-eu-page .tc-eu-cta p {
	color: rgba(255, 255, 255, 0.92);
}

body.tc-eu-page .tc-eu-cta a:not(.et_pb_button) {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.tc-eu-page .tc-eu-cta__actions.et_pb_column {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 12px;
}

body.tc-eu-page .tc-eu-cta__actions a.et_pb_button.tc-eu-btn {
	width: 100%;
	justify-content: center;
}

body.tc-eu-page .tc-eu-cta__actions.et_pb_column > .et_pb_module,
body.tc-eu-page .tc-eu-cta__actions.et_pb_column > .et_pb_button_module_wrapper {
	margin: 0 !important;
}

/* 11. Índice de proyectos ------------------------------------------------- */
body.tc-eu-page .tc-eu-index-hero.et_pb_section {
	position: relative;
	padding-top: clamp(72px, 9vw, 132px);
	padding-bottom: clamp(64px, 8vw, 112px);
	background-color: var(--tc-eu-blue);
	background-image: var(--tc-eu-pattern);
	background-size: 96px 96px;
	color: #ffffff;
}

/* Tríada de colores de la Fundación en la base del hero. */
body.tc-eu-page .tc-eu-index-hero.et_pb_section::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 8px;
	background: var(--tc-eu-triad);
}

body.tc-eu-page .tc-eu-index-hero .tc-eu-hero__title .et_pb_module_header::after {
	background: var(--tc-eu-yellow);
}

body.tc-eu-page .tc-eu-pgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 2.6vw, 36px);
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tc-eu-page .tc-eu-pcard {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tc-eu-page .tc-eu-pcard__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--tc-eu-radius-lg);
	background: #ffffff;
	box-shadow: 0 0 0 1px var(--tc-eu-line);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.tc-eu-page .tc-eu-pcard__media {
	position: relative;
	overflow: hidden;
	background: var(--tc-eu-accent);
}

body.tc-eu-page .tc-eu-pcard__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease;
}

body.tc-eu-page .tc-eu-pcard__img--pattern {
	background-color: var(--tc-eu-accent);
	background-image: var(--tc-eu-pattern);
	background-size: 72px 72px;
}

body.tc-eu-page .tc-eu-pcard__logo {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 60%;
	height: 64px;
	padding: 10px 14px;
	border-radius: var(--tc-eu-radius);
	background: #ffffff;
	box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.35);
}

body.tc-eu-page .tc-eu-pcard__logo img {
	width: auto;
	max-width: 100%;
	max-height: 44px;
	object-fit: contain;
}

body.tc-eu-page .tc-eu-pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px 26px 26px;
	border-top: 4px solid var(--tc-eu-accent);
}

body.tc-eu-page .tc-eu-pcard__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tc-eu-muted);
}

body.tc-eu-page .tc-eu-pcard--live .tc-eu-pcard__status {
	color: #1c6b3c;
}

body.tc-eu-page .tc-eu-pcard--live .tc-eu-pcard__status::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2e9e5b;
	box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.18);
}

body.tc-eu-page .tc-eu-pcard__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--tc-eu-font-display);
	font-size: clamp(24px, 2vw, 30px);
	font-weight: 500;
	line-height: 1.1;
	color: var(--tc-eu-ink-strong);
}

body.tc-eu-page .tc-eu-pcard__link {
	color: inherit;
	text-decoration: none;
}

body.tc-eu-page .tc-eu-pcard__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

body.tc-eu-page .tc-eu-pcard__link:focus-visible {
	outline: none;
}

body.tc-eu-page .tc-eu-pcard__inner:focus-within {
	box-shadow: 0 0 0 3px var(--tc-eu-blue);
}

body.tc-eu-page .tc-eu-pcard__program {
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--tc-eu-blue);
}

body.tc-eu-page .tc-eu-pcard__excerpt {
	margin: 0 0 20px;
	padding: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--tc-eu-ink);
}

body.tc-eu-page .tc-eu-pcard__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	font-size: 15px;
	font-weight: 600;
	color: var(--tc-eu-blue);
}

body.tc-eu-page .tc-eu-pcard__cta::after {
	content: "→";
	transition: transform 0.2s ease;
}

@media (hover: hover) {
	body.tc-eu-page .tc-eu-pcard__inner:hover {
		transform: translateY(-4px);
		box-shadow: 0 0 0 1px var(--tc-eu-line), 0 22px 40px -24px rgba(0, 40, 80, 0.45);
	}

	body.tc-eu-page .tc-eu-pcard__inner:hover .tc-eu-pcard__img {
		transform: scale(1.04);
	}

	body.tc-eu-page .tc-eu-pcard__inner:hover .tc-eu-pcard__cta::after {
		transform: translateX(4px);
	}
}

/* 12. Responsive ---------------------------------------------------------- */

/* Tablet (Divi: 768–980 px). */
@media (max-width: 980px) {
	body.tc-eu-page .tc-eu-wrap.et_pb_row {
		width: 90%;
	}

	body.tc-eu-page .tc-eu-hero__media.et_pb_image {
		max-width: 360px;
		margin-top: 40px !important;
	}

	body.tc-eu-page .tc-eu-facts__grid.et_pb_column,
	body.tc-eu-page .tc-eu-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.tc-eu-page .tc-eu-grid--3,
	body.tc-eu-page .tc-eu-evgrid,
	body.tc-eu-page .tc-eu-pgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.tc-eu-page .tc-eu-events--pasados .tc-eu-evgrid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tc-eu-page .tc-eu-cta__actions.et_pb_column {
		max-width: 420px;
		margin-top: 24px;
	}

	body.tc-eu-page .tc-eu-intro__aside.et_pb_column {
		margin-bottom: 8px;
	}
}

/* Móvil (≤ 767 px). */
@media (max-width: 767px) {
	body.tc-eu-page .tc-eu-wrap.et_pb_row {
		width: calc(100% - 32px);
	}

	body.tc-eu-page .tc-eu-hero.et_pb_section {
		padding-top: 56px;
		padding-bottom: 64px;
	}

	body.tc-eu-page .tc-eu-hero__logo img {
		max-width: 160px;
		max-height: 72px;
	}

	body.tc-eu-page .tc-eu-hero__media .et_pb_image_wrap::before {
		inset: 10px -8px -10px 8px;
	}


	body.tc-eu-page .et_pb_button_module_wrapper:has(> .tc-eu-btn) {
		display: block;
		margin-right: 0;
	}

	body.tc-eu-page a.et_pb_button.tc-eu-btn {
		width: 100%;
		justify-content: center;
	}

	body.tc-eu-page .tc-eu-grid--2,
	body.tc-eu-page .tc-eu-grid--3,
	body.tc-eu-page .tc-eu-grid--4,
	body.tc-eu-page .tc-eu-evgrid,
	body.tc-eu-page .tc-eu-pgrid {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tc-eu-page .tc-eu-facts__grid.et_pb_column {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.tc-eu-page .tc-eu-fact.et_pb_text {
		padding: 20px 14px 20px 0;
	}

	body.tc-eu-page .tc-eu-card.et_pb_text {
		padding: 26px 22px 24px;
	}

	body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__inner {
		grid-template-columns: 84px minmax(0, 1fr);
		gap: 14px;
	}

	body.tc-eu-page .tc-eu-events--pasados .tc-eu-ev__badge {
		display: none;
	}

	body.tc-eu-page .tc-eu-logos__strip img {
		max-width: none;
		width: 100%;
	}

	body.tc-eu-page .tc-eu-cta__actions.et_pb_column {
		max-width: none;
	}
}

/* Móvil pequeño (≤ 400 px). */
@media (max-width: 400px) {
	body.tc-eu-page .tc-eu-facts__grid.et_pb_column {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* 13. Accesibilidad y movimiento reducido -------------------------------- */
body.tc-eu-page .tc-eu-ev__title a:focus-visible,
body.tc-eu-page .tc-eu-partner h3 a:focus-visible,
body.tc-eu-page .tc-eu-resource h3 a:focus-visible,
body.tc-eu-page .tc-eu-link:focus-visible {
	outline: 3px solid var(--tc-eu-blue);
	outline-offset: 3px;
	border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
	body.tc-eu-page .tc-eu-card.et_pb_text,
	body.tc-eu-page .tc-eu-pcard__inner,
	body.tc-eu-page .tc-eu-pcard__img,
	body.tc-eu-page .tc-eu-ev__img,
	body.tc-eu-page .tc-eu-ev__title a,
	body.tc-eu-page .tc-eu-pcard__cta::after {
		transition: none !important;
	}

	body.tc-eu-page .tc-eu-card.et_pb_text:hover,
	body.tc-eu-page .tc-eu-pcard__inner:hover,
	body.tc-eu-page .tc-eu-pcard__inner:hover .tc-eu-pcard__img,
	body.tc-eu-page .tc-eu-ev__inner:hover .tc-eu-ev__img {
		transform: none !important;
	}
}
