/* Tekmar · estilos de marca. Fuente: GUIA-MKT-001 y tokens-marca.css */

@font-face { font-family: "League Spartan"; font-weight: 400; font-display: swap; src: url("../fonts/league-spartan-400.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-weight: 500; font-display: swap; src: url("../fonts/league-spartan-500.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-weight: 600; font-display: swap; src: url("../fonts/league-spartan-600.woff2") format("woff2"); }
@font-face { font-family: "League Spartan"; font-weight: 700; font-display: swap; src: url("../fonts/league-spartan-700.woff2") format("woff2"); }

:root {
	--tk-blanco: #FFFFFF;
	--tk-niebla: #F2F7F7;
	--tk-turquesa: #2BC8BE;
	--tk-turquesa-profundo: #177A73;
	--tk-tinta: #0F2B2E;
	--tk-gris-texto: #5B6B6D;
	--tk-ambar: #FFB547;
	--tk-linea: #E3EEEE;
	--tk-font: "League Spartan", Arial, sans-serif;
	--tk-radio-boton: 8px;
	--tk-radio-tarjeta: 14px;
	--tk-ancho: 1200px;
	--tk-gutter: clamp(16px, 4vw, 32px);
	--tk-espacio-seccion: clamp(56px, 7vw, 96px);
}

/* Tipografía */
body, button, input, select, textarea { font-family: var(--tk-font); }
body { color: var(--tk-tinta); font-size: clamp(17px, 16px + 0.3vw, 18px); line-height: 1.5; }
body .entry-content h1, body h1 { font-size: clamp(2.125rem, 1.7rem + 1.9vw, 3rem); line-height: 1.1; font-weight: 700; color: var(--tk-tinta); }
body .entry-content h2 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); line-height: 1.2; font-weight: 600; color: var(--tk-tinta); }
body .entry-content h3 { font-size: clamp(1.25rem, 1.18rem + 0.3vw, 1.375rem); line-height: 1.3; font-weight: 600; color: var(--tk-tinta); }
body .entry-content p, body .entry-content li { max-width: 68ch; overflow-wrap: break-word; }
a { color: var(--tk-turquesa-profundo); text-underline-offset: 3px; }
.tk-eyebrow { color: var(--tk-turquesa-profundo); font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.tk-pequeno { font-size: 14px; color: var(--tk-gris-texto); }

/* Foco visible (WCAG 2.2) */
:focus-visible { outline: 2px solid var(--tk-turquesa-profundo); outline-offset: 2px; }

/* Botones: principal ámbar por defecto */
body .wp-block-button .wp-block-button__link,
body .tk-form button[type="submit"] {
	background: var(--tk-ambar);
	color: var(--tk-tinta);
	border: 2px solid var(--tk-ambar);
	border-radius: var(--tk-radio-boton);
	padding: 14px 24px;
	font-family: var(--tk-font);
	font-weight: 500;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.2s, background-color 0.2s, color 0.2s;
}
body .wp-block-button .wp-block-button__link::after { content: "→"; display: inline-block; margin-left: 8px; transition: transform 0.2s; }
body .wp-block-button .wp-block-button__link:hover,
body .tk-form button[type="submit"]:hover { filter: brightness(0.94); color: var(--tk-tinta); }
body .wp-block-button .wp-block-button__link:hover::after { transform: translateX(4px); }

/* Secundario: borde turquesa profundo (cabecera y acciones de apoyo) */
body .wp-block-button.is-style-tk-secundario .wp-block-button__link,
body .ast-header-button-1 .ast-custom-button {
	background: transparent;
	color: var(--tk-turquesa-profundo);
	border: 2px solid var(--tk-turquesa-profundo);
	border-radius: var(--tk-radio-boton);
	filter: none;
}
body .wp-block-button.is-style-tk-secundario .wp-block-button__link:hover,
body .ast-header-button-1 .ast-custom-button:hover { background: var(--tk-turquesa-profundo); color: var(--tk-blanco); }

/* Enlace con aspecto de texto */
body .wp-block-button.is-style-tk-enlace .wp-block-button__link { background: none; border-color: transparent; color: var(--tk-turquesa-profundo); padding-inline: 0; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Formulario de diagnóstico */
.tk-form { display: grid; gap: 4px; background: var(--tk-blanco); border: 1px solid var(--tk-linea); border-radius: var(--tk-radio-tarjeta); padding: clamp(20px, 4vw, 32px); }
.tk-form__campo { display: grid; gap: 6px; margin: 0 0 12px; }
.tk-form label { font-weight: 500; font-size: 15px; }
.tk-form__opcional { font-weight: 400; color: var(--tk-gris-texto); }
.tk-form input[type="text"], .tk-form input[type="email"], .tk-form input[type="tel"], .tk-form textarea {
	width: 100%; border: 1px solid var(--tk-linea); border-radius: var(--tk-radio-boton); padding: 12px 14px;
	font: inherit; color: var(--tk-tinta); background: var(--tk-blanco);
}
.tk-form input:focus-visible, .tk-form textarea:focus-visible { border-color: var(--tk-turquesa-profundo); }
.tk-form__consentimiento { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; margin: 4px 0 16px; }
.tk-form__consentimiento input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--tk-turquesa-profundo); }
.tk-form__info-legal { font-size: 13px; line-height: 1.4; color: var(--tk-gris-texto); margin: -8px 0 16px; }
.tk-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tk-form__aviso { border-radius: var(--tk-radio-boton); padding: 12px 16px; margin: 0 0 16px; background: var(--tk-niebla); border-left: 3px solid var(--tk-turquesa-profundo); }
.tk-form__aviso--campos, .tk-form__aviso--correo, .tk-form__aviso--consentimiento, .tk-form__aviso--limite { border-left-color: var(--tk-tinta); }

/* Secciones a todo el ancho con contenido centrado */
.entry-content > .tk-section, .entry-content .tk-section { margin: 0; padding: var(--tk-espacio-seccion) 0; }
.entry-content .tk-section.has-background { padding: var(--tk-espacio-seccion) 0; }
.tk-container { max-width: var(--tk-ancho); margin-inline: auto; padding-inline: var(--tk-gutter); }
.tk-container--estrecho { max-width: 760px; }
.tk-section h2 { margin-bottom: 0.6em; }
.tk-cierre, body .entry-content .tk-cierre h2, body .entry-content .tk-cierre p { color: var(--tk-blanco); }

/* Hero */
.tk-hero { padding-top: clamp(40px, 7vw, 96px); }
.tk-hero__apoyo { font-size: clamp(18px, 17px + 0.4vw, 21px); color: var(--tk-tinta); }
.tk-hero__confianza { margin-top: 24px; }

/* Diagrama del hero: los puntos sueltos se ordenan y se unen */
.tk-diagrama { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; font-family: var(--tk-font); }
.tk-diagrama rect { fill: var(--tk-blanco); stroke: var(--tk-linea); stroke-width: 1.5; }
.tk-diagrama text { fill: var(--tk-tinta); font-size: 16px; text-anchor: middle; }
.tk-diagrama__nucleo rect { fill: var(--tk-niebla); stroke: var(--tk-turquesa); stroke-width: 2; }
.tk-diagrama__linea { fill: none; stroke: var(--tk-turquesa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Tarjetas, casos y antes/después */
.tk-tarjeta { border-radius: var(--tk-radio-tarjeta); padding: clamp(20px, 3vw, 32px); }
.tk-icono { color: var(--tk-turquesa); margin-bottom: 12px; }
.tk-caso { border-top: 2px solid var(--tk-turquesa); padding-top: 20px; }
.tk-antes, .tk-despues { border-radius: var(--tk-radio-tarjeta); padding: clamp(20px, 3vw, 32px); }
.tk-antes { border: 1px solid var(--tk-linea); }
.tk-despues { border-left: 3px solid var(--tk-turquesa); }

/* Listas con punto turquesa */
.tk-lista { list-style: none; padding-left: 0; }
.tk-lista li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.tk-lista li::before { content: "●"; position: absolute; left: 0; color: var(--tk-turquesa); font-size: 12px; top: 0.35em; }
.tk-lista--antes li { color: var(--tk-gris-texto); }
.tk-lista--antes li::before { content: "–"; color: var(--tk-gris-texto); font-size: inherit; top: 0; }

/* La línea que une: problema → respuesta */
.tk-dolores { display: grid; gap: clamp(24px, 4vw, 40px); }
.tk-dolor { display: grid; gap: 8px; position: relative; padding-left: 28px; }
.tk-dolor p { margin: 0; }
.tk-dolor::before { content: ""; position: absolute; left: 6px; top: 0.5em; bottom: 0.5em; width: 2px; background: var(--tk-turquesa); transform-origin: top; }
.tk-dolor__problema { color: var(--tk-gris-texto); }
.tk-dolor__respuesta { font-weight: 600; }
@media (min-width: 782px) {
	.tk-dolor { grid-template-columns: 1fr 72px 1fr; align-items: center; padding-left: 0; }
	.tk-dolor::before { position: static; grid-column: 2; grid-row: 1; width: 100%; height: 2px; transform-origin: left; }
	.tk-dolor__problema { grid-column: 1; grid-row: 1; }
	.tk-dolor__respuesta { grid-column: 3; grid-row: 1; }
}

/* Pasos sobre la línea vertical */
.tk-pasos { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: paso; }
.tk-pasos > li { counter-increment: paso; position: relative; padding: 0 0 32px 56px; }
.tk-pasos > li::before { content: counter(paso); position: absolute; left: 0; top: -4px; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--tk-turquesa); background: var(--tk-blanco); color: var(--tk-tinta); font-weight: 600; display: grid; place-items: center; z-index: 1; }
.tk-pasos > li::after { content: ""; position: absolute; left: 17px; top: 32px; bottom: 0; width: 2px; background: var(--tk-turquesa); }
.tk-pasos > li:last-child::after { display: none; }

/* Movimiento: solo si el usuario no pide reducirlo */
@media (prefers-reduced-motion: no-preference) {
	.tk-chip { transform-box: fill-box; transform-origin: center; animation: tk-ordenar 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
	.tk-diagrama__linea { stroke-dasharray: 1; animation: tk-dibujar 0.5s ease-out 0.5s both; }
	.tk-diagrama__nucleo { animation: tk-aparecer 0.3s ease-out 0.9s both; }

	@supports (animation-timeline: view()) {
		.tk-reveal { animation: tk-aparecer-sube linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
		.tk-dolor::before { animation: tk-trazo linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
		.tk-pasos > li::before { animation: tk-encender linear both; animation-timeline: view(); animation-range: entry 30% cover 40%; }
	}
}
@keyframes tk-ordenar { from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } to { transform: none; } }
@keyframes tk-dibujar { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes tk-aparecer { from { opacity: 0; } to { opacity: 1; } }
@keyframes tk-aparecer-sube { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes tk-trazo { from { transform: scale(0); } to { transform: none; } }
@keyframes tk-encender { from { background: var(--tk-blanco); } to { background: var(--tk-turquesa); } }

/* Pie en tinta con logotipo blanco */
.tk-pie { background: var(--tk-tinta); color: var(--tk-blanco); padding: clamp(48px, 7vw, 80px) 0 32px; }
.tk-pie a, .tk-pie h3, .tk-pie p, .tk-pie li { color: var(--tk-blanco); }
.tk-pie h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.tk-pie ul { list-style: none; margin: 0; padding: 0; }
.tk-pie li { margin-bottom: 8px; opacity: 0.85; }
.tk-pie a:hover { color: var(--tk-turquesa); }
.tk-pie__legal { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 32px; padding-top: 20px; font-size: 14px; opacity: 0.85; }
.tk-pie--minimo { padding: 24px 0; }
.tk-pie--minimo .tk-pie__legal { border-top: 0; margin: 0; padding: 0; }

/* Landing */
.tk-cabecera-landing { padding: 20px 0; border-bottom: 1px solid var(--tk-linea); }
.tk-landing h1 { margin-bottom: 20px; }

/* Legales */
.tk-legal h2 { font-size: 22px; margin-top: 32px; }

/* Cabecera: menú en tinta; activo y hover en turquesa profundo (contraste AA) */
body .main-header-menu .menu-link { color: var(--tk-tinta); font-weight: 500; }
body .main-header-menu .menu-item:hover > .menu-link,
body .main-header-menu .current-menu-item > .menu-link,
body .main-header-menu .current-menu-ancestor > .menu-link { color: var(--tk-turquesa-profundo); }
body .ast-primary-header-bar { border-bottom: 1px solid var(--tk-linea); }

/* Preguntas frecuentes */
.entry-content .wp-block-details { border-bottom: 1px solid var(--tk-linea); padding: 16px 0; }
.entry-content .wp-block-details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: "+"; color: var(--tk-turquesa-profundo); font-size: 22px; line-height: 1; }
.entry-content .wp-block-details[open] summary::after { content: "–"; }
.entry-content .wp-block-details p { margin: 12px 0 0; color: var(--tk-gris-texto); }

/* Banner de cookies: solo existe si hay Google Analytics. «Aceptar» y «Rechazar» con el mismo peso (AEPD). */
.tk-cookies {
	position: fixed; z-index: 999; left: var(--tk-gutter); right: var(--tk-gutter); bottom: 16px;
	max-width: 560px; margin-inline: auto;
	background: var(--tk-niebla); color: var(--tk-tinta); border: 1px solid var(--tk-linea); border-radius: var(--tk-radio-tarjeta);
	padding: 20px 24px; font-size: 15px; line-height: 1.45;
}
.tk-cookies[hidden] { display: none; }
.tk-cookies p { margin: 0 0 12px; }
.tk-cookies__titulo { font-weight: 600; font-size: 17px; }
.tk-cookies__botones { display: flex; flex-wrap: wrap; gap: 12px; }
.tk-cookies__botones button {
	flex: 1 1 140px; min-height: 44px; cursor: pointer;
	font: inherit; font-weight: 600; color: var(--tk-turquesa-profundo);
	background: var(--tk-blanco); border: 2px solid var(--tk-turquesa-profundo); border-radius: var(--tk-radio-boton);
}
.tk-cookies__botones button:hover { background: var(--tk-turquesa-profundo); color: var(--tk-blanco); }
.tk-solo-cookies { display: none; }
.tk-con-cookies .tk-solo-cookies { display: inline; }
