/* =========================================================
   Kernext — estilos del tema
   Colores y tipografías principales: theme.json
   ========================================================= */
:root {
	--kx-navy: var(--wp--preset--color--navy, #0B1A30);
	--kx-ink: var(--wp--preset--color--ink, #0F1E33);
	--kx-muted: var(--wp--preset--color--muted, #4E5D72);
	--kx-mist: var(--wp--preset--color--mist, #F2F5F9);
	--kx-line: var(--wp--preset--color--line, #DCE3EC);
	--kx-brand: var(--wp--preset--color--brand, #2152D9);
	--kx-brand-deep: var(--wp--preset--color--brand-deep, #1A41AE);
	--kx-on-dark: var(--wp--preset--color--on-dark, #C3CEDF);
	--kx-line-dark: #22385A;
	--kx-signal: #F0B04A;
	--kx-display: var(--wp--preset--font-family--display, "Manrope", sans-serif);
	--kx-gutter: clamp(16px, 4vw, 40px);
	--kx-header-h: 76px;
	--kx-admin: var(--wp-admin--admin-bar--height, 0px);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kx-header-h) + var(--kx-admin)); }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:focus-visible { outline: 3px solid var(--kx-signal); outline-offset: 3px; }

/* Sin espacios automáticos entre cabecera, contenido y pie */
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > header.wp-block-template-part { position: relative; z-index: 100; }

/* Dentro de los bloques del tema controlamos el espaciado a mano */
.kx-header *, .kx-hero *, .kx-ph *, .kx-section *, .kx-cta *, .kx-footer *, .kx-map { margin-block-start: 0; margin-block-end: 0; }
.kx-designed-content > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }

.kx-wrap {
	box-sizing: border-box;
	width: 100%;
	max-width: 1200px;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: var(--kx-gutter);
	padding-right: var(--kx-gutter);
}

/* ---------- Botones ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color .2s, color .2s, border-color .2s; }
.kx-btn-sm .wp-block-button__link { padding: 12px 20px; font-size: .94rem; }
.kx-btn-ghost .wp-block-button__link,
.kx-hero .is-style-outline .wp-block-button__link {
	background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .45);
	padding: 14.5px 24.5px;
}
.kx-btn-ghost .wp-block-button__link:hover,
.kx-hero .is-style-outline .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.kx-btn-light .wp-block-button__link { background: #fff; color: var(--kx-navy); }
.kx-btn-light .wp-block-button__link:hover { background: #E8EEFC; color: var(--kx-navy); }

/* ---------- Marca ---------- */
.kx-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.kx-brand img { width: 36px; height: 36px; flex: none; }
.kx-brand-word { font: 800 1.4rem/1 var(--kx-display); letter-spacing: -0.035em; display: flex; flex-direction: column; }
.kx-brand-word small { font-family: inherit; font-weight: 500; font-size: .66rem; line-height: 1.5; letter-spacing: .04em; opacity: .7; }

/* ---------- Cabecera ---------- */
.kx-header {
	position: fixed; top: var(--kx-admin); left: 0; right: 0; z-index: 100;
	background: #fff; color: var(--kx-ink);
	box-shadow: 0 1px 0 var(--kx-line);
	transition: background-color .25s, box-shadow .25s, color .25s;
}
.home .kx-header:not(.is-scrolled) { background: transparent; color: #fff; box-shadow: none; }
.kx-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--kx-header-h); }
.kx-header-inner > .wp-block-html { display: contents; }
.kx-header .kx-nav { margin-left: auto; color: inherit; }
.kx-header .kx-nav a { text-decoration: none; }
.kx-header .kx-nav .wp-block-navigation__container { gap: 4px; }
.kx-header .kx-nav .wp-block-navigation-item__content { padding: 10px 14px; border-radius: 6px; font-weight: 500; font-size: .98rem; }
.kx-header .kx-nav .wp-block-navigation-item__content:hover { background: rgba(127, 127, 127, .12); }
.kx-header .kx-nav .wp-block-navigation-submenu__toggle { padding-right: 14px; }
.kx-header .kx-nav .wp-block-navigation-item.has-child > .wp-block-navigation-item__content { padding-right: 4px; }
.kx-header-cta { flex: none; }

/* Submenú Servicios (escritorio) */
.kx-header .kx-nav .wp-block-navigation__submenu-container {
	color: var(--kx-ink) !important; background: #fff !important;
	border: 1px solid var(--kx-line) !important; border-radius: 10px;
	padding: 8px !important; min-width: 300px !important;
	box-shadow: 0 30px 60px -24px rgba(11, 26, 48, .4);
	top: calc(100% + 6px) !important;
}
.kx-header .kx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	display: block; width: 100%; padding: 11px 14px; border-left: 2px solid transparent; border-radius: 6px;
}
.kx-header .kx-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background: var(--kx-mist); border-left-color: var(--kx-brand);
}

/* Enlace "Contacto" solo dentro del menú móvil (en escritorio está el botón) */
.kx-header .kx-nav .kx-nav-contact { display: none; }
.kx-header .kx-nav .is-menu-open .kx-nav-contact { display: block; }

/* Menú móvil a pantalla completa */
.kx-header .wp-block-navigation__responsive-container-open,
.kx-header .wp-block-navigation__responsive-container-close { color: inherit; }
.kx-header .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.kx-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 22px var(--kx-gutter) 32px;
	color: var(--kx-ink);
}
.kx-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 56px; align-items: stretch;
}
.kx-header .is-menu-open .wp-block-navigation__container { gap: 0; align-items: stretch !important; width: 100%; }
.kx-header .is-menu-open .wp-block-navigation-item { width: 100%; align-items: stretch !important; border-bottom: 1px solid var(--kx-line); }
.kx-header .is-menu-open .wp-block-navigation-item__content { padding: 16px 4px !important; font-size: 1.12rem !important; font-weight: 600 !important; }
.kx-header .is-menu-open .wp-block-navigation__submenu-container {
	border: 0 !important; box-shadow: none; min-width: 0 !important; padding: 0 0 12px 12px !important; background: transparent !important;
}
.kx-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { border-bottom: 0; }
.kx-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 9px 4px !important; font-size: 1rem !important; font-weight: 400 !important; color: var(--kx-muted);
}

/* ---------- Banner principal ---------- */
.kx-hero {
	position: relative; overflow: hidden; color: #fff;
	background-color: #0B1A30;
	background-image:
		radial-gradient(60% 70% at 80% 40%, rgba(33, 82, 217, .38), rgba(33, 82, 217, 0) 70%),
		radial-gradient(40% 50% at 10% 100%, rgba(33, 82, 217, .16), rgba(33, 82, 217, 0) 70%),
		linear-gradient(180deg, #0B1A30 0%, #0A1629 100%);
	padding-top: var(--kx-header-h);
	min-height: 640px;
	display: flex; flex-direction: column;
}
.kx-hero::before {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(70% 80% at 70% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(70% 80% at 70% 45%, #000 20%, transparent 75%);
}
.kx-hero > * { position: relative; }
.kx-slides { flex: 1 1 auto; display: grid; }
.kx-slide { display: flex; align-items: center; }
.kx-slide + .kx-slide { border-top: 1px solid rgba(255, 255, 255, .08); } /* sin JS / en el editor: apiladas */

.kx-slide-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.kx-slide-tag { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; color: var(--kx-on-dark); }
.kx-slide-tag::before { content: ""; width: 28px; height: 2px; background: var(--kx-brand); flex: none; }
.kx-hero .kx-slide-title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.9rem); font-weight: 800; max-width: 17ch; margin-top: 22px; text-wrap: balance; }
.kx-slide-text { color: var(--kx-on-dark); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 50ch; margin-top: 22px !important; }
.kx-slide-actions { margin-top: 36px !important; gap: 12px; }
.kx-slide-art { justify-self: end; width: 100%; max-width: 500px; }
.kx-slide-art img { width: 100%; height: auto; display: block; }

/* Carrusel activo (lo activa el JavaScript del tema) */
.kx-hero.kx-ready .kx-slide {
	grid-area: 1 / 1; border-top: 0;
	opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.kx-hero.kx-ready .kx-slide.is-active { opacity: 1; visibility: visible; }
.kx-hero.kx-ready .kx-slide-copy > * { -webkit-transform: translateY(14px); transform: translateY(14px); opacity: 0; transition: transform .7s ease, opacity .7s ease; }
.kx-hero.kx-ready .kx-slide.is-active .kx-slide-copy > * { -webkit-transform: none; transform: none; opacity: 1; }
.kx-hero.kx-ready .kx-slide.is-active .kx-slide-copy > :nth-child(2) { transition-delay: .08s; }
.kx-hero.kx-ready .kx-slide.is-active .kx-slide-copy > :nth-child(3) { transition-delay: .16s; }
.kx-hero.kx-ready .kx-slide.is-active .kx-slide-copy > :nth-child(4) { transition-delay: .24s; }

.kx-hero-controls { display: flex; justify-content: space-between; align-items: center; padding-bottom: 34px; }
.kx-dots { display: flex; gap: 10px; }
.kx-dots button { background: none; border: 0; padding: 12px 0; cursor: pointer; }
.kx-dots span { display: block; width: 44px; height: 3px; background: rgba(255, 255, 255, .22); border-radius: 2px; position: relative; overflow: hidden; }
.kx-dots span::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; -webkit-transform: scaleX(0); transform: scaleX(0); -webkit-transform-origin: left; transform-origin: left; }
.kx-dots [aria-selected="true"] span::after { -webkit-animation: kx-progress var(--kx-slide-ms, 7000ms) linear forwards; animation: kx-progress var(--kx-slide-ms, 7000ms) linear forwards; }
.kx-hero.is-paused .kx-dots [aria-selected="true"] span::after { -webkit-animation: none; animation: none; -webkit-transform: scaleX(1); transform: scaleX(1); }
@-webkit-keyframes kx-progress { to { -webkit-transform: scaleX(1); transform: scaleX(1); } }
@keyframes kx-progress { to { transform: scaleX(1); } }
.kx-arrows { display: flex; gap: 8px; }
.kx-arrow {
	width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
	background: transparent; border: 1px solid rgba(255, 255, 255, .3); color: #fff; padding: 0;
	transition: background-color .2s, border-color .2s;
}
.kx-arrow:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.kx-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kx-arrow .kx-i-play { display: none; fill: currentColor; stroke: none; }
.kx-hero.is-paused .kx-arrow .kx-i-pause { display: none; }
.kx-hero.is-paused .kx-arrow .kx-i-play { display: block; }

/* ---------- Secciones ---------- */
.kx-section { padding: clamp(72px, 9vw, 120px) 0; scroll-margin-top: calc(var(--kx-header-h) + var(--kx-admin)); }
.kx-eyebrow { display: flex; align-items: center; gap: 10px; color: var(--kx-brand); font-weight: 600; font-size: .95rem; margin-bottom: 14px !important; }
.kx-eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; flex: none; }
.kx-section h2 { font-size: clamp(1.9rem, 3.3vw, 2.75rem); max-width: 20ch; text-wrap: balance; }
.kx-section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 56px !important; }
.kx-section-head > p { color: var(--kx-muted); max-width: 50ch; }

/* Nosotros */
.kx-about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 72px; }
.kx-about-text > p { margin-bottom: 18px !important; max-width: 62ch; color: #2D3C52; }
.kx-about-text strong { font-weight: 600; color: var(--kx-brand); }
.kx-values { margin-top: 36px !important; border-top: 1px solid var(--kx-line); }
.kx-value { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--kx-line); }
.kx-value-title { font-weight: 600; }
.kx-value-text { color: var(--kx-muted); }

/* Servicios */
.kx-services { background: var(--kx-mist); }
.kx-srv-grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
	background: var(--kx-line); border: 1px solid var(--kx-line); border-radius: 12px; overflow: hidden;
}
.kx-srv { background: #fff; padding: 38px 34px 40px; position: relative; scroll-margin-top: calc(var(--kx-header-h) + var(--kx-admin) + 20px); }
.kx-srv::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--kx-brand); transition: width .35s ease; }
.kx-srv:hover::before, .kx-srv:target::before { width: 100%; }
.kx-srv-icon { margin-bottom: 24px !important; }
.kx-srv-icon img { width: 40px; height: 40px; display: block; }
.kx-srv h3 { font-size: 1.3rem; margin-bottom: 10px !important; }
.kx-srv-lead { color: var(--kx-muted); font-size: 1rem; margin-bottom: 20px !important; }
.kx-srv-list { margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--kx-line); }
.kx-srv-list li { font-size: .96rem; padding: 5px 0 5px 20px; position: relative; color: #2D3C52; }
.kx-srv-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--kx-brand); }

/* Sectores */
.kx-sectors { background: var(--kx-navy); color: #fff; }
.kx-sectors .kx-eyebrow { color: #7FA2FF; }
.kx-sectors .kx-section-head > p { color: var(--kx-on-dark); }
.kx-sector-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--kx-line-dark); }
.kx-sector { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--kx-line-dark); }
.kx-sector:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--kx-line-dark); }
.kx-sector h3 { font-size: 1.22rem; color: #fff; margin-bottom: 8px !important; letter-spacing: -0.015em; }
.kx-sector p { color: var(--kx-on-dark); font-size: .98rem; }

/* Cómo trabajamos */
.kx-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: kx-step; }
.kx-step { counter-increment: kx-step; position: relative; padding-top: 66px; }
.kx-step::before { content: counter(kx-step, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 800 2.2rem/1 var(--kx-display); color: var(--kx-brand); letter-spacing: -0.04em; }
.kx-step::after { content: ""; position: absolute; top: 46px; left: 0; right: -32px; height: 1px; background: var(--kx-line); }
.kx-step:last-child::after { right: 0; }
.kx-step h3 { font-size: 1.25rem; margin-bottom: 8px !important; }
.kx-step p { color: var(--kx-muted); font-size: 1rem; }

/* Franja CTA */
.kx-cta { background: var(--kx-brand); color: #fff; padding: 56px 0; }
.kx-cta-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 40px; }
.kx-cta-text { font: 700 clamp(1.4rem, 2.6vw, 2rem)/1.25 var(--kx-display); letter-spacing: -0.02em; }

/* Contacto */
.kx-contact { background: var(--kx-mist); }
.kx-contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.kx-contact-lead { color: var(--kx-muted); margin-top: 16px !important; max-width: 40ch; }
.kx-contact-data { margin-top: 36px !important; }
.kx-cd { padding: 14px 0; border-top: 1px solid var(--kx-line); font-weight: 600; line-height: 1.5; }
.kx-cd-label { font-size: .88rem; font-weight: 400; color: var(--kx-muted); }
.kx-cd a { color: inherit; text-decoration: none; }
.kx-cd a:hover { color: var(--kx-brand); text-decoration: underline; }

.kx-form { background: #fff; border-radius: 12px; padding: clamp(24px, 3.5vw, 44px); border: 1px solid var(--kx-line); box-shadow: 0 30px 60px -40px rgba(11, 26, 48, .35); }
.kx-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.kx-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.kx-field label { font-weight: 500; font-size: .94rem; }
.kx-field input, .kx-field select, .kx-field textarea {
	box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; color: var(--kx-ink);
	border: 1px solid #CBD5E1; border-radius: 6px; padding: 12px 14px; background: #fff;
	-webkit-appearance: none; appearance: none;
}
.kx-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%234E5D72' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px;
}
.kx-field textarea { resize: vertical; min-height: 120px; }
.kx-field input:focus, .kx-field select:focus, .kx-field textarea:focus { outline: none; border-color: var(--kx-brand); box-shadow: 0 0 0 3px rgba(33, 82, 217, .14); }
.kx-field [aria-invalid="true"] { border-color: #C0392B; }
.kx-check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--kx-muted); margin: 4px 0 18px; }
.kx-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--kx-brand); flex: none; }
.kx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kx-form-msg { min-height: 1.4em; margin-bottom: 12px; font-weight: 500; }
.kx-form-msg.is-error { color: #B03A2E; }
.kx-form-msg.is-ok { color: #0E7C55; }
.kx-submit { cursor: pointer; border: 0; }
.kx-submit[disabled] { opacity: .7; cursor: progress; }

/* ---------- Páginas internas ---------- */
.kx-page-head { background: var(--kx-navy); color: #fff; padding: calc(var(--kx-header-h) + 56px) 0 56px; }
.kx-page-title { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 22ch; }
.kx-page-meta { color: var(--kx-on-dark); font-size: .95rem; margin-bottom: 12px; }
.kx-page-body { padding-top: 56px; padding-bottom: 88px; }
.kx-page-body .kx-page-meta { color: var(--kx-muted); margin: 0; }
.archive .kx-blog-title { display: none; }
.kx-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; list-style: none; padding: 0; }
.kx-posts > li { margin: 0; }
.kx-post-title { font-size: 1.3rem; margin-top: 6px; }
.kx-post-title a { color: var(--kx-ink); text-decoration: none; }
.kx-post-title a:hover { color: var(--kx-brand); }

/* ---------- Pie ---------- */
.kx-footer { background: var(--kx-navy); color: var(--kx-on-dark); padding-top: 72px; font-size: .96rem; }
.kx-footer a { color: inherit; text-decoration: none; }
.kx-footer a:hover { color: #fff; text-decoration: underline; }
.kx-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.kx-footer .kx-brand { color: #fff; }
.kx-footer .kx-brand img { width: 32px; height: 32px; }
.kx-footer-brand p { margin-top: 20px !important; max-width: 32ch; }
.kx-footer .kx-footer-title { font-family: inherit; font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 16px !important; }
.kx-footer-links { list-style: none; margin: 0; padding: 0; }
.kx-footer-links li { margin-bottom: 9px !important; }
.kx-footer-contact { margin-bottom: 18px !important; }
.kx-reclamaciones { display: inline-flex !important; align-items: center; gap: 10px; border: 1px solid var(--kx-line-dark); border-radius: 6px; padding: 11px 16px; color: #fff !important; font-weight: 600; }
.kx-reclamaciones svg { flex: none; }
.kx-footer .kx-social { margin-top: 18px !important; gap: 10px; }
.kx-footer .kx-social .wp-social-link { border: 1px solid var(--kx-line-dark); border-radius: 50%; }
.kx-footer .kx-social .wp-social-link a { padding: 9px; }
.kx-footer .kx-social .wp-social-link:hover { background: #12243F; }
.kx-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--kx-line-dark); padding-top: 22px; padding-bottom: 30px; font-size: .86rem; color: #8798B2; }
.kx-ruc { margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--kx-line-dark); }

/* =========================================================
   Páginas interiores
   ========================================================= */

/* ---------- Cabecera compacta ---------- */
.kx-ph {
	position: relative; overflow: hidden; color: #fff;
	background-color: #0B1A30;
	background-image:
		radial-gradient(55% 90% at 85% 30%, rgba(33, 82, 217, .34), rgba(33, 82, 217, 0) 70%),
		linear-gradient(180deg, #0B1A30 0%, #0A1629 100%);
	padding-top: var(--kx-header-h);
}
.kx-ph::before {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(60% 100% at 80% 40%, #000 15%, transparent 75%);
	mask-image: radial-gradient(60% 100% at 80% 40%, #000 15%, transparent 75%);
}
.kx-ph > * { position: relative; }
.kx-ph--service { background-image: radial-gradient(60% 100% at 90% 50%, rgba(33, 82, 217, .5), rgba(33, 82, 217, 0) 70%), linear-gradient(180deg, #0B1A30 0%, #0A1629 100%); }
.kx-ph--nosotros { background-image: radial-gradient(50% 100% at 78% 50%, rgba(240, 176, 74, .12), rgba(240, 176, 74, 0) 70%), radial-gradient(55% 90% at 85% 30%, rgba(33, 82, 217, .3), rgba(33, 82, 217, 0) 70%), linear-gradient(180deg, #0B1A30 0%, #0A1629 100%); }
.kx-ph--contacto { background-image: radial-gradient(60% 100% at 20% 120%, rgba(33, 82, 217, .35), rgba(33, 82, 217, 0) 70%), radial-gradient(55% 90% at 85% 30%, rgba(33, 82, 217, .3), rgba(33, 82, 217, 0) 70%), linear-gradient(180deg, #0B1A30 0%, #0A1629 100%); }
.kx-ph-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding-top: 44px; padding-bottom: 52px; min-height: 240px; }
.kx-ph--plain .kx-ph-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.kx-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--kx-on-dark); }
.kx-crumbs li { display: flex; align-items: center; }
.kx-crumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-right: 1.5px solid rgba(255, 255, 255, .45); border-top: 1.5px solid rgba(255, 255, 255, .45); -webkit-transform: rotate(45deg); transform: rotate(45deg); }
.kx-crumbs a { color: var(--kx-on-dark); text-decoration: none; }
.kx-crumbs a:hover { color: #fff; text-decoration: underline; }
.kx-crumbs [aria-current] { color: #fff; }
.kx-ph-meta { color: var(--kx-on-dark); font-size: .92rem; margin-top: 18px !important; }
.kx-ph .kx-ph-title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); max-width: 20ch; margin-top: 18px; text-wrap: balance; }
.kx-ph-lead { color: var(--kx-on-dark); font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 56ch; margin-top: 16px !important; }
.kx-ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px !important; }
.kx-ph-actions .wp-element-button { display: inline-block; text-decoration: none; }
.kx-ph-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.kx-ph-link:hover { border-bottom-color: #fff; }
.kx-ph-art { justify-self: end; width: 100%; max-width: 340px; }
.kx-ph-art img { width: 100%; height: auto; display: block; }

/* ---------- Comunes ---------- */
.kx-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--kx-brand); text-decoration: none; }
.kx-more a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-top: 2px solid currentColor; -webkit-transform: rotate(45deg); transform: rotate(45deg); transition: transform .2s; }
.kx-more a:hover { text-decoration: underline; }
.kx-sectors .kx-more a { color: #9DB6FF; }
.kx-more-section { margin-top: 40px !important; }
.kx-about-text .kx-more { margin-top: 28px !important; }
.kx-srv .kx-more { margin-top: 18px !important; }
.kx-srv h3 a { color: inherit; text-decoration: none; }
.kx-srv h3 a:hover { color: var(--kx-brand); }
.kx-muted { color: var(--kx-muted); margin-top: 16px !important; }
.kx-muted-dark { color: var(--kx-on-dark); margin-top: 16px !important; max-width: 46ch; }
.kx-mini-title { font-weight: 600; font-size: .88rem; color: var(--kx-muted); margin-bottom: 10px !important; }
.kx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.kx-checks { list-style: none; margin: 0; padding: 0; }
.kx-checks li { position: relative; padding: 7px 0 7px 30px; }
.kx-checks li::before {
	content: ""; position: absolute; left: 0; top: 11px; width: 18px; height: 18px; border-radius: 50%;
	background: #E8EEFC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%232152D9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.kx-checks strong { font-weight: 600; }

/* FAQ (bloque Detalles) */
.kx-faqs { border-top: 1px solid var(--kx-line); }
.kx-faq { border-bottom: 1px solid var(--kx-line); padding: 0 !important; }
.kx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--kx-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.kx-faq summary::-webkit-details-marker { display: none; }
.kx-faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--kx-brand); border-bottom: 2px solid var(--kx-brand); -webkit-transform: rotate(45deg) translate(-2px, -2px); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.kx-faq[open] summary::after { -webkit-transform: rotate(-135deg); transform: rotate(-135deg); }
.kx-faq > p { color: var(--kx-muted); padding-bottom: 22px; max-width: 62ch; }

/* ---------- Servicios ---------- */
.kx-intro-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 72px; align-items: center; }
.kx-lead-xl { font: 600 clamp(1.4rem, 2.5vw, 1.95rem)/1.35 var(--kx-display); letter-spacing: -0.02em; color: var(--kx-ink); }
.kx-sv-catalog { background: var(--kx-mist); }
.kx-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kx-svc-card { position: relative; background: #fff; border: 1px solid var(--kx-line); border-radius: 14px; padding: 34px 36px 32px; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 20px; transition: border-color .2s, box-shadow .2s; }
.kx-svc-card:hover { border-color: #B9C8F2; box-shadow: 0 24px 48px -32px rgba(11, 26, 48, .45); }
.kx-svc-card > * { grid-column: 2; }
.kx-svc-card > .kx-svc-icon { grid-column: 1; grid-row: 1 / span 4; width: 64px; height: 64px; border-radius: 14px; background: #E8EEFC; display: flex; align-items: center; justify-content: center; }
.kx-svc-icon img { width: 34px !important; height: 34px !important; }
.kx-svc-card h3 { font-size: 1.3rem; }
.kx-svc-card h3 a { color: inherit; text-decoration: none; }
.kx-svc-card h3 a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.kx-svc-card:hover h3 a { color: var(--kx-brand); }
.kx-svc-lead { color: var(--kx-muted); margin-top: 8px !important; }
.kx-svc-list { list-style: none; padding: 0; margin: 16px 0 0 !important; }
.kx-svc-list li { position: relative; padding: 4px 0 4px 18px; font-size: .96rem; color: #2D3C52; }
.kx-svc-list li::before { content: ""; position: absolute; left: 1px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--kx-brand); }
.kx-svc-card .kx-more { margin-top: 18px !important; }
.kx-sv-layers { background: var(--kx-navy); color: #fff; }
.kx-sv-layers .kx-eyebrow { color: #7FA2FF; }
.kx-sv-layers .kx-section-head > p { color: var(--kx-on-dark); }
.kx-layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--kx-line-dark); border-radius: 14px; overflow: hidden; }
.kx-layer { padding: 34px 32px 38px; }
.kx-layer + .kx-layer { border-left: 1px solid var(--kx-line-dark); }
.kx-layer:nth-child(1) { background: rgba(33, 82, 217, .08); }
.kx-layer:nth-child(2) { background: rgba(33, 82, 217, .16); }
.kx-layer:nth-child(3) { background: rgba(33, 82, 217, .26); }
.kx-layer-tag { display: inline-block; font-size: .82rem; font-weight: 600; color: #9DB6FF; border: 1px solid #34508A; border-radius: 999px; padding: 3px 12px; margin-bottom: 18px !important; }
.kx-layer h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px !important; }
.kx-layer p:last-child { color: var(--kx-on-dark); }

/* ---------- Página de servicio ---------- */
.kx-svd-intro h2 { max-width: 18ch; }
.kx-body-lg { font-size: 1.1rem; color: #2D3C52; margin-top: 20px !important; max-width: 56ch; }
.kx-problems-box { background: var(--kx-mist); border-radius: 14px; padding: 32px 34px; border-left: 4px solid var(--kx-brand); }
.kx-problems-title { font-weight: 600; margin-bottom: 14px !important; }
.kx-problems { list-style: none; margin: 0; padding: 0; }
.kx-problems li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--kx-line); color: #2D3C52; }
.kx-problems li:first-child { border-top: 0; }
.kx-problems li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 2px; background: var(--kx-brand); }
.kx-svd-includes { background: var(--kx-mist); }
.kx-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--kx-line); border: 1px solid var(--kx-line); border-radius: 14px; overflow: hidden; counter-reset: kx-feat; }
.kx-feature { background: #fff; padding: 32px 30px 34px; }
.kx-feature h3 { font-size: 1.15rem; margin-bottom: 8px !important; display: flex; align-items: center; gap: 12px; }
.kx-feature h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--kx-brand); }
.kx-feature p { color: var(--kx-muted); font-size: .98rem; }
.kx-ideal { margin-top: 56px !important; padding-top: 32px; border-top: 1px solid var(--kx-line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.kx-ideal-title { font-weight: 600; }
.kx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kx-chips li { background: #E8EEFC; color: var(--kx-brand-deep); font-weight: 500; font-size: .94rem; padding: 8px 16px; border-radius: 999px; }
.kx-svd-faq h2 { max-width: 14ch; }
.kx-svd-others { background: var(--kx-mist); padding: 56px 0; }
.kx-section h2.kx-others-title { font-size: 1.3rem; margin-bottom: 22px !important; }
.kx-others { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kx-other { position: relative; background: #fff; border: 1px solid var(--kx-line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s; }
.kx-other:hover { border-color: var(--kx-brand); }
.kx-other-icon img { width: 32px !important; height: 32px !important; }
.kx-other-name { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.kx-other-name a { color: var(--kx-ink); text-decoration: none; }
.kx-other-name a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }

/* ---------- Nosotros ---------- */
.kx-split-about { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
.kx-split-about h2 { max-width: 22ch; margin-bottom: 22px !important; }
.kx-split-about p:not(.kx-eyebrow) { color: #2D3C52; max-width: 62ch; }
.kx-split-about p + p:not(.kx-eyebrow) { margin-top: 16px !important; }
.kx-split-about strong { font-weight: 600; color: var(--kx-brand); }
.kx-quote-box { position: relative; background: var(--kx-navy); color: #fff; border-radius: 16px; padding: 44px 40px 40px; overflow: hidden; }
.kx-quote-box::before { content: "“"; position: absolute; top: -18px; right: 22px; font: 800 9rem/1 var(--kx-display); color: rgba(33, 82, 217, .45); }
.kx-quote { position: relative; font: 700 clamp(1.3rem, 2.2vw, 1.65rem)/1.3 var(--kx-display); letter-spacing: -0.02em; }
.kx-quote-by { position: relative; margin-top: 20px !important; color: var(--kx-on-dark); font-size: .95rem; }
.kx-ab-mv { background: var(--kx-mist); }
.kx-mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kx-mv { background: #fff; border-radius: 14px; padding: 38px 40px; border: 1px solid var(--kx-line); }
.kx-mv-tag { font: 800 1.6rem/1 var(--kx-display); color: var(--kx-brand); letter-spacing: -0.03em; margin-bottom: 16px !important; }
.kx-mv-text { font-size: 1.12rem; color: #2D3C52; }
.kx-value-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.kx-value-card { border-top: 3px solid var(--kx-brand); padding-top: 22px; }
.kx-value-card h3 { font-size: 1.2rem; margin-bottom: 8px !important; }
.kx-value-card p { color: var(--kx-muted); font-size: .98rem; }
.kx-ab-company { background: var(--kx-navy); color: #fff; }
.kx-ab-company .kx-eyebrow { color: #7FA2FF; }
.kx-co-table { border-top: 1px solid var(--kx-line-dark); }
.kx-co-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--kx-line-dark); }
.kx-co-label { color: var(--kx-on-dark); font-size: .94rem; }
.kx-co-value { font-weight: 600; overflow-wrap: anywhere; }
.kx-co-value a { color: #fff; text-decoration: none; }
.kx-co-value a:hover { text-decoration: underline; }

/* ---------- Sectores ---------- */
.kx-sc-list { padding-top: clamp(40px, 6vw, 72px); }
.kx-sector-rows { counter-reset: kx-sec; }
.kx-sector-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 72px; padding: 48px 0; border-bottom: 1px solid var(--kx-line); }
.kx-sector-row:first-child { padding-top: 8px; }
.kx-sector-row:last-child { border-bottom: 0; }
.kx-section h2.kx-sector-name { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 16ch; }
.kx-sector-desc { color: #2D3C52; font-size: 1.08rem; margin-top: 14px !important; max-width: 46ch; }
.kx-sector-side { background: var(--kx-mist); border-radius: 14px; padding: 26px 30px; }
.kx-sector-side .kx-checks { margin-bottom: 18px !important; }
.kx-related { line-height: 1.9; }
.kx-related a { color: var(--kx-brand); font-weight: 600; text-decoration: none; }
.kx-related a:hover { text-decoration: underline; }

/* ---------- Cómo trabajamos ---------- */
.kx-timeline { counter-reset: kx-tl; position: relative; }
.kx-tl-item { counter-increment: kx-tl; position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 56px; padding: 0 0 48px 84px; }
.kx-tl-item::before { content: counter(kx-tl, decimal-leading-zero); position: absolute; left: 0; top: -4px; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--kx-brand); color: #fff; font: 800 1.05rem/1 var(--kx-display); }
.kx-tl-item::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 6px; width: 2px; background: var(--kx-line); }
.kx-tl-item:last-child { padding-bottom: 0; }
.kx-tl-item:last-child::after { display: none; }
.kx-tl-main h3 { font-size: 1.45rem; margin-bottom: 10px !important; }
.kx-tl-main p { color: #2D3C52; max-width: 56ch; }
.kx-tl-side { background: var(--kx-mist); border-radius: 12px; padding: 20px 24px; }
.kx-mt-commit { background: var(--kx-mist); }
.kx-commits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.kx-commit { background: #fff; border: 1px solid var(--kx-line); border-radius: 12px; padding: 28px 26px 30px; }
.kx-commit h3 { font-size: 1.15rem; margin-bottom: 8px !important; }
.kx-commit p { color: var(--kx-muted); font-size: .97rem; }

/* ---------- Contacto ---------- */
.kx-ct-grid { align-items: start; }
.kx-ct-info h2 { max-width: 16ch; }
.kx-cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 32px !important; }
.kx-cc { background: #fff; border: 1px solid var(--kx-line); border-radius: 12px; padding: 20px 22px; }
.kx-cc:first-child { grid-column: 1 / -1; background: var(--kx-navy); border-color: var(--kx-navy); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; }
.kx-cc:first-child .kx-cc-label { grid-column: 1; color: var(--kx-on-dark); }
.kx-cc:first-child .kx-cc-value { grid-column: 1; font-size: 1.5rem; }
.kx-cc:first-child .kx-cc-value a { color: #fff; }
.kx-cc:first-child .kx-cc-action { grid-column: 2; grid-row: 1 / span 2; }
.kx-cc-label { font-size: .86rem; color: var(--kx-muted); }
.kx-cc-value { font-family: var(--kx-display); font-weight: 700; font-size: 1.05rem; margin-top: 4px !important; overflow-wrap: anywhere; line-height: 1.35; }
.kx-cc-value a { color: var(--kx-ink); text-decoration: none; }
.kx-cc-value a:hover { text-decoration: underline; }
.kx-wa {
	display: inline-flex; align-items: center; gap: 10px; background: #1FAF54; color: #fff !important; text-decoration: none;
	font-weight: 600; font-size: .95rem; padding: 12px 18px; border-radius: 6px; white-space: nowrap;
}
.kx-wa::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.2-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kx-wa:hover { background: #18934A; }
.kx-ct-form { background: #fff; border-radius: 14px; border: 1px solid var(--kx-line); padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 30px 60px -40px rgba(11, 26, 48, .35); }
.kx-ct-form h3.kx-form-title { font-size: 1.35rem; margin-bottom: 22px !important; }
.kx-ct-form .kx-form { border: 0; padding: 0; box-shadow: none; border-radius: 0; }
.kx-map { line-height: 0; }
.kx-map-frame { display: block; width: 100%; height: 380px; border: 0; -webkit-filter: grayscale(.35); filter: grayscale(.35); }

/* ---------- Tablet ---------- */
@media (max-width: 1060px) {
	/* Menú hamburguesa también en tablet */
	.kx-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex !important; }
	.kx-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none !important; }
	.kx-header .kx-header-cta { display: none !important; }

	.kx-slide-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.kx-slide-art { justify-self: start; max-width: 340px; -webkit-box-ordinal-group: 0; order: -1; }
	.kx-srv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kx-sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kx-sector, .kx-sector:not(:nth-child(3n+1)) { padding: 28px 28px 30px 0; border-left: 0; }
	.kx-sector:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--kx-line-dark); }
	.kx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
	.kx-step:nth-child(2)::after { right: 0; }
	.kx-footer-grid { grid-template-columns: 1fr 1fr; }
	.kx-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kx-ph-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; }
	.kx-svc-grid { grid-template-columns: minmax(0, 1fr); }
	.kx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kx-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kx-value-grid, .kx-commits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kx-layers { grid-template-columns: minmax(0, 1fr); }
	.kx-layer + .kx-layer { border-left: 0; border-top: 1px solid var(--kx-line-dark); }
	.kx-split, .kx-split-about, .kx-intro-grid { grid-template-columns: minmax(0, 1fr); }
	.kx-tl-item { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Celular ---------- */
@media (max-width: 720px) {
	:root { --kx-header-h: 66px; }
	.kx-brand-word { font-size: 1.25rem; }
	.kx-brand img { width: 32px; height: 32px; }
	.kx-hero { min-height: 0; }
	.kx-slide-grid { padding-top: 24px; padding-bottom: 16px; }
	.kx-slide-art { max-width: 220px; }
	.kx-slide-tag { font-size: .9rem; }
	.kx-hero .kx-slide-title { margin-top: 16px; }
	.kx-slide-actions { margin-top: 28px !important; }
	.kx-slide-actions .wp-block-button { width: 100%; }
	.kx-slide-actions .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
	.kx-hero-controls { padding-bottom: 24px; }
	.kx-dots span { width: 30px; }
	.kx-arrow { width: 40px; height: 40px; }

	.kx-section-head, .kx-about-grid, .kx-contact-grid { grid-template-columns: minmax(0, 1fr); }
	.kx-section-head { margin-bottom: 36px !important; }
	.kx-value { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.kx-srv-grid { grid-template-columns: minmax(0, 1fr); }
	.kx-srv { padding: 30px 24px 32px; }
	.kx-sector-list { grid-template-columns: minmax(0, 1fr); }
	.kx-sector, .kx-sector:nth-child(2n), .kx-sector:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
	.kx-steps { grid-template-columns: minmax(0, 1fr); }
	.kx-step::after { right: 0 !important; }
	.kx-cta-inner .wp-block-buttons, .kx-cta-inner .wp-block-button, .kx-cta-inner .wp-block-button__link { width: 100%; box-sizing: border-box; text-align: center; }
	.kx-field-row { grid-template-columns: minmax(0, 1fr); }
	.kx-submit { width: 100%; }
	.kx-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.kx-ruc { display: block; margin: 4px 0 0; padding: 0; border: 0; }
	.kx-posts { grid-template-columns: minmax(0, 1fr); }
	.kx-ph-grid { grid-template-columns: minmax(0, 1fr); padding-top: 28px; padding-bottom: 36px; min-height: 0; }
	.kx-ph-art { display: none; }
	.kx-ph-actions .wp-element-button { width: 100%; text-align: center; box-sizing: border-box; }
	.kx-svc-card { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
	.kx-svc-card > *, .kx-svc-card > .kx-svc-icon { grid-column: 1; grid-row: auto; }
	.kx-svc-card > .kx-svc-icon { width: 52px; height: 52px; margin-bottom: 16px !important; }
	.kx-features { grid-template-columns: minmax(0, 1fr); }
	.kx-others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kx-value-grid, .kx-commits, .kx-mv-grid, .kx-cc-grid { grid-template-columns: minmax(0, 1fr); }
	.kx-mv { padding: 28px 24px; }
	.kx-problems-box, .kx-sector-side { padding: 24px 22px; }
	.kx-sector-row { grid-template-columns: minmax(0, 1fr); padding: 36px 0; }
	.kx-tl-item { padding-left: 64px; }
	.kx-tl-item::before { width: 44px; height: 44px; font-size: .95rem; }
	.kx-tl-item::after { left: 21px; top: 48px; }
	.kx-co-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.kx-cc:first-child { grid-template-columns: minmax(0, 1fr); }
	.kx-cc:first-child .kx-cc-action { grid-column: 1; grid-row: auto; margin-top: 14px !important; }
	.kx-wa { width: 100%; justify-content: center; box-sizing: border-box; }
	.kx-map-frame { height: 300px; }
	.kx-quote-box { padding: 34px 26px 30px; }
}

@media (max-width: 600px) {
	.admin-bar .kx-header { top: 0; }
	.admin-bar .kx-header.is-scrolled { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kx-hero *, .kx-hero *::before, .kx-hero *::after, .kx-srv::before { transition: none !important; -webkit-animation: none !important; animation: none !important; }
}

/* ---------- Editor ---------- */
.editor-styles-wrapper .kx-header { position: relative; top: 0; background: var(--kx-navy); color: #fff; }
.editor-styles-wrapper .kx-hero { padding-top: 0; min-height: 0; }
.editor-styles-wrapper .kx-page-head, .editor-styles-wrapper .kx-ph { padding-top: 0; }
.editor-styles-wrapper .is-root-container > * { margin-block-start: 0; margin-block-end: 0; }

/* Ajustes finos de páginas interiores */
.kx-inner > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.kx-svd-faq { padding-top: 0; }
.kx-split-about .kx-quote-box p.kx-quote { color: #fff; }
.kx-split-about .kx-quote-box p.kx-quote-by { color: var(--kx-on-dark); margin-top: 20px !important; }
.kx-cc-grid > .kx-cc:nth-child(2) { grid-column: 1 / -1; }
