/* ==========================================================
   KIT DE MAQUETACIÓN — tonibeledo.com
   Dirección: "Operativo" (Novamira design: operativo)
   Orden: 1. Fuentes  2. Tokens  3. Base  4. Patrones  5. Utilidades
   ========================================================== */

/* 1. FUENTES — Geist alojada en local (RGPD) */
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/geist-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Geist";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("../fonts/geist-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. TOKENS — lo único que cambia entre webs */
:root {
	--tb-color-texto: #14181f;
	--tb-color-fondo: #f4f5f2;
	--tb-color-superficie: #ffffff;
	--tb-color-suave: #e9ece7;
	--tb-color-linea: #d5dad3;
	--tb-color-secundario: #4e5650;
	--tb-color-acento: #0e7c5a;
	--tb-color-acento-hover: #0b6649;
	--tb-color-oscuro: #14181f;
	--tb-color-sobre-oscuro: #eef1ec;

	--tb-fuente: "Geist", system-ui, -apple-system, sans-serif;

	--tb-espacio-s: 1rem;
	--tb-espacio-m: 2rem;
	--tb-espacio-l: 4rem;
	--tb-espacio-xl: 7rem;

	--tb-ancho: 1100px;
	--tb-ancho-lectura: 65ch;
	--tb-radio: 6px;
}

/* 3. BASE */
body {
	font-family: var(--tb-fuente);
	color: var(--tb-color-texto);
	background-color: var(--tb-color-fondo);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--tb-fuente);
	color: inherit;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}
a { color: var(--tb-color-acento); }
a:hover, a:focus { color: var(--tb-color-acento-hover); }
.site-header,
.site-info {
	background-color: var(--tb-color-fondo);
}
.site-info { color: var(--tb-color-secundario); }

/* 4. PATRONES (prefijo .tb-) */

/* Sección */
.tb-section {
	padding: var(--tb-espacio-xl) 24px;
	background-color: var(--tb-color-fondo);
}
.tb-section--superficie { background-color: var(--tb-color-superficie); }
.tb-section--suave { background-color: var(--tb-color-suave); }
.tb-section--oscura {
	background-color: var(--tb-color-oscuro);
	color: var(--tb-color-sobre-oscuro);
}
.tb-inner {
	max-width: var(--tb-ancho);
	margin-left: auto;
	margin-right: auto;
}
.tb-section p { margin-bottom: 0; }

/* Tipos */
.tb-eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tb-color-acento);
	margin: 0 0 1.25rem;
}
.tb-h1 {
	font-size: clamp(2.5rem, 5.6vw, 4.25rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
	margin: 0 0 1.5rem;
	max-width: 12ch;
}
.tb-h2 {
	font-size: clamp(1.875rem, 3.4vw, 2.75rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	margin: 0 0 1.25rem;
	max-width: 20ch;
}
.tb-h3 {
	font-size: 1.1875rem;
	line-height: 1.25;
	letter-spacing: -0.01em;
	margin: 0 0 0.5rem;
}
.tb-lead {
	font-size: 1.1875rem;
	line-height: 1.55;
	color: var(--tb-color-secundario);
	max-width: 46ch;
}
.tb-text {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--tb-color-secundario);
	max-width: var(--tb-ancho-lectura);
}
.tb-text + .tb-text { margin-top: 1rem; }
.tb-section--oscura .tb-text,
.tb-section--oscura .tb-lead { color: #b9c1ba; }

/* Botones */
.tb-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.25rem;
}
.tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.875rem 1.5rem;
	border-radius: var(--tb-radio);
	border: 1px solid transparent;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.tb-btn:active { transform: translateY(1px); }
.tb-btn--primario,
.tb-btn--primario:visited {
	background-color: var(--tb-color-acento);
	color: #ffffff;
}
.tb-btn--primario:hover,
.tb-btn--primario:focus {
	background-color: var(--tb-color-acento-hover);
	color: #ffffff;
}
.tb-btn--secundario,
.tb-btn--secundario:visited {
	border-color: var(--tb-color-texto);
	color: var(--tb-color-texto);
	background-color: transparent;
}
.tb-btn--secundario:hover,
.tb-btn--secundario:focus {
	background-color: var(--tb-color-texto);
	color: var(--tb-color-fondo);
}
.tb-btn:focus-visible {
	outline: 2px solid var(--tb-color-acento);
	outline-offset: 3px;
}

/* Placeholder de imagen declarado (sustituir por foto real) */
.tb-ph {
	border-radius: var(--tb-radio);
	background:
		radial-gradient(120% 80% at 85% 10%, rgba(14, 124, 90, 0.22), transparent 60%),
		linear-gradient(165deg, #e9ece7 0%, #d5dad3 100%);
	aspect-ratio: 4 / 5;
	width: 100%;
}
.tb-ph--ancho { aspect-ratio: 5 / 4; }

/* Hero */
.tb-hero { padding-top: var(--tb-espacio-l); padding-bottom: var(--tb-espacio-l); }
.tb-hero__grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: var(--tb-espacio-l);
	align-items: center;
}
.tb-hero__media { max-width: 420px; justify-self: end; }

/* Señales (2x2 con filetes) */
.tb-signals {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--tb-espacio-l);
	row-gap: 2.75rem;
	margin-top: 3.5rem;
}
.tb-signal {
	border-top: 1px solid var(--tb-color-linea);
	padding-top: 1.5rem;
}
.tb-signal .tb-text { font-size: 1rem; }

/* Caso (sección oscura) */
.tb-case {
	display: grid;
	grid-template-columns: 6fr 5fr;
	gap: var(--tb-espacio-l);
	align-items: start;
}
.tb-case .tb-h2 { font-size: clamp(2.125rem, 4.2vw, 3.5rem); margin: 0; max-width: 14ch; }
.tb-case__list {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}
.tb-case__list li {
	border-top: 1px solid rgba(238, 241, 236, 0.16);
	padding: 1rem 0;
	font-size: 1.0625rem;
	color: var(--tb-color-sobre-oscuro);
}
.tb-case__list li:last-child { border-bottom: 1px solid rgba(238, 241, 236, 0.16); }

/* Método (filas con precio) */
.tb-method {
	display: grid;
	grid-template-columns: 4fr 8fr;
	gap: var(--tb-espacio-l);
	align-items: start;
}
.tb-steps { border-top: 1px solid var(--tb-color-linea); }
.tb-step {
	display: grid;
	grid-template-columns: 1fr auto;
	column-gap: var(--tb-espacio-m);
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--tb-color-linea);
}
.tb-step .tb-text { font-size: 1rem; max-width: 48ch; }
.tb-step__price {
	font-size: 1.0625rem;
	font-weight: 600;
	white-space: nowrap;
	color: var(--tb-color-texto);
	padding-top: 0.125rem;
}

/* Sobre mí */
.tb-about {
	display: grid;
	grid-template-columns: 4fr 7fr;
	gap: var(--tb-espacio-l);
	align-items: center;
}

/* CTA final */
.tb-cta {
	text-align: center;
	max-width: 640px;
	margin: 0 auto;
}
.tb-cta .tb-h2,
.tb-cta .tb-text { margin-left: auto; margin-right: auto; }
.tb-cta .tb-actions { justify-content: center; }

/* Responsive: todo colapsa a una columna */
@media (max-width: 900px) {
	.tb-hero__grid,
	.tb-case,
	.tb-method,
	.tb-about { grid-template-columns: 1fr; gap: var(--tb-espacio-m); }
	.tb-hero__media { justify-self: start; max-width: 360px; }
	.tb-about .tb-ph { max-width: 320px; }
}
@media (max-width: 767px) {
	.tb-section { padding: var(--tb-espacio-l) 20px; }
	.tb-hero { padding-top: var(--tb-espacio-m); }
	.tb-signals { grid-template-columns: 1fr; row-gap: 2rem; margin-top: 2.5rem; }
	.tb-step { grid-template-columns: 1fr; row-gap: 0.75rem; }
	.tb-hero__media { display: none; }
}

/* Artículo (entradas del blog) */
.single-post .inside-article {
	padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 5vw, 3rem);
}
.single-post .inside-article > .entry-header,
.single-post .inside-article > .entry-content,
.single-post .inside-article > .entry-meta,
.single-post .inside-article > footer {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.single-post .entry-title {
	font-size: clamp(2rem, 4.5vw, 3rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
}
.single-post .entry-header .entry-meta {
	font-size: 0.9375rem;
	color: var(--tb-color-secundario);
}
.single-post .entry-content {
	font-size: 1.125rem;
	line-height: 1.7;
}
.single-post .entry-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	line-height: 1.15;
	margin: 3.25rem 0 1rem;
}
.single-post .entry-content h3 {
	font-size: 1.25rem;
	line-height: 1.3;
	margin: 2rem 0 0.5rem;
}
.tb-entradilla {
	font-size: clamp(1.25rem, 2.2vw, 1.4375rem);
	line-height: 1.45;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--tb-color-texto);
	padding-bottom: 2rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid var(--tb-color-linea);
}
.tb-cita {
	font-size: 1.5rem;
	line-height: 1.3;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--tb-color-texto);
}
.tb-destacado {
	border-left: 3px solid var(--tb-color-acento);
	padding: 0.25rem 0 0.25rem 1.25rem;
	font-size: 1.1875rem;
	line-height: 1.55;
	color: var(--tb-color-texto);
}
.single-post .entry-content .tb-lista {
	list-style: none;
	margin: 1.5rem 0 2rem;
	padding: 0;
}
.tb-lista li {
	position: relative;
	padding: 0.875rem 0 0.875rem 1.75rem;
	border-top: 1px solid var(--tb-color-linea);
	margin: 0;
}
.tb-lista li:last-child { border-bottom: 1px solid var(--tb-color-linea); }
.tb-lista li::before {
	content: "";
	position: absolute;
	left: 0.125rem;
	top: 1.55rem;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 2px;
	background-color: var(--tb-color-acento);
}
.tb-pasos { margin-top: 1.5rem; }
.tb-paso {
	border-top: 1px solid var(--tb-color-linea);
	padding-top: 1.5rem;
	margin-top: 2rem;
}
.single-post .entry-content .tb-paso h3 { margin-top: 0; }
.tb-paso > p:last-child,
.tb-cta-caja > *:last-child { margin-bottom: 0; }
.tb-cta-caja {
	background-color: var(--tb-color-suave);
	border-radius: var(--tb-radio);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	margin-top: 3.5rem;
}
.single-post .entry-content .tb-cta-caja h2 { margin-top: 0; }
/* GeneratePress añade padding y ancho a los grupos: lo anulamos en los del kit */
.tb-pasos > .wp-block-group__inner-container,
.tb-paso > .wp-block-group__inner-container,
.tb-cta-caja > .wp-block-group__inner-container {
	padding: 0;
	margin: 0;
	max-width: none;
}
.tb-paso:first-child { margin-top: 0; }
.tb-cta-caja .wp-block-buttons { margin-top: 1.75rem; }
/* Botones de bloque: especificidad por encima de a.wp-block-button__link:not(.has-background) de GP */
.tb-boton a.wp-block-button__link:not(.has-background),
.tb-boton a.wp-block-button__link:not(.has-background):visited {
	background-color: var(--tb-color-acento);
	color: #ffffff;
	border-radius: var(--tb-radio);
	padding: 0.875rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
}
.tb-boton a.wp-block-button__link:not(.has-background):hover,
.tb-boton a.wp-block-button__link:not(.has-background):focus {
	background-color: var(--tb-color-acento-hover);
	color: #ffffff;
}

/* 5. UTILIDADES */
