/*
Theme Name: TEC 2026
Description: Tema a medida para TEC Carles Ferrer Salat. Bloques nativos, sin constructores, SEO técnico integrado.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: tec
*/

/* ==================================================================
   Tokens
   ================================================================== */
:root {
	--pino: #173a31;
	--pino-2: #1f4a3f;
	--pino-3: #0f2a23;
	--pista: #2e6e5d;
	--piedra: #eef0eb;
	--piedra-2: #e2e6de;
	--papel: #f7f8f4;
	--tinta: #17201c;
	--gris: #5d6862;
	--arco: #c9ccc8;
	--pelota: #d8e94c;

	--serif: "Miller Display", "Iowan Old Style", Georgia, serif;
	--sc: "Miller Display SC", "Miller Display", Georgia, serif;
	--sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	--max: 1320px;
	--gutter: clamp(16px, 4.5vw, 56px);
	--pad: max(var(--gutter), calc((100% - var(--max)) / 2));
	--space-s: clamp(1.25rem, 2vw, 2rem);
	--space-m: clamp(3rem, 6vw, 5.5rem);
	--space-l: clamp(4.5rem, 10vw, 9rem);
	--radius: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	--bg: var(--papel);
	--fg: var(--tinta);
	--muted: var(--gris);
	--accent: var(--pista);
	--focus: var(--pino);
	--btn-bg: var(--pino);
	--btn-fg: var(--papel);
	--rule: rgba(23, 32, 28, .14);
}

/* Contexto oscuro reutilizable */
.tec-dark,
.site-header,
.site-footer,
.page-head,
.post-head,
.tec-hero,
.tec-facts,
.tec-cinema,
.tec-pagehero,
.tec-statement,
.tec-manifesto {
	--bg: var(--pino);
	--fg: var(--piedra);
	--muted: #b9c4bd;
	--accent: var(--pelota);
	--focus: var(--pelota);
	--btn-bg: var(--pelota);
	--btn-fg: var(--tinta);
	--rule: rgba(238, 240, 235, .18);
	color: var(--fg);
}

/* ==================================================================
   Base
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--papel);
	color: var(--tinta);
	font-family: var(--sans);
	font-size: clamp(1.03rem, .98rem + .2vw, 1.14rem);
	line-height: 1.62;
	font-optical-sizing: auto;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -.012em;
	margin: 0 0 .5em;
	text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); }
h3 { font-size: clamp(1.55rem, 1.2rem + 1.2vw, 2.15rem); }
p, li { text-wrap: pretty; }
strong { font-weight: 650; }
mark { background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--pelota); color: var(--tinta); }

.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 {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--pelota); color: var(--tinta); padding: .7em 1.1em; font-weight: 600; text-decoration: none;
	transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.site-main:focus { outline: none; }

.tec-kicker,
.page-head__kicker {
	font-family: var(--sc);
	font-size: clamp(1.05rem, 1rem + .25vw, 1.25rem);
	letter-spacing: .02em;
	color: var(--accent);
	margin-bottom: 1.1rem;
}
.tec-lead {
	font-family: var(--serif);
	font-size: clamp(1.45rem, 1.1rem + 1.15vw, 2.15rem);
	line-height: 1.28;
	letter-spacing: -.005em;
}

/* Botones (bloque Botones de WordPress) */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.wp-block-button__link,
.tec-button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: .8em 1.5em;
	background: var(--btn-bg); color: var(--btn-fg);
	border: 1.5px solid var(--btn-bg); border-radius: 999px;
	font: 600 1rem/1.1 var(--sans); letter-spacing: .005em; text-decoration: none;
	transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.wp-block-button__link:hover,
.tec-button:hover { transform: translateY(-2px); }
.wp-block-button__link:active,
.tec-button:active { transform: translateY(0) scale(.98); }
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent; color: var(--fg); border-color: currentColor;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* Contenedor genérico para bloques sueltos (páginas de texto) */
.entry__content > :where(p, h2, h3, h4, ul, ol, blockquote, .wp-block-image:not([class*="tec-"]), .wp-block-buttons, .wp-block-separator, .wp-block-table, .wp-block-embed, .wp-block-gallery, .wp-block-columns) {
	max-width: 46rem;
	margin-inline: auto;
	padding-inline: var(--gutter);
	box-sizing: content-box;
}
.entry__content > p:first-child,
.entry__content > :where(p, ul, ol):only-child { margin-top: var(--space-m); }
.entry__content > :where(p, ul, ol):last-child { margin-bottom: var(--space-m); }
.entry__content > h2 { margin-top: 2.2em; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.7rem); }
.entry__content > .wp-block-image:not([class*="tec-"]) { margin-block: 2.5rem; }
.wp-element-caption { font-size: .88rem; color: var(--muted); margin-top: .7rem; line-height: 1.4; }

.tec-todo {
	background: var(--pelota); color: var(--tinta); padding: .1em .45em; border-radius: 3px;
	font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* ==================================================================
   Cabecera y navegación
   ================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50;
	color: var(--piedra);
	transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled {
	background: rgba(15, 42, 35, .94);
	box-shadow: 0 1px 0 rgba(238, 240, 235, .08);
}
@supports (backdrop-filter: blur(8px)) {
	.site-header.is-scrolled { background: rgba(15, 42, 35, .82); backdrop-filter: blur(14px) saturate(1.2); }
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 2rem;
	padding: 1.1rem var(--pad);
	transition: padding .35s var(--ease);
}
.site-header.is-scrolled .site-header__inner { padding-block: .7rem; }
.site-header__brand { display: block; line-height: 0; border-radius: 4px; }
.tec-logo { width: clamp(150px, 14vw, 196px); height: auto; filter: brightness(0) invert(1); }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.site-nav__list a {
	position: relative; display: inline-block; padding: .5rem 0;
	font-size: .98rem; font-weight: 550; letter-spacing: .01em; text-decoration: none; color: var(--piedra);
	text-shadow: 0 1px 12px rgba(15, 42, 35, .55);
}
.site-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 2px;
	background: var(--pelota); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .current_page_item > a::after,
.site-nav__list .current_page_parent > a::after { transform: scaleX(1); }

.site-nav__toggle {
	display: none; align-items: center; gap: .6rem;
	background: none; border: 0; color: var(--piedra); font: 600 1rem var(--sans);
	min-height: 44px; padding: 0 .25rem; cursor: pointer;
}
.site-nav__toggle-bars, .site-nav__toggle-bars::before, .site-nav__toggle-bars::after {
	display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .3s var(--ease), opacity .2s;
}
.site-nav__toggle-bars { position: relative; }
.site-nav__toggle-bars::before, .site-nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.site-nav__toggle-bars::before { top: -7px; }
.site-nav__toggle-bars::after { top: 7px; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars { background: transparent; }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 959px) {
	.site-nav__toggle { display: inline-flex; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		background: var(--pino-3);
		display: flex; align-items: flex-end;
		padding: 7rem var(--gutter) 3rem;
		opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
	}
	.site-nav.is-open { opacity: 1; visibility: visible; }
	.site-nav__list { flex-direction: column; gap: .2rem; width: 100%; }
	.site-nav__list a { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 9vw, 3.4rem); padding: .2rem 0; }
	.site-nav__list a::after { bottom: .1rem; }
	.site-header__brand { position: relative; z-index: 2; }
	body.nav-open { overflow: hidden; }
}

/* ==================================================================
   Firma visual: la costura de la pelota «)(» del logotipo
   ================================================================== */
.tec-hero::after,
.page-head::after,
.tec-statement::before,
.tec-statement::after,
.site-footer__seam {
	content: ""; position: absolute; pointer-events: none;
	border: 0 solid transparent; border-radius: 50%;
}

/* ==================================================================
   Portada: héroe
   ================================================================== */
.tec-hero {
	position: relative; isolation: isolate;
	min-height: 100svh;
	background: var(--pino);
	display: grid; grid-template-columns: minmax(0, 1fr);
	align-items: end;
	padding: 8.5rem var(--pad) clamp(3rem, 7vh, 5.5rem);
	overflow: hidden;
}
.tec-hero__text { position: relative; z-index: 2; max-width: 40rem; }
.tec-hero__title {
	font-size: clamp(2.7rem, 1.2rem + 4vw, 5.4rem);
	line-height: .98;
	letter-spacing: -.022em;
	margin-bottom: 1.6rem;
}
.tec-hero__lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); color: var(--muted); max-width: 33rem; }
.tec-hero__media {
	position: absolute; z-index: 1; top: 0; right: 0; bottom: 0; width: 54%;
	clip-path: ellipse(100% 74% at 100% 50%);
	background: var(--pino-2);
}
.tec-hero__media .tec-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.tec-hero__media .tec-slide.is-active { opacity: 1; }
.tec-hero__media .tec-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
.tec-hero__media .tec-slide.is-active img { animation: tec-drift 9s linear both; }
.tec-hero__media .tec-slide:first-child { opacity: 1; }
.tec-hero__media.is-ready .tec-slide:first-child:not(.is-active) { opacity: 0; }
.tec-hero__media::after {
	content: ""; position: absolute; inset: 0;
	/* Arriba: velo oscuro para que el menú se lea sobre cualquier foto */
	background:
		linear-gradient(180deg, rgba(15, 42, 35, .9) 0, rgba(15, 42, 35, .62) 4.5rem, rgba(15, 42, 35, .25) 8rem, rgba(15, 42, 35, 0) 12rem),
		linear-gradient(90deg, rgba(23, 58, 49, .35), rgba(23, 58, 49, 0) 35%);
}
@keyframes tec-drift { from { transform: scale(1.08); } to { transform: scale(1); } }

/* «)» frente al borde «(» de la imagen */
.tec-hero::after {
	z-index: 1;
	top: -45%; bottom: -45%;
	right: calc(54% + 1.6vw);
	width: 16vw;
	border-right: 2px solid var(--pelota);
	opacity: .9;
}

/* Entrada orquestada (una sola, al cargar) */
.tec-hero__text > * { animation: tec-rise .9s var(--ease) both; }
.tec-hero__text > :nth-child(2) { animation-delay: .08s; }
.tec-hero__text > :nth-child(3) { animation-delay: .18s; }
.tec-hero__text > :nth-child(4) { animation-delay: .28s; }
.tec-hero__media { animation: tec-open 1.3s var(--ease) both; }
.tec-hero::after { animation: tec-fade 1.6s .5s var(--ease) both; }
@keyframes tec-rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes tec-open { from { clip-path: ellipse(0% 74% at 100% 50%); } }
@keyframes tec-fade { from { opacity: 0; } }

@media (min-width: 900px) {
	.tec-hero { align-items: center; }
	/* El texto termina antes del arco «)», que cae en torno al 44 % del ancho */
	.tec-hero__text { max-width: min(40rem, calc(42vw - var(--pad) - 1.5rem)); }
}
@media (max-width: 899px) {
	.tec-hero { padding-top: 0; min-height: auto; align-content: start; }
	.tec-hero__media {
		position: relative; order: -1; width: auto; height: 58svh; min-height: 340px;
		margin: 0 calc(var(--pad) * -1) 2.2rem;
		clip-path: ellipse(115% 100% at 50% 0%);
	}
	@keyframes tec-open { from { clip-path: ellipse(115% 0% at 50% 0%); } }
	.tec-hero__media::after { background: linear-gradient(180deg, rgba(15, 42, 35, .9) 0, rgba(15, 42, 35, .55) 4.5rem, rgba(15, 42, 35, 0) 9rem), linear-gradient(0deg, rgba(23, 58, 49, .4), rgba(23, 58, 49, 0) 40%); }
	.tec-hero::after { display: none; }
}

/* ==================================================================
   Cifras dibujadas sobre una pista vista desde arriba:
   cada dato ocupa un cuadro de saque, con la red en el centro.
   ================================================================== */
.tec-facts {
	--line: rgba(247, 248, 244, .88);
	--court: var(--pista);
	background: var(--pino);
	display: grid;
	grid-template-columns: minmax(2rem, .7fr) 1.5fr 1.5fr minmax(2rem, .7fr);
	padding: clamp(2rem, 4vw, 3.5rem) var(--pad) var(--space-l);
}
/* Fondos (zonas de fondo de pista) a ambos lados */
.tec-facts::before,
.tec-facts::after {
	content: ""; grid-row: 1 / 3; background: var(--court);
	border: 2px solid var(--line);
}
.tec-facts::before { grid-column: 1; border-right-width: 2px; }
.tec-facts::after { grid-column: 4; }
.tec-fact {
	background: var(--court);
	padding: clamp(1.4rem, 2.6vw, 2.4rem) clamp(1.2rem, 2.4vw, 2.2rem);
	border-bottom: 2px solid var(--line);
	min-height: 11.5rem;
	display: flex; flex-direction: column; justify-content: flex-end;
	position: relative;
}
.tec-fact:nth-child(1), .tec-fact:nth-child(2) { grid-row: 1; border-top: 2px solid var(--line); }
.tec-fact:nth-child(3), .tec-fact:nth-child(4) { grid-row: 2; }
.tec-fact:nth-child(odd) { grid-column: 2; border-right: 5px solid var(--piedra); }
.tec-fact:nth-child(even) { grid-column: 3; }
/* La pelota, en el primer cuadro de saque */
.tec-facts .tec-fact:first-child::after {
	content: ""; position: absolute; top: 1.4rem; right: 1.4rem;
	width: 14px; height: 14px; border-radius: 50%;
	background: var(--pelota); box-shadow: 0 0 0 4px rgba(216, 233, 76, .18);
}
.tec-fact__num {
	font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.2vw, 3.4rem); line-height: 1;
	color: var(--papel); margin-bottom: .6rem; font-variant-numeric: lining-nums;
}
.tec-fact__label { font-size: .98rem; color: rgba(247, 248, 244, .82); max-width: 17rem; line-height: 1.45; margin: 0; }
.tec-facts--light { background: var(--papel); padding-top: var(--space-m); --court: #2b6a63; }
@media (max-width: 899px) {
	.tec-facts { grid-template-columns: 1fr 1fr; grid-template-rows: 2.5rem auto auto 2.5rem; }
	.tec-facts::before { grid-column: 1 / 3; grid-row: 1; }
	.tec-facts::after { grid-column: 1 / 3; grid-row: 4; border-top: 0; }
	.tec-fact { min-height: 9.5rem; border-top: 0 !important; }
	.tec-fact:nth-child(1), .tec-fact:nth-child(2) { grid-row: 2; border-bottom: 5px solid var(--piedra); }
	.tec-fact:nth-child(3), .tec-fact:nth-child(4) { grid-row: 3; }
	.tec-fact:nth-child(odd) { grid-column: 1; border-right: 2px solid var(--line); border-left: 2px solid var(--line); }
	.tec-fact:nth-child(even) { grid-column: 2; border-right: 2px solid var(--line); }
	.tec-fact__num { font-size: clamp(1.6rem, 1rem + 3vw, 2.2rem); }
	.tec-fact__label { font-size: .9rem; }
}

/* ---------- Pista animada (la monta site.js: clase .is-court) ---------- */
.tec-facts.is-court {
	--pt: clamp(2.5rem, 5vw, 4.5rem);
	--pb: var(--space-l);
	position: relative; isolation: isolate;
	padding-top: var(--pt); padding-bottom: var(--pb);
	grid-template-columns: minmax(0, 16fr) minmax(0, 34fr) minmax(0, 34fr) minmax(0, 16fr);
	grid-template-rows: minmax(1.1rem, 8fr) minmax(0, 42fr) minmax(0, 42fr) minmax(1.1rem, 8fr);
	background:
		radial-gradient(120% 90% at 50% 0%, rgba(46, 110, 93, .35), rgba(46, 110, 93, 0) 60%),
		var(--pino);
}
.tec-facts--light.is-court { background: var(--papel); }
.tec-facts.is-court::before,
.tec-facts.is-court::after {
	background: none; border: 0; z-index: 1;
	grid-row: 2 / 4; align-self: center; justify-self: center;
	font-family: var(--serif); font-size: clamp(1.6rem, 1rem + 2.6vw, 3.6rem); letter-spacing: .35em;
	color: rgba(247, 248, 244, .16); white-space: nowrap; line-height: 1;
	content: "TEC";
}
.tec-facts.is-court::before { grid-column: 1; transform: rotate(-90deg); }
.tec-facts.is-court::after { grid-column: 4; transform: rotate(90deg); }
.tec-court {
	position: absolute; z-index: 0; pointer-events: none;
	top: var(--pt); bottom: var(--pb); left: var(--pad); right: var(--pad);
	width: calc(100% - 2 * var(--pad)); height: calc(100% - var(--pt) - var(--pb));
	overflow: visible;
	filter: drop-shadow(0 30px 50px rgba(5, 20, 16, .45));
}
.tec-court__line {
	fill: none; stroke: rgba(247, 248, 244, .92); stroke-width: 2.5;
	stroke-dasharray: 1; stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.1s var(--ease);
}
.tec-court__net { stroke: var(--piedra); stroke-width: 6; stroke-linecap: round; }
.tec-court__netshadow { stroke: rgba(5, 20, 16, .35); stroke-width: 14; opacity: 0; transition: opacity .8s .9s; }
.is-drawn .tec-court__line { stroke-dashoffset: 0; }
.is-drawn .tec-court__netshadow { opacity: 1; }

.tec-facts.is-court .tec-fact {
	position: relative; z-index: 1;
	background: transparent; border: 0 !important;
	min-height: clamp(10rem, 16vw, 15rem);
	padding: clamp(1.2rem, 2.6vw, 2.6rem);
	cursor: default;
	transition: background-color .5s var(--ease);
}
.tec-facts.is-court .tec-fact:nth-child(1), .tec-facts.is-court .tec-fact:nth-child(2) { grid-row: 2; }
.tec-facts.is-court .tec-fact:nth-child(3), .tec-facts.is-court .tec-fact:nth-child(4) { grid-row: 3; }
.tec-facts.is-court .tec-fact:first-child::after { content: none; }
.tec-facts.is-court .tec-fact:hover,
.tec-facts.is-court .tec-fact.is-hit-flash { background: rgba(247, 248, 244, .07); }
.tec-facts.is-court .tec-fact__num { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.6rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }

/* Estado previo al peloteo: las cifras esperan a que bote la pelota */
.tec-facts.is-armed .tec-fact:not(.is-hit) > * { opacity: 0; transform: translateY(14px); }
.tec-facts.is-court .tec-fact > * { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.tec-facts.is-court .tec-fact.is-hit > * { opacity: 1; transform: none; }
.tec-facts.is-court .tec-fact.is-hit > :nth-child(2) { transition-delay: .12s; }

.tec-ball, .tec-ball-shadow, .tec-bounce {
	position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none;
	width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
}
.tec-ball {
	background:
		radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 45%),
		var(--pelota);
	box-shadow: inset -3px -4px 6px rgba(80, 90, 0, .35);
	overflow: hidden;
}
/* Costura de la pelota: los mismos arcos «)(» del logotipo */
.tec-ball::before, .tec-ball::after {
	content: ""; position: absolute; top: -20%; bottom: -20%; width: 60%;
	border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 50%;
}
.tec-ball::before { left: -38%; }
.tec-ball::after { right: -38%; }
.tec-ball-shadow { background: rgba(5, 20, 16, .45); filter: blur(3px); z-index: 2; }
.tec-ball, .tec-ball-shadow { opacity: 0; transition: opacity .3s; }
.tec-bounce { border: 2px solid var(--pelota); background: none; z-index: 2; opacity: 0; }

@media (max-width: 899px) {
	.tec-facts.is-court {
		grid-template-columns: minmax(.8rem, 8fr) minmax(0, 42fr) minmax(0, 42fr) minmax(.8rem, 8fr);
		grid-template-rows: minmax(0, 16fr) minmax(0, 34fr) minmax(0, 34fr) minmax(0, 16fr);
	}
	.tec-facts.is-court::before, .tec-facts.is-court::after {
		grid-column: 2 / 4; font-size: 1.6rem;
	}
	.tec-facts.is-court::before { grid-row: 1; transform: rotate(180deg); }
	.tec-facts.is-court::after { grid-row: 4; transform: none; }
	.tec-facts.is-court .tec-fact { min-height: 12rem; padding: 1rem .9rem; }
	.tec-facts.is-court .tec-fact:nth-child(1),
	.tec-facts.is-court .tec-fact:nth-child(2) { grid-row: 2; }
	.tec-facts.is-court .tec-fact:nth-child(3),
	.tec-facts.is-court .tec-fact:nth-child(4) { grid-row: 3; }
	.tec-facts.is-court .tec-fact:nth-child(odd) { grid-column: 2; border: 0; }
	.tec-facts.is-court .tec-fact:nth-child(even) { grid-column: 3; }
	.tec-facts.is-court .tec-fact__num { font-size: clamp(1.5rem, 1rem + 2.6vw, 2.2rem); }
	.tec-facts.is-court .tec-fact__label { font-size: .86rem; }
	.tec-ball, .tec-ball-shadow, .tec-bounce { width: 18px; height: 18px; margin: -9px 0 0 -9px; }
}

/* ==================================================================
   Declaración / introducción
   ================================================================== */
.tec-intro {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
	padding: var(--space-l) var(--pad) 0;
}
.tec-intro__head { grid-column: 1 / 6; }
.tec-intro__head h2 { position: sticky; top: 7rem; }
.tec-intro__body { grid-column: 6 / 13; max-width: 46rem; }
.tec-intro__body p:not(.tec-lead) { color: var(--gris); }
.tec-intro__img { grid-column: 1 / -1; margin: var(--space-m) calc(var(--pad) * -1) 0; }
.tec-intro__img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.tec-intro--wide .tec-intro__body { grid-column: 3 / 12; }
@media (max-width: 899px) {
	.tec-intro__head, .tec-intro__body, .tec-intro--wide .tec-intro__body { grid-column: 1 / -1; }
	.tec-intro__head h2 { position: static; }
	.tec-intro__img img { aspect-ratio: 4 / 3; }
}

/* ==================================================================
   Pilares (imagen + texto alternos, borde curvo hacia el texto)
   ================================================================== */
.tec-pillars { padding: var(--space-l) var(--pad); }
.tec-pillars__head { max-width: 52rem; margin-bottom: var(--space-m); }
.tec-pillars__head p { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); color: var(--gris); max-width: 44rem; }
.tec-pillar {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
	align-items: center;
}
.tec-pillar + .tec-pillar { margin-top: var(--space-m); }
.tec-pillar__img { grid-column: 1 / 8; }
.tec-pillar__img img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; clip-path: ellipse(150% 100% at 0% 50%); }
.tec-pillar__text { grid-column: 8 / 13; }
.tec-pillar__text p { color: var(--gris); }
.tec-pillar--alt .tec-pillar__img { grid-column: 6 / 13; order: 2; }
.tec-pillar--alt .tec-pillar__img img { clip-path: ellipse(150% 100% at 100% 50%); }
.tec-pillar--alt .tec-pillar__text { grid-column: 1 / 6; order: 1; }
.tec-pillar--section { padding: var(--space-l) var(--pad); }
@media (max-width: 899px) {
	.tec-pillar__img, .tec-pillar__text,
	.tec-pillar--alt .tec-pillar__img, .tec-pillar--alt .tec-pillar__text { grid-column: 1 / -1; order: 0; }
	.tec-pillar__text { margin-top: 1.6rem; }
	.tec-pillar__img img, .tec-pillar--alt .tec-pillar__img img { clip-path: none; border-radius: var(--radius); aspect-ratio: 4 / 3; }
}

/* ==================================================================
   Vídeo a sangre (cine)
   ================================================================== */
.tec-cinema,
.tec-pagehero {
	position: relative; isolation: isolate; overflow: hidden;
	background: var(--pino-3);
	display: flex; align-items: flex-end;
	padding: var(--space-l) var(--pad);
}
.tec-cinema { min-height: min(92svh, 860px); }
.tec-cinema__video,
.tec-pagehero__video { position: absolute; inset: 0; z-index: -2; margin: 0; }
.tec-cinema__video video,
.tec-pagehero__video video { width: 100%; height: 100%; object-fit: cover; }
.tec-cinema::before,
.tec-pagehero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(180deg, rgba(15, 42, 35, .88) 0, rgba(15, 42, 35, .55) 4.5rem, rgba(15, 42, 35, 0) 11rem),
		linear-gradient(90deg, rgba(15, 42, 35, .92) 0%, rgba(15, 42, 35, .7) 38%, rgba(15, 42, 35, .15) 75%),
		linear-gradient(0deg, rgba(15, 42, 35, .6), rgba(15, 42, 35, 0) 45%);
}
.tec-cinema__text { max-width: 38rem; }
.tec-cinema__text p { color: var(--muted); }
.tec-cinema__text h2 { color: var(--piedra); }

.tec-pagehero { min-height: min(86svh, 820px); padding-top: 9rem; }
.tec-pagehero__text { max-width: 50rem; }
.tec-pagehero__title { font-size: clamp(3.2rem, 1.6rem + 7vw, 8.5rem); line-height: .92; letter-spacing: -.03em; margin-bottom: 1.4rem; }
.tec-pagehero__lead { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.25; color: var(--piedra); max-width: 36rem; }
.tec-pagehero__text > * { animation: tec-rise .9s var(--ease) both; }
.tec-pagehero__text > :nth-child(2) { animation-delay: .12s; }

/* ==================================================================
   Carril de imágenes (vida en el TEC)
   ================================================================== */
.tec-rail { padding: var(--space-l) 0 var(--space-m); background: var(--piedra); }
.tec-rail__head {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
	padding-inline: var(--pad); margin-bottom: 2.5rem; align-items: end;
}
.tec-rail__head h2 { grid-column: 1 / 7; margin: 0; }
.tec-rail__head p { grid-column: 7 / 13; color: var(--gris); margin: 0; }
.tec-rail__track {
	display: flex; gap: clamp(.8rem, 1.6vw, 1.4rem);
	overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
	padding: 0 var(--pad) 1.4rem; scroll-padding-inline: var(--pad);
	scrollbar-width: thin; scrollbar-color: var(--pista) transparent;
}
.tec-rail__track:focus-visible { outline-offset: -3px; }
.tec-rail__track .wp-block-image { flex: 0 0 clamp(250px, 30vw, 440px); scroll-snap-align: start; }
.tec-rail__track .wp-block-image:nth-child(even) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.tec-rail__track img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) {
	.tec-rail__head h2, .tec-rail__head p { grid-column: 1 / -1; }
	.tec-rail__head p { margin-top: 1rem; }
	.tec-rail__track .wp-block-image { flex-basis: 76vw; }
	.tec-rail__track .wp-block-image:nth-child(even) { margin-top: 0; }
}

/* ==================================================================
   Legado Carles Ferrer Salat
   ================================================================== */
.tec-legacy { padding: var(--space-l) var(--pad); background: var(--piedra-2); }
.tec-legacy__head { max-width: 58rem; margin-bottom: var(--space-m); }
.tec-legacy__head h2 { font-size: clamp(2.8rem, 1.6rem + 5vw, 6.5rem); line-height: .95; letter-spacing: -.025em; }
.tec-legacy__hero img { width: 100%; max-height: 82vh; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.tec-legacy__cols {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-m) calc(var(--gutter) * 2);
	margin-top: var(--space-m);
}
.tec-legacy__col p { color: var(--gris); }
.tec-legacy__small { margin-top: 2rem; max-width: 26rem; }
.tec-legacy__small img { filter: grayscale(1); border-radius: var(--radius); }
.tec-medals { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.4rem; }
.tec-medals .tec-fact, .tec-split__aside .tec-fact { background: none; min-height: 0; border: 0; border-top: 2px solid var(--tinta); padding: 1.2rem 0 0; display: block; grid-column: auto; grid-row: auto; }
.tec-medals .tec-fact__num { font-size: clamp(4.5rem, 3rem + 6vw, 9rem); color: var(--pino); letter-spacing: -.04em; margin-bottom: .4rem; }
.tec-medals .tec-fact + .tec-fact .tec-fact__num { color: var(--pista); }
.tec-medals .tec-fact__label, .tec-split__aside .tec-fact__label { color: var(--gris); }
@media (max-width: 899px) { .tec-legacy__cols { grid-template-columns: 1fr; } }

/* ==================================================================
   Frase de cierre
   ================================================================== */
.tec-statement {
	position: relative; overflow: hidden;
	background: var(--pino);
	padding: var(--space-l) var(--pad);
	text-align: center;
}
.tec-statement__a { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); color: var(--muted); margin-bottom: .6rem; }
.tec-statement__b { font-family: var(--serif); font-size: clamp(2.6rem, 1.2rem + 6vw, 7.2rem); line-height: .98; letter-spacing: -.03em; max-width: 14ch; margin-inline: auto; text-wrap: balance; }
.tec-statement::before,
.tec-statement::after { top: -30%; bottom: -30%; width: 40vw; border-width: 0; }
.tec-statement::before { left: -26vw; border-right: 2px solid var(--pelota); }
.tec-statement::after { right: -26vw; border-left: 2px solid var(--arco); opacity: .45; }

/* ==================================================================
   Explorar (tarjetas asimétricas)
   ================================================================== */
.tec-explore { padding: var(--space-l) var(--pad); }
.tec-explore__title { margin-bottom: var(--space-s); }
.tec-explore__grid {
	display: grid; gap: clamp(1rem, 2vw, 1.6rem);
	grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto;
}
.tec-card { position: relative; display: flex; flex-direction: column; }
.tec-card:first-child { grid-row: 1 / 3; }
.tec-card__img { overflow: hidden; border-radius: var(--radius); flex: 1; }
.tec-card__img img { width: 100%; height: 100%; min-height: 220px; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.tec-card:first-child .tec-card__img img { aspect-ratio: auto; min-height: 420px; }
.tec-card__title { margin: 1rem 0 .3rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); }
.tec-card__title a { text-decoration: none; }
.tec-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.tec-card__title a:focus-visible { outline: none; }
.tec-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: var(--radius); }
.tec-card__text { color: var(--gris); max-width: 32rem; }
@media (max-width: 799px) {
	.tec-explore__grid { grid-template-columns: 1fr; }
	.tec-card:first-child { grid-row: auto; }
	.tec-card:first-child .tec-card__img img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ==================================================================
   Consciencia
   ================================================================== */
.tec-split {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
	padding: var(--space-l) var(--pad);
}
.tec-split__text { grid-column: 1 / 7; }
.tec-split__text p { color: var(--gris); font-size: clamp(1.08rem, 1rem + .3vw, 1.24rem); }
.tec-split__aside { grid-column: 8 / 13; align-self: center; }
.tec-split__aside .tec-fact { margin-top: 2.2rem; }
.tec-split__aside .tec-fact__num { color: var(--pino); font-size: clamp(3.4rem, 2.4rem + 4vw, 6rem); letter-spacing: -.03em; }
.tec-split__aside .tec-fact__label { color: var(--gris); max-width: 24rem; }
.tec-bigquote, .tec-voice { margin: 0; padding: 0; border: 0; }
.tec-bigquote p { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.015em; color: var(--pino); }
.tec-bigquote cite, .tec-voice cite { display: block; margin-top: 1rem; font-family: var(--sc); font-style: normal; font-size: 1.1rem; color: var(--pista); }
@media (max-width: 899px) { .tec-split__text, .tec-split__aside { grid-column: 1 / -1; } .tec-split__aside { margin-top: 2.5rem; } }

.tec-ace {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-m);
	padding: var(--space-l) var(--pad); background: var(--piedra);
}
.tec-ace__text { grid-column: 1 / 9; }
.tec-ace__text p:not(.tec-lead):not(.tec-kicker) { color: var(--gris); max-width: 44rem; }
.tec-ace .tec-kicker { color: var(--pista); }
.tec-mosaic { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(.8rem, 1.6vw, 1.4rem); }
.tec-mosaic .wp-block-image:first-child { grid-row: 1 / 3; }
.tec-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); min-height: 200px; }
@media (max-width: 899px) { .tec-ace__text { grid-column: 1 / -1; } .tec-mosaic { grid-template-columns: 1fr 1fr; } .tec-mosaic .wp-block-image:first-child { grid-row: auto; grid-column: 1 / -1; } }

.tec-message {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
	padding: var(--space-l) var(--pad);
}
.tec-message__img { grid-column: 1 / 7; }
.tec-message__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; clip-path: ellipse(150% 100% at 0% 50%); }
.tec-message__text { grid-column: 8 / 13; }
.tec-message__text p { color: var(--gris); }
@media (max-width: 899px) { .tec-message__img, .tec-message__text { grid-column: 1 / -1; } .tec-message__text { margin-top: 2rem; } .tec-message__img img { clip-path: none; border-radius: var(--radius); aspect-ratio: 4 / 3; } }

.tec-manifesto { background: var(--pino); padding: var(--space-l) var(--pad); }
.tec-manifesto__big { font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3.4vw, 4.6rem); line-height: 1.06; letter-spacing: -.02em; max-width: 22ch; }
.tec-manifesto__big em { font-style: normal; color: var(--pelota); }
.tec-manifesto__small { margin-top: 2rem; max-width: 34rem; color: var(--muted); font-size: clamp(1.08rem, 1rem + .3vw, 1.25rem); margin-left: auto; }

.tec-voices { padding: var(--space-l) var(--pad); }
.tec-voices__title { max-width: 18ch; margin-bottom: var(--space-m); }
.tec-voices__quotes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; align-items: start; }
.tec-voices__img { grid-column: 1 / 6; grid-row: 1 / 3; }
.tec-voices__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); border-radius: var(--radius); }
.tec-voice { grid-column: 7 / 13; }
.tec-voice p { font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.9rem); line-height: 1.12; letter-spacing: -.012em; }
.tec-voice p::before { content: "“"; color: var(--pista); }
.tec-voice p::after { content: "”"; color: var(--pista); }
.tec-voice--short { border-top: 1px solid var(--rule); padding-top: 2.5rem; }
.tec-voices__gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); margin-top: var(--space-m); }
.tec-voices__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) {
	.tec-voices__img, .tec-voice { grid-column: 1 / -1; grid-row: auto; }
	.tec-voices__gallery { grid-template-columns: 1fr 1fr; }
}

.tec-values { background: var(--pelota); color: var(--tinta); padding: clamp(1.6rem, 3vw, 2.6rem) 0; overflow: hidden; }
.tec-values__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; width: max-content; gap: 0;
	animation: tec-marquee 38s linear infinite;
}
.tec-values__list li {
	font-family: var(--serif); font-size: clamp(2.4rem, 1.6rem + 3.6vw, 5.4rem); line-height: 1.05; letter-spacing: -.02em;
	white-space: nowrap; display: flex; align-items: center;
}
.tec-values__list li::after {
	content: ""; display: inline-block; width: .5em; height: .8em; margin: 0 .55em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 64'%3E%3Cpath d='M6 2c9 9 9 51 0 60M34 2c-9 9-9 51 0 60' fill='none' stroke='%2317201c' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .6;
}
.tec-values:hover .tec-values__list { animation-play-state: paused; }
@keyframes tec-marquee { to { transform: translateX(-50%); } }

/* ==================================================================
   Sostenibilidad
   ================================================================== */
.tec-energy {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
	padding: var(--space-l) var(--pad); background: var(--piedra);
}
.tec-energy__text { grid-column: 1 / 7; }
.tec-energy__text p:not(.tec-lead) { color: var(--gris); }
.tec-energy__media { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.tec-energy__seal { grid-column: 1 / -1; width: 128px; margin-bottom: 1rem; }
.tec-energy__seal img { border-radius: 50%; }
.tec-energy__media .wp-block-image:not(.tec-energy__seal) img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .tec-energy__text, .tec-energy__media { grid-column: 1 / -1; } .tec-energy__media { margin-top: 2.5rem; } }

.tec-restore {
	display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-s);
	padding: var(--space-l) var(--pad);
}
.tec-restore__text { grid-column: 1 / 6; }
.tec-restore__text p { color: var(--gris); }
.tec-restore__main { grid-column: 7 / 13; }
.tec-restore__main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.tec-restore__strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 1.6vw, 1.4rem); margin-top: var(--space-s); }
.tec-restore__strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 899px) { .tec-restore__text, .tec-restore__main { grid-column: 1 / -1; } }

/* ==================================================================
   Cabeceras de página (plantillas)
   ================================================================== */
.page-head,
.post-head { position: relative; overflow: hidden; background: var(--pino); }
.page-head__inner,
.post-head__inner { position: relative; z-index: 1; padding: clamp(8rem, 16vh, 11rem) var(--pad) var(--space-m); max-width: calc(58rem + var(--pad) * 2); }
.page-head__title { font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem); line-height: .95; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.page-head__lead,
.post-head__lead { font-family: var(--serif); font-size: clamp(1.3rem, 1.05rem + .9vw, 1.85rem); line-height: 1.28; color: var(--muted); max-width: 40rem; }
.page-head__count { margin-top: 2rem; color: var(--muted); }
.page-head__count strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; color: var(--pelota); margin-right: .3rem; }
.page-head::after {
	top: 12%; bottom: -60%; right: -16vw; width: 34vw;
	border-left: 2px solid var(--pelota); opacity: .8;
}
.page-head--404 { min-height: 80svh; display: flex; align-items: flex-end; }

.post-head__meta { font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.post-head__meta a { color: var(--pelota); }
.post-head__title { font-size: clamp(2.4rem, 1.4rem + 4vw, 5rem); line-height: 1; letter-spacing: -.025em; }
.post-head__media { padding: 0 var(--pad); margin-bottom: calc(var(--space-m) * -1); position: relative; z-index: 1; }
.post-head__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); }
.entry--post .post-head { padding-bottom: 0; overflow: visible; }
.entry--post .post-head::after { content: ""; display: block; height: var(--space-m); background: var(--papel); position: relative; z-index: 0; }
.entry__content--prose { padding-top: var(--space-m); }
.entry__content--prose > .tec-lead { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; padding: var(--space-m) var(--pad); border-top: 1px solid var(--rule); margin-top: var(--space-m); }
.post-nav a { text-decoration: none; font-family: var(--serif); font-size: 1.3rem; display: block; max-width: 26rem; }
.post-nav small { display: block; font-family: var(--sans); font-size: .85rem; color: var(--gris); margin-bottom: .3rem; }
.post-nav__next { text-align: right; margin-left: auto; }

/* ==================================================================
   Equipo
   ================================================================== */
.team { padding: var(--space-m) var(--pad) var(--space-l); }
.team__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.team__filters[hidden] { display: none; }
.team__filter {
	font: 550 .95rem var(--sans); color: var(--tinta);
	background: transparent; border: 1.5px solid var(--rule); border-radius: 999px;
	min-height: 44px; padding: .5rem 1.1rem; cursor: pointer;
	transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.team__filter span { color: var(--gris); margin-left: .25rem; font-variant-numeric: tabular-nums; }
.team__filter:hover { border-color: var(--pino); }
.team__filter[aria-pressed="true"] { background: var(--pino); border-color: var(--pino); color: var(--piedra); }
.team__filter[aria-pressed="true"] span { color: var(--pelota); }
.team__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr));
	gap: clamp(1.6rem, 3vw, 2.6rem) clamp(.9rem, 2vw, 1.6rem);
}
.member[hidden] { display: none; }
.member__media {
	aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
	background: var(--piedra-2); display: grid; place-items: center; margin-bottom: .9rem;
}
.member__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .6s var(--ease); }
.member__initials {
	font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); color: var(--pista); letter-spacing: .02em;
	position: relative;
}
.member__initials::before,
.member__initials::after {
	content: ""; position: absolute; top: -.35em; bottom: -.35em; width: .45em;
	border: 0 solid var(--arco); border-radius: 50%;
}
.member__initials::before { left: -.75em; border-right-width: 2px; }
.member__initials::after { right: -.75em; border-left-width: 2px; }
.member__name { font-weight: 650; font-size: 1.05rem; margin: 0 0 .15rem; line-height: 1.3; }
.member__role { font-size: .9rem; color: var(--gris); margin: 0; line-height: 1.4; }

/* ==================================================================
   Noticias
   ================================================================== */
.news { padding: var(--space-m) var(--pad) var(--space-l); }
.news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-s) clamp(1rem, 2vw, 1.6rem); }
.news-card__link { display: flex; flex-direction: column; gap: 1rem; text-decoration: none; height: 100%; }
.news-card__media { display: block; overflow: hidden; border-radius: var(--radius); }
.news-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.news-card__body { display: flex; flex-direction: column; gap: .5rem; }
.news-card__date { font-size: .9rem; color: var(--gris); }
.news-card__title { font-family: var(--serif); font-size: clamp(1.35rem, 1.15rem + .6vw, 1.7rem); line-height: 1.15; }
.news-card__link:hover .news-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.news-card--lead { grid-column: 1 / -1; }
.news-card--lead .news-card__link { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: center; }
.news-card--lead .news-card__title { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3.2rem); line-height: 1.05; }
.news-card__excerpt { color: var(--gris); font-size: 1.08rem; }
.news__empty { max-width: 36rem; padding: var(--space-m) 0; color: var(--gris); font-size: 1.15rem; }
.news__pagination { margin-top: var(--space-m); }
.news__pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.news__pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 1.5px solid var(--rule); border-radius: 999px; text-decoration: none; }
.news__pagination .page-numbers.current { background: var(--pino); border-color: var(--pino); color: var(--piedra); }
@media (max-width: 899px) {
	.news__grid { grid-template-columns: 1fr 1fr; }
	.news-card--lead .news-card__link { grid-template-columns: 1fr; }
}
@media (max-width: 599px) { .news__grid { grid-template-columns: 1fr; } }

/* ==================================================================
   Contacto
   ================================================================== */
.tec-contact {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-s) calc(var(--gutter) * 1.5);
	padding: var(--space-m) var(--pad);
}
.tec-contact__item { border-top: 2px solid var(--tinta); padding-top: 1.3rem; }
.tec-contact__item h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: .5rem; }
.tec-contact__item p { color: var(--gris); }
.tec-contact__line { margin-top: 1rem; color: var(--tinta) !important; font-size: 1.1rem; }
.tec-contact__img { padding: 0 var(--pad) var(--space-l); }
.tec-contact__img img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 699px) { .tec-contact { grid-template-columns: 1fr; } .tec-contact__img img { aspect-ratio: 4 / 3; } }

/* ==================================================================
   Pie
   ================================================================== */
.site-footer { position: relative; overflow: hidden; background: var(--pino-3); padding: var(--space-m) var(--pad) 1.5rem; }
.site-footer__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: var(--space-s) var(--gutter);
	padding-bottom: var(--space-m); border-bottom: 1px solid var(--rule);
}
.site-footer .tec-logo { width: 220px; }
.site-footer__claim { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); line-height: 1.2; margin-top: 1.6rem; max-width: 20ch; }
.site-footer .site-nav__list { flex-direction: column; gap: .2rem; }
.site-footer .site-nav__list a { font-size: 1.05rem; }
.site-footer__about { color: var(--muted); font-size: .98rem; }
.site-footer__about strong { color: var(--piedra); font-weight: 600; }
.site-footer__base {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
	padding-top: 1.4rem; font-size: .88rem; color: var(--muted);
}
.site-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; }
.site-footer__legal a { text-decoration: none; color: var(--muted); }
.site-footer__legal a:hover { color: var(--piedra); text-decoration: underline; }
.site-footer__seam { right: -18vw; top: -30%; bottom: -30%; width: 46vw; border-left: 2px solid var(--pelota); opacity: .35; }
@media (max-width: 899px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ==================================================================
   Movimiento reducido
   ================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.tec-values__list { animation: none; flex-wrap: wrap; width: auto; padding-inline: var(--pad); }
}
