/* Douglastek — interfaz B2B. Tokens, layout, estados y páginas internas. */

:root {
	--dtk-bg: #f4f5f7;
	--dtk-surface: #ffffff;
	--dtk-ink: #0e121b;
	--dtk-muted: #5c6570;
	--dtk-line: #e4e7ec;
	--dtk-accent: #1f4bff;
	--dtk-accent-hover: #1639d1;
	--dtk-accent-soft: #eef2ff;
	--dtk-radius: 10px;
	--dtk-wrap: 1120px;
	--dtk-header: 64px;
	--dtk-shadow: 0 1px 2px rgba(14, 18, 27, 0.06);
	--dtk-font: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

html {
	scroll-behavior: smooth;
}

body.dtk,
body.dtk .wp-site-blocks {
	background: var(--dtk-bg);
	color: var(--dtk-ink);
	font-family: var(--dtk-font);
	-webkit-font-smoothing: antialiased;
}

body.dtk a {
	text-decoration: none;
	text-underline-offset: 0.18em;
}

body.dtk a:hover {
	text-decoration: none;
}

.dtk-wrap {
	width: min(calc(100% - 2.5rem), var(--dtk-wrap));
	margin-inline: auto;
}

.dtk-kicker {
	margin: 0 0 0.65rem;
	color: var(--dtk-muted);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Header
----------------------------------------------------------*/
body.dtk header.wp-block-template-part,
body.dtk .dtk-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--dtk-surface);
	border-bottom: 1px solid var(--dtk-line);
}

body.dtk .dtk-header {
	padding: 0;
}

body.dtk .dtk-header__inner,
body.dtk header .wp-block-group.alignwide {
	min-height: var(--dtk-header);
	align-items: center;
	gap: 1.25rem;
}

body.dtk .dtk-brand,
body.dtk .dtk-header .wp-block-site-title a,
body.dtk header .wp-block-site-title a {
	font-size: 0.95rem;
	font-weight: 650;
	letter-spacing: -0.03em;
	text-transform: none;
	color: var(--dtk-ink);
}

body.dtk header .wp-block-site-title {
	margin: 0;
}

body.dtk header .wp-block-site-logo img {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 8px;
}

body.dtk .dtk-header__actions {
	align-items: center;
	gap: 1rem;
}

body.dtk header .wp-block-navigation a,
body.dtk header .wp-block-navigation-item__content {
	color: var(--dtk-muted);
	font-size: 0.9rem;
	font-weight: 500;
	padding: 0.35rem 0.2rem;
}

body.dtk header .wp-block-navigation a:hover,
body.dtk header .wp-block-navigation .current-menu-item a {
	color: var(--dtk-ink);
}

body.dtk header .wp-block-social-links,
body.dtk header .wc-block-mini-cart,
body.dtk header .wp-block-woocommerce-customer-account {
	display: none;
}

body.dtk .dtk-header__cta .wp-block-button__link,
body.dtk .wp-element-button,
body.dtk .wp-block-button__link {
	background: var(--dtk-accent);
	color: #fff;
	border: 1px solid transparent;
	border-radius: 8px;
	box-shadow: none;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.2;
	padding: 0.62rem 0.95rem;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

body.dtk .wp-element-button:hover,
body.dtk .wp-block-button__link:hover,
body.dtk .dtk-header__cta .wp-block-button__link:hover {
	background: var(--dtk-accent-hover);
	color: #fff;
}

body.dtk .wp-element-button:focus-visible,
body.dtk .wp-block-button__link:focus-visible,
body.dtk a:focus-visible,
body.dtk button:focus-visible,
body.dtk input:focus-visible,
body.dtk textarea:focus-visible,
body.dtk select:focus-visible {
	outline: 2px solid var(--dtk-accent);
	outline-offset: 2px;
}

body.dtk .wp-block-navigation__responsive-container-open svg,
body.dtk .wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
}

/* Home
----------------------------------------------------------*/
.dtk-hero {
	padding: 4.5rem 0 3.25rem;
}

.dtk-hero h1 {
	max-width: 14ch;
	margin: 0 0 1rem;
	font-size: clamp(2.4rem, 5vw, 3.6rem);
	font-weight: 650;
	letter-spacing: -0.045em;
	line-height: 1.05;
}

.dtk-lead {
	max-width: 42rem;
	margin: 0 0 1.75rem;
	color: var(--dtk-muted);
	font-size: 1.125rem;
	line-height: 1.55;
}

.dtk-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-bottom: 2.75rem;
}

.dtk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 0.65rem 1.05rem;
	border-radius: 8px;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.dtk-btn--primary {
	background: var(--dtk-accent);
	color: #fff;
}

.dtk-btn--primary:hover {
	background: var(--dtk-accent-hover);
	color: #fff;
}

.dtk-btn--ghost {
	background: var(--dtk-surface);
	border: 1px solid var(--dtk-line);
	color: var(--dtk-ink);
}

.dtk-btn--ghost:hover {
	border-color: #c9ced6;
	background: #fafafa;
	color: var(--dtk-ink);
}

.dtk-hero-panel {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	overflow: hidden;
	background: var(--dtk-line);
	border: 1px solid var(--dtk-line);
	border-radius: var(--dtk-radius);
	box-shadow: var(--dtk-shadow);
}

.dtk-hero-panel > div {
	background: var(--dtk-surface);
	padding: 1.15rem 1.2rem 1.25rem;
}

.dtk-hero-panel dt {
	margin: 0 0 0.35rem;
	color: var(--dtk-accent);
	font-size: 0.75rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
}

.dtk-hero-panel dd {
	margin: 0;
	color: var(--dtk-ink);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.35;
}

.dtk-strip {
	border-block: 1px solid var(--dtk-line);
	background: var(--dtk-surface);
}

.dtk-strip__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	padding: 1rem 0;
}

.dtk-strip__inner p {
	margin: 0;
	color: var(--dtk-muted);
	font-size: 0.84rem;
	font-weight: 500;
	letter-spacing: -0.01em;
}

.dtk-section {
	padding: 4.5rem 0;
}

.dtk-section--muted {
	background: var(--dtk-surface);
	border-block: 1px solid var(--dtk-line);
}

.dtk-section__intro {
	max-width: 38rem;
	margin-bottom: 2rem;
}

.dtk-section__intro h2,
.dtk-hero h1,
.dtk-cta h2 {
	letter-spacing: -0.04em;
}

.dtk-section__intro h2 {
	margin: 0 0 0.7rem;
	font-size: clamp(1.7rem, 3vw, 2.15rem);
	font-weight: 650;
	line-height: 1.15;
}

.dtk-section__intro p {
	margin: 0;
	color: var(--dtk-muted);
}

.dtk-services {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1rem;
}

.dtk-service {
	background: var(--dtk-surface);
	border: 1px solid var(--dtk-line);
	border-radius: var(--dtk-radius);
	padding: 1.35rem 1.4rem 1.45rem;
	box-shadow: var(--dtk-shadow);
}

.dtk-service--featured {
	grid-row: span 3;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	background: var(--dtk-ink);
	color: #f5f6f8;
	border-color: var(--dtk-ink);
}

.dtk-service--featured .dtk-kicker,
.dtk-service--featured p,
.dtk-service--featured a {
	color: #c5cad3;
}

.dtk-service h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 650;
	letter-spacing: -0.03em;
}

.dtk-service p {
	margin: 0;
	color: var(--dtk-muted);
	font-size: 0.95rem;
}

.dtk-service a {
	display: inline-block;
	margin-top: 1.25rem;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
}

.dtk-service a:hover {
	text-decoration: underline;
}

.dtk-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: dtk-step;
}

.dtk-steps li {
	counter-increment: dtk-step;
	padding-top: 0.4rem;
	border-top: 1px solid var(--dtk-line);
}

.dtk-steps li::before {
	content: counter(dtk-step, decimal-leading-zero);
	display: block;
	margin-bottom: 0.85rem;
	color: var(--dtk-accent);
	font-size: 0.8rem;
	font-weight: 650;
	letter-spacing: 0.04em;
}

.dtk-steps h3 {
	margin: 0 0 0.45rem;
	font-size: 1.05rem;
}

.dtk-steps p {
	margin: 0;
	color: var(--dtk-muted);
	font-size: 0.95rem;
}

.dtk-plans {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.dtk-plan {
	background: var(--dtk-surface);
	border: 1px solid var(--dtk-line);
	border-radius: var(--dtk-radius);
	padding: 1.5rem;
	box-shadow: var(--dtk-shadow);
}

.dtk-plan--featured {
	border-color: var(--dtk-ink);
}

.dtk-plan__badge {
	display: inline-block;
	margin: 0 0 0.8rem;
	padding: 0.2rem 0.5rem;
	background: var(--dtk-accent-soft);
	border-radius: 999px;
	color: var(--dtk-accent);
	font-size: 0.72rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.dtk-plan h3 {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
}

.dtk-plan__price {
	margin: 0 0 0.75rem;
	font-size: 2rem;
	font-weight: 650;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.dtk-plan__price span {
	color: var(--dtk-muted);
	font-size: 0.85rem;
	font-weight: 500;
	letter-spacing: 0;
}

.dtk-plan > p {
	margin: 0 0 1.1rem;
	color: var(--dtk-muted);
	font-size: 0.95rem;
}

.dtk-plan ul {
	margin: 0 0 1.4rem;
	padding: 0;
	list-style: none;
}

.dtk-plan li {
	padding: 0.45rem 0;
	border-top: 1px solid var(--dtk-line);
	font-size: 0.92rem;
}

.dtk-plan .dtk-btn {
	width: 100%;
}

.dtk-footnote {
	margin: 1.1rem 0 0;
	color: var(--dtk-muted);
	font-size: 0.85rem;
}

.dtk-footnote a {
	color: var(--dtk-ink);
	font-weight: 600;
}

.dtk-footnote a:hover {
	text-decoration: underline;
}

.dtk-cta {
	padding: 0 0 4.5rem;
}

.dtk-cta__inner {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.75rem 1.85rem;
	background: var(--dtk-ink);
	border-radius: 14px;
	color: #f3f4f6;
}

.dtk-cta h2 {
	max-width: 16ch;
	margin: 0 0 0.6rem;
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	font-weight: 650;
	letter-spacing: -0.04em;
}

.dtk-cta .dtk-kicker,
.dtk-cta p {
	color: #b4bac4;
}

.dtk-cta p {
	max-width: 36rem;
	margin: 0;
}

.dtk-cta__contacts {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.65rem;
	min-width: 220px;
}

.dtk-cta__contacts a:not(.dtk-btn) {
	color: #fff;
	font-weight: 600;
}

.dtk-cta__contacts a:not(.dtk-btn):hover {
	text-decoration: underline;
}

/* Footer
----------------------------------------------------------*/
body.dtk .dtk-footer,
body.dtk footer.wp-block-template-part {
	background: var(--dtk-surface);
	border-top: 1px solid var(--dtk-line);
	margin-top: 0;
}

.dtk-footer-html {
	display: grid;
	grid-template-columns: 1.1fr 1.6fr;
	gap: 2.5rem;
	padding: 2.75rem 0 1.75rem;
}

.dtk-footer-html__name {
	margin: 0 0 0.5rem;
	font-weight: 650;
	letter-spacing: -0.03em;
}

.dtk-footer-html__desc {
	max-width: 28rem;
	margin: 0;
	color: var(--dtk-muted);
	font-size: 0.92rem;
}

.dtk-footer-html__nav {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

.dtk-footer-html__nav a,
.dtk-footer-html__legal a {
	display: block;
	color: var(--dtk-ink);
	font-size: 0.9rem;
	font-weight: 500;
}

.dtk-footer-html__nav a {
	margin-top: 0.45rem;
}

.dtk-footer-html__nav a:hover,
.dtk-footer-html__legal a:hover {
	color: var(--dtk-accent);
}

.dtk-footer-html__legal {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0 2rem;
	border-top: 1px solid var(--dtk-line);
	color: var(--dtk-muted);
	font-size: 0.8rem;
}

.dtk-footer-html__legal p {
	margin: 0;
}

body.dtk footer .wp-block-social-links {
	display: none;
}

/* Inner pages: covers, titles, cards, forms
----------------------------------------------------------*/
body.dtk .dtk-main > .wp-block-post-content,
body.page .entry-content {
	padding-bottom: 3rem;
}

body.dtk:not(.home) h1.wp-block-heading,
body.dtk:not(.home) .wp-block-post-title,
body.dtk.page:not(.home) h1 {
	max-width: 18ch;
	margin-bottom: 0.6rem;
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 650;
	letter-spacing: -0.04em;
	line-height: 1.1;
}

body.dtk .wp-block-cover {
	min-height: 0 !important;
	padding: 4rem 0 !important;
	border-radius: 0;
}

body.dtk .wp-block-cover.has-background-dim:not(.has-background-gradient)::before,
body.dtk .wp-block-cover__background {
	background: var(--dtk-bg) !important;
	opacity: 1 !important;
}

body.dtk .wp-block-cover .wp-block-cover__inner-container {
	color: var(--dtk-ink);
}

body.dtk .wp-block-cover h1,
body.dtk .wp-block-cover h2,
body.dtk .wp-block-cover p,
body.dtk .wp-block-cover a {
	color: var(--dtk-ink) !important;
}

body.dtk .wp-block-cover p {
	max-width: 40rem;
	color: var(--dtk-muted) !important;
}

body.dtk .wp-block-search {
	max-width: 28rem;
}

body.dtk .wp-block-search__inside-wrapper,
body.dtk .wp-block-search__input,
body.dtk input[type="text"],
body.dtk input[type="email"],
body.dtk input[type="tel"],
body.dtk textarea,
body.dtk select,
body.dtk .wpforms-field-large,
body.dtk .wpforms-field input,
body.dtk .wpforms-field textarea,
body.dtk .wpforms-field select {
	background: var(--dtk-surface);
	border: 1px solid var(--dtk-line);
	border-radius: 8px;
	color: var(--dtk-ink);
	box-shadow: none;
}

body.dtk .wp-block-search__input,
body.dtk input[type="text"],
body.dtk input[type="email"],
body.dtk input[type="tel"],
body.dtk .wpforms-field input {
	min-height: 44px;
	padding: 0.6rem 0.8rem;
}

body.dtk textarea,
body.dtk .wpforms-field textarea {
	min-height: 120px;
	padding: 0.75rem 0.8rem;
}

body.dtk input:hover,
body.dtk textarea:hover,
body.dtk select:hover,
body.dtk .wpforms-field input:hover,
body.dtk .wpforms-field textarea:hover {
	border-color: #c9ced6;
}

body.dtk input:focus,
body.dtk textarea:focus,
body.dtk select:focus,
body.dtk .wpforms-field input:focus,
body.dtk .wpforms-field textarea:focus {
	border-color: var(--dtk-accent);
	box-shadow: 0 0 0 3px var(--dtk-accent-soft);
}

body.dtk .wpforms-submit,
body.dtk button[type="submit"] {
	background: var(--dtk-accent) !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: #fff !important;
	font-weight: 600 !important;
	min-height: 44px;
	padding: 0.7rem 1.1rem !important;
}

body.dtk .wpforms-submit:hover,
body.dtk button[type="submit"]:hover {
	background: var(--dtk-accent-hover) !important;
}

body.dtk .wpforms-submit:disabled,
body.dtk button[type="submit"]:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

body.dtk .wp-block-columns {
	gap: 1rem;
}

body.dtk .wp-block-column {
	background: var(--dtk-surface);
	border: 1px solid var(--dtk-line);
	border-radius: var(--dtk-radius);
	padding: 1.25rem;
	box-shadow: var(--dtk-shadow);
}

body.dtk .wp-block-quote,
body.dtk .wp-block-group.has-background {
	background: var(--dtk-surface) !important;
	border: 1px solid var(--dtk-line);
	border-radius: var(--dtk-radius);
}

body.page-id-pricing .wp-block-column h2,
body.dtk .wp-block-column h2,
body.dtk .wp-block-column h3 {
	letter-spacing: -0.03em;
}

body.dtk figure.wp-block-image img,
body.dtk .wp-block-cover img {
	border-radius: 8px;
}

body.dtk .woocommerce-coming-soon,
body.dtk .wp-block-woocommerce-coming-soon {
	background: var(--dtk-bg) !important;
	color: var(--dtk-ink) !important;
}

/* Ticker de indicadores (home original / residual) */
body.dtk iframe[title*="Indicadores"],
body.dtk iframe[src*="indicadores"] {
	display: block;
	width: 100%;
	max-height: 42px;
	border: 0;
}

/* Responsive
----------------------------------------------------------*/
@media (max-width: 900px) {
	.dtk-hero-panel,
	.dtk-strip__inner,
	.dtk-services,
	.dtk-steps,
	.dtk-plans,
	.dtk-footer-html,
	.dtk-footer-html__nav,
	.dtk-cta__inner,
	.dtk-footer-html__legal {
		grid-template-columns: 1fr 1fr;
	}

	.dtk-service--featured {
		grid-row: auto;
	}

	.dtk-cta__inner,
	.dtk-footer-html__legal {
		display: grid;
	}

	body.dtk .dtk-header__cta {
		display: none;
	}
}

@media (max-width: 640px) {
	.dtk-wrap {
		width: min(calc(100% - 1.5rem), var(--dtk-wrap));
	}

	.dtk-hero {
		padding-top: 2.5rem;
	}

	.dtk-hero-panel,
	.dtk-strip__inner,
	.dtk-services,
	.dtk-steps,
	.dtk-plans,
	.dtk-footer-html,
	.dtk-footer-html__nav {
		grid-template-columns: 1fr;
	}

	.dtk-section {
		padding: 3rem 0;
	}

	.dtk-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.dtk-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	body.dtk *,
	body.dtk *::before,
	body.dtk *::after {
		animation: none !important;
		transition: none !important;
	}
}
