/*
Theme Name: Tejiendo Comunidad Renovado
Theme URI: https://tejiendocomunidad.com.ar/
Author: Amigos de Tejiendo Comunidad
Description: Tema de bloques renovado para la Asociación Civil Tejiendo Comunidad en Morón. Identidad multicolor, plantillas específicas para cada página y diseño adaptable a móviles.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tejiendo-comunidad-renovado
*/

/* ---------- Encabezado ---------- */
.tc-cabecera-fija {
	position: sticky;
	top: var(--wp-admin--admin-bar--position-offset, 0px);
	z-index: 50;
}
.tc-cabecera {
	border-bottom: 1px solid var(--wp--preset--color--linea);
	/* Sin backdrop-filter: rompería el menú de celular (que es position: fixed). */
}
.tc-marca { min-width: 0; }
.tc-emblema { margin: 0 !important; flex: none; }
.tc-emblema img { display: block; width: 84px; height: auto; }
.tc-marca-texto {
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 800;
	font-size: 0.95rem;
	line-height: 1.05;
	margin: 0;
}
.tc-marca-texto a { color: var(--wp--preset--color--tinta); text-decoration: none; }
.tc-marca-texto strong { color: var(--wp--preset--color--rojo); font-weight: 800; }
.tc-marca-texto em { font-style: normal; font-weight: 600; font-size: 0.62rem; letter-spacing: 0.22em; }

.tc-nav .wp-block-navigation-item__content { padding: 0.5em 0.8em; border-radius: 999px; }
.tc-nav .wp-block-navigation-item__content:hover,
.tc-nav .current-menu-item > .wp-block-navigation-item__content { background: var(--wp--preset--color--sol-tenue); }
.tc-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--linea) !important;
	border-radius: 14px;
	padding: 6px;
	box-shadow: 0 12px 32px rgba(29, 27, 41, 0.12);
	min-width: 220px !important;
}
.tc-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border-radius: 10px; padding: 0.7em 0.9em; }
.tc-dona .wp-block-button__link { padding: 0.6em 1.3em; }
.tc-solo-movil { display: none !important; }

/* Menú de celular (overlay del bloque Navegación) */
.tc-nav .wp-block-navigation__responsive-container-open {
	border: 2px solid var(--wp--preset--color--tinta);
	border-radius: 999px;
	padding: 8px;
}
.tc-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--papel) !important;
	padding: 24px max(16px, 4vw) !important;
}
.tc-nav .is-menu-open .wp-block-navigation__container { gap: 4px !important; }
.tc-nav .is-menu-open .wp-block-navigation-item__content { font-size: var(--wp--preset--font-size--l); padding: 0.4em 0 !important; }
.tc-nav .is-menu-open .tc-solo-movil { display: flex !important; }
.tc-nav .is-menu-open .wp-block-navigation__submenu-container { border: 0 !important; box-shadow: none; padding: 0 0 0 1em !important; }
@media (max-width: 599px) {
	.tc-marca-texto { font-size: 0.85rem; }
	.tc-emblema img { width: 64px; }
}

/* ---------- Tipografía y estilos de bloque ---------- */
.is-style-ojo {
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xs) !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 0;
}
.is-style-ojo:not(.has-text-color) { color: var(--wp--preset--color--rojo-hondo); }
.is-style-bajada {
	font-size: var(--wp--preset--font-size--l) !important;
	line-height: 1.5;
	color: var(--wp--preset--color--tinta-suave);
	max-width: 40ch;
}
.is-style-frase {
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--xl);
	line-height: 1.3;
	max-width: 26ch;
	margin-inline: auto;
	text-wrap: balance;
}
h1, h2, h3 { text-wrap: balance; }
.tc-titulo-pagina { max-width: 20ch; }

/* Listas */
.is-style-puntos, .is-style-chips, .is-style-cajas, .is-style-simple { list-style: none; padding-left: 0; }
.is-style-puntos { display: grid; gap: 14px; }
.is-style-puntos li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: baseline; }
.is-style-puntos li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--tc-c, var(--wp--preset--color--rojo)); transform: translateY(1px); }
.is-style-puntos li:nth-child(5n+2) { --tc-c: var(--wp--preset--color--naranja); }
.is-style-puntos li:nth-child(5n+3) { --tc-c: var(--wp--preset--color--azul); }
.is-style-puntos li:nth-child(5n+4) { --tc-c: var(--wp--preset--color--verde); }
.is-style-puntos li:nth-child(5n+5) { --tc-c: var(--wp--preset--color--sol); }

.is-style-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.is-style-chips li {
	background: var(--wp--preset--color--blanco);
	border: 1px solid var(--wp--preset--color--linea);
	border-radius: 999px;
	padding: 0.3em 0.9em;
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xs);
}
.tc-proyecto .is-style-chips li { border-color: transparent; }
.has-verde-tenue-background-color .is-style-chips li { color: var(--wp--preset--color--verde); }
.has-azul-tenue-background-color .is-style-chips li { color: var(--wp--preset--color--azul); }

.is-style-cajas { display: grid; gap: 10px; }
.is-style-cajas li {
	background: var(--wp--preset--color--blanco);
	border: 1px solid var(--wp--preset--color--linea);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: var(--wp--preset--font-size--s);
}
.is-style-cajas li strong { font-family: var(--wp--preset--font-family--titulos); }
.is-style-simple { display: grid; gap: 6px; }

/* Tarjetas */
.is-style-tarjeta {
	background: var(--wp--preset--color--blanco);
	border: 1px solid var(--wp--preset--color--linea);
	border-radius: 18px;
	padding: var(--wp--preset--spacing--40);
}
.is-style-tarjeta > * { margin-block: 0; }
.is-style-tarjeta > * + * { margin-top: 0.5rem; }
.tc-punto { display: flex; gap: 10px; align-items: center; font-size: var(--wp--preset--font-size--m) !important; font-weight: 700; }
.tc-punto::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--tc-c, var(--wp--preset--color--rojo)); }
.tc-grilla > :nth-child(5n+2) { --tc-c: var(--wp--preset--color--naranja); }
.tc-grilla > :nth-child(5n+3) { --tc-c: var(--wp--preset--color--azul); }
.tc-grilla > :nth-child(5n+4) { --tc-c: var(--wp--preset--color--verde); }
.tc-grilla > :nth-child(5n+5) { --tc-c: var(--wp--preset--color--sol); }
.tc-grilla.tc-verde > * { --tc-c: var(--wp--preset--color--verde) !important; }
.tc-grilla.tc-azul > * { --tc-c: var(--wp--preset--color--azul) !important; }
.tc-grilla .is-style-tarjeta p { font-size: var(--wp--preset--font-size--s); color: var(--wp--preset--color--tinta-suave); }

/* Portada */
.tc-portada .tc-sol { position: relative; margin: 0; }
.tc-portada .tc-sol::before {
	content: "";
	position: absolute;
	width: 82%;
	aspect-ratio: 1;
	left: 9%;
	top: 50%;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--wp--preset--color--sol-tenue);
	z-index: 0;
}
.tc-portada .tc-sol img { position: relative; z-index: 1; width: 100%; height: auto; }
@media (max-width: 781px) {
	.tc-portada { flex-direction: column-reverse; }
	.tc-portada .tc-sol img { width: min(80%, 340px); margin-inline: auto; display: block; }
	.tc-portada .tc-sol::before { width: min(52%, 210px); left: 50%; transform: translate(-50%, -50%); }
	.tc-portada .wp-block-button { flex: 1 1 100%; }
	.tc-portada .wp-block-button__link { width: 100%; }
}

/* Frase */
.tc-frase { text-align: center; }
.tc-frase .is-style-ojo { opacity: 0.85; text-align: center; }
.tc-frase .is-style-outline .wp-block-button__link { border-color: #fff; color: #fff; }

/* Proyectos */
.tc-proyecto { display: flex; flex-direction: column; gap: 14px; }
.tc-proyecto > * { margin: 0 !important; }
.tc-proyecto::before {
	content: "";
	width: 64px; height: 64px;
	border-radius: 16px;
	background-color: var(--tc-icono-fondo, var(--wp--preset--color--rojo));
	background-image: var(--tc-icono);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 34px;
}
.tc-icono-hogar { --tc-icono-fondo: var(--wp--preset--color--verde); --tc-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v9.5h13V10'/%3E%3Cpath d='M12 19.5v-5'/%3E%3Cpath d='M12 14.5c-2.2 0-3.3-1.4-3.3-3.2 1.9 0 3.3 1.2 3.3 3.2Z'/%3E%3Cpath d='M12 14.5c2.2 0 3.3-1.4 3.3-3.2-1.9 0-3.3 1.2-3.3 3.2Z'/%3E%3C/svg%3E"); }
.tc-icono-compu { --tc-icono-fondo: var(--wp--preset--color--azul); --tc-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='10.5' rx='1.5'/%3E%3Cpath d='M2.5 19h19'/%3E%3Cpath d='M14.5 8.2a3 3 0 1 0 .6 3.6'/%3E%3Cpath d='M15.4 7.2v2.1h-2.1'/%3E%3C/svg%3E"); }
.tc-proyecto p:not(.tc-enlace) { color: var(--wp--preset--color--tinta-suave); }
.tc-enlace { margin-top: auto !important; }
.tc-enlace a {
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 700;
	font-size: var(--wp--preset--font-size--s);
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 2px;
}

/* Formas de participar */
.tc-forma > * { margin: 0 !important; }
.tc-forma > .wp-block-buttons:last-child, .tc-al-pie { margin-top: auto !important; }
.tc-forma .wp-block-button.has-custom-width .wp-block-button__link { width: 100%; }
.tc-montos { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-montos .wp-block-button__link {
	width: 100%;
	border-radius: 12px !important;
	border-color: var(--wp--preset--color--linea) !important;
	padding: 0.7em 0.3em !important;
	font-variant-numeric: tabular-nums;
}
.tc-montos .wp-block-button__link:hover { border-color: var(--wp--preset--color--rojo) !important; color: var(--wp--preset--color--rojo) !important; background: transparent !important; }

/* Separador hilo rojo */
.wp-block-separator.is-style-hilo {
	border: 0 !important;
	height: 28px;
	max-width: none !important;
	background: transparent !important;
	opacity: 1;
	margin-block: 0 !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C 50 22, 50 6, 100 6 S 150 22, 200 22 S 250 6, 300 6 S 350 22, 400 22' fill='none' stroke='black' stroke-width='4'/%3E%3C/svg%3E") repeat-x center / 400px 28px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 28' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C 50 22, 50 6, 100 6 S 150 22, 200 22 S 250 6, 300 6 S 350 22, 400 22' fill='none' stroke='black' stroke-width='4'/%3E%3C/svg%3E") repeat-x center / 400px 28px;
	background-color: var(--wp--preset--color--rojo) !important;
}

/* Cierre */
.has-tinta-background-color .is-style-outline .wp-block-button__link { border-color: #fff; color: #fff; }
.has-tinta-background-color .is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--tinta); }

/* Encabezado de páginas */
.tc-encabezado .wp-block-group.alignwide > * + * { margin-top: 0.9rem; }
.tc-estado {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--xs);
	background: var(--wp--preset--color--blanco);
	border-radius: 999px;
	padding: 0.35em 0.9em;
}
.tc-estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--sol); }

/* Pasos (Segunda Vida) */
.tc-pasos { counter-reset: paso; }
.tc-paso { counter-increment: paso; border-radius: 18px; padding: var(--wp--preset--spacing--40); }
.tc-paso > * { margin: 0; }
.tc-paso > * + * { margin-top: 0.4rem; }
.tc-paso::before {
	content: counter(paso);
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: var(--wp--preset--color--azul);
	color: #fff;
	font-family: var(--wp--preset--font-family--titulos);
	font-weight: 800;
	margin-bottom: 0.6rem;
}

/* Bloque destacado */
.tc-destacado > * { margin-block: 0; }
.tc-destacado > * + * { margin-top: 0.9rem; }

/* Transparencia */
.tc-datos table { border-collapse: separate; border-spacing: 0; background: var(--wp--preset--color--blanco); border: 1px solid var(--wp--preset--color--linea); border-radius: 18px; overflow: hidden; font-size: var(--wp--preset--font-size--s); }
.tc-datos td { border: 0; border-top: 1px solid var(--wp--preset--color--linea); padding: 14px 20px; vertical-align: top; }
.tc-datos tr:first-child td { border-top: 0; }
.tc-datos td:first-child { width: 34%; }
.tc-falta { color: #8A5F00; background: var(--wp--preset--color--sol-tenue); padding: 0 0.3em; border-radius: 4px; }
.tc-nota { font-size: var(--wp--preset--font-size--s); color: var(--wp--preset--color--tinta-suave); }

/* Contacto */
.tc-canal::before {
	content: "";
	display: block;
	width: 48px; height: 48px;
	border-radius: 14px;
	margin-bottom: 0.8rem;
	background-color: var(--tc-icono-fondo);
	background-image: var(--tc-icono);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px;
}
.tc-icono-correo { --tc-icono-fondo: var(--wp--preset--color--rojo); --tc-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 7 8.5-7'/%3E%3C/svg%3E"); }
.tc-icono-whatsapp { --tc-icono-fondo: var(--wp--preset--color--verde); --tc-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1.3-3.9A8 8 0 1 1 8 19z'/%3E%3C/svg%3E"); }
.tc-icono-instagram { --tc-icono-fondo: var(--wp--preset--color--azul); --tc-icono: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='3.5' width='17' height='17' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.tc-dato { font-weight: 700; overflow-wrap: anywhere; }
.tc-dato a { color: var(--wp--preset--color--tinta); }

/* Pie */
.tc-pie a { color: #fff; text-decoration-color: var(--wp--preset--color--sol); text-underline-offset: 3px; }
.tc-logo-pie { background: #fff; border-radius: 18px; padding: 14px 18px; margin: 0; max-width: 200px; }
.tc-logo-pie img { display: block; width: 100%; height: auto; }
.tc-legal { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px; margin-top: var(--wp--preset--spacing--40) !important; color: #B9B4C6; }

/* Accesibilidad */
a:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid var(--wp--preset--color--azul); outline-offset: 3px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Ajustes de grilla y detalles ---------- */
mark.has-inline-color { background: transparent; }
.tc-proyectos, .tc-canales, .tc-formas {
	grid-template-columns: repeat(auto-fit, minmax(min(var(--tc-min, 17rem), 100%), 1fr)) !important;
}
.tc-proyectos { --tc-min: 20rem; }
.tc-canales { --tc-min: 16rem; }
.tc-datos table { width: 100%; }
@media (max-width: 520px) { .tc-datos table, .tc-datos tbody, .tc-datos tr { display: block; width: 100%; } .tc-datos td { display: block; width: auto !important; border-top: 0; padding: 4px 16px; } .tc-datos td:first-child { border-top: 1px solid var(--wp--preset--color--linea); padding-top: 14px; } .tc-datos tr:first-child td:first-child { border-top: 0; } .tc-datos td:last-child { padding-bottom: 14px; } }
.tc-datos { margin-inline: 0; }
.tc-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.tc-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.tc-nav .is-menu-open .wp-block-navigation-submenu,
.tc-nav .is-menu-open .wp-block-navigation__submenu-container { align-items: flex-start !important; text-align: left; }
.tc-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: var(--wp--preset--font-size--m); }

/* ---------- Identidad multicolor: pulido visual 1.1 ---------- */
:root {
	--tc-coral: #E63946;
	--tc-verde-bosque: #246B45;
	--tc-verde-claro: #EAF5EC;
	--tc-azul-vivo: #1684D8;
	--tc-amarillo: #FFC928;
	--tc-naranja-vivo: #F28C28;
	--tc-lila: #9B5DE5;
}

/* Acento multicolor discreto en el encabezado, sin alterar su altura. */
.tc-cabecera {
	position: relative;
	background-image: linear-gradient(90deg, var(--wp--preset--color--rojo) 0%, var(--tc-coral) 24%, var(--wp--preset--color--sol) 48%, var(--wp--preset--color--verde) 72%, var(--wp--preset--color--azul) 100%);
	background-size: 100% 3px;
	background-repeat: no-repeat;
	background-position: bottom left;
}

/* Franja de historia: conserva el rojo institucional y suma formas de color suaves. */
.tc-frase {
	position: relative;
	isolation: isolate;
	overflow: hidden;
}
.tc-frase::before,
.tc-frase::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: clamp(130px, 19vw, 250px);
	aspect-ratio: 1;
	border-radius: 50%;
	pointer-events: none;
	opacity: .95;
}
.tc-frase::before {
	left: -7%;
	bottom: -78%;
	background: radial-gradient(circle at 40% 35%, var(--wp--preset--color--sol) 0 31%, var(--wp--preset--color--verde) 32% 56%, transparent 57%);
}
.tc-frase::after {
	right: -7%;
	top: -82%;
	background: radial-gradient(circle at 60% 60%, var(--wp--preset--color--azul) 0 29%, var(--wp--preset--color--naranja) 30% 48%, transparent 49%);
}
.tc-frase > .wp-block-group { position: relative; z-index: 1; }

/* Encabezados de páginas con una línea inferior multicolor. */
.tc-encabezado {
	position: relative;
	border-bottom: 4px solid transparent;
	border-image: linear-gradient(90deg, var(--wp--preset--color--rojo) 0 25%, var(--wp--preset--color--sol) 25% 50%, var(--wp--preset--color--verde) 50% 75%, var(--wp--preset--color--azul) 75% 100%) 1;
}

/* Tarjetas: relieve sutil y acentos distintos por proyecto/canal. */
.is-style-tarjeta,
.tc-proyecto,
.tc-forma {
	box-shadow: 0 5px 18px rgba(29, 27, 41, .045);
	transition: transform .18s ease, box-shadow .18s ease;
}
.tc-proyectos > .tc-proyecto:nth-child(1) { border-top: 4px solid var(--wp--preset--color--verde); }
.tc-proyectos > .tc-proyecto:nth-child(2) { border-top: 4px solid var(--wp--preset--color--azul); }
.tc-formas > .tc-forma:nth-child(1) { border-top: 4px solid var(--wp--preset--color--rojo); }
.tc-formas > .tc-forma:nth-child(2) { border-top: 4px solid var(--wp--preset--color--verde); }
.tc-formas > .tc-forma:nth-child(3) { border-top: 4px solid var(--wp--preset--color--sol); }
.tc-formas > .tc-forma:nth-child(4) { border-top: 4px solid var(--wp--preset--color--azul); }
.tc-canales > .tc-canal:nth-child(1) { border-top: 4px solid var(--wp--preset--color--rojo); }
.tc-canales > .tc-canal:nth-child(2) { border-top: 4px solid var(--wp--preset--color--verde); }
.tc-canales > .tc-canal:nth-child(3) { border-top: 4px solid var(--wp--preset--color--azul); }

@media (hover: hover) and (pointer: fine) {
	.is-style-tarjeta:hover,
	.tc-proyecto:hover,
	.tc-forma:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 28px rgba(29, 27, 41, .09);
		}
}

/* Pasos y destacados de las páginas de proyecto. */
.tc-pasos > .tc-paso:nth-child(4n + 1) { background: var(--wp--preset--color--azul-tenue); }
.tc-pasos > .tc-paso:nth-child(4n + 2) { background: var(--wp--preset--color--verde-tenue); }
.tc-pasos > .tc-paso:nth-child(4n + 3) { background: var(--wp--preset--color--sol-tenue); }
.tc-pasos > .tc-paso:nth-child(4n + 4) { background: var(--wp--preset--color--rojo-tenue); }
.tc-destacado {
	border: 1px solid rgba(36, 107, 69, .15);
	border-radius: 20px;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(135deg, var(--wp--preset--color--verde-tenue), var(--wp--preset--color--sol-tenue));
}

/* Legibilidad, botones y adaptación móvil. */
.wp-block-button__link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.tc-proyecto p:not(.tc-enlace),
.tc-forma p,
.tc-canal p { line-height: 1.65; }
@media (max-width: 781px) {
	.tc-frase::before { left: -18%; bottom: -80%; }
	.tc-frase::after { right: -18%; top: -82%; }
	.tc-proyecto, .tc-forma, .is-style-tarjeta { border-radius: 16px; }
	.tc-encabezado { border-bottom-width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
	.is-style-tarjeta, .tc-proyecto, .tc-forma { transition: none; }
}


/* ==========================================================
   REDISEÑO MULTICOLOR 3.0 — Tejiendo Comunidad en Morón
   Estas reglas complementan el sistema original de bloques.
   ========================================================== */
:root {
  --tc-coral: #e00032;
  --tc-red: #d7062b;
  --tc-green: #137547;
  --tc-green-dark: #064c36;
  --tc-green-soft: #edf6ed;
  --tc-yellow: #ffbd19;
  --tc-blue: #1684d8;
  --tc-orange: #f47b20;
  --tc-cream: #fffaf0;
  --tc-ink: #1d243b;
  --tc-shadow: 0 12px 34px rgba(30, 46, 35, .09);
}
html { scroll-behavior: smooth; }
body { background: var(--tc-cream); color: var(--tc-ink); }
.wp-site-blocks { overflow: clip; }
.wp-site-blocks main { position: relative; }
.wp-site-blocks main > .alignfull { margin-left: 0 !important; margin-right: 0 !important; }
.wp-block-group.alignwide, .wp-block-group.alignfull > .alignwide { max-width: 1240px; }

/* Encabezado coherente en todas las páginas */
.tc-cabecera-fija { position: sticky; top: var(--wp-admin--admin-bar--position-offset, 0px); z-index: 100; }
.tc-cabecera { background: rgba(255,250,240,.97) !important; border-bottom: 1px solid rgba(19,117,71,.13); box-shadow: 0 3px 18px rgba(29,36,59,.035); }
.tc-nav .wp-block-navigation-item__content { transition: color .2s ease, background .2s ease, transform .2s ease; }
.tc-nav .wp-block-navigation-item__content:hover { color: var(--tc-green) !important; background: #e7f4e8 !important; }
.tc-dona .wp-block-button__link, .wp-block-button:not(.is-style-outline) .wp-block-button__link { box-shadow: 0 5px 12px rgba(215,6,43,.12); transition: transform .2s ease, box-shadow .2s ease; }
.wp-block-button .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(29,36,59,.15); }

/* Escala tipográfica y ritmo */
h1, h2, h3, h4 { color: var(--tc-ink); text-wrap: balance; }
h1 { letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }
p { text-wrap: pretty; }
.is-style-bajada { max-width: 46ch; }
.is-style-ojo { color: var(--tc-red); }
.wp-block-separator.is-style-hilo { border: 0; height: 4px; width: 74px; border-radius: 99px; background: linear-gradient(90deg,var(--tc-red),var(--tc-yellow),var(--tc-green),var(--tc-blue)); margin-inline: auto; }

/* Secciones con fondos suaves y detalles multicolor */
.tc-encabezado { position: relative; isolation: isolate; background-color: #fff2d7 !important; background-image: radial-gradient(circle at 88% 20%, rgba(255,189,25,.25), transparent 24%), radial-gradient(circle at 5% 95%, rgba(22,132,216,.10), transparent 22%); }
.tc-encabezado::after { content: ""; position: absolute; z-index: -1; width: 180px; height: 180px; right: -65px; bottom: -80px; border-radius: 48% 52% 65% 35%; background: rgba(19,117,71,.09); transform: rotate(-25deg); }
.tc-portada { padding-block: clamp(2rem,5vw,4.75rem); }
.tc-portada h1 { max-width: 12ch; font-size: clamp(2.4rem,5vw,4.4rem) !important; line-height: 1.02; }
.tc-portada .wp-block-buttons { gap: 12px; margin-top: 1.5rem; }
.tc-portada .tc-sol img { filter: drop-shadow(0 14px 20px rgba(29,36,59,.06)); }

/* Frase institucional */
.tc-frase { position: relative; isolation: isolate; background: linear-gradient(110deg,#d7062b 0%,#e20b37 58%,#bf0029 100%) !important; overflow: hidden; }
.tc-frase::before, .tc-frase::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.tc-frase::before { width: 240px; height: 240px; left: -100px; top: -130px; border: 2px solid rgba(255,255,255,.20); box-shadow: 35px 35px 0 -10px rgba(255,255,255,.05); }
.tc-frase::after { width: 190px; height: 190px; right: -70px; bottom: -120px; background: rgba(255,189,25,.14); }
.tc-frase h2, .tc-frase p { color: #fff !important; }

/* Tarjetas de proyectos y grillas */
.tc-proyectos { gap: clamp(14px,2vw,24px) !important; }
.tc-proyecto, .is-style-tarjeta, .tc-canal, .tc-forma { border-radius: 24px !important; border: 1px solid rgba(29,36,59,.06) !important; box-shadow: var(--tc-shadow); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease; }
.tc-proyecto:hover, .is-style-tarjeta:hover, .tc-canal:hover, .tc-forma:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(30,46,35,.12); }
.tc-proyecto { min-height: 100%; padding: clamp(1.25rem,2.5vw,2rem) !important; }
.tc-proyecto.tc-icono-hogar { background: linear-gradient(135deg,#edf7e9,#fff7e4) !important; }
.tc-proyecto.tc-icono-compu { background: linear-gradient(135deg,#e8f2ff,#eef8f0) !important; }
.tc-proyecto::before { width: 70px; height: 70px; border-radius: 20px; box-shadow: 0 8px 18px rgba(29,36,59,.09); }
.tc-proyecto h2, .tc-proyecto h3 { line-height: 1.15; }
.tc-enlace a { border-bottom: 0; display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1rem; border-radius: 999px; color: #fff !important; background: var(--tc-green); }
.tc-icono-compu .tc-enlace a { background: var(--tc-blue); }
.tc-grilla .is-style-tarjeta:nth-child(4n+1) { border-top: 4px solid var(--tc-red) !important; }
.tc-grilla .is-style-tarjeta:nth-child(4n+2) { border-top: 4px solid var(--tc-green) !important; }
.tc-grilla .is-style-tarjeta:nth-child(4n+3) { border-top: 4px solid var(--tc-yellow) !important; }
.tc-grilla .is-style-tarjeta:nth-child(4n+4) { border-top: 4px solid var(--tc-blue) !important; }

/* Participación: cada alternativa tiene un acento propio */
.tc-forma { background: #fff !important; padding: clamp(1.1rem,2.2vw,1.7rem) !important; }
.tc-forma:nth-child(4n+1) { border-top: 5px solid var(--tc-red) !important; }
.tc-forma:nth-child(4n+2) { border-top: 5px solid var(--tc-green) !important; }
.tc-forma:nth-child(4n+3) { border-top: 5px solid var(--tc-yellow) !important; }
.tc-forma:nth-child(4n+4) { border-top: 5px solid var(--tc-blue) !important; }
.tc-canal { background: #fff !important; padding: clamp(1rem,2vw,1.5rem) !important; }
.tc-dato a { overflow-wrap: anywhere; }
.tc-paso { border-radius: 18px; background: #f0f7ee; padding: 1rem; }
.tc-falta { border: 1px dashed #d8cba8; border-radius: 14px; background: #fff8e7; padding: 1rem; }

/* Pie institucional verde con identidad coherente */
.tc-pie { position: relative; background: var(--tc-green-dark) !important; color: #fff; overflow: hidden; }
.tc-pie h2, .tc-pie h3, .tc-pie p, .tc-pie li, .tc-pie a { color: #fff !important; }
.tc-pie a { text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 3px; }
.tc-pie a:hover { color: #ffda65 !important; }
.tc-pie::before { content: ""; display: block; height: 8px; position: absolute; inset: 0 0 auto; background: linear-gradient(90deg,var(--tc-red) 0 24%,var(--tc-yellow) 24% 49%,var(--tc-green) 49% 74%,var(--tc-blue) 74%); }
.tc-legal { border-top: 1px solid rgba(255,255,255,.18); padding-top: 1rem; }

/* Accesibilidad y dispositivos */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--tc-blue) !important; outline-offset: 3px; }
img { max-width: 100%; height: auto; }
@media (max-width: 781px) {
  .tc-portada { padding-block: 2rem !important; }
  .tc-portada h1 { font-size: clamp(2.2rem,10vw,3.2rem) !important; }
  .tc-proyectos { grid-template-columns: 1fr !important; }
  .wp-block-columns { gap: 1.25rem !important; }
  .tc-frase { padding-inline: 1.2rem !important; }
  .tc-encabezado::after { width: 120px; height: 120px; right: -55px; }
  .tc-pie .wp-block-columns { flex-direction: column; }
  .tc-montos { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Ilustraciones propias para los proyectos; reemplazan la imagen anterior del ñandú. */
.tc-proyecto.tc-icono-hogar { background-image: url("assets/img/hogar-raices-ilustracion.svg"), linear-gradient(135deg,#edf7e9,#fff7e4) !important; background-size: 34% auto, cover !important; background-position: right bottom, center !important; background-repeat: no-repeat !important; }
.tc-proyecto.tc-icono-compu { background-image: url("assets/img/segunda-vida-ilustracion.svg"), linear-gradient(135deg,#e8f2ff,#eef8f0) !important; background-size: 34% auto, cover !important; background-position: right bottom, center !important; background-repeat: no-repeat !important; }
@media (max-width: 781px) { .tc-proyecto.tc-icono-hogar, .tc-proyecto.tc-icono-compu { background-size: 26% auto, cover !important; } }
