/* ==========================================================================
   TB Datos — estilos del tema
   Índice: 1 Tokens · 2 Base · 3 Utilidades · 4 Botones · 5 Cabecera · 6 Pie
           7 Secciones y patrones · 8 Portada · 9 Tarjetas · 10 Demos
           11 Soluciones · 12 Proyectos · 13 Formulario · 14 Cookies
           15 Contenido · 16 Movimiento reducido · 17 Impresión
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--tb-navy: var(--wp--preset--color--navy, #101C2C);
	--tb-blue: var(--wp--preset--color--blue, #2563EB);
	--tb-blue-dark: var(--wp--preset--color--blue-dark, #1D4ED8);
	--tb-white: #fff;
	--tb-light: var(--wp--preset--color--light, #F1F5F9);
	--tb-surface: var(--wp--preset--color--surface, #F8FAFC);
	--tb-border: var(--wp--preset--color--border, #E2E8F0);
	--tb-border-strong: #CBD5E1;
	--tb-muted: var(--wp--preset--color--muted, #64748B);
	--tb-slate: var(--wp--preset--color--slate, #334155);
	--tb-ok: #047857;
	--tb-ok-bg: #ECFDF5;
	--tb-warn: #B45309;
	--tb-warn-bg: #FFFBEB;
	--tb-err: #B91C1C;
	--tb-err-bg: #FEF2F2;
	--tb-radius: 14px;
	--tb-radius-sm: 10px;
	--tb-shadow-sm: 0 1px 2px rgba(16, 28, 44, .06), 0 1px 1px rgba(16, 28, 44, .04);
	--tb-shadow: 0 12px 32px -12px rgba(16, 28, 44, .18), 0 2px 6px -2px rgba(16, 28, 44, .06);
	--tb-shadow-lg: 0 30px 60px -20px rgba(16, 28, 44, .28), 0 8px 20px -8px rgba(16, 28, 44, .12);
	--tb-gutter: clamp(1.25rem, 4vw, 2.5rem);
	--tb-wide: 1200px;
	--tb-header-h: 72px;
	--tb-ease: cubic-bezier(.2, .7, .2, 1);
	--tb-mono: var(--wp--preset--font-family--mono, ui-monospace, monospace);
	/* Acento por defecto (se sobrescribe con data-accent). */
	--accent: var(--tb-blue);
	--accent-strong: var(--tb-blue-dark);
	--accent-tint: #EFF6FF;
	--accent-soft: #BFDBFE;
}

[data-accent="gestion"], .tb-accent-gestion { --accent: #4F46E5; --accent-strong: #4338CA; --accent-tint: #EEF2FF; --accent-soft: #C7D2FE; }
[data-accent="analytics"], .tb-accent-analytics { --accent: #0E7490; --accent-strong: #155E75; --accent-tint: #ECFEFF; --accent-soft: #A5F3FC; }
[data-accent="editorial"], .tb-accent-editorial { --accent: #B45309; --accent-strong: #92400E; --accent-tint: #FFFBEB; --accent-soft: #FDE68A; }
[data-accent="commerce"], .tb-accent-commerce { --accent: #047857; --accent-strong: #065F46; --accent-tint: #ECFDF5; --accent-soft: #A7F3D0; }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tb-header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	font-feature-settings: "cv11", "ss01", "ss03";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
svg { display: block; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; margin-top: 0; }
p { text-wrap: pretty; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--tb-blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: #BFDBFE; color: var(--tb-navy); }
.site-main:focus { outline: none; }
mark.tb-pending { background: var(--tb-warn-bg); color: var(--tb-warn); padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 1000; padding: .75rem 1rem;
	background: var(--tb-navy); color: #fff; border-radius: var(--tb-radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. Utilidades ------------------------------------------------------------ */
.tb-container { width: 100%; max-width: calc(var(--tb-wide) + 2 * var(--tb-gutter)); margin-inline: auto; padding-inline: var(--tb-gutter); }
.tb-section-sm { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.tb-bg-surface { background: var(--tb-surface); border-block: 1px solid var(--tb-border); }
.tb-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
	font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tb-blue);
}
.tb-eyebrow::before { content: ""; width: 1.25rem; height: 1px; background: currentColor; }
.tb-badge {
	display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .35rem .75rem .35rem .5rem;
	border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; font-size: .875rem;
	border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.tb-badge .tb-svg { width: 18px; height: 18px; }
.tb-empty { padding: 2rem; border: 1px dashed var(--tb-border-strong); border-radius: var(--tb-radius); color: var(--tb-muted); text-align: center; background: var(--tb-surface); }
.tb-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.tb-ico { display: inline-block; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--tb-ico) center / contain no-repeat; mask: var(--tb-ico) center / contain no-repeat; }
.tb-notice { padding: 1rem 1.25rem; border-radius: var(--tb-radius-sm); border: 1px solid; font-size: .9375rem; }
.tb-notice--success { background: var(--tb-ok-bg); border-color: #A7F3D0; color: #065F46; }
.tb-notice--error { background: var(--tb-err-bg); border-color: #FECACA; color: var(--tb-err); }
.tb-notice--info { background: #EFF6FF; border-color: #BFDBFE; color: #1E3A8A; }

/* 4. Botones --------------------------------------------------------------- */
.tb-btn, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .8rem 1.25rem; border-radius: var(--tb-radius-sm); border: 1px solid transparent;
	font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background-color .15s var(--tb-ease), border-color .15s var(--tb-ease), color .15s var(--tb-ease), box-shadow .15s var(--tb-ease);
}
.tb-btn .tb-svg, .wp-block-button__link .tb-svg { width: 18px; height: 18px; }
.tb-btn--primary { background: var(--tb-blue); color: #fff; box-shadow: 0 1px 2px rgba(16, 28, 44, .12), inset 0 1px 0 rgba(255, 255, 255, .12); }
.tb-btn--primary:hover { background: var(--tb-blue-dark); color: #fff; }
.tb-btn--secondary, .wp-block-button.is-style-outline > .wp-block-button__link {
	background: #fff; color: var(--tb-navy); border-color: var(--tb-border-strong); box-shadow: var(--tb-shadow-sm);
}
.tb-btn--secondary:hover, .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--tb-navy); color: var(--tb-navy); background: #fff; }
.tb-btn--lg, .tb-lg > .wp-block-button__link { padding: .95rem 1.5rem; font-size: 1rem; }
.tb-btn:disabled, .tb-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.wp-block-buttons { gap: .75rem; }

/* 5. Cabecera -------------------------------------------------------------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header.is-scrolled { border-bottom-color: var(--tb-border); box-shadow: 0 1px 0 rgba(16, 28, 44, .02); }
.site-header__inner {
	display: flex; align-items: center; gap: 1.5rem;
	max-width: calc(var(--tb-wide) + 2 * var(--tb-gutter)); min-height: var(--tb-header-h);
	margin-inline: auto; padding-inline: var(--tb-gutter);
}
.tb-logo { display: inline-flex; color: var(--tb-navy); flex-shrink: 0; border-radius: 6px; }
.tb-logo__svg { height: 38px; width: auto; }
.tb-logo .custom-logo { height: 34px; width: auto; }

.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.primary-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.primary-nav__list > li { position: relative; }
.primary-nav__list > li > a {
	display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .8rem; border-radius: 8px;
	color: var(--tb-slate); font-size: .9375rem; font-weight: 500; text-decoration: none;
}
.primary-nav__list > li > a:hover, .primary-nav__list > li.is-open > a { color: var(--tb-navy); background: var(--tb-light); }
.primary-nav__list > .current-menu-item > a, .primary-nav__list > .current-menu-ancestor > a, .primary-nav__list > li > a[aria-current="page"] { color: var(--tb-navy); font-weight: 600; }
.submenu-toggle {
	display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: -.55rem; padding: 0;
	border: 0; background: none; color: var(--tb-muted); border-radius: 6px; cursor: pointer;
}
.submenu-toggle .tb-svg { width: 16px; height: 16px; transition: transform .2s var(--tb-ease); }
.is-open > .submenu-toggle .tb-svg { transform: rotate(180deg); }
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: .5rem; position: absolute; top: calc(100% + 8px); left: -.5rem; min-width: 240px;
	background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); box-shadow: var(--tb-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s var(--tb-ease), visibility .15s;
}
.primary-nav .is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: block; padding: .6rem .75rem; border-radius: 8px; color: var(--tb-slate); text-decoration: none; font-size: .9375rem; }
.primary-nav .sub-menu a:hover { background: var(--tb-light); color: var(--tb-navy); }
.tb-mega { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; width: 560px; }
.tb-mega__item a { display: flex !important; gap: .85rem; align-items: flex-start; padding: .8rem !important; }
.tb-mega__icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); }
.tb-mega__icon .tb-svg { width: 20px; height: 20px; }
.tb-mega__text { display: flex; flex-direction: column; gap: .1rem; }
.tb-mega__brand { font-weight: 600; color: var(--tb-navy); font-size: .9375rem; }
.tb-mega__title { font-size: .8125rem; color: var(--tb-muted); line-height: 1.35; }
.tb-mega__all { grid-column: 1 / -1; border-top: 1px solid var(--tb-border); margin-top: .25rem; padding-top: .25rem; }
.tb-mega__all a { display: inline-flex !important; align-items: center; gap: .4rem; font-weight: 600; color: var(--tb-blue) !important; font-size: .875rem !important; }
.tb-mega__all .tb-svg { width: 16px; height: 16px; }
.primary-nav__cta { padding: .6rem 1rem; font-size: .875rem; }

.nav-toggle {
	display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; place-items: center;
	border: 1px solid var(--tb-border); border-radius: 10px; background: #fff; color: var(--tb-navy); cursor: pointer;
}
.nav-toggle .tb-svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 1024px) {
	.nav-toggle { display: inline-grid; }
	.primary-nav {
		position: fixed; inset: var(--tb-header-h) 0 0 0; z-index: 99; margin: 0;
		flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem var(--tb-gutter) 2rem;
		background: #fff; border-top: 1px solid var(--tb-border); overflow-y: auto;
		visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s var(--tb-ease), visibility .2s;
	}
	.admin-bar .primary-nav { top: calc(var(--tb-header-h) + 46px); }
	.primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
	.primary-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.primary-nav__list > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--tb-border); }
	.primary-nav__list > li > a { flex: 1; padding: 1rem .25rem; font-size: 1.0625rem; border-radius: 0; }
	.primary-nav__list > li > a:hover, .primary-nav__list > li.is-open > a { background: none; }
	.submenu-toggle { width: 44px; height: 44px; margin: 0; }
	.primary-nav .sub-menu { position: static; display: none; width: 100%; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .75rem; }
	.primary-nav .is-open > .sub-menu { display: block; }
	.tb-mega { grid-template-columns: 1fr; width: 100%; }
	.tb-mega__all { border: 0; }
	.primary-nav__cta { justify-content: center; padding: .95rem 1.25rem; font-size: 1rem; }
	body.nav-open { overflow: hidden; }
}

/* 6. Pie ------------------------------------------------------------------- */
.site-footer { background: var(--tb-navy); color: #CBD5E1; font-size: .9375rem; }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner {
	display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem;
	max-width: calc(var(--tb-wide) + 2 * var(--tb-gutter)); margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) var(--tb-gutter) 2.5rem;
}
.site-footer__brand p { max-width: 36ch; margin: 1.25rem 0 0; color: #94A3B8; }
.site-footer__brand .tb-logo__svg { height: 36px; }
.site-footer__contact { display: flex; align-items: center; gap: .5rem; }
.site-footer__contact .tb-svg { width: 18px; height: 18px; color: #94A3B8; }
.site-footer__heading { margin: 0 0 1rem; color: #fff; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer__linkbtn { padding: 0; border: 0; background: none; font: inherit; color: #E2E8F0; cursor: pointer; text-align: left; }
.site-footer__linkbtn:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
	max-width: calc(var(--tb-wide) + 2 * var(--tb-gutter)); margin-inline: auto; padding: 1.5rem var(--tb-gutter) 2rem;
	border-top: 1px solid rgba(255, 255, 255, .08); color: #94A3B8; font-size: .8125rem;
}
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* 7. Secciones y patrones -------------------------------------------------- */
.entry-content { padding-bottom: clamp(3rem, 6vw, 5rem); }
.entry-content--front { padding-bottom: 0; }
.tb-section { padding-block: clamp(4rem, 9vw, 7rem); margin-block: 0 !important; }
.entry-content > .tb-section:first-child { margin-top: 0; }
.tb-section--muted { background: var(--tb-surface); border-block: 1px solid var(--tb-border); }
.tb-section--dark { background: var(--tb-navy); color: #CBD5E1; }
.tb-section--dark :where(h1, h2, h3, h4) { color: #fff; }
.tb-section--dark .tb-eyebrow { color: #93C5FD; }
.tb-section-head { max-width: 720px; margin: 0 auto clamp(2rem, 5vw, 3.5rem); text-align: center; }
.tb-section-head > * { margin-inline: auto; }
.tb-section-head h2 { margin-bottom: 1rem; }
.tb-section-head p:not(.tb-eyebrow) { color: var(--tb-muted); font-size: var(--wp--preset--font-size--medium); margin-block: 0; }
.tb-section-head--left { text-align: left; margin-left: 0; }
.tb-section-head--left > * { margin-left: 0; }
.tb-section .wp-block-group.tb-section-head { gap: 0; }
.tb-lead { font-size: var(--wp--preset--font-size--medium); color: var(--tb-muted); }

/* Pasos de la metodología */
.tb-steps { counter-reset: step; display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 1.25rem !important; }
.tb-steps > .wp-block-column, .tb-steps > .tb-step { margin: 0 !important; }
.tb-step {
	position: relative; padding: 1.75rem 1.5rem 1.5rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius);
	background: #fff; counter-increment: step;
}
.tb-step::before {
	content: counter(step, decimal-leading-zero); display: block; margin-bottom: 1.25rem;
	font-family: var(--tb-mono); font-size: .8125rem; font-weight: 600; color: var(--tb-blue);
}
.tb-step::after {
	content: ""; position: absolute; top: 2.35rem; left: 3.4rem; right: 1.5rem; height: 1px;
	background: repeating-linear-gradient(90deg, var(--tb-border-strong) 0 4px, transparent 4px 8px);
}
.tb-step h3 { font-size: 1.125rem; margin: 0 0 .5rem; }
.tb-step p { margin: 0; font-size: .9375rem; color: var(--tb-muted); }
.tb-step p + p { margin-top: .5rem; }
.tb-step .tb-step__out { margin-top: 1rem !important; padding-top: 1rem; border-top: 1px solid var(--tb-border); color: var(--tb-slate); font-size: .875rem; }
@media (max-width: 960px) { .tb-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tb-steps { grid-template-columns: 1fr; } }

/* Diferenciales */
.tb-features { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0 !important; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); overflow: hidden; background: #fff; }
.tb-feature { margin: 0 !important; padding: 2rem 1.75rem; border-right: 1px solid var(--tb-border); border-bottom: 1px solid var(--tb-border); }
.tb-feature:nth-child(3n) { border-right: 0; }
.tb-feature:nth-last-child(-n + 3) { border-bottom: 0; }
.tb-feature::before {
	content: ""; display: block; width: 40px; height: 40px; margin-bottom: 1.25rem; border-radius: 10px;
	background: #EFF6FF; border: 1px solid #DBEAFE;
}
.tb-feature { position: relative; }
.tb-feature::after {
	content: ""; position: absolute; top: calc(2rem + 9px); left: calc(1.75rem + 9px); width: 22px; height: 22px;
	background: var(--tb-blue); -webkit-mask: var(--tb-ico) center / contain no-repeat; mask: var(--tb-ico) center / contain no-repeat;
}
.tb-feature h3 { font-size: 1.0625rem; margin: 0 0 .4rem; }
.tb-feature p { margin: 0; font-size: .9375rem; color: var(--tb-muted); }
@media (max-width: 900px) {
	.tb-features { grid-template-columns: 1fr 1fr; }
	.tb-feature:nth-child(n) { border-right: 1px solid var(--tb-border); border-bottom: 1px solid var(--tb-border); }
	.tb-feature:nth-child(2n) { border-right: 0; }
	.tb-feature:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 560px) {
	.tb-features { grid-template-columns: 1fr; }
	.tb-feature:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--tb-border); }
	.tb-feature:last-child { border-bottom: 0; }
}

/* CTA final */
.tb-cta {
	position: relative; overflow: hidden; text-align: center;
	background-color: var(--tb-navy);
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0);
	background-size: 22px 22px;
}
.tb-cta h2 { font-size: var(--wp--preset--font-size--xx-large); margin-bottom: 1rem; }
.tb-cta p { font-size: var(--wp--preset--font-size--medium); color: #CBD5E1; max-width: 560px; margin-inline: auto !important; }
.tb-cta .wp-block-buttons { justify-content: center; margin-top: 2rem; }
.tb-cta .wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.tb-cta .wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: #fff; }
.tb-cta-band { background: var(--tb-navy); color: #CBD5E1; padding-block: clamp(3rem, 6vw, 4.5rem);
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .07) 1px, transparent 0); background-size: 22px 22px; }
.tb-cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.tb-cta-band h2 { color: #fff; margin: 0 0 .5rem; }
.tb-cta-band p { margin: 0; font-size: var(--wp--preset--font-size--medium); }

/* 8. Portada --------------------------------------------------------------- */
.tb-hero {
	position: relative; padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem) !important; margin-top: 0 !important;
	background-image:
		linear-gradient(to bottom, rgba(255, 255, 255, 0) 60%, #fff),
		linear-gradient(var(--tb-border) 1px, transparent 1px),
		linear-gradient(90deg, var(--tb-border) 1px, transparent 1px);
	background-size: 100% 100%, 48px 48px, 48px 48px;
	background-position: 0 0, -1px -1px, -1px -1px;
}
.tb-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse 60% 70% at 25% 35%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .55) 60%, rgba(255, 255, 255, 0));
}
.tb-hero > * { position: relative; }
.tb-hero__grid { gap: clamp(2rem, 5vw, 4rem) !important; align-items: center !important; }
.tb-hero h1 { font-size: var(--wp--preset--font-size--hero); letter-spacing: -.035em; line-height: 1.04; margin-bottom: 1.5rem; }
.tb-hero .tb-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 34rem; margin-bottom: 2rem; color: var(--tb-slate); }
.tb-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 2rem !important; padding: 0; list-style: none; font-size: .875rem; color: var(--tb-muted); }
.tb-hero__meta li { margin: 0 !important; display: inline-flex; align-items: center; gap: .45rem; }
.tb-hero__meta li::before { content: ""; width: 16px; height: 16px; background: var(--tb-ok); -webkit-mask: var(--tb-ico) center / contain no-repeat; mask: var(--tb-ico) center / contain no-repeat; }
.tb-hero__meta { --tb-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Composición visual */
.tb-hero-visual { margin: 0; }
.hv { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2.2vw, 1.5rem); padding: clamp(.5rem, 2vw, 1.25rem); font-size: 12.5px; line-height: 1.35; }
.hv__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.hv__lines path { fill: none; stroke: #94A3B8; stroke-width: 1.25; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.hv__card {
	position: relative; z-index: 1; padding: .9rem; border-radius: 12px; background: #fff; color: var(--tb-slate);
	border: 1px solid var(--tb-border); box-shadow: var(--tb-shadow);
}
.hv__card--invoice { transform: translateY(14px); }
.hv__card--analytics { transform: translateY(-6px); }
.hv__card--editorial { transform: translateY(6px); }
.hv__card--commerce { transform: translateY(-14px); }
.hv p { margin: 0; }
.hv__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; gap: .5rem; }
.hv__chip { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem .2rem .35rem; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font-weight: 600; font-size: 11px; }
.hv__chip .tb-svg { width: 14px; height: 14px; }
.hv__status { padding: .15rem .5rem; border-radius: 999px; background: var(--tb-ok-bg); color: var(--tb-ok); font-weight: 600; font-size: 10.5px; }
.hv__label { font-weight: 600; color: var(--tb-navy); font-size: 12.5px; }
.hv__muted { color: var(--tb-muted); font-size: 11px; }
.hv__rows { margin: .7rem 0 0; display: grid; gap: .3rem; }
.hv__rows div { display: flex; justify-content: space-between; gap: .5rem; font-size: 11px; }
.hv__rows dt { color: var(--tb-muted); } .hv__rows dd { margin: 0; font-variant-numeric: tabular-nums; }
.hv__rows .hv__total { padding-top: .4rem; border-top: 1px solid var(--tb-border); font-weight: 650; color: var(--tb-navy); font-size: 12px; }
.hv__rows .hv__total dt { color: var(--tb-navy); }
.hv__kpi { font-size: 22px; font-weight: 700; color: var(--tb-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hv__kpi span { font-size: 11px; font-weight: 500; color: var(--tb-muted); letter-spacing: 0; }
.hv__chart { width: 100%; height: 54px; margin: .4rem 0 .6rem; }
.hv__area { fill: var(--accent-tint); } .hv__line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.hv__bars { display: grid; gap: .3rem; }
.hv__bars span { position: relative; display: block; padding-left: calc(var(--w) + .5rem); font-size: 10.5px; color: var(--tb-muted); white-space: nowrap; }
.hv__bars span::before { content: ""; position: absolute; left: 0; top: 50%; width: var(--w); height: 6px; margin-top: -3px; border-radius: 3px; background: var(--accent); opacity: .85; max-width: 60%; }
.hv__bars span { padding-left: calc(min(var(--w), 60%) + .5rem); }
.hv__spread { display: grid; grid-template-columns: 1fr 1fr; background: var(--tb-light); padding: 6px; border-radius: 4px; gap: 0; }
.hv__page { background: #fff; padding: 8px; display: flex; flex-direction: column; gap: 4px; min-height: 96px; box-shadow: 0 1px 2px rgba(16, 28, 44, .08); }
.hv__page + .hv__page { border-left: 1px solid var(--tb-border); }
.hv__page--cols { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr; gap: 4px 6px; align-content: start; }
.hv__page--cols > .hv__t--title { grid-column: 1 / -1; }
.hv__page--cols > div { display: flex; flex-direction: column; gap: 4px; }
.hv__img { display: block; height: 34px; border-radius: 2px; background: linear-gradient(135deg, var(--accent-soft), var(--accent-tint)); }
.hv__img--sm { height: 18px; }
.hv__t { display: block; height: 3px; border-radius: 2px; background: #E2E8F0; }
.hv__t--title { height: 6px; width: 70%; background: var(--tb-navy); opacity: .85; }
.hv__t--short { width: 60%; }
.hv__cart { position: relative; color: var(--tb-slate); }
.hv__cart .tb-svg { width: 18px; height: 18px; }
.hv__cart b { position: absolute; top: -6px; right: -7px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 9px; }
.hv__product { display: flex; gap: .65rem; align-items: center; }
.hv__thumb { flex: 0 0 44px; height: 56px; border-radius: 3px; background: linear-gradient(160deg, var(--accent) 0 38%, var(--accent-tint) 38%); box-shadow: inset 0 0 0 1px rgba(16, 28, 44, .06); }
.hv__price { font-weight: 700; color: var(--tb-navy); margin-top: .25rem !important; font-variant-numeric: tabular-nums; }
.hv__btn { display: block; margin-top: .7rem; padding: .45rem; border-radius: 7px; background: var(--accent); color: #fff; text-align: center; font-weight: 600; font-size: 11px; }
.hv__hub { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 11px 9px; border-radius: 16px; background: #fff; border: 1px solid var(--tb-border); box-shadow: 0 0 0 6px rgba(255,255,255,.9), var(--tb-shadow-lg); }
.hv__hub svg { width: 100%; height: 100%; }
@media (max-width: 781px) { .tb-hero-visual { margin-top: 1rem; } }
@media (max-width: 420px) { .hv { grid-template-columns: 1fr 1fr; font-size: 11px; } .hv__card { padding: .65rem; } .hv__kpi { font-size: 18px; } }

/* 9. Tarjetas de soluciones ----------------------------------------------- */
.tb-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tb-services--3 { grid-template-columns: repeat(3, 1fr); }
.tb-services--2, .tb-services--1 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .tb-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tb-services, .tb-services--3 { grid-template-columns: 1fr; } }
.tb-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); box-shadow: var(--tb-shadow-sm);
	transition: border-color .2s, box-shadow .2s var(--tb-ease), transform .2s var(--tb-ease);
}
.tb-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--tb-border)); box-shadow: var(--tb-shadow); transform: translateY(-2px); }
.tb-card:focus-within { border-color: var(--accent); }
.tb-card__visual { aspect-ratio: 16 / 9; background: var(--accent-tint); border-bottom: 1px solid color-mix(in srgb, var(--accent) 14%, var(--tb-border)); display: grid; place-items: center;
	background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 0); background-size: 14px 14px; }
.tb-card__visual .tb-vis { width: 100%; height: 100%; }
.tb-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.25rem; }
.tb-card__brand { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .8125rem; font-weight: 650; color: var(--accent-strong); letter-spacing: .01em; }
.tb-card__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-tint); }
.tb-card__icon .tb-svg { width: 16px; height: 16px; }
.tb-card__title { font-size: 1.1875rem; margin: 0 0 .6rem; line-height: 1.25; }
.tb-card__link { color: var(--tb-navy); text-decoration: none; }
.tb-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.tb-card__link:focus-visible { outline: none; }
.tb-card__link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.tb-card__desc { margin: 0 0 1rem; font-size: .9375rem; color: var(--tb-muted); line-height: 1.55; }
.tb-card__features { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .45rem; font-size: .875rem; }
.tb-card__features li { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.4; }
.tb-card__features .tb-svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.tb-card__footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--tb-border); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tb-card__more { display: inline-flex; align-items: center; gap: .3rem; font-size: .875rem; font-weight: 600; color: var(--accent-strong); }
.tb-card__more .tb-svg { width: 16px; height: 16px; transition: transform .2s var(--tb-ease); }
.tb-card:hover .tb-card__more .tb-svg { transform: translateX(3px); }
.tb-price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .3rem; }
.tb-price__from { font-size: .8125rem; color: var(--tb-muted); }
.tb-price__amount { font-size: 1.25rem; font-weight: 700; color: var(--tb-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tb-price__note { font-size: .75rem; color: var(--tb-muted); }
.tb-services__note { margin: 1.25rem 0 0; text-align: center; font-size: .875rem; color: var(--tb-muted); }

/* Ilustraciones SVG de producto */
.tb-vis .v-bg { fill: #fff; stroke: var(--tb-border); }
.tb-vis .v-a { fill: var(--accent); }
.tb-vis .v-a-soft { fill: var(--accent); opacity: .35; }
.tb-vis .v-at { fill: var(--accent-tint); }
.tb-card__visual .tb-vis .v-at { fill: color-mix(in srgb, var(--accent) 12%, #fff); }
.tb-vis .v-m { fill: #E2E8F0; }
.tb-vis .v-d { fill: #CBD5E1; }
.tb-vis .v-o { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.tb-vis .v-ok { fill: #D1FAE5; } .tb-vis .v-warn { fill: #FEF3C7; }
.tb-vis .v-line, .tb-vis .v-grid { fill: none; stroke: var(--tb-border); }
.tb-vis .v-grid { stroke-dasharray: 3 3; }
.tb-vis .v-s { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; }
.tb-vis .v-s2 { fill: none; stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 4 3; }
.tb-vis .v-dot { fill: #fff; stroke: var(--accent); stroke-width: 2.25; }
.tb-vis .v-guide { fill: none; stroke: #F43F5E; stroke-width: 1; stroke-dasharray: 4 3; }
.tb-vis .v-fold { stroke: var(--tb-border-strong); }
.tb-vis .v-a-o { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }

/* 10. Demostraciones ------------------------------------------------------- */
.tb-demos__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; padding: .4rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: #fff; }
.tb-demos__tab {
	display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid transparent; border-radius: 10px;
	background: none; color: var(--tb-slate); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s;
}
.tb-demos__tab:hover { background: var(--tb-surface); }
.tb-demos__tab[aria-selected="true"] { background: var(--accent-tint); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.tb-demos__tab-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 9px; background: #fff; color: var(--accent); border: 1px solid var(--tb-border); }
.tb-demos__tab-icon .tb-svg { width: 18px; height: 18px; }
.tb-demos__tab-brand { display: block; font-weight: 650; font-size: .875rem; color: var(--tb-navy); }
.tb-demos__tab-label { display: block; font-size: .8125rem; color: var(--tb-muted); }
.tb-demos__tab[aria-selected="true"] .tb-demos__tab-label { color: var(--tb-slate); }
@media (max-width: 900px) { .tb-demos__tabs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tb-demos__tab-label { display: none; } .tb-demos__tab-icon { flex-basis: 30px; height: 30px; } }

.tb-demo { border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: #fff; box-shadow: var(--tb-shadow); overflow: hidden; }
.tb-demo:focus-visible { outline-offset: 4px; }
.tb-demo__chrome { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; border-bottom: 1px solid var(--tb-border); background: var(--tb-surface); }
.tb-demo__dots { display: flex; gap: 6px; } .tb-demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.tb-demo__title { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--tb-slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-demo__badge { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; padding: .2rem .6rem .2rem .45rem; border-radius: 999px; background: var(--tb-warn-bg); color: #92400E; border: 1px solid #FDE68A; font-size: .75rem; font-weight: 600; }
.tb-demo__badge .tb-svg { width: 14px; height: 14px; }
.tb-demo__desc { margin: 0; padding: .9rem 1.25rem 0; font-size: .875rem; color: var(--tb-muted); }
.tb-demo__app { padding: 1.25rem; min-height: 420px; font-size: .875rem; }
.tb-demo__loading, .tb-demo__noscript { color: var(--tb-muted); }
.tb-demo-placeholder { padding: 2rem; border: 1px dashed var(--tb-border-strong); border-radius: var(--tb-radius); background: var(--tb-surface); text-align: center; }
@media (max-width: 600px) { .tb-demo__title { display: none; } .tb-demo__app { padding: 1rem; } }

/* Componentes de las demos */
.d-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.d-toolbar h3 { margin: 0; font-size: 1rem; }
.d-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--tb-light); border: 1px solid var(--tb-border); }
.d-seg button { padding: .35rem .7rem; border: 0; border-radius: 7px; background: none; font: inherit; font-size: .8125rem; font-weight: 500; color: var(--tb-slate); cursor: pointer; }
.d-seg button[aria-pressed="true"] { background: #fff; color: var(--tb-navy); font-weight: 600; box-shadow: var(--tb-shadow-sm); }
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .d-kpis { grid-template-columns: 1fr 1fr; } }
.d-kpi { padding: .9rem 1rem; border: 1px solid var(--tb-border); border-radius: 10px; background: #fff; }
.d-kpi__label { margin: 0; font-size: .75rem; color: var(--tb-muted); font-weight: 500; }
.d-kpi__value { margin: .25rem 0 0; font-size: 1.375rem; font-weight: 700; color: var(--tb-navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-kpi__delta { margin: .2rem 0 0; font-size: .75rem; font-weight: 600; }
.d-up { color: var(--tb-ok); } .d-down { color: var(--tb-err); } .d-neutral { color: var(--tb-muted); }
.d-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: .75rem; }
@media (max-width: 860px) { .d-grid { grid-template-columns: 1fr; } }
.d-panel { border: 1px solid var(--tb-border); border-radius: 10px; padding: 1rem; background: #fff; min-width: 0; }
.d-panel h4, .d-panel .d-h { margin: 0 0 .75rem; font-size: .875rem; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.d-panel h4 small, .d-panel .d-h small { font-weight: 500; color: var(--tb-muted); font-size: .75rem; }
.d-legend { display: flex; gap: 1rem; font-size: .75rem; color: var(--tb-muted); margin-top: .5rem; }
.d-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.d-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.d-legend i.d-alt { background: #CBD5E1; }
.d-chart { width: 100%; height: auto; overflow: visible; }
.d-chart text { font-size: 10px; fill: var(--tb-muted); font-family: inherit; }
.d-chart .d-gridline { stroke: var(--tb-border); stroke-dasharray: 3 3; }
.d-chart .d-bar { fill: var(--accent); } .d-chart .d-bar-alt { fill: #CBD5E1; }
.d-chart .d-area { fill: var(--accent-tint); } .d-chart .d-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.d-chart .d-line-alt { fill: none; stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 4 3; }
.d-chart .d-bar:hover, .d-chart .d-bar-alt:hover { opacity: .8; }
.d-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.d-table { width: 100%; border-collapse: collapse; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.d-table caption { text-align: left; }
.d-table th { text-align: left; font-weight: 600; font-size: .75rem; color: var(--tb-muted); padding: .5rem .6rem; border-bottom: 1px solid var(--tb-border); white-space: nowrap; background: var(--tb-surface); }
.d-table td { padding: .6rem; border-bottom: 1px solid var(--tb-border); white-space: nowrap; }
.d-table tr:last-child td { border-bottom: 0; }
.d-table .d-num { text-align: right; }
.d-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.d-pill--ok { background: var(--tb-ok-bg); color: var(--tb-ok); }
.d-pill--warn { background: var(--tb-warn-bg); color: #92400E; }
.d-pill--err { background: var(--tb-err-bg); color: var(--tb-err); }
.d-pill--info { background: #EFF6FF; color: #1D4ED8; }
.d-bars { display: grid; gap: .6rem; }
.d-barrow { display: grid; grid-template-columns: 7.5rem 1fr 4.5rem; align-items: center; gap: .6rem; font-size: .8125rem; }
.d-barrow__track { display: block; height: 8px; background: var(--tb-light); border-radius: 4px; overflow: hidden; }
.d-barrow__fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s var(--tb-ease); }
.d-barrow__val { text-align: right; font-variant-numeric: tabular-nums; color: var(--tb-navy); font-weight: 600; }
.d-match { display: grid; gap: .5rem; }
.d-match__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; font-size: .8125rem; }
.d-match__box { padding: .5rem .65rem; border: 1px solid var(--tb-border); border-radius: 8px; background: var(--tb-surface); min-width: 0; }
.d-match__box b { display: block; font-weight: 600; color: var(--tb-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-match__box span { color: var(--tb-muted); font-size: .75rem; }
.d-match__link { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tb-ok-bg); color: var(--tb-ok); }
.d-match__link.is-pending { background: var(--tb-warn-bg); color: var(--tb-warn); }
.d-match__link .tb-svg { width: 16px; height: 16px; }
.d-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--tb-border-strong); background: #fff; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--tb-navy); cursor: pointer; }
.d-btn:hover { border-color: var(--tb-navy); }
.d-btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.d-btn--accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.d-btn .tb-svg { width: 16px; height: 16px; }
.d-btn:disabled { opacity: .5; cursor: not-allowed; }
.d-note { margin: 1rem 0 0; font-size: .75rem; color: var(--tb-muted); }

/* Visor editorial */
.d-viewer { display: grid; gap: 1rem; }
.d-stage { position: relative; display: grid; place-items: center; padding: clamp(.75rem, 3vw, 2rem); background: #E2E8F0; border-radius: 10px;
	background-image: radial-gradient(circle at 1px 1px, rgba(16, 28, 44, .08) 1px, transparent 0); background-size: 16px 16px; }
.d-spread { display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 760px; box-shadow: var(--tb-shadow-lg); transition: transform .3s var(--tb-ease); transform-origin: center top; }
.d-spread.is-single { grid-template-columns: 1fr; max-width: 380px; }
.d-spread.is-zoom { transform: scale(1.35); }
.d-stage.has-zoom { overflow: auto; place-items: start center; max-height: 640px; }
.d-page { position: relative; aspect-ratio: 210 / 297; background: #fff; overflow: hidden; container-type: inline-size; }
.d-page + .d-page { box-shadow: inset 12px 0 18px -14px rgba(16, 28, 44, .35); }
.d-page:first-child:not(:last-child) { box-shadow: inset -12px 0 18px -14px rgba(16, 28, 44, .35); }
.d-page__inner { position: absolute; inset: 7.5% 9% 8% 9%; display: flex; flex-direction: column; font-size: 2.7cqi; line-height: 1.45; color: #1F2937; }
.d-page__folio { position: absolute; bottom: 3.5%; font-size: 2.2cqi; color: var(--tb-muted); font-family: var(--tb-mono); }
.d-page--left .d-page__folio { left: 9%; } .d-page--right .d-page__folio { right: 9%; }
.d-guides .d-page::before, .d-guides .d-page::after { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.d-guides .d-page::before { inset: 1.4%; outline: 1px dashed #F43F5E; }
.d-guides .d-page::after { inset: 7.5% 9% 8% 9%; outline: 1px solid rgba(37, 99, 235, .6); background: repeating-linear-gradient(90deg, transparent 0 calc(50% - 2cqi), rgba(37, 99, 235, .06) calc(50% - 2cqi) calc(50% + 2cqi), transparent calc(50% + 2cqi)); }
.d-guides-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .75rem; color: var(--tb-muted); }
.d-guides-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.d-guides-legend i { width: 18px; height: 0; border-top: 1px dashed #F43F5E; }
.d-guides-legend i.d-m { border-top: 1px solid #2563EB; }
.d-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; }
.d-thumb { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; width: 64px; padding: 3px; border: 2px solid transparent; border-radius: 6px; background: var(--tb-light); cursor: pointer; }
.d-thumb.is-single { grid-template-columns: 1fr; width: 36px; }
.d-thumb[aria-current="true"] { border-color: var(--accent); }
.d-thumb span { aspect-ratio: 210 / 297; background: #fff; }
.d-thumb small { grid-column: 1 / -1; font-size: 10px; color: var(--tb-slate); text-align: center; }
.d-mag-cover { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 8% 8% 7%; color: #fff; background: linear-gradient(170deg, #1E293B 0%, #0F172A 55%, var(--accent-strong) 140%); }
.d-mag-cover__mast { font-size: 13cqi; font-weight: 800; letter-spacing: -.04em; line-height: .9; }
.d-mag-cover__issue { margin-top: 2cqi; font-size: 2.6cqi; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-family: var(--tb-mono); }
.d-mag-cover__art { flex: 1; margin: 6cqi 0; border-radius: 1cqi; background:
	radial-gradient(circle at 70% 35%, var(--accent-soft) 0 14cqi, transparent 14.2cqi),
	linear-gradient(transparent 62%, rgba(255, 255, 255, .08) 62%),
	repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 8cqi); }
.d-mag-cover__lines { display: grid; gap: 1.8cqi; font-size: 3.4cqi; font-weight: 600; }
.d-mag-cover__lines small { display: block; font-weight: 400; opacity: .7; font-size: 2.6cqi; }
.d-mag-h { font-size: 6.2cqi; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; color: #0F172A; margin: 0 0 3cqi; }
.d-mag-kicker { font-size: 2.3cqi; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 2cqi; font-family: var(--tb-mono); }
.d-mag-lead { font-size: 3.1cqi; line-height: 1.4; color: #334155; margin: 0 0 3cqi; font-weight: 500; }
.d-mag-cols { column-count: 2; column-gap: 4cqi; text-align: justify; hyphens: auto; }
.d-mag-cols p { margin: 0 0 1.6cqi; }
.d-mag-cols p:first-child::first-letter { float: left; font-size: 9cqi; line-height: .85; padding: .6cqi 1.2cqi 0 0; font-weight: 800; color: var(--accent-strong); }
.d-mag-img { border-radius: .6cqi; background: linear-gradient(140deg, var(--accent-soft), var(--accent-tint) 60%, #F1F5F9); margin: 0 0 3cqi; aspect-ratio: 4 / 3; position: relative; }
.d-mag-img::after { content: attr(data-caption); position: absolute; left: 0; right: 0; bottom: -4.2cqi; font-size: 2.1cqi; color: var(--tb-muted); font-style: italic; }
.d-mag-quote { margin: 3cqi 0; padding: 2.5cqi 0; border-block: .3cqi solid #0F172A; font-size: 4.4cqi; font-weight: 650; line-height: 1.2; letter-spacing: -.02em; color: #0F172A; }
.d-mag-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 3cqi; }
.d-mag-toc li { display: grid; grid-template-columns: 7cqi 1fr; gap: 2cqi; padding-bottom: 3cqi; border-bottom: .2cqi solid #E2E8F0; }
.d-mag-toc b { font-size: 4cqi; color: var(--accent-strong); font-family: var(--tb-mono); }
.d-mag-toc span { font-size: 3cqi; font-weight: 650; color: #0F172A; } .d-mag-toc small { display: block; font-size: 2.4cqi; font-weight: 400; color: #64748B; }

/* Tienda */
.d-shop { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; align-items: start; }
@media (max-width: 900px) { .d-shop { grid-template-columns: 1fr; } }
.d-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 640px) { .d-products { grid-template-columns: 1fr 1fr; } }
.d-product { display: flex; flex-direction: column; border: 1px solid var(--tb-border); border-radius: 10px; overflow: hidden; background: #fff; }
.d-product__img { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--accent-tint); position: relative; }
.d-product__img svg { width: auto; height: 72%; }
.d-product__type { position: absolute; top: .5rem; left: .5rem; padding: .1rem .45rem; border-radius: 999px; background: #fff; font-size: .6875rem; font-weight: 600; color: var(--tb-slate); border: 1px solid var(--tb-border); }
.d-product__body { padding: .75rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.d-product__name { margin: 0; font-size: .8125rem; font-weight: 650; color: var(--tb-navy); line-height: 1.3; }
.d-product__meta { margin: 0; font-size: .75rem; color: var(--tb-muted); }
.d-product__price { margin: .25rem 0 .5rem; font-weight: 700; color: var(--tb-navy); font-variant-numeric: tabular-nums; }
.d-product__price small { font-weight: 500; color: var(--tb-muted); font-size: .6875rem; }
.d-product .d-btn { margin-top: auto; justify-content: center; }
.d-cart { position: sticky; top: calc(var(--tb-header-h) + 1rem); border: 1px solid var(--tb-border); border-radius: 10px; background: var(--tb-surface); padding: 1rem; }
.d-cart h4 { margin: 0 0 .75rem; font-size: .9375rem; display: flex; align-items: center; gap: .5rem; }
.d-cart h4 .tb-svg { width: 18px; height: 18px; color: var(--accent); }
.d-cart__empty { margin: 0; font-size: .8125rem; color: var(--tb-muted); }
.d-cart__items { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.d-cart__item { display: grid; grid-template-columns: 1fr auto; gap: .25rem .5rem; padding-bottom: .6rem; border-bottom: 1px solid var(--tb-border); font-size: .8125rem; }
.d-cart__item b { font-weight: 600; color: var(--tb-navy); }
.d-cart__qty { display: inline-flex; align-items: center; gap: .25rem; }
.d-cart__qty button { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--tb-border-strong); border-radius: 6px; background: #fff; cursor: pointer; font: inherit; line-height: 1; color: var(--tb-navy); }
.d-cart__ship { margin: .75rem 0; display: grid; gap: .35rem; font-size: .8125rem; border: 0; padding: 0; }
.d-cart__ship legend { font-weight: 600; color: var(--tb-navy); margin-bottom: .25rem; padding: 0; }
.d-cart__ship label { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.d-cart__ship label span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; }
.d-cart__totals { margin: 0; display: grid; gap: .3rem; font-size: .8125rem; }
.d-cart__totals div { display: flex; justify-content: space-between; }
.d-cart__totals dt { color: var(--tb-muted); } .d-cart__totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.d-cart__totals .d-total { padding-top: .5rem; margin-top: .25rem; border-top: 1px solid var(--tb-border); font-weight: 700; color: var(--tb-navy); font-size: .9375rem; }
.d-cart__totals .d-total dt { color: var(--tb-navy); }
.d-cart .d-btn--accent { width: 100%; justify-content: center; margin-top: .9rem; padding: .7rem; }
.d-cart__msg { margin: .6rem 0 0; font-size: .75rem; color: var(--tb-muted); }
.d-pay { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.d-pay span { padding: .15rem .45rem; border: 1px solid var(--tb-border); border-radius: 5px; background: #fff; font-size: .6875rem; font-weight: 600; color: var(--tb-slate); }

/* 11. Páginas de solución ------------------------------------------------- */
.tb-service-hero { position: relative; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5.5rem); background: linear-gradient(180deg, var(--accent-tint), #fff 85%); border-bottom: 1px solid var(--tb-border); overflow: hidden; }
.tb-service-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
	background-image: linear-gradient(color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 10%, transparent) 1px, transparent 1px);
	background-size: 40px 40px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }
.tb-service-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .tb-service-hero__grid { grid-template-columns: 1fr; } }
.tb-service-hero__title { font-size: var(--wp--preset--font-size--xx-large); letter-spacing: -.03em; margin-bottom: 1rem; }
.tb-service-hero__lead { font-size: var(--wp--preset--font-size--medium); color: var(--tb-slate); max-width: 36rem; margin: 0 0 1.5rem; }
.tb-service-hero__price { margin: 0 0 1.75rem; }
.tb-service-hero__price .tb-price__amount { font-size: 2rem; }
.tb-service-hero__price .tb-price__from { font-size: .9375rem; }
.tb-service-hero__price .tb-price__note { font-size: .8125rem; }
.tb-frame { border-radius: var(--tb-radius); border: 1px solid var(--tb-border); background: #fff; box-shadow: var(--tb-shadow-lg); padding: .75rem; }
.tb-frame .tb-vis { width: 100%; height: auto; border-radius: 8px; background: var(--accent-tint); }

.tb-includes { padding-block: clamp(3rem, 6vw, 5rem); }
.tb-includes__head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem 3rem; align-items: end; margin-bottom: 2rem; }
.tb-includes__head h2 { margin: 0; }
.tb-includes__head p { margin: 0; color: var(--tb-muted); }
@media (max-width: 760px) { .tb-includes__head { grid-template-columns: 1fr; } }
.tb-includes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .75rem; }
.tb-includes__list li { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); background: #fff; color: var(--tb-navy); font-weight: 500; line-height: 1.45; }
.tb-includes__check { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
.tb-includes__check .tb-svg { width: 14px; height: 14px; stroke-width: 2.5; }
.tb-includes__maint { display: flex; gap: .75rem; align-items: flex-start; margin: 1.25rem 0 0; padding: 1rem 1.1rem; border-radius: var(--tb-radius-sm); background: var(--tb-surface); border: 1px dashed var(--tb-border-strong); font-size: .9375rem; }
.tb-includes__maint .tb-svg { flex: 0 0 22px; color: var(--accent); }
.tb-service .entry-content { padding-bottom: 0; }
.tb-other { padding-block: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--tb-border); }
.tb-other__title { font-size: var(--wp--preset--font-size--large); margin-bottom: 1.5rem; }

/* Bloques de contenido frecuentes en páginas de servicio */
.tb-split { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.tb-box { padding: 1.5rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: #fff; }
.tb-box--note { background: var(--tb-surface); border-left: 3px solid var(--accent); }
.tb-box > :first-child { margin-top: 0; } .tb-box > :last-child { margin-bottom: 0; }
.tb-box h3 { font-size: 1.0625rem; margin-bottom: .5rem; }
.tb-checklist { list-style: none; padding: 0 !important; display: grid; gap: .6rem; }
.tb-checklist li { position: relative; padding-left: 1.85rem; }
.tb-checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--accent-tint);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent); }
.tb-checklist li::after { content: ""; position: absolute; left: .3rem; top: calc(.2em + .3rem); width: .6rem; height: .6rem; background: var(--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.tb-checklist .tb-svg { display: none; }
.tb-project-grid .tb-checklist li { padding-left: 0; display: flex; gap: .6rem; }
.tb-project-grid .tb-checklist li::before, .tb-project-grid .tb-checklist li::after { display: none; }
.tb-project-grid .tb-checklist .tb-svg { display: block; flex: 0 0 18px; width: 18px; height: 18px; color: var(--tb-ok); margin-top: 3px; }

.tb-faq { display: grid; gap: .6rem; }
.wp-block-details { border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); background: #fff; padding: 0; }
.wp-block-details summary { padding: 1rem 3rem 1rem 1.25rem; font-weight: 600; color: var(--tb-navy); cursor: pointer; list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.25rem; font-weight: 400; color: var(--tb-muted); }
.wp-block-details[open] summary::after { content: "−"; }
.wp-block-details > :not(summary) { margin: 0 1.25rem 1rem !important; color: var(--tb-slate); }
.wp-block-details summary:focus-visible { outline-offset: -2px; }

/* 12. Proyectos ------------------------------------------------------------ */
.tb-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .tb-projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tb-projects { grid-template-columns: 1fr; } }
.tb-projects > .tb-empty { grid-column: 1 / -1; }
.tb-project { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: #fff; transition: border-color .2s, box-shadow .2s; border-top: 3px solid var(--accent); }
.tb-project:hover { box-shadow: var(--tb-shadow); }
.tb-project__type { align-self: flex-start; margin: 0 0 1rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.tb-project__type.is-ilustrativo { background: var(--tb-light); color: var(--tb-slate); border: 1px dashed var(--tb-border-strong); }
.tb-project__type.is-real { background: var(--tb-ok-bg); color: var(--tb-ok); }
.tb-project__type.is-propio { background: #EFF6FF; color: #1D4ED8; border: 1px solid #DBEAFE; }
.tb-project__title { font-size: 1.125rem; margin: 0 0 .35rem; line-height: 1.3; }
.tb-project__sector { margin: 0 0 .75rem; font-size: .8125rem; color: var(--tb-muted); }
.tb-project__excerpt { margin: 0 0 1rem; font-size: .9375rem; color: var(--tb-slate); }
.tb-project__tags { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tb-project__tags li { padding: .15rem .5rem; border-radius: 6px; background: var(--accent-tint); color: var(--accent-strong); font-size: .75rem; font-weight: 600; }
.tb-project__disclaimer { margin: .9rem 0 0; font-size: .75rem; color: var(--tb-muted); }
.tb-project-meta { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 0; }
.tb-project-meta dt { font-size: .75rem; color: var(--tb-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.tb-project-meta dd { margin: .2rem 0 0; color: var(--tb-navy); font-weight: 500; }
.tb-project-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.tb-project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.tb-project-grid section { padding: 1.5rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); }
.tb-project-grid h2 { font-size: 1.0625rem; margin-bottom: .75rem; }
.tb-project-grid p { margin: 0; color: var(--tb-slate); font-size: .9375rem; }
@media (max-width: 860px) { .tb-project-grid { grid-template-columns: 1fr; } }

/* Cabecera de páginas interiores y migas */
.tb-page-header { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--tb-border);
	background: linear-gradient(180deg, var(--tb-surface), #fff); }
.tb-page-header__title { font-size: var(--wp--preset--font-size--xx-large); letter-spacing: -.03em; margin: 0 0 1rem; max-width: 22ch; }
.tb-page-header__lead { font-size: var(--wp--preset--font-size--medium); color: var(--tb-muted); max-width: 46rem; margin: 0; }
.tb-breadcrumbs { margin-bottom: 1.5rem; font-size: .8125rem; }
.tb-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.tb-breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; color: var(--tb-muted); }
.tb-breadcrumbs li + li::before { content: "/"; color: var(--tb-border-strong); }
.tb-breadcrumbs a { color: var(--tb-muted); text-decoration: none; }
.tb-breadcrumbs a:hover { color: var(--tb-navy); text-decoration: underline; }
.tb-breadcrumbs [aria-current] { color: var(--tb-slate); }
.tb-404 { padding-block: clamp(3rem, 8vw, 6rem); }
.tb-404 > p:last-child { margin-top: 2rem; }
.tb-post-list { display: grid; gap: 1.5rem; max-width: 760px; }
.tb-blog-topics { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.tb-blog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.tb-blog-card { overflow: hidden; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-white); }
.tb-blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.tb-blog-card__body { padding: clamp(1.25rem, 3vw, 2rem); }
.tb-blog-card h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; }
.tb-blog-card h2 a { color: var(--tb-navy); }
.tb-blog-cta { margin-block: 2.5rem; background: var(--tb-light); }
.single-post .entry-content { padding-block: 3rem; }
.single-post .entry-content > h2 { margin-top: 2.5rem; }
.single-post .nav-links { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; }
@media (max-width: 650px) { .tb-blog-grid { grid-template-columns: 1fr; } }
.tb-post-item { padding-bottom: 1.5rem; border-bottom: 1px solid var(--tb-border); }
.tb-post-item__title { font-size: 1.375rem; margin-bottom: .5rem; }
.tb-post-item__title a { color: var(--tb-navy); text-decoration: none; }
.tb-post-item__meta { margin: 0 0 .25rem; color: var(--tb-muted); font-size: .8125rem; }

/* 13. Formulario ----------------------------------------------------------- */
.tb-contact { gap: clamp(2rem, 5vw, 4rem) !important; align-items: flex-start !important; }
.tb-contact-aside { position: sticky; top: calc(var(--tb-header-h) + 1.5rem); }
.tb-contact-aside .tb-box + .tb-box { margin-top: 1rem; }
.tb-form-wrap { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: #fff; box-shadow: var(--tb-shadow); scroll-margin-top: calc(var(--tb-header-h) + 1rem); }
.tb-form-wrap__title { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .5rem; }
.tb-form-wrap__intro { margin: 0 0 1.5rem; color: var(--tb-muted); }
.tb-form__status:empty { display: none; }
.tb-form__status { margin-bottom: 1.25rem; }
.tb-form__status:focus { outline: none; }
.tb-form { display: grid; gap: 1.25rem; }
.tb-form[hidden] { display: none; }
.tb-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .tb-form__grid { grid-template-columns: 1fr; } }
.tb-form__field { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.tb-form label, .tb-form legend { font-size: .875rem; font-weight: 600; color: var(--tb-navy); }
.tb-form fieldset { border: 0; margin: 0; padding: 0; }
.tb-form legend { padding: 0; margin-bottom: .5rem; }
.tb-req { color: var(--tb-err); }
.tb-opt { font-weight: 400; color: var(--tb-muted); font-size: .8125rem; }
.tb-form__hint { margin: -.1rem 0 .1rem; font-size: .8125rem; color: var(--tb-muted); }
.tb-form input[type="text"], .tb-form input[type="email"], .tb-form input[type="tel"], .tb-form select, .tb-form textarea {
	width: 100%; padding: .75rem .9rem; border: 1px solid var(--tb-border-strong); border-radius: var(--tb-radius-sm); background: #fff;
	font: inherit; font-size: 1rem; color: var(--tb-navy); transition: border-color .15s, box-shadow .15s;
}
.tb-form textarea { resize: vertical; min-height: 140px; }
.tb-form select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px; }
.tb-form input:hover, .tb-form select:hover, .tb-form textarea:hover { border-color: #94A3B8; }
.tb-form input:focus, .tb-form select:focus, .tb-form textarea:focus { outline: none; border-color: var(--tb-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
.tb-form [aria-invalid="true"]:not(fieldset) { border-color: var(--tb-err); }
.tb-form [aria-invalid="true"]:not(fieldset):focus { box-shadow: 0 0 0 3px rgba(185, 28, 28, .18); }
.tb-form__error { margin: 0; font-size: .8125rem; font-weight: 500; color: var(--tb-err); }
.tb-form__error[hidden] { display: none; }
.tb-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
@media (max-width: 640px) { .tb-checks { grid-template-columns: 1fr; } }
.tb-check { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500 !important; color: var(--tb-slate) !important; cursor: pointer; line-height: 1.45; }
.tb-checks .tb-check { padding: .7rem .85rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); transition: border-color .15s, background .15s; }
.tb-checks .tb-check:hover { border-color: #94A3B8; }
.tb-checks .tb-check:has(input:checked) { border-color: var(--tb-blue); background: #EFF6FF; color: var(--tb-navy) !important; }
.tb-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: .1rem 0 0; accent-color: var(--tb-blue); }
fieldset[aria-invalid="true"] .tb-check { border-color: #FCA5A5; }
.tb-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tb-form__gdpr { border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); background: var(--tb-surface); font-size: .8125rem; }
.tb-form__gdpr summary { padding: .7rem .9rem; cursor: pointer; font-weight: 600; color: var(--tb-slate); }
.tb-form__gdpr dl { display: grid; grid-template-columns: 8rem 1fr; gap: .4rem 1rem; margin: 0; padding: 0 .9rem .9rem; }
.tb-form__gdpr dt { font-weight: 600; color: var(--tb-navy); }
.tb-form__gdpr dd { margin: 0; color: var(--tb-slate); }
@media (max-width: 520px) { .tb-form__gdpr dl { grid-template-columns: 1fr; } .tb-form__gdpr dd { margin-bottom: .4rem; } }
.tb-form__required { margin: 0; font-size: .8125rem; color: var(--tb-muted); }
.tb-form [type="submit"] { justify-self: start; }
@media (max-width: 520px) { .tb-form [type="submit"] { justify-self: stretch; } }

/* 14. Aviso de cookies ----------------------------------------------------- */
.tb-consent { position: fixed; z-index: 200; left: 1rem; bottom: 1rem; max-width: 440px; width: calc(100% - 2rem);
	background: #fff; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); box-shadow: var(--tb-shadow-lg); }
.tb-consent[hidden] { display: none; }
.tb-consent__inner { padding: 1.25rem; }
.tb-consent__title { margin: 0 0 .4rem; font-weight: 650; color: var(--tb-navy); }
.tb-consent__text { margin: 0 0 1rem; font-size: .875rem; color: var(--tb-slate); }
.tb-consent__prefs { display: grid; gap: .6rem; margin: 0 0 1rem; padding: .85rem; border-radius: var(--tb-radius-sm); background: var(--tb-surface); font-size: .8125rem; }
.tb-consent__prefs[hidden] { display: none; }
.tb-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.tb-consent__actions .tb-btn { flex: 1 1 auto; padding: .6rem .9rem; font-size: .875rem; }

/* 15. Contenido ------------------------------------------------------------ */
.entry-content > :where(h2) { margin-top: 2.5rem; }
.entry-content > :where(h3) { margin-top: 2rem; }
.entry-content :where(ul, ol):not(.tb-checklist):not([class*="tb-"]) { padding-left: 1.25rem; }
.entry-content :where(li) + :where(li) { margin-top: .35rem; }
.entry-content > .wp-block-table table, .entry-content .wp-block-table table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.entry-content .wp-block-table td, .entry-content .wp-block-table th { border: 1px solid var(--tb-border); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content .wp-block-table th { background: var(--tb-surface); color: var(--tb-navy); }
.tb-legal { font-size: 1rem; }
.tb-legal h2 { font-size: var(--wp--preset--font-size--large); }
.tb-legal-updated { color: var(--tb-muted); font-size: .875rem; }
.has-small-font-size { line-height: 1.55; }
hr.wp-block-separator { border: 0; border-top: 1px solid var(--tb-border); }

/* 16. 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; }
	.tb-card:hover { transform: none; }
}

/* 17. Impresión ------------------------------------------------------------ */
@media print {
	.site-header, .site-footer, .tb-consent, .tb-cta, .tb-cta-band, .tb-demos, .tb-form-wrap { display: none !important; }
	body { color: #000; }
	a { color: #000; text-decoration: underline; }
}

/* Planes de mantenimiento y columnas de cajas */
.tb-plans, .tb-boxes { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 1.25rem !important; }
.tb-plans > *, .tb-boxes > * { margin: 0 !important; }
@media (max-width: 860px) { .tb-plans, .tb-boxes { grid-template-columns: 1fr; } }
.tb-box--icon { position: relative; }
.tb-box--icon::before { content: ""; display: block; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: 10px; background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent); }
.tb-box--icon::after { content: ""; position: absolute; top: calc(1.5rem + 9px); left: calc(1.5rem + 9px); width: 22px; height: 22px; background: var(--accent); -webkit-mask: var(--tb-ico) center / contain no-repeat; mask: var(--tb-ico) center / contain no-repeat; }
.tb-box p { font-size: .9375rem; color: var(--tb-slate); }
.tb-narrow { max-width: 760px; margin-inline: auto !important; }

/* Ajustes móviles ---------------------------------------------------------- */
@media (max-width: 1024px) {
	/* backdrop-filter crea un bloque contenedor para el panel fijo del menú: se desactiva en móvil. */
	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
.hv__chip, .hv__status { white-space: nowrap; }
@media (max-width: 520px) {
	.hv__status, .hv__card--editorial .hv__head .hv__muted, .hv__card--analytics .hv__head .hv__muted { display: none; }
	.hv__card--invoice, .hv__card--analytics, .hv__card--editorial, .hv__card--commerce { transform: none; }
}
.d-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.d-seg button { white-space: nowrap; flex-shrink: 0; }
.d-panel h4, .d-panel .d-h { flex-wrap: wrap; }

/* Revisión visual (2.ª ronda) ---------------------------------------------- */
/* Sin franja blanca cuando la página termina con la banda de llamada a la acción. */
.entry-content:has(> .tb-cta:last-child) { padding-bottom: 0; }
/* Primera sección tras la cabecera de página interior: menos aire. */
.tb-page-header + .entry-content > .tb-section:first-child { padding-top: clamp(2.5rem, 5vw, 4rem); }
/* Listas de componentes: el espaciado lo da el gap, no el margen del contenido. */
.tb-card__features li, .tb-project__tags li, .tb-checklist li, .tb-hero__meta li, .tb-mega li { margin-top: 0 !important; }
/* Lista negativa («Lo que no hacemos»): guion en lugar de visto. */
.tb-checklist--no li::before { background: var(--tb-light); box-shadow: inset 0 0 0 1px var(--tb-border-strong); }
.tb-checklist--no li::after { background: var(--tb-muted); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
/* Páginas de texto (legales): aire bajo la cabecera; tablas con borde suave. */
.tb-page-header + .entry-content:not(:has(> .tb-section:first-child)) { padding-top: clamp(2rem, 4vw, 3rem); }
.entry-content .wp-block-table thead { border-bottom: 1px solid var(--tb-border-strong); }
.entry-content .wp-block-table { margin-block: 1.5rem; }
/* Etiqueta de tipo de proyecto: ancho según su texto. */
.tb-project__type { display: inline-block; width: fit-content; }

/* Perfil profesional ------------------------------------------------------- */
.tb-profile-card { position: relative; padding: 1.75rem !important; }
.tb-profile-card .tb-profile-card__name { font-size: 1.375rem; margin: 0 0 .25rem; font-weight: 650; color: var(--tb-navy); letter-spacing: -.02em; }
.tb-profile-card .tb-profile-card__role { margin: 0 0 1.25rem; color: var(--tb-blue); font-weight: 600; font-size: .9375rem; }
.tb-facts { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .75rem; font-size: .9375rem; }
.tb-facts li { margin: 0 !important; padding-bottom: .75rem; border-bottom: 1px solid var(--tb-border); }
.tb-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.tb-facts strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--tb-muted); font-weight: 600; margin-bottom: .1rem; }
/* Trayectoria en línea de tiempo */
.tb-timeline { list-style: none; padding: 0 !important; margin: 0; position: relative; }
.tb-timeline::before { content: ""; position: absolute; left: 7px; top: .5rem; bottom: .5rem; width: 2px; background: var(--tb-border); }
.tb-timeline li { position: relative; margin: 0 !important; padding: 0 0 1.75rem 2.25rem; color: var(--tb-slate); }
.tb-timeline li:last-child { padding-bottom: 0; }
.tb-timeline li::before { content: ""; position: absolute; left: 0; top: .3rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--tb-blue); }
.tb-timeline li:first-child::before { background: var(--tb-blue); box-shadow: 0 0 0 4px #DBEAFE; }
.tb-timeline strong { display: block; color: var(--tb-navy); font-size: 1.0625rem; }
.tb-timeline em { display: block; font-style: normal; font-size: .875rem; color: var(--tb-muted); margin: .1rem 0 .4rem; }
/* Etiquetas de competencias */
.tb-skills { display: flex !important; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0 !important; margin: .75rem 0 0; }
.tb-skills li { margin: 0 !important; padding: .2rem .6rem; border-radius: 6px; background: var(--tb-surface); border: 1px solid var(--tb-border); font-size: .8125rem; color: var(--tb-slate); font-weight: 500; }
.tb-project-link { padding-bottom: clamp(2rem, 4vw, 3rem); }

/* Portafolio con imágenes ----------------------------------------------------- */
.tb-project { overflow: hidden; }
.tb-project__media { position: relative; margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tb-surface); border-bottom: 1px solid var(--tb-border); }
.tb-project__shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .4s var(--tb-ease); }
.tb-project:hover .tb-project__shot { transform: scale(1.03); }
.tb-project__media.is-logo { display: grid; place-items: center; background-color: var(--accent-tint); background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 18%, transparent) 1px, transparent 0); background-size: 14px 14px; }
.tb-project__logo { max-width: 72%; max-height: 52%; width: auto; height: auto; object-fit: contain; padding: .75rem 1rem; background: #fff; border-radius: 10px; box-shadow: var(--tb-shadow-sm); }
.tb-project__mark svg { width: 96px; height: auto; }
.tb-project__logo-badge { position: absolute; left: .75rem; bottom: .75rem; display: inline-flex; padding: .35rem .6rem; background: rgba(255,255,255,.96); border-radius: 8px; box-shadow: var(--tb-shadow); }
.tb-project__logo-badge img { height: 22px; width: auto; }
.tb-project-head-logo img { height: 48px; width: auto; margin-bottom: 1rem; }
.tb-project-showcase { padding-top: clamp(2rem, 4vw, 3rem); }
.tb-browser { margin: 0; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); overflow: hidden; box-shadow: var(--tb-shadow-lg); background: #fff; }
.tb-browser__bar { display: flex; align-items: center; gap: 6px; padding: .6rem .9rem; background: var(--tb-surface); border-bottom: 1px solid var(--tb-border); }
.tb-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #CBD5E1; }
.tb-browser__bar span { margin-left: .75rem; padding: .15rem .75rem; border-radius: 6px; background: #fff; border: 1px solid var(--tb-border); font-size: .75rem; color: var(--tb-muted); }
.tb-browser img { display: block; width: 100%; height: auto; }
.tb-browser figcaption { padding: .6rem .9rem; font-size: .75rem; color: var(--tb-muted); border-top: 1px solid var(--tb-border); }
.tb-project-logo-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding: 1.5rem; border: 1px solid var(--tb-border); border-radius: var(--tb-radius); background: var(--tb-surface); }
.tb-project-logo-panel img { height: 56px; width: auto; }
.tb-project-logo-panel p { margin: 0; color: var(--tb-muted); font-size: .875rem; }
.tb-project-gallery { padding-bottom: clamp(2rem, 4vw, 3rem); }
.tb-project-gallery h2 { font-size: var(--wp--preset--font-size--large); margin-bottom: 1rem; }
.tb-project-gallery ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tb-project-gallery li { margin: 0; }
.tb-project-gallery a { display: block; border: 1px solid var(--tb-border); border-radius: var(--tb-radius-sm); overflow: hidden; box-shadow: var(--tb-shadow-sm); }
.tb-project-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .3s var(--tb-ease); }
.tb-project-gallery a:hover img { transform: scale(1.03); }
@media (max-width: 700px) { .tb-project-gallery ul { grid-template-columns: 1fr; } }

/* Fotografías (Unsplash) en tarjetas y portada ------------------------------ */
.tb-card__visual.has-photo { background-image: none; padding: 0; }
.tb-card__visual.has-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--tb-ease); }
.tb-card:hover .tb-card__visual.has-photo img { transform: scale(1.04); }
.tb-card__visual.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--accent) 22%, transparent)); pointer-events: none; }
.tb-card__visual { position: relative; overflow: hidden; }
.hv__photo { display: block; object-fit: cover; }
img.hv__img { width: 100%; height: 34px; background: none; }
img.hv__thumb { flex: 0 0 44px; width: 44px; height: 56px; background: none; border-radius: 3px; box-shadow: 0 1px 3px rgba(16, 28, 44, .2); }
