/* =========================================================================
   KSG — sistema de diseño (child theme de Stal)
   Paleta: "KSG Digital Colour Palette Redesign" (sept. 2026)
   Reglas de uso del PDF: cobalto = botones principales · teal = enlaces ·
   verde = destacados, siempre con texto oscuro.
   ========================================================================= */
:root {
	--ksg-blue: #153B69;      /* primario: confianza y continuidad */
	--ksg-blue-900: #0C2745;
	--ksg-teal: #0F6F78;      /* enlaces */
	--ksg-aqua: #46B8AD;      /* acento */
	--ksg-green: #9BC434;     /* destacados (texto oscuro encima) */
	--ksg-cobalt: #2A5FCD;    /* CTA */
	--ksg-cobalt-700: #1F4BA8;
	--ksg-graphite: #27313A;  /* texto */
	--ksg-mist: #F2F7F7;      /* fondo */
	--ksg-line: #D9E3E6;
	--ksg-muted: #5A6772;
	--ksg-white: #fff;
	--ksg-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--ksg-wrap: 1320px;
	--ksg-gutter: clamp(16px, 4vw, 40px);
	--ksg-radius: 4px;
	--ksg-header-h: 84px;
	--ksg-ease: cubic-bezier(.2, .7, .2, 1);
	--ksg-section: clamp(64px, 9vw, 128px);
}

/* ---- Base ------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body.ksg {
	font-family: var(--ksg-font);
	color: var(--ksg-graphite);
	background: var(--ksg-white);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.ksg h1, body.ksg h2, body.ksg h3, body.ksg h4, body.ksg h5, body.ksg h6 {
	font-family: var(--ksg-font);
	color: inherit;
	letter-spacing: -0.02em;
	font-weight: 700;
	margin: 0;
}
body.ksg p { margin: 0 0 1em; color: inherit; font-family: var(--ksg-font); }
body.ksg a { color: var(--ksg-teal); text-decoration: none; transition: color .2s var(--ksg-ease); }
body.ksg a:hover { color: var(--ksg-blue); }
:where(body.ksg) img { max-width: 100%; height: auto; display: block; }
/* Imágenes de relleno (object-fit): más específicas que `.elementor img { height:auto }` */
body.ksg .ksg-hero__media img, body.ksg .ksg-page-hero__media img, body.ksg .ksg-division__img img, body.ksg .ksg-split__media img,
body.ksg .ksg-card__img img, body.ksg .ksg-service__img img, body.ksg .ksg-news-card__img img, body.ksg .ksg-person__photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
body.ksg .ksg-hero__media img { object-position: 0% 40%; }   /* foto de San-Tec (2026-10-01): técnico a la derecha del titular */
@media (max-width: 700px) { body.ksg .ksg-hero__media img { object-position: 55% 30%; } .ksg-hero__lead { font-size: 17px; } }
body.ksg #qodef-side-area, body.ksg .qodef-side-area-cover, body.ksg #qodef-page-header, body.ksg #qodef-page-mobile-header, body.ksg #qodef-page-footer { display: none !important; }
body.ksg :focus-visible { outline: 3px solid var(--ksg-aqua); outline-offset: 3px; }
.ksg-wrap { width: 100%; max-width: calc(var(--ksg-wrap) + 2 * var(--ksg-gutter)); margin: 0 auto; padding: 0 var(--ksg-gutter); box-sizing: border-box; }
.ksg-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Neutraliza el envoltorio de Stal para que Elementor ocupe todo el ancho */
body.ksg #qodef-page-outer { margin-top: 0 !important; }
body.ksg #qodef-page-inner.qodef-content-grid,
body.ksg #qodef-page-inner { width: 100% !important; max-width: none !important; padding: 0 !important; }
body.ksg #qodef-page-inner > .qodef-grid-inner, body.ksg .qodef-grid-inner { margin: 0 !important; }
body.ksg .qodef-grid-item.qodef-page-content-section { padding: 0 !important; width: 100% !important; }
body.ksg #qodef-page-spinner, body.ksg #qodef-back-to-top { display: none !important; }
body.ksg .elementor-section.elementor-section-boxed > .elementor-container { max-width: none; }
body.ksg .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; --gap: 0; }
body.ksg .e-con > .e-con-inner { max-width: none; padding: 0; }
body.ksg .elementor-widget-html, body.ksg .elementor-widget-html > .elementor-widget-container { width: 100%; }
body.ksg .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* ---- Tipografía de componentes ---------------------------------------- */
.ksg-eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--ksg-teal); margin: 0 0 18px;
}
.ksg-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ksg-on-dark .ksg-eyebrow, .ksg-eyebrow--light { color: var(--ksg-aqua); }
.ksg-display { font-size: clamp(42px, 6.4vw, 92px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.ksg-h1 { font-size: clamp(38px, 5vw, 68px); line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; }
.ksg-h1__sub { display: block; margin-top: .35em; font-size: .5em; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--ksg-green); max-width: 30ch; }
.ksg-h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -0.028em; }
.ksg-h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.25; }
.ksg-lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ksg-muted); max-width: 46ch; }
.ksg-on-dark .ksg-lead { color: rgba(255, 255, 255, .82); }
.ksg-accent { color: var(--ksg-aqua); }
body.ksg .ksg-europe .ksg-h2, body.ksg .ksg-split__body .ksg-h2 { margin-bottom: 22px; }
.ksg-split__body .ksg-lead { margin-bottom: 26px; }
.ksg-on-light .ksg-accent { color: var(--ksg-teal); }

/* ---- Botones y enlaces ------------------------------------------------ */
.ksg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .6em;
	min-height: 52px; padding: 0 28px; border-radius: var(--ksg-radius);
	font: 600 15px/1 var(--ksg-font); letter-spacing: .01em; text-decoration: none !important;
	border: 2px solid transparent; cursor: pointer;
	transition: background .25s var(--ksg-ease), color .25s var(--ksg-ease), border-color .25s var(--ksg-ease), transform .25s var(--ksg-ease);
}
.ksg-btn::after { content: "→"; font-weight: 400; transition: transform .25s var(--ksg-ease); }
.ksg-btn:hover::after { transform: translateX(4px); }
.ksg-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.ksg-btn--sm::after { display: none; }
body.ksg .ksg-btn--primary { background: var(--ksg-cobalt); color: #fff; }
body.ksg .ksg-btn--primary:hover { background: var(--ksg-cobalt-700); color: #fff; }
body.ksg .ksg-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
body.ksg .ksg-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
body.ksg .ksg-btn--outline { border-color: var(--ksg-blue); color: var(--ksg-blue); background: transparent; }
body.ksg .ksg-btn--outline:hover { background: var(--ksg-blue); color: #fff; }
.ksg-btns { display: flex; flex-wrap: wrap; gap: 14px; }
body.ksg .ksg-link {
	display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: var(--ksg-teal);
	border-bottom: 1px solid transparent;
}
body.ksg .ksg-link::after { content: "→"; transition: transform .25s var(--ksg-ease); }
body.ksg .ksg-link:hover { color: var(--ksg-blue); }
body.ksg .ksg-link:hover::after { transform: translateX(4px); }
body.ksg .ksg-on-dark .ksg-link { color: var(--ksg-aqua); }
body.ksg .ksg-on-dark .ksg-link:hover { color: #fff; }

/* ---- Logo -------------------------------------------------------------- */
.ksg-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ksg-blue); line-height: 1; }
.ksg-logo__signet { width: 34px; height: 38.6px; flex: none; }
.ksg-logo__word { font: 800 27px/1 var(--ksg-font); letter-spacing: .02em; color: currentColor; }
.ksg-logo--light { color: #fff; }

/* ---- Cabecera ---------------------------------------------------------- */
.ksg-header {
	position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--ksg-header-h);
	background: rgba(255, 255, 255, .97); color: var(--ksg-blue);
	box-shadow: 0 1px 0 var(--ksg-line);
	transition: background .35s var(--ksg-ease), box-shadow .35s var(--ksg-ease), color .35s var(--ksg-ease), transform .35s var(--ksg-ease);
}
body.admin-bar .ksg-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ksg-header { top: 46px; } }
body.ksg { padding-top: var(--ksg-header-h); }
body.ksg.ksg-has-dark-hero { padding-top: 0; }
body.ksg-has-dark-hero .ksg-header:not(.is-solid) { background: linear-gradient(180deg, rgba(8, 24, 44, .55), rgba(8, 24, 44, 0)); box-shadow: none; color: #fff; }
.ksg-header__bar { height: 100%; display: flex; align-items: center; gap: 32px; }
.ksg-header__brand { color: inherit !important; flex: none; }
.ksg-header .ksg-logo { color: inherit; }
.ksg-nav { margin-left: auto; }
.ksg-nav__list, .ksg-nav__list ul { list-style: none; margin: 0; padding: 0; }
.ksg-nav__list { display: flex; align-items: center; gap: 4px; }
.ksg-nav__list > li { position: relative; }
.ksg-nav__list > li > a {
	display: flex; align-items: center; gap: 6px; height: var(--ksg-header-h); padding: 0 14px;
	font: 500 15px/1 var(--ksg-font); color: inherit !important; position: relative;
}
.ksg-nav__list > li > a::before {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 24px; height: 2px;
	background: var(--ksg-aqua); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ksg-ease);
}
.ksg-nav__list > li:hover > a::before, .ksg-nav__list > li.current-menu-item > a::before,
.ksg-nav__list > li.current-menu-ancestor > a::before, .ksg-nav__list > li.current-menu-parent > a::before { transform: scaleX(1); }
.ksg-nav__list > li.menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-3px); opacity: .7; }
.ksg-nav__list .sub-menu {
	position: absolute; top: calc(100% - 12px); left: 0; min-width: 250px; padding: 12px;
	background: #fff; border-radius: var(--ksg-radius); box-shadow: 0 24px 48px -12px rgba(12, 39, 69, .28);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ksg-ease);
}
.ksg-nav__list > li:hover > .sub-menu, .ksg-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ksg-nav__list .sub-menu a { display: block; padding: 11px 14px; border-radius: 3px; font: 500 15px/1.3 var(--ksg-font); color: var(--ksg-graphite) !important; }
.ksg-nav__list .sub-menu a:hover { background: var(--ksg-mist); color: var(--ksg-blue) !important; }
.ksg-header__tools { display: flex; align-items: center; gap: 16px; }
.ksg-lang { font: 600 13px/1 var(--ksg-font); letter-spacing: .08em; opacity: .85; display: inline-flex; gap: 10px; }
.ksg-lang a { color: inherit !important; opacity: .6; }
.ksg-lang a[aria-current] { opacity: 1; }
.ksg-header.is-solid { background: rgba(255, 255, 255, .97); color: var(--ksg-blue); box-shadow: 0 1px 0 var(--ksg-line), 0 10px 30px -18px rgba(12, 39, 69, .35); }
.ksg-header.is-hidden { transform: translateY(-100%); }
.ksg-burger { display: none; width: 44px; height: 44px; padding: 11px 9px; background: none; border: 0; cursor: pointer; color: inherit; }
.ksg-burger span { display: block; height: 2px; background: currentColor; margin: 5px 0; transition: transform .3s var(--ksg-ease), opacity .3s; }
.ksg-mobile { position: fixed; inset: var(--ksg-header-h) 0 0 0; background: var(--ksg-blue-900); color: #fff; overflow-y: auto; padding: 24px var(--ksg-gutter) 40px; }
.ksg-mobile__list, .ksg-mobile__list ul { list-style: none; margin: 0; padding: 0; }
.ksg-mobile__list > li { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.ksg-mobile__list a { display: block; padding: 18px 0; font: 600 22px/1.2 var(--ksg-font); color: #fff !important; }
.ksg-mobile__list .sub-menu { padding: 0 0 14px 14px; }
.ksg-mobile__list .sub-menu a { font-size: 17px; font-weight: 500; padding: 10px 0; color: rgba(255, 255, 255, .8) !important; }
.ksg-mobile__foot { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 1180px) {
	.ksg-nav, .ksg-header__cta, .ksg-header__tools > .ksg-lang { display: none; }
	.ksg-burger { display: block; }
	.ksg-header__tools { margin-left: auto; }
	body.ksg-menu-open { overflow: hidden; }
	body.ksg-menu-open .ksg-header { background: var(--ksg-blue-900) !important; color: #fff !important; box-shadow: none; }
	body.ksg-menu-open .ksg-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	body.ksg-menu-open .ksg-burger span:nth-child(2) { opacity: 0; }
	body.ksg-menu-open .ksg-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) { :root { --ksg-header-h: 68px; } .ksg-logo__signet { width: 28px; height: 32px; } .ksg-logo__word { font-size: 23px; } }

/* ---- Secciones --------------------------------------------------------- */
.ksg-section { padding: var(--ksg-section) 0; position: relative; }
.ksg-section--tight { padding: calc(var(--ksg-section) * .6) 0; }
.ksg-section--mist { background: var(--ksg-mist); }
.ksg-section--navy { background: var(--ksg-blue); color: #fff; }
.ksg-section--deep { background: var(--ksg-blue-900); color: #fff; }
.ksg-on-dark h1, .ksg-on-dark h2, .ksg-on-dark h3 { color: #fff; }
.ksg-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.ksg-head .ksg-lead { margin: 0; }
.ksg-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.ksg-head--center .ksg-lead { max-width: 60ch; }
@media (max-width: 860px) { .ksg-head { grid-template-columns: 1fr; } }

/* ---- Hero (Home) -------------------------------------------------------- */
.ksg-hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--ksg-blue-900); }
.ksg-hero__media, .ksg-hero__media img, .ksg-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ksg-hero__media img { animation: ksgZoom 18s ease-out both; }
@keyframes ksgZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.ksg-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 26, 48, .88) 0%, rgba(8, 26, 48, .55) 45%, rgba(8, 26, 48, .15) 100%), linear-gradient(0deg, rgba(8, 26, 48, .85) 0%, rgba(8, 26, 48, 0) 45%); }
.ksg-hero__content { position: relative; padding-top: calc(var(--ksg-header-h) + 80px); padding-bottom: 56px; }
.ksg-hero__title { max-width: 14ch; margin-bottom: 26px !important; }
.ksg-hero__lead { max-width: 52ch; font-size: clamp(18px, 1.55vw, 22px); color: rgba(255, 255, 255, .86); margin-bottom: 36px; }
.ksg-hero__more { margin: 22px 0 0 !important; font-size: 15px; color: rgba(255, 255, 255, .7); display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ksg-hero__more a { color: #fff !important; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; transition: border-color .2s; }
.ksg-hero__more a:hover { border-bottom-color: var(--ksg-green); }
.ksg-hero__more a::after { content: " →"; }
.ksg-hero__stats { position: relative; border-top: 1px solid rgba(255, 255, 255, .18); background: rgba(8, 26, 48, .35); backdrop-filter: blur(6px); }
.ksg-hero__stats .ksg-stats { padding: 30px 0 34px; }

/* ---- Cifras ------------------------------------------------------------ */
.ksg-stats { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px; }
.ksg-stat { position: relative; padding-left: 20px; border-left: 2px solid var(--ksg-aqua); }
.ksg-stat__num { display: block; font: 800 clamp(34px, 3.6vw, 54px)/1 var(--ksg-font); letter-spacing: -0.03em; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.ksg-stat__label { display: block; font-size: 15px; line-height: 1.4; opacity: .82; }
.ksg-on-light .ksg-stat__num { color: var(--ksg-blue); }
.ksg-on-light .ksg-stat { border-left-color: var(--ksg-green); }
@media (max-width: 900px) { .ksg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; } }

/* ---- Bloque de cifras con tarjetas (Home) ------------------------------- */
.ksg-scale { position: relative; overflow: hidden; background: var(--ksg-blue-900); color: #fff; isolation: isolate; }
.ksg-scale__media { position: absolute; inset: 0; z-index: -1; }
body.ksg .ksg-scale__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(1) contrast(1.1); }
.ksg-scale__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(8, 26, 48, .92) 0%, rgba(21, 59, 105, .78) 55%, rgba(15, 111, 120, .7) 100%); }
.ksg-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ksg-tile { position: relative; display: flex; flex-direction: column; padding: 34px 30px 32px; border-radius: var(--ksg-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(4px); overflow: hidden; transition: transform .35s var(--ksg-ease), background .35s var(--ksg-ease), border-color .35s; }
.ksg-tile::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ksg-aqua), var(--ksg-green)); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ksg-ease); }
.ksg-tile:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .24); }
.ksg-tile:hover::before, .ksg-tile.is-in::before { transform: scaleX(1); }
.ksg-tile__ico { width: 40px; height: 40px; fill: none; stroke: var(--ksg-aqua); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 28px; }
.ksg-tile .ksg-stat__num { color: #fff; font: 800 clamp(42px, 4.2vw, 64px)/1 var(--ksg-font); letter-spacing: -0.035em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.ksg-tile__label { font-weight: 700; font-size: 17px; color: #fff; margin-bottom: 6px; }
.ksg-tile__note { font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .68); }
@media (max-width: 1000px) { .ksg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ksg-tiles { grid-template-columns: 1fr; } .ksg-tile { padding: 28px 24px; } }

/* ---- Capa animada de fondo (fx): manchas difuminadas, líneas que fluyen, signo KSG ---- */
.ksg-has-fx { position: relative; overflow: hidden; isolation: isolate; }
.ksg-has-fx > .ksg-wrap { position: relative; z-index: 1; }
.ksg-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ksg-fx__orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.ksg-fx__orb--a { width: 560px; height: 560px; top: -220px; left: -160px; background: var(--ksg-aqua); opacity: .38; animation: ksgOrbA 24s ease-in-out infinite alternate; }
.ksg-fx__orb--b { width: 480px; height: 480px; bottom: -240px; right: 6%; background: var(--ksg-green); opacity: .22; animation: ksgOrbB 28s ease-in-out infinite alternate; }
@keyframes ksgOrbA { to { transform: translate(42vw, 140px) scale(1.18); } }
@keyframes ksgOrbB { to { transform: translate(-34vw, -110px) scale(.88); } }
.ksg-fx__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.ksg-fx__base { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ksg-fx__flow { fill: none; stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 140 1000; stroke-dashoffset: 1140; animation: ksgFlow 9s linear infinite; filter: drop-shadow(0 0 6px rgba(70, 184, 173, .9)); }
.ksg-fx__flow--2 { animation-duration: 12s; animation-delay: -4s; }
.ksg-fx__flow--3 { animation-duration: 15s; animation-delay: -9s; stroke-dasharray: 90 1000; }
@keyframes ksgFlow { to { stroke-dashoffset: 0; } }
.ksg-fx__signet { position: absolute; right: -90px; top: 50%; width: min(560px, 48vw); height: auto; color: #fff; opacity: .05; animation: ksgFloat 16s ease-in-out infinite alternate; }
@keyframes ksgFloat { from { transform: translateY(-56%) rotate(-5deg); } to { transform: translateY(-44%) rotate(5deg); } }
/* variante lateral (cabeceras de página): solo en la mitad derecha, se desvanece hacia el texto */
.ksg-fx--side { -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, #000 80%); mask-image: linear-gradient(90deg, transparent 0%, transparent 52%, #000 80%); }
.ksg-page-hero .ksg-h1 { max-width: 19ch; }
.ksg-fx--side .ksg-fx__orb--a { left: auto; right: -120px; top: -180px; opacity: .3; animation-name: ksgOrbSide; }
@keyframes ksgOrbSide { to { transform: translate(-16vw, 140px) scale(1.12); } }
.ksg-page-hero .ksg-fx__signet { width: min(420px, 36vw); right: -60px; opacity: .07; }
.ksg-page-hero__content { z-index: 1; }
@media (max-width: 700px) { .ksg-fx--side { -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 55%, #000 95%); mask-image: linear-gradient(90deg, transparent 0%, transparent 55%, #000 95%); } }
/* versión para fondos claros */
.ksg-fx--light .ksg-fx__orb--a { background: var(--ksg-aqua); opacity: .16; }
.ksg-fx--light .ksg-fx__orb--b { background: #2A5FCD; opacity: .09; }
.ksg-fx--light .ksg-fx__base { stroke: rgba(21, 59, 105, .09); }
.ksg-fx--light .ksg-fx__flow { stroke-width: 2; filter: drop-shadow(0 0 5px rgba(42, 95, 205, .35)); }
@media (prefers-reduced-motion: reduce) { .ksg-fx__orb, .ksg-fx__flow, .ksg-fx__signet { animation: none; } .ksg-fx__flow { stroke-dashoffset: 500; } }

/* ---- Tarjetas de división ----------------------------------------------- */
.ksg-divisions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ksg-division {
	position: relative; display: flex; flex-direction: column; min-height: 580px; overflow: hidden; border-radius: var(--ksg-radius);
	color: #fff !important; background: var(--ksg-blue-900); isolation: isolate;
}
.ksg-division__img { position: absolute; inset: 0; z-index: -2; }
.ksg-division__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ksg-ease); }
.ksg-division::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 26, 48, .1) 0%, rgba(8, 26, 48, .55) 40%, rgba(8, 26, 48, .95) 100%); transition: background .5s var(--ksg-ease); }
.ksg-division:hover .ksg-division__img img { transform: scale(1.06); }
body.ksg .ksg-division[href*="environmental-health"] .ksg-division__img img { object-position: 78% 40%; }
body.ksg img.ksg-img--top { object-position: 50% 20%; }
/* Título y descripción a la misma altura en todas las tarjetas; subservicios y enlace, abajo */
.ksg-division__body { flex: 1; display: flex; flex-direction: column; padding: clamp(170px, 15vw, 220px) 34px 34px; }
.ksg-division__list { margin-top: auto !important; }
.ksg-division__num { font: 600 13px/1 var(--ksg-font); letter-spacing: .14em; color: var(--ksg-aqua); margin-bottom: 16px; display: block; }
.ksg-division__title { font-size: clamp(26px, 2.2vw, 32px); margin-bottom: 12px !important; color: #fff; }
.ksg-division__text { color: rgba(255, 255, 255, .85); margin-bottom: 20px !important; font-size: 16px; }
.ksg-division__list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ksg-division__list li { font-size: 13px; font-weight: 500; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 100px; color: rgba(255, 255, 255, .92); }
.ksg-division__more { font-weight: 600; color: #fff; display: inline-flex; gap: .5em; }
.ksg-division__more::after { content: "→"; transition: transform .25s var(--ksg-ease); }
.ksg-division:hover .ksg-division__more::after { transform: translateX(5px); }
@media (max-width: 1000px) { .ksg-divisions { grid-template-columns: 1fr; } .ksg-division { min-height: 480px; } }

/* ---- Europa / mapa ------------------------------------------------------ */
.ksg-europe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.ksg-map { position: relative; width: 100%; }
.ksg-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.ksg-map .ksg-map__land { fill: rgba(255, 255, 255, .07); stroke: rgba(255, 255, 255, .16); stroke-width: .6; }
.ksg-map .ksg-map__active { fill: var(--ksg-teal); stroke: rgba(255, 255, 255, .45); stroke-width: .8; cursor: pointer; transition: fill .3s var(--ksg-ease); }
.ksg-map .ksg-map__active:hover, .ksg-map .ksg-map__active.is-on { fill: var(--ksg-aqua); }
.ksg-map .ksg-map__active.is-dim { fill: rgba(15, 111, 120, .35); }
.ksg-map .ksg-map__link { stroke: var(--ksg-green); stroke-width: 1.1; stroke-dasharray: 3 4; fill: none; opacity: .75; animation: ksgDash 30s linear infinite; }
@keyframes ksgDash { to { stroke-dashoffset: -600; } }
.ksg-map .ksg-map__hub { fill: var(--ksg-green); }
.ksg-map .ksg-map__hub-ring { fill: none; stroke: var(--ksg-green); stroke-width: 1.2; transform-origin: center; transform-box: fill-box; animation: ksgPulse 2.6s ease-out infinite; }
@keyframes ksgPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.ksg-map__tip { position: absolute; pointer-events: none; background: #fff; color: var(--ksg-graphite); padding: 10px 14px; border-radius: var(--ksg-radius); font-size: 14px; line-height: 1.35; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); transform: translate(-50%, calc(-100% - 12px)); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.ksg-map__tip strong { display: block; color: var(--ksg-blue); }
.ksg-map__tip.is-on { opacity: 1; }
/* marca principal junto a cada punto del mapa (2026-09-30) */
.ksg-map .ksg-map__brand { fill: #fff; font: 700 13px/1 var(--ksg-font); paint-order: stroke; stroke: rgba(12, 39, 69, .85); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; font-size: 16px; }
@media (max-width: 640px) { .ksg-map .ksg-map__brand { font-size: 20px; } }
/* todas las marcas por país, con su web (debajo del mapa) */
.ksg-brands__title { margin: clamp(48px, 6vw, 80px) 0 24px !important; color: #fff; }
.ksg-brands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.ksg-brands__row { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.ksg-brands__country { font-size: 13px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--ksg-green) !important; margin: 0 0 10px !important; }
.ksg-brands__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ksg-brands__list a { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: #fff !important; text-decoration: none; }
.ksg-brands__list strong { font-weight: 600; }
.ksg-brands__list span { font-size: 14px; color: rgba(255, 255, 255, .65); }
.ksg-brands__list a:hover span { color: var(--ksg-aqua); }
.ksg-brands__list span::after { content: " ↗"; }
@media (max-width: 1000px) { .ksg-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ksg-brands { grid-template-columns: 1fr; } }
.ksg-markets-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 2px; }
.ksg-markets-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-weight: 600; }
.ksg-markets-list li span { font-weight: 400; font-size: 14px; color: rgba(255, 255, 255, .7); text-align: right; }
@media (max-width: 1000px) { .ksg-europe { grid-template-columns: 1fr; } }

/* ---- Cobertura mercado × servicio (Services & Divisions) ---------------- */
.ksg-cov__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--ksg-radius); border: 1px solid rgba(255, 255, 255, .14); }
.ksg-cov__table { width: 100%; min-width: 720px; border-collapse: collapse; margin: 0 !important; font-size: 15px; color: #fff; }
.ksg-cov__table th, .ksg-cov__table td { border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .12) !important; padding: 18px 16px; text-align: center; vertical-align: middle; background: transparent; }
.ksg-cov__table tbody tr:last-child > * { border-bottom: 0 !important; }
.ksg-cov__table tbody tr { transition: background .2s; }
.ksg-cov__table tbody tr:hover { background: rgba(255, 255, 255, .05); }
.ksg-cov__corner { text-align: left !important; font: 600 12px/1 var(--ksg-font); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ksg-cov__table th.ksg-cov__div { font: 700 13px/1.2 var(--ksg-font); letter-spacing: .1em; text-transform: uppercase; border-bottom: 3px solid !important; }
.ksg-cov__div a { color: #fff !important; text-decoration: none; }
.ksg-cov__table th.ksg-cov__div--ind { border-bottom-color: var(--ksg-aqua) !important; }
.ksg-cov__table th.ksg-cov__div--inf { border-bottom-color: #5B8BF0 !important; }
.ksg-cov__table th.ksg-cov__div--env { border-bottom-color: var(--ksg-green) !important; }
.ksg-cov__svc { font-weight: 500; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .78); max-width: 180px; }
.ksg-cov__table tbody th { text-align: left; font-weight: 700; font-size: 17px; white-space: nowrap; }
.ksg-cov__table tbody th a { color: #fff !important; text-decoration: none; }
.ksg-cov__table tbody th a:hover { color: var(--ksg-green) !important; }
.ksg-cov__table tbody th span { display: block; font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.ksg-cov__dot { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: var(--ksg-aqua); box-shadow: 0 0 0 5px rgba(70, 184, 173, .18); }
.ksg-cov__cell--inf .ksg-cov__dot { background: #5B8BF0; box-shadow: 0 0 0 5px rgba(91, 139, 240, .2); }
.ksg-cov__cell--env .ksg-cov__dot { background: var(--ksg-green); box-shadow: 0 0 0 5px rgba(155, 196, 52, .2); }
.ksg-cov__none { color: rgba(255, 255, 255, .25); }
.ksg-divsectors { font-size: 15px; color: var(--ksg-muted); margin: 0 0 30px !important; }
.ksg-divsectors strong { display: block; font: 600 12px/1 var(--ksg-font); letter-spacing: .14em; text-transform: uppercase; color: var(--ksg-teal); margin-bottom: 8px; }
body.ksg .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---- Filtro por división (chips) ---------------------------------------- */
.ksg-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.ksg-chip { font: 500 14px/1 var(--ksg-font); padding: 11px 16px; border-radius: 100px; border: 1px solid var(--ksg-line); background: #fff; color: var(--ksg-graphite); cursor: pointer; transition: all .2s var(--ksg-ease); }
.ksg-chip:hover { border-color: var(--ksg-teal); color: var(--ksg-teal); }
.ksg-chip[aria-pressed="true"] { background: var(--ksg-blue); border-color: var(--ksg-blue); color: #fff; }
.ksg-on-dark .ksg-chip { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.ksg-on-dark .ksg-chip[aria-pressed="true"] { background: var(--ksg-green); border-color: var(--ksg-green); color: var(--ksg-blue-900); }

/* ---- Pilares / razones --------------------------------------------------- */
.ksg-pillars { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ksg-line); }
.ksg-pillar { padding: 40px 36px 8px 0; border-right: 1px solid var(--ksg-line); }
.ksg-pillar + .ksg-pillar { padding-left: 36px; }
.ksg-pillar:last-child { border-right: 0; }
.ksg-pillar__num { font: 800 15px/1 var(--ksg-font); color: var(--ksg-teal); letter-spacing: .1em; display: block; margin-bottom: 28px; }
.ksg-pillar h3 { font-size: clamp(21px, 1.8vw, 25px); margin-bottom: 14px !important; color: var(--ksg-blue); }
.ksg-pillar p { color: var(--ksg-muted); font-size: 16px; }
.ksg-on-dark .ksg-pillars { border-top-color: rgba(255, 255, 255, .16); }
.ksg-on-dark .ksg-pillar { border-right-color: rgba(255, 255, 255, .16); }
.ksg-on-dark .ksg-pillar h3 { color: #fff; }
.ksg-on-dark .ksg-pillar p { color: rgba(255, 255, 255, .75); }
.ksg-on-dark .ksg-pillar__num { color: var(--ksg-aqua); }
.ksg-pillars[style*="--cols:5"] .ksg-pillar { padding-right: 22px; }
.ksg-pillars[style*="--cols:5"] .ksg-pillar + .ksg-pillar { padding-left: 22px; }
.ksg-pillars[style*="--cols:5"] .ksg-pillar h3 { font-size: clamp(19px, 1.5vw, 22px); }
.ksg-pillar a.ksg-link { font-size: 15px; }
@media (max-width: 1100px) and (min-width: 901px) { .ksg-pillars[style*="--cols:5"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ksg-pillars[style*="--cols:5"] .ksg-pillar { border-right: 0; padding-left: 0 !important; } }
@media (max-width: 900px) { .ksg-pillars { grid-template-columns: 1fr; } .ksg-pillar, .ksg-pillar + .ksg-pillar { padding: 32px 0 8px; border-right: 0; border-bottom: 1px solid var(--ksg-line); } .ksg-on-dark .ksg-pillar { border-bottom-color: rgba(255, 255, 255, .16); } }

/* ---- Split imagen + texto ------------------------------------------------ */
.ksg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.ksg-split--rev .ksg-split__media { order: 2; }
.ksg-split__media { position: relative; border-radius: var(--ksg-radius); overflow: hidden; aspect-ratio: 4 / 3.2; background: var(--ksg-mist); }
.ksg-split__media img { width: 100%; height: 100%; object-fit: cover; }
.ksg-split__media--tall { aspect-ratio: 4 / 4.6; }
.ksg-split__badge { position: absolute; left: 24px; bottom: 24px; background: var(--ksg-green); color: var(--ksg-blue-900); padding: 16px 20px; border-radius: var(--ksg-radius); font-weight: 700; line-height: 1.2; max-width: 240px; }
.ksg-split__badge b { display: block; font-size: 34px; letter-spacing: -0.03em; }
@media (max-width: 900px) { .ksg-split { grid-template-columns: 1fr; } .ksg-split--rev .ksg-split__media { order: 0; } }

/* ---- Cabecera de página interior ---------------------------------------- */
.ksg-page-hero { position: relative; color: #fff; background: var(--ksg-blue-900); overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; }
.ksg-page-hero__media, .ksg-page-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ksg-page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 26, 48, .9) 0%, rgba(8, 26, 48, .6) 50%, rgba(8, 26, 48, .25) 100%); }
.ksg-page-hero__content { position: relative; padding-top: calc(var(--ksg-header-h) + 90px); padding-bottom: clamp(56px, 7vw, 96px); }
.ksg-page-hero .ksg-lead { color: rgba(255, 255, 255, .85); max-width: 56ch; margin-top: 22px; }
.ksg-page-hero--plain { min-height: 0; background: var(--ksg-blue); }
.ksg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 26px; padding: 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.ksg-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.ksg-crumbs a { color: rgba(255, 255, 255, .85) !important; }
.ksg-crumbs a:hover { color: #fff !important; }

/* ---- Rejilla de tarjetas genéricas --------------------------------------- */
.ksg-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.ksg-card { background: #fff; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s var(--ksg-ease), transform .3s var(--ksg-ease); }
.ksg-card:hover { box-shadow: 0 24px 48px -24px rgba(12, 39, 69, .35); transform: translateY(-3px); }
.ksg-card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ksg-mist); }
.ksg-card__img img { width: 100%; height: 100%; object-fit: cover; }
.ksg-card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.ksg-card__tag { font: 600 12px/1 var(--ksg-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ksg-teal); margin-bottom: 14px; }
.ksg-card__title { font-size: 21px; line-height: 1.3; margin-bottom: 10px !important; color: var(--ksg-blue); }
.ksg-card__text { font-size: 16px; color: var(--ksg-muted); }
.ksg-card__body .ksg-link { margin-top: auto; padding-top: 12px; }
.ksg-section--mist .ksg-card { border-color: transparent; }
@media (max-width: 1000px) { .ksg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ksg-cards { grid-template-columns: 1fr; } }

/* ---- Servicios (lista con imagen) ---------------------------------------- */
.ksg-services { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px 24px; }
.ksg-service { display: flex; flex-direction: column; }
.ksg-service__img { aspect-ratio: 4 / 3; border-radius: var(--ksg-radius); overflow: hidden; margin-bottom: 20px; background: var(--ksg-mist); }
.ksg-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ksg-ease); }
.ksg-service:hover .ksg-service__img img { transform: scale(1.05); }
.ksg-service h3 { font-size: 21px; margin-bottom: 8px !important; color: var(--ksg-blue); }
.ksg-service p { color: var(--ksg-muted); font-size: 16px; margin-bottom: 10px; }
.ksg-service__by { font-size: 14px; color: var(--ksg-muted); margin-top: auto; }
@media (max-width: 1000px) { .ksg-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ksg-services { grid-template-columns: 1fr; } }

/* ---- Sectores ------------------------------------------------------------ */
.ksg-sectors { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ksg-sectors li { padding: 14px 20px; background: #fff; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); font-weight: 500; color: var(--ksg-blue); display: flex; align-items: center; gap: 10px; }
.ksg-sectors li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ksg-green); flex: none; }

/* ---- Segmentos de cliente: tarjeta con imagen + descripción breve (ampliable) ---- */
.ksg-segs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .ksg-segs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ksg-segs { grid-template-columns: 1fr; } }
.ksg-seg { display: flex; flex-direction: column; background: #fff; border-radius: var(--ksg-radius); overflow: hidden; transition: box-shadow .3s var(--ksg-ease), transform .3s var(--ksg-ease); }
.ksg-seg:hover { box-shadow: 0 24px 48px -24px rgba(12, 39, 69, .35); transform: translateY(-3px); }
.ksg-seg__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--ksg-mist); }
body.ksg .ksg-seg__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .8s var(--ksg-ease); }
.ksg-seg:hover .ksg-seg__img img { transform: scale(1.05); }
.ksg-seg__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ksg-seg h3 { font-size: 20px; line-height: 1.3; color: var(--ksg-blue); margin-bottom: 10px !important; }
.ksg-seg p { font-size: 15.5px; color: var(--ksg-muted); margin-bottom: 18px; }
.ksg-seg__divs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.ksg-seg p.ksg-seg__ex { color: var(--ksg-graphite); }
.ksg-seg__ex strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ksg-teal); margin-bottom: 4px; }
a.ksg-pill { text-decoration: none; transition: filter .2s; }
a.ksg-pill:hover { filter: brightness(.93); }

/* ---- "Making the difference / Did you know?" ------------------------------ */
.ksg-difs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ksg-dif { position: relative; min-height: 420px; border-radius: var(--ksg-radius); overflow: hidden; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.ksg-dif__img { position: absolute; inset: 0; z-index: -2; }
body.ksg .ksg-dif__img img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ksg-ease); }
.ksg-dif:hover .ksg-dif__img img { transform: scale(1.06); }
.ksg-dif::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 39, 69, 0) 25%, rgba(12, 39, 69, .92) 100%); }
.ksg-dif__body { padding: 28px 28px 30px; }
.ksg-dif__fig { display: block; font: 800 clamp(30px, 3vw, 42px)/1 var(--ksg-font); letter-spacing: -0.03em; color: var(--ksg-green); margin-bottom: 12px; }
.ksg-dif h3 { font-size: 21px; line-height: 1.25; color: #fff; margin-bottom: 8px !important; }
.ksg-dif p { font-size: 15px; color: rgba(255, 255, 255, .82); margin: 0; }
/* 5 piezas (2026-09-30): 3 arriba + 2 más anchas abajo */
@media (min-width: 1001px) { .ksg-difs--n5 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .ksg-difs--n5 .ksg-dif { grid-column: span 2; } .ksg-difs--n5 .ksg-dif:nth-child(n+4) { grid-column: span 3; min-height: 380px; } }
.ksg-difs--n5 .ksg-dif::before { background: linear-gradient(180deg, rgba(12, 39, 69, 0) 10%, rgba(12, 39, 69, .55) 42%, rgba(12, 39, 69, .95) 72%); }
.ksg-dif__fig { font-size: 13px !important; letter-spacing: .12em !important; text-transform: uppercase; font-weight: 700 !important; }
@media (max-width: 1000px) { .ksg-difs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ksg-difs { grid-template-columns: 1fr; } .ksg-dif { min-height: 340px; } }

/* ---- Galerías de fotos (material oficial de KSG, 2026-09-29) ------------------ */
.ksg-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 230px); grid-auto-flow: dense; gap: 12px; }
.ksg-gal__item { position: relative; margin: 0; overflow: hidden; border-radius: var(--ksg-radius); background: var(--ksg-mist); }
.ksg-gal__item:first-child { grid-column: span 2; grid-row: span 2; }
.ksg-gal__item:nth-child(6) { grid-column: span 2; }
body.ksg .ksg-gal__item img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ksg-ease); }
.ksg-gal__item:hover img { transform: scale(1.05); }
.ksg-gal__item figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 10px; border-radius: 3px;
	background: rgba(12, 39, 69, .78); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; }
.ksg-gal--row, .ksg-gal--people { grid-auto-rows: auto; }
.ksg-gal--row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ksg-gal--people { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ksg-gal--row .ksg-gal__item, .ksg-gal--people .ksg-gal__item { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
.ksg-gal--people .ksg-gal__item { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
	.ksg-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 36vw, 220px); }
	.ksg-gal--row, .ksg-gal--people { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
}
@media (prefers-reduced-motion: reduce) { .ksg-gal__item img { transition: none; } }

/* ---- Vídeos de YouTube (canal de KSG, 2026-09-30) ----------------------------------------------
   Miniatura + botón; ksg.js cambia el botón por el iframe de youtube-nocookie al pulsar. */
.ksg-section--flush { padding-top: 0; }
.ksg-videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ksg-videos--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* feature: vertical a la izquierda (2 filas) · clips 1-2 arriba · clip 3 a doble ancho abajo */
.ksg-videos--feature .ksg-video--short { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.ksg-videos--feature .ksg-video:nth-child(4) { grid-column: span 2; }
.ksg-video { position: relative; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--ksg-radius); background: var(--ksg-blue-900); }
.ksg-video--short { aspect-ratio: 9 / 16; }
body.ksg .ksg-video__btn { all: unset; box-sizing: border-box; position: absolute; inset: 0; display: block; cursor: pointer; color: #fff; }
body.ksg .ksg-video__btn img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ksg-ease); }
.ksg-video__btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 39, 69, .88) 0%, rgba(12, 39, 69, .15) 45%, rgba(12, 39, 69, 0) 70%); }
.ksg-video__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); color: var(--ksg-cobalt); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45);
	transition: transform .35s var(--ksg-ease), background .35s, color .35s; }
.ksg-video__play svg { width: 28px; height: 28px; margin-left: 3px; fill: currentColor; }
.ksg-video__cap { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ksg-video__cap strong { font-size: 16px; font-weight: 600; line-height: 1.3; }
.ksg-video__cap span { flex: none; padding: 3px 8px; border-radius: 3px; background: rgba(0, 0, 0, .5); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ksg-video__btn:hover img { transform: scale(1.04); }
body.ksg .ksg-video--wide .ksg-video__btn img { transform: scale(1.08); }
body.ksg .ksg-video--wide .ksg-video__btn:hover img { transform: scale(1.12); }
body.ksg .ksg-video--short .ksg-video__btn img { transform: scale(1.03); }
body.ksg .ksg-video--short .ksg-video__btn:hover img { transform: scale(1.07); }
.ksg-video__btn:hover .ksg-video__play, .ksg-video__btn:focus-visible .ksg-video__play { transform: scale(1.08); background: var(--ksg-cobalt); color: #fff; }
.ksg-video__btn:focus-visible { outline: 3px solid var(--ksg-green); outline-offset: -3px; }
.ksg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* clips automáticos (sin sonido, en bucle): como fondo, sin la capa de controles de YouTube al pasar el ratón */
.ksg-video iframe[data-ambient] { pointer-events: none; }
.ksg-video--wide iframe[data-ambient] { transform: scale(1.08); }
/* vídeo como medio de un split (People & Culture, Environmental Health) */
.ksg-split__media--video { aspect-ratio: auto; background: none; overflow: visible; }
body.ksg .ksg-split__media--video .ksg-video--short { max-width: 380px; margin: 0 auto; }
@media (max-width: 900px) {
	.ksg-videos, .ksg-videos--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ksg-videos--feature { grid-template-columns: 1fr; }
	body.ksg .ksg-videos--feature .ksg-video--short { grid-row: auto; aspect-ratio: 9 / 16; min-height: 0; width: 100%; max-width: 360px; margin: 0 auto; }
	.ksg-videos--feature .ksg-video:nth-child(4) { grid-column: auto; }
}
@media (max-width: 640px) { .ksg-videos, .ksg-videos--two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { body.ksg .ksg-video__btn img, .ksg-video__play { transition: none; } }

/* ---- Valores / DNA ------------------------------------------------------- */
.ksg-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ksg-value { position: relative; padding: 34px 28px 30px; background: var(--ksg-blue); color: #fff; border-radius: var(--ksg-radius); overflow: hidden; }
.ksg-value::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--ksg-aqua), var(--ksg-green)); }
.ksg-value__num { font: 700 13px/1 var(--ksg-font); letter-spacing: .14em; color: var(--ksg-green); }
/* History · "Where it all started": texto del cliente en caja del ancho de la galería (2026-10-01) */
.ksg-archive-text { position: relative; margin-top: 28px; padding: clamp(28px, 4vw, 56px); background: var(--ksg-mist);
	border-radius: var(--ksg-radius); overflow: hidden; column-count: 2; column-gap: clamp(32px, 4vw, 64px); }
.ksg-archive-text::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--ksg-aqua), var(--ksg-green)); }
.ksg-archive-text p { margin: 0 0 1.1em; font-size: 17px; line-height: 1.7; color: var(--ksg-graphite); break-inside: avoid-column; }
.ksg-archive-text p:first-child { font-size: 19px; color: var(--ksg-blue); font-weight: 500; }
.ksg-archive-text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .ksg-archive-text { column-count: 1; } }
body.ksg a[href^="mailto:"] { overflow-wrap: anywhere; }   /* emails largos (ksg_webform.media@…) en móvil */
.ksg-value__ico { display: block; width: 38px; height: 38px; fill: none; stroke: var(--ksg-green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ksg-value h3 { font-size: 22px; line-height: 1.25; color: #fff; margin: 18px 0 12px !important; }
.ksg-value p { font-size: 15.5px; color: rgba(255, 255, 255, .78); margin: 0; }
@media (max-width: 1000px) { .ksg-values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ksg-values { grid-template-columns: 1fr; } }

/* ---- Contenido pendiente del cliente (huecos visibles) --------------------- */
.ksg-todo { display: inline-block; padding: 2px 8px; border-radius: 3px; font-style: normal; font-weight: 500; color: var(--ksg-muted);
	background: repeating-linear-gradient(135deg, rgba(90, 103, 114, .08) 0 8px, rgba(90, 103, 114, .14) 8px 16px); }
.ksg-on-dark .ksg-todo, .ksg-dif .ksg-todo, .ksg-value .ksg-todo { color: rgba(255, 255, 255, .85); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .08) 0 8px, rgba(255, 255, 255, .15) 8px 16px); }
/* certificados (Quality, Safety & Sustainability, 2026-09-30): logo cuando lo envíe KSG, si no un sello neutro */
.ksg-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }   /* 9 certificados → 3×3 */
.ksg-cert { background: #fff; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); padding: 24px 24px 28px; text-align: center; }
.ksg-cert__logo { height: 150px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
/* los iconos de KSG son cuadrados de 1080 px con mucho margen blanco → se muestran grandes */
body.ksg .ksg-cert__logo img { width: 150px; height: 150px; max-width: none; object-fit: contain; }
.ksg-cert__seal { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ksg-teal); background: radial-gradient(circle, #fff 52%, rgba(15, 111, 120, .12) 53%); position: relative; }
.ksg-cert__seal::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 30px; border: solid var(--ksg-teal); border-width: 0 3px 3px 0; transform: translate(-50%, -62%) rotate(45deg); }
.ksg-cert h3 { font-size: 19px; line-height: 1.3; color: var(--ksg-blue); margin: 0 0 6px !important; }
.ksg-cert p { font-size: 15px; color: var(--ksg-muted); margin: 0; }
@media (max-width: 1000px) { .ksg-certs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .ksg-certs { grid-template-columns: 1fr; } }
.ksg-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.ksg-slots--one { grid-template-columns: minmax(0, 320px); }
.ksg-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 150px; padding: 20px; text-align: center; border: 2px dashed var(--ksg-line); border-radius: var(--ksg-radius); background: #fff; font-size: 14px; color: var(--ksg-muted); }
.ksg-slot__ico { width: 38px; height: 38px; border-radius: 50%; background: var(--ksg-mist); border: 2px solid var(--ksg-line); }
.ksg-dif__fig .ksg-todo { font-size: 15px; letter-spacing: 0; font-weight: 600; }
.ksg-news-card--todo .ksg-news-card__img { background: repeating-linear-gradient(135deg, #e3ecee 0 14px, #d4e1e4 14px 28px); }
.ksg-news-card--todo .ksg-news-card__title .ksg-todo { padding: 0; background: none; }

/* ---- Pasos / proceso ----------------------------------------------------- */
.ksg-steps { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 24px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.ksg-step { position: relative; padding-top: 30px; border-top: 2px solid var(--ksg-line); counter-increment: s; }
.ksg-step::before { content: counter(s, decimal-leading-zero); position: absolute; top: -2px; left: 0; padding-top: 10px; border-top: 2px solid var(--ksg-cobalt); font: 700 13px/1 var(--ksg-font); letter-spacing: .12em; color: var(--ksg-cobalt); width: 48px; }
.ksg-step h3 { font-size: 19px; margin: 12px 0 10px !important; color: var(--ksg-blue); }
.ksg-step p { font-size: 15.5px; color: var(--ksg-muted); }
.ksg-on-dark .ksg-step { border-top-color: rgba(255, 255, 255, .18); }
.ksg-on-dark .ksg-step::before { border-top-color: var(--ksg-green); color: var(--ksg-green); }
.ksg-on-dark .ksg-step h3 { color: #fff; }
.ksg-on-dark .ksg-step p { color: rgba(255, 255, 255, .75); }
@media (max-width: 1000px) { .ksg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; } }
@media (max-width: 600px) { .ksg-steps { grid-template-columns: 1fr; } }

/* ---- Cronología ---------------------------------------------------------- */
.ksg-timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.ksg-timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--ksg-line); }
.ksg-tl { display: grid; grid-template-columns: 128px 1fr; gap: 44px; padding: 0 0 38px; position: relative; }
.ksg-tl__deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ksg-tl__deals .ksg-tl__deal { margin: 0; background: #fff; border: 1px solid var(--ksg-line); }
.ksg-tl__year { font: 800 26px/1.1 var(--ksg-font); color: var(--ksg-blue); letter-spacing: -0.02em; text-align: right; }
.ksg-tl__body { position: relative; }
.ksg-tl__body::before { content: ""; position: absolute; left: -32px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--ksg-teal); }
.ksg-tl--milestone .ksg-tl__body::before { background: var(--ksg-green); border-color: var(--ksg-green); }
.ksg-tl__deal { padding: 14px 18px; background: var(--ksg-mist); border-radius: var(--ksg-radius); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.ksg-tl__deal strong { color: var(--ksg-blue); font-size: 16.5px; }
.ksg-tl__deal span { font-size: 14px; color: var(--ksg-muted); }
.ksg-tl__note { font-size: 16px; color: var(--ksg-muted); margin: 0 0 8px; }
.ksg-tl__milestone { font-weight: 600; color: var(--ksg-blue); font-size: 17px; margin-bottom: 8px; }
@media (max-width: 640px) {
	.ksg-timeline::before { left: 6px; }
	.ksg-tl { grid-template-columns: 1fr; gap: 10px; padding-left: 34px; }
	.ksg-tl__year { text-align: left; }
	.ksg-tl__body::before { left: -34px; top: -30px; }
}

/* ---- Personas ------------------------------------------------------------ */
.ksg-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.ksg-person { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; padding: 32px; background: #fff; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); }
.ksg-person__photo { aspect-ratio: 1; border-radius: var(--ksg-radius); overflow: hidden; background: linear-gradient(135deg, var(--ksg-blue), var(--ksg-teal)); display: flex; align-items: center; justify-content: center; color: #fff; font: 800 44px/1 var(--ksg-font); }
.ksg-person__photo img { width: 100%; height: 100%; object-fit: cover; }
.ksg-person__role { font: 600 13px/1 var(--ksg-font); letter-spacing: .12em; text-transform: uppercase; color: var(--ksg-teal); margin: 6px 0 10px; }
.ksg-person__name { font-size: 26px; color: var(--ksg-blue); margin-bottom: 14px !important; }
.ksg-person p { color: var(--ksg-muted); font-size: 16px; }
@media (max-width: 1100px) { .ksg-people { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ksg-person { grid-template-columns: 1fr; } .ksg-person__photo { max-width: 180px; } }

/* ---- Testimonios (formato corto: idea destacada + cita breve) --------------- */
.ksg-testis { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px; }
.ksg-testi { margin: 0; padding: 34px 30px 30px; border-radius: var(--ksg-radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; }
.ksg-testi__hl { font: 800 clamp(24px, 2.2vw, 32px)/1.15 var(--ksg-font); letter-spacing: -0.02em; color: var(--ksg-green); margin: 0 0 18px !important; }
.ksg-testi__hl::before { content: "\201C"; }
.ksg-testi__hl::after { content: "\201D"; }
body.ksg .ksg-testi blockquote, .ksg-testi__q { margin: 0 0 24px; padding: 0; border: 0; background: none; font: 400 16.5px/1.55 var(--ksg-font); color: rgba(255, 255, 255, .85); }
body.ksg .ksg-testi blockquote::before { display: none; }
.ksg-testi figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; align-items: center; gap: 16px; }
.ksg-testi figcaption strong { display: block; font-size: 16px; }
.ksg-testi figcaption span { font-size: 14px; opacity: .72; }
.ksg-testi figcaption .ksg-testi__who span { display: block; }
/* logo de la empresa (2026-09-30): los logos son oscuros → sobre una pastilla blanca */
.ksg-testi__logo { flex: none; width: 92px; height: 56px; padding: 8px 10px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; opacity: 1 !important; }
body.ksg .ksg-testi__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
@media (max-width: 900px) { .ksg-testis { grid-template-columns: 1fr; } }

/* ---- Empresas del grupo --------------------------------------------------- */
.ksg-companies { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 16px; }
.ksg-company { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #fff; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); color: var(--ksg-graphite) !important; transition: border-color .2s, box-shadow .3s; }
.ksg-company:hover { border-color: var(--ksg-teal); box-shadow: 0 18px 36px -24px rgba(12, 39, 69, .4); }
.ksg-company__logo { height: 52px; display: flex; align-items: center; }
.ksg-company__logo img { max-height: 52px; max-width: 170px; width: auto; object-fit: contain; }
.ksg-company__name { font-weight: 700; color: var(--ksg-blue); font-size: 17px; }
.ksg-company__meta { font-size: 14px; color: var(--ksg-muted); line-height: 1.45; }
.ksg-company__url { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ksg-teal); }
.ksg-company__url::after { content: " ↗"; }
@media (max-width: 1100px) { .ksg-companies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ksg-companies { grid-template-columns: 1fr; } }

/* ---- Perfiles de mercado --------------------------------------------------- */
.ksg-markets { display: grid; gap: 20px; }
.ksg-market { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 36px; background: #fff; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); scroll-margin-top: calc(var(--ksg-header-h) + 20px); transition: border-color .3s, box-shadow .3s; }
.ksg-market.is-hl { border-color: var(--ksg-teal); box-shadow: 0 0 0 3px rgba(70, 184, 173, .25); }
.ksg-market__flags { font-size: 14px; color: var(--ksg-muted); margin-bottom: 8px; }
.ksg-market__name { font-size: 28px; color: var(--ksg-blue); margin-bottom: 12px !important; }
.ksg-market__divs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ksg-pill { font: 600 12px/1 var(--ksg-font); padding: 7px 11px; border-radius: 100px; background: var(--ksg-mist); color: var(--ksg-blue); }
.ksg-pill--ind { background: rgba(21, 59, 105, .1); }
.ksg-pill--inf { background: rgba(70, 184, 173, .2); color: var(--ksg-teal); }
.ksg-pill--env { background: rgba(155, 196, 52, .28); color: #3E5410; }
.ksg-market .ksg-companies { --cols: 3; }
@media (max-width: 1000px) { .ksg-market { grid-template-columns: 1fr; gap: 20px; } }

/* ---- Banda CTA ------------------------------------------------------------- */
/* Llamada final de contacto (todas las páginas): tarjeta azul con capa animada + rutas */
.ksg-cta { position: relative; overflow: hidden; color: #fff; border-radius: calc(var(--ksg-radius) * 2); background: linear-gradient(125deg, var(--ksg-blue-900) 0%, var(--ksg-blue) 55%, #13566e 100%); isolation: isolate; box-shadow: 0 30px 60px -30px rgba(8, 26, 48, .55); }
.ksg-cta__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(40px, 5.5vw, 76px); }
.ksg-cta .ksg-h2 { color: #fff; margin: 12px 0 16px !important; }
.ksg-cta__main > p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 50ch; font-size: 17px; }
.ksg-cta__hq { display: flex; align-items: center; gap: 10px; margin-top: 30px !important; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .7) !important; }
.ksg-cta__hq svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ksg-green); stroke-width: 1.7; }
.ksg-cta__routes { display: grid; gap: 14px; }
.ksg-cta__route { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: var(--ksg-radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff !important; text-decoration: none; backdrop-filter: blur(4px); transition: background .3s var(--ksg-ease), border-color .3s, transform .3s var(--ksg-ease); }
.ksg-cta__route:first-child { background: var(--ksg-cobalt, #2A5FCD); border-color: transparent; }
.ksg-cta__route:hover { transform: translateX(6px); border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .13); }
.ksg-cta__route:first-child:hover { background: #3a6fe0; }
.ksg-cta__ico { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ksg-cta__rt { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ksg-cta__rt strong { font-size: 17px; font-weight: 700; }
.ksg-cta__rt small { font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.4; }
.ksg-cta__arrow { font-size: 20px; transition: transform .3s var(--ksg-ease); }
.ksg-cta__route:hover .ksg-cta__arrow { transform: translateX(4px); }
.ksg-cta .ksg-fx__signet { width: min(460px, 40vw); right: -110px; opacity: .06; }
@media (max-width: 900px) { .ksg-cta__inner { grid-template-columns: 1fr; } }

/* ---- Noticias --------------------------------------------------------------- */
.ksg-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ksg-news-card__link { display: block; color: inherit !important; }
.ksg-news-card__img { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--ksg-radius); background: var(--ksg-mist); margin-bottom: 18px; }
.ksg-news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ksg-ease); }
.ksg-news-card:hover .ksg-news-card__img img { transform: scale(1.05); }
.ksg-news-card__meta { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ksg-teal); margin-bottom: 10px !important; }
.ksg-news-card__title { font-size: 20px; line-height: 1.35; color: var(--ksg-blue); }
.ksg-news-card:hover .ksg-news-card__title { color: var(--ksg-teal); }
@media (max-width: 900px) { .ksg-news-grid { grid-template-columns: 1fr; } }
.ksg-news-grid--list { row-gap: 48px; }
.ksg-news-card__excerpt { font-size: 15.5px; color: var(--ksg-muted); margin: 10px 0 0 !important; }
.ksg-news-card__img img { background: #fff; }
a.ksg-chip { display: inline-flex; text-decoration: none; }
.ksg-pagination { margin-top: 56px; display: flex; gap: 8px; flex-wrap: wrap; }
.ksg-pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); color: var(--ksg-blue) !important; font-weight: 600; box-sizing: border-box; }
.ksg-pagination .page-numbers.current { background: var(--ksg-blue); border-color: var(--ksg-blue); color: #fff !important; }
.ksg-article { max-width: 920px; }
.ksg-article__title { max-width: 22ch; font-size: clamp(32px, 4vw, 54px); }
.ksg-article__img { margin: 0 0 48px; border-radius: var(--ksg-radius); overflow: hidden; background: var(--ksg-mist); }
body.ksg .ksg-article__img img { width: 100%; max-height: 560px; object-fit: contain; }

/* ---- Contacto --------------------------------------------------------------- */
.ksg-contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ksg-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 32px; }
.ksg-route { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 18px; border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); background: #fff; cursor: pointer; font: 600 15px/1.3 var(--ksg-font); color: var(--ksg-blue); transition: all .2s; }
.ksg-route small { font-weight: 400; font-size: 13px; color: var(--ksg-muted); }
.ksg-route:hover { border-color: var(--ksg-teal); }
.ksg-route[aria-pressed="true"] { border-color: var(--ksg-blue); background: var(--ksg-blue); color: #fff; }
.ksg-route[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.ksg-form .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ksg-form .ksg-f { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ksg-form .ksg-f--full { grid-column: 1 / -1; }
.ksg-form label { font: 600 14px/1.3 var(--ksg-font); color: var(--ksg-blue); }
.ksg-form input[type=text], .ksg-form input[type=email], .ksg-form input[type=tel], .ksg-form select, .ksg-form textarea {
	width: 100%; box-sizing: border-box; font: 400 16px/1.4 var(--ksg-font); color: var(--ksg-graphite); padding: 14px 16px; margin: 0;
	border: 1px solid var(--ksg-line); border-radius: var(--ksg-radius); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.ksg-form textarea { min-height: 150px; resize: vertical; }
.ksg-form input:focus, .ksg-form select:focus, .ksg-form textarea:focus { outline: none; border-color: var(--ksg-teal); box-shadow: 0 0 0 3px rgba(70, 184, 173, .22); }
.ksg-form .wpcf7-list-item { margin: 0; }
.ksg-form .wpcf7-acceptance label { font-weight: 400; font-size: 14px; color: var(--ksg-muted); display: flex; gap: 10px; align-items: flex-start; }
body.ksg .ksg-form .wpcf7-submit, body.ksg .ksg-form button[type=submit] { width: auto !important; background: var(--ksg-cobalt) !important; color: #fff !important; border: 0 !important; min-height: 54px; padding: 0 34px !important; border-radius: var(--ksg-radius) !important; font: 600 15px/1 var(--ksg-font) !important; cursor: pointer; }
body.ksg .ksg-form .wpcf7-submit:hover, body.ksg .ksg-form button[type=submit]:hover { background: var(--ksg-cobalt-700) !important; }
body.ksg .ksg-form .wpcf7-submit::after, body.ksg .ksg-form .wpcf7-submit svg, body.ksg .ksg-form .qodef-m-arrow { display: none !important; }
body.ksg .ksg-mapframe { width: 100% !important; max-width: none; height: 280px !important; }
.ksg-form input[type=submit] { background: var(--ksg-cobalt); color: #fff; border: 0; min-height: 54px; padding: 0 34px; border-radius: var(--ksg-radius); font: 600 15px/1 var(--ksg-font); cursor: pointer; transition: background .2s; }
.ksg-form input[type=submit]:hover { background: var(--ksg-cobalt-700); }
.ksg-form .ksg-f[hidden] { display: none; }
.ksg-form .wpcf7-not-valid-tip { font-size: 13px; }
.ksg-form .wpcf7-response-output { grid-column: 1 / -1; margin: 0 !important; border-radius: var(--ksg-radius); }
.ksg-form .wpcf7-spinner { margin: 0 12px; }
@media (max-width: 640px) { .ksg-form .wpcf7-form { grid-template-columns: 1fr; } }
.ksg-aside { background: var(--ksg-mist); border-radius: var(--ksg-radius); padding: 36px; }
.ksg-aside h3 { color: var(--ksg-blue); font-size: 20px; margin-bottom: 12px !important; }
.ksg-aside address { font-style: normal; color: var(--ksg-graphite); margin-bottom: 18px; }
.ksg-aside + .ksg-aside { margin-top: 16px; }
.ksg-mapframe { border: 0; width: 100%; height: 280px; border-radius: var(--ksg-radius); display: block; filter: grayscale(.4); }
@media (max-width: 1000px) { .ksg-contact { grid-template-columns: 1fr; } }

/* ---- Texto legal / prosa ------------------------------------------------------ */
.ksg-prose { max-width: 820px; }
.ksg-prose h2 { font-size: 26px; color: var(--ksg-blue); margin: 44px 0 14px !important; }
/* entradilla de las noticias de KSG (2026-09-30) */
.ksg-prose .ksg-article__lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; color: var(--ksg-graphite); font-weight: 500; margin-bottom: 28px; }
.ksg-prose h3 { font-size: 20px; color: var(--ksg-blue); margin: 30px 0 10px !important; }
.ksg-prose p, .ksg-prose li { color: var(--ksg-graphite); font-size: 17px; }
.ksg-prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.ksg-notice { padding: 16px 20px; border-left: 4px solid var(--ksg-green); background: var(--ksg-mist); font-size: 15px; margin-bottom: 32px; }

/* ---- Estrategia (Rubicon) -------------------------------------------------------- */
.ksg-strategy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: rgba(255, 255, 255, .12); border-radius: var(--ksg-radius); overflow: hidden; }
.ksg-strategy__item { background: var(--ksg-blue); padding: 34px 30px; }
.ksg-strategy__item h3 { color: #fff; font-size: 20px; margin: 18px 0 8px !important; }
.ksg-strategy__item p { color: rgba(255, 255, 255, .72); font-size: 15.5px; margin: 0; }
.ksg-strategy__ico { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ksg-aqua); display: flex; align-items: center; justify-content: center; color: var(--ksg-aqua); font-weight: 700; }
@media (max-width: 900px) { .ksg-strategy { grid-template-columns: 1fr; } }

/* ---- Pie ------------------------------------------------------------------------ */
.ksg-footer { background: var(--ksg-blue-900); color: rgba(255, 255, 255, .78); font-size: 15px; }
.ksg-footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 88px; padding-bottom: 64px; }
.ksg-footer__claim { margin-top: 24px !important; max-width: 34ch; color: rgba(255, 255, 255, .7); line-height: 1.55; }
.ksg-footer__title { font: 600 13px/1 var(--ksg-font) !important; letter-spacing: .14em !important; text-transform: uppercase; color: var(--ksg-aqua) !important; margin-bottom: 20px !important; }
.ksg-footer__list, .ksg-footer__legal { list-style: none; margin: 0; padding: 0; }
.ksg-footer__list li { margin-bottom: 12px; }
.ksg-footer a { color: rgba(255, 255, 255, .85) !important; }
.ksg-footer a:hover { color: #fff !important; }
.ksg-footer__address { font-style: normal; line-height: 1.7; margin-bottom: 16px; }
.ksg-footer__link-arrow::after { content: " →"; }
.ksg-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.ksg-footer__bottom p { margin: 0; color: rgba(255, 255, 255, .6); }
.ksg-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 1000px) { .ksg-footer__top { grid-template-columns: 1fr 1fr; } .ksg-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ksg-footer__top { grid-template-columns: 1fr; padding-top: 64px; } }

/* ---- Blog / entradas (plantillas de Stal) ------------------------------------------ */
body.ksg #qodef-page-inner { margin: 0 !important; }
body.ksg .qodef-e-info a, body.ksg .qodef-e-info { color: var(--ksg-teal); }

/* ---- Revelado al hacer scroll -------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
	.ksg-js .ksg-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ksg-ease), transform .9s var(--ksg-ease); }
	.ksg-js .ksg-reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ksg-hero__media img { animation: none; } .ksg-map .ksg-map__link, .ksg-map .ksg-map__hub-ring { animation: none; } }
