/* Colores de marca: las páginas los usan como variables; así no dependen de la lista de colores de Divi de cada instalación. */
:root { --gcid-kyom-navy: #051B45; --gcid-kyom-profundo: #030F29; --gcid-kyom-oro: #DBC071; --gcid-kyom-rojo: #BF203A; --gcid-kyom-azul: #0C4592; --gcid-kyom-papel: #F4EEDD; }

/* Kyom Son Efectos. Solo actúa sobre clases kyom-* puestas a mano en Divi. */

/* Inicio: taeguk y león detrás del contenido. Se pone en la Sección. */
.kyom-hero {
	--kyom-giro: 0deg;
	--kyom-desplazamiento: 0px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.kyom-hero::before,
.kyom-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	pointer-events: none;
}
.kyom-hero::before {
	right: -14%;
	top: -90px;
	width: 72%;
	min-width: 520px;
	aspect-ratio: 1;
	transform: rotate(var(--kyom-giro));
}
.kyom-hero::after {
	right: 3%;
	top: 90px;
	width: 46%;
	min-width: 340px;
	aspect-ratio: 452 / 518;
	transform: translateY(var(--kyom-desplazamiento));
}
.kyom-js .kyom-hero::after {
	animation: kyom-leon-entra 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes kyom-leon-entra {
	from { opacity: 0; translate: 48px 0; }
	to { opacity: 1; translate: 0 0; }
}

/* En móvil el león queda arriba, sin pisar el título. */
@media (max-width: 767px) {
	.kyom-hero::before { right: -40%; top: -40px; width: 110%; min-width: 0; }
	.kyom-hero::after { right: 50%; top: 80px; width: 72%; min-width: 0; margin-right: -36%; }
	/* !important porque Divi fija los márgenes de la fila con sus propios estilos. */
	.kyom-hero-texto { margin-top: 300px !important; }
}

/* Aparición al hacer scroll. Solo oculta si el script ha cargado. */
.kyom-js .kyom-aparece {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.kyom-js .kyom-aparece.kyom-visible {
	opacity: 1;
	transform: none;
}

/* Cinta animada. */
.kyom-cinta {
	overflow: hidden;
	background: #BF203A;
	color: #FFFFFF;
	padding: 16px 0;
}
.kyom-cinta__pista {
	display: flex;
	width: max-content;
	animation: kyom-cinta-avanza 38s linear infinite;
}
.kyom-cinta__tramo {
	display: flex;
	gap: 56px;
	padding-right: 56px;
	font-family: Anton, Impact, sans-serif;
	font-size: 26px;
	letter-spacing: 0.05em;
	white-space: nowrap;
}
@keyframes kyom-cinta-avanza {
	to { transform: translateX(-50%); }
}

/* Texto coreano. Se pone en un span o en el módulo de texto. */
.kyom-hangul {
	font-family: "Kyom Hangul", "Noto Serif KR", "Batang", "AppleMyungjo", serif;
	font-weight: 400;
	word-break: keep-all; /* el coreano no se parte a mitad de palabra */
}
/* Coreano dentro de una frase: la letra de trazo fino necesita algo más de cuerpo que el texto que la rodea. */
span.kyom-hangul { font-size: 1.2em; }

/* Sin movimiento para quien lo tenga desactivado en su dispositivo. */
@media (prefers-reduced-motion: reduce) {
	.kyom-js .kyom-hero::after,
	.kyom-cinta__pista { animation: none; }
	.kyom-js .kyom-aparece { opacity: 1; transform: none; transition: none; }
}

/* ========== 2.0: efectos con GSAP ========== */

/* La página va sin el menú y el pie del tema. */
html:has(.kyom-s-portada) #main-header, html:has(.kyom-s-portada) #top-header, html:has(.kyom-s-portada) #main-footer,
html:has(.kyom-s-inicio) #main-header, html:has(.kyom-s-inicio) #top-header, html:has(.kyom-s-inicio) #main-footer,
html:has(.kyom-s-cabecera-app) #main-header, html:has(.kyom-s-cabecera-app) #top-header, html:has(.kyom-s-cabecera-app) #main-footer { display: none !important; }
html:has(.kyom-s-portada) #page-container, html:has(.kyom-s-inicio) #page-container, html:has(.kyom-s-cabecera-app) #page-container { padding-top: 0 !important; margin-top: 0 !important; }

/* Telón */
html.kyom-cargando { background: #051B45; }
html.kyom-cargando body { visibility: hidden; }
.kyom-telon { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; visibility: visible; pointer-events: none; }
.kyom-telon__mitad { position: absolute; left: 0; right: 0; height: 50.5%; background: #030F29; }
.kyom-telon__mitad--a { top: 0; } .kyom-telon__mitad--b { bottom: 0; }
.kyom-telon__taeguk, .kyom-telon__palabra { grid-area: 1 / 1; position: relative; }
.kyom-telon__taeguk { width: min(46vw, 320px); }
.kyom-telon__palabra { font-size: min(18vw, 120px); color: #F4EEDD; text-shadow: 0 4px 24px rgba(0,0,0,.45); }

/* Inicio */
.kyom-js .kyom-hero::before, .kyom-js .kyom-hero::after { display: none; }
.kyom-hero-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kyom-hero-fx__taeguk { position: absolute; right: -14%; top: -90px; width: 72%; min-width: 520px; max-width: none; }
.kyom-hero-fx__leon { position: absolute; right: 3%; top: 90px; width: 46%; min-width: 340px; max-width: none; }
.kyom-hero-fx__onda, .kyom-onda { position: absolute; border: 4px solid #DBC071; border-radius: 50%; pointer-events: none; opacity: 0; }
.kyom-hero-fx__onda { right: 8%; top: 18%; width: 36vw; height: 36vw; }
.kyom-chispas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.kyom-hero .et_pb_row { z-index: 1; }
@media (max-width: 767px) {
	.kyom-hero-fx__taeguk { right: -40%; top: -40px; width: 110%; min-width: 0; }
	.kyom-hero-fx__leon { right: 14%; top: 80px; width: 72%; min-width: 0; }
	.kyom-hero-fx__onda { right: 10%; top: 80px; width: 80vw; height: 80vw; }
}

/* Letras */
.kyom-palabra { display: inline-block; white-space: nowrap; }
.kyom-mascara { display: inline-block; overflow: hidden; vertical-align: top; padding-top: .05em; }
.kyom-letra { display: inline-block; will-change: transform; }

/* Cinta */
.kyom-js .kyom-cinta__pista { animation: none; }

/* Coreano que se enciende */
/* Sin contorno: en coreano el contorno enseña los solapes de los trazos y no se lee. Reposo tenue pero legible. */
.kyom-perfil { color: rgba(219, 192, 113, .38) !important; transition: color .45s ease, text-shadow .45s ease; }
.kyom-perfil.kyom-relleno { color: #DBC071 !important; text-shadow: 0 0 28px rgba(219,192,113,.6); }

/* Foto fija y humo */
.kyom-fila-fija { align-items: flex-start !important; }
.kyom-foto-fija { position: sticky !important; top: 0; height: 100vh; min-height: 0 !important; overflow: hidden; }
.kyom-humo { position: absolute; inset: -20%; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: .55;
	background: radial-gradient(38% 30% at 30% 70%, rgba(255,255,255,.34), transparent 70%), radial-gradient(30% 26% at 70% 40%, rgba(180,200,255,.26), transparent 70%);
	animation: kyom-humo-deriva 14s ease-in-out infinite alternate; }
.kyom-foto-fija > :not(.kyom-humo), .kyom-s-juramento .et_pb_column > :not(.kyom-humo) { position: relative; z-index: 1; }
@keyframes kyom-humo-deriva { from { transform: translate(-6%, 4%) scale(1); } to { transform: translate(7%, -5%) scale(1.25); } }

/* Hapkido */
.kyom-s-hapkido { overflow: hidden; }
.kyom-onda { left: 50%; top: 50%; width: 42vw; height: 42vw; margin: -21vw 0 0 -21vw; z-index: 2; }
.kyom-destello { position: absolute; inset: 0; background: #FFF; opacity: 0; pointer-events: none; z-index: 2; }

/* Juramento */
.kyom-ficha--lista { transition: transform .25s ease, box-shadow .25s ease; }
.kyom-ficha--lista:hover { transform: translateY(-5px) scale(1.04) !important; box-shadow: 0 12px 28px rgba(0,0,0,.45); z-index: 2; }
.kyom-ficha--brilla { animation: kyom-brillo 2.6s ease-in-out infinite; }
@keyframes kyom-brillo { 50% { box-shadow: 0 0 34px rgba(219,192,113,.75); } }
.kyom-s-juramento .et_pb_column { overflow: hidden; }

/* Ciudad */
.kyom-s-patada-sobre-la-ciudad { overflow: hidden; position: relative; }
.kyom-fantasma { position: absolute; top: 4%; left: 0; z-index: 0; font-size: 26vw; line-height: 1; white-space: nowrap; color: rgba(255,255,255,.2); pointer-events: none; mix-blend-mode: overlay; }

/* Línea de tiempo */
.kyom-via-caja { position: relative; }
.kyom-via { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; margin-left: -18px; background: #DBC071; transform-origin: top; }

/* Galería */
.kyom-pista { display: flex; gap: 16px; }
.kyom-marco { flex: 0 0 auto; margin: 0; overflow: hidden; }
.kyom-marco img { display: block; height: 100%; width: auto; max-width: none; will-change: transform, filter; }
.kyom-galeria .kyom-pista { overflow-x: auto; scroll-snap-type: x mandatory; }
.kyom-galeria .kyom-marco { height: 62vh; scroll-snap-align: center; }
.kyom-galeria--fija { height: 100vh; box-sizing: border-box; padding-top: 40px !important; padding-bottom: 32px !important; overflow: hidden; }
.kyom-galeria--fija .kyom-pista { overflow: visible; width: max-content; will-change: transform; }
.kyom-galeria--fija .kyom-marco { height: calc(100vh - 250px); }

/* Barra de cinturones */
.kyom-cinturon { position: fixed; left: 0; top: 0; width: 100%; height: 8px; z-index: 99999; transform: scaleX(0); transform-origin: left; box-shadow: 0 1px 6px rgba(0,0,0,.5); pointer-events: none; }
.admin-bar .kyom-cinturon { top: 32px; }

/* Cursor */
.kyom-cursor { position: fixed; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #DBC071; border-radius: 50%; z-index: 99998; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: width .2s, height .2s, margin .2s, background .2s; }
.kyom-cursor--visible { opacity: 1; }
.kyom-cursor--enlace { width: 72px; height: 72px; margin: -36px 0 0 -36px; background: rgba(219,192,113,.3); }

/* Sin desbordamiento lateral. clip no rompe las secciones fijas, a diferencia de hidden. */
html:has(.kyom-s-inicio), html:has(.kyom-s-cabecera-app), html:has(.kyom-s-portada), html:has(.kyom-s-portada) body, html:has(.kyom-s-inicio) body, html:has(.kyom-s-cabecera-app) body { overflow-x: clip; }

/* El inicio cabe entero en cualquier pantalla de escritorio. */
@media (min-width: 900px) {
	.kyom-s-inicio { min-height: max(640px, 100vh) !important; }
	.kyom-s-inicio h1 { font-size: min(190px, 21vh, 12vw) !important; }
	.kyom-hero-texto { width: 62vw !important; max-width: 62vw !important; }
	.kyom-s-inicio .et_pb_image { max-width: 104px !important; width: 104px !important; }
	.kyom-s-inicio .et_pb_heading { max-width: none !important; }
	.kyom-hero-texto { margin-top: 2vh !important; }
	.kyom-hero-fx__leon { top: 50%; width: auto; height: 92vh; min-width: 0; margin-top: -46vh; }
	.kyom-hero-fx__taeguk { top: 50%; right: -8%; width: auto; height: 130vh; min-width: 0; margin-top: -65vh; }
}

/* Encuadre del retrato de Lee Chang Soo: Divi normaliza la posición al importar. */
.kyom-s-de-seul-a-zaragoza .et_pb_column:first-child { background-position: center 10% !important; }

/* Salto de línea forzado en el título del inicio (Divi oculta los br). */
.kyom-salto { display: block; height: 0; }

/* Inicio en móvil: menú en una línea y nombre en dos. */
@media (max-width: 899px) {
	.kyom-s-inicio > .et_pb_row:first-of-type { flex-wrap: nowrap !important; align-items: center; }
	.kyom-s-inicio > .et_pb_row:first-of-type > .et_pb_column { width: auto !important; flex: 0 0 auto !important; }
	.kyom-s-inicio .et_pb_heading { max-width: none !important; }
	.kyom-s-inicio h1 { font-size: 17vw !important; }
}

/* Móvil: el león a la derecha del escudo y el texto debajo, sin pisarse. */
@media (max-width: 767px) {
	.kyom-hero-fx__leon { right: 4%; top: 70px; width: 58%; }
	.kyom-hero-fx__taeguk { right: -30%; top: -30px; width: 100%; }
	.kyom-hero-texto { padding-top: 120px !important; }
}

/* ========== 2.1: portada y Taekwondo Garrapinillos ========== */
.kyom-s-portada { position: relative; overflow: hidden; }
.kyom-s-portada .et_pb_row { width: 100% !important; max-width: none !important; min-height: 100vh; position: relative; z-index: 1; gap: 0 !important; }
.kyom-s-portada .et_pb_column { width: auto !important; flex: 1 1 0 !important; margin: 0 !important; cursor: pointer; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 72px 24px !important; box-sizing: border-box; overflow: hidden; transition: flex-grow .7s cubic-bezier(.16,1,.3,1); }
.kyom-s-portada .et_pb_module { width: 100%; }
.kyom-s-portada .et_pb_button_module_wrapper { text-align: center !important; }
.kyom-s-portada .et_pb_image { max-width: min(38vh, 300px) !important; margin-left: auto !important; margin-right: auto !important; }
.kyom-s-portada .et_pb_image img { transition: transform .7s cubic-bezier(.16,1,.3,1); }
.kyom-s-portada .et_pb_column:hover .et_pb_image img { transform: scale(1.12); }
.kyom-s-portada .et_pb_text { max-width: 480px; margin-left: auto; margin-right: auto; }
.kyom-sello { position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; z-index: 3; display: grid; place-items: center; pointer-events: none; }
.kyom-sello img, .kyom-sello span { grid-area: 1 / 1; }
.kyom-sello img { width: 100%; animation: kyom-sello-gira 18s linear infinite; }
.kyom-sello span { font-size: 34px; color: #FFF; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
@keyframes kyom-sello-gira { to { transform: rotate(360deg); } }
@media (min-width: 900px) { .kyom-s-portada .et_pb_column:hover { flex-grow: 1.5 !important; } }
@media (max-width: 899px) {
	.kyom-s-portada .et_pb_row { flex-direction: column; flex-wrap: nowrap !important; }
	.kyom-s-portada .et_pb_column { width: 100% !important; flex: 0 0 auto !important; min-height: 50vh; padding: 40px 16px !important; }
	.kyom-s-portada .et_pb_image { max-width: 150px !important; }
}
.kyom-tema-gar .kyom-hero-fx__leon { top: 50%; height: 78vh; width: auto; right: 5%; margin-top: -39vh; min-width: 0; filter: drop-shadow(0 8px 30px rgba(0,0,0,.5)); }
.kyom-tema-gar .kyom-hero-fx__onda { border-color: #F5C518; }
.kyom-cifra { font-family: Anton, Impact, sans-serif; font-size: min(34vw, 420px); line-height: 1; color: #F5C518; display: block; }
@media (min-width: 900px) { .kyom-tema-gar h1 { font-size: min(140px, 18vh, 8.4vw) !important; } }
@media (max-width: 899px) {
	.kyom-tema-gar h1 { font-size: 13vw !important; }
	.kyom-tema-gar .kyom-hero-fx__leon { height: auto; top: 70px; right: 8%; width: 56%; margin-top: 0; }
}

/* Ajustes de portada y cifra. */
.kyom-s-portada .et_pb_button { display: inline-block; width: auto !important; }
.kyom-s-portada .et_pb_column { padding: 40px 24px !important; }
.kyom-s-portada .et_pb_image { max-width: min(36vh, 280px) !important; }
.kyom-s-portada h2 { font-size: min(72px, 9vh, 4.6vw) !important; }
.kyom-sello span { position: relative; z-index: 1; }
.kyom-cifra { font-size: min(15vw, 300px); }
.kyom-s-desde-1980 .et_pb_image { max-width: 420px; margin: 0 auto; }
@media (max-width: 899px) {
	.kyom-s-portada h2 { font-size: 11vw !important; }
	.kyom-cifra { font-size: 34vw; }
}

/* Margen para que la máscara no recorte las tildes de las mayúsculas. */
.kyom-mascara { padding-top: .28em; margin-top: -.28em; }

/* Recortes de Taekwondo Garrapinillos. */
.kyom-tema-gar .kyom-hero-fx__leon { height: 92vh; margin-top: -46vh; right: 8%; }
.kyom-recorte-nina { display: block; height: 340px; width: auto; max-width: none; margin: 24px auto 0; }
@media (min-width: 900px) {
	.kyom-s-taekwondo-e-infantil .et_pb_column:has(.kyom-recorte-nina) { position: relative; overflow: hidden; min-height: 620px; }
	.kyom-recorte-nina { position: absolute; right: 4%; bottom: 0; height: 94%; margin: 0; }
	.kyom-s-taekwondo-e-infantil .et_pb_column:has(.kyom-recorte-nina) .et_pb_text { max-width: 46%; }
}

/* Vídeos del Hapkido: siempre sin sonido; solo se reproducen mientras se ven. */
.kyom-video { display: block; width: 100%; height: 74vh; max-height: 680px; object-fit: cover; background: #030F29; }

/* En móvil, la patada de Rafa entera: franja más baja y la foto pegada a la derecha. */
@media (max-width: 767px) {
	.kyom-s-patada-sobre-la-ciudad { min-height: 340px !important; background-position: 100% 50% !important; }
	.kyom-s-patada-sobre-la-ciudad .et_pb_section_parallax, .kyom-s-patada-sobre-la-ciudad .et_parallax_bg { background-position: 100% 50% !important; }
}

/* Fotos de instructores: que quepan en pantalla, con la cara siempre dentro. */
.kyom-s-instructores img { width: 100%; height: 560px; object-fit: cover; object-position: center top; }
@media (max-width: 767px) { .kyom-s-instructores img { height: 440px; } .kyom-video { height: 560px; max-height: none; } }

/* Página de la app: las dos escuelas a la vez. Marino y oro de Kyom Son a la izquierda; azul y amarillo de Garrapinillos a la derecha. */
.kyom-s-cabecera-app.et_pb_section { position: relative; overflow: hidden; text-align: center; background: linear-gradient(105deg, #051B45 0 49.7%, #DBC071 49.7% 50%, #F5C518 50% 50.3%, #1F6FD0 50.3% 100%) !important; }
.kyom-s-cabecera-app .kyom-hangul { text-align: center; color: #F5C518 !important; }
.kyom-s-cabecera-app h1 { color: #F4EEDD !important; }
.kyom-s-cabecera-app .et_pb_text_inner, .kyom-s-cabecera-app p { margin-left: auto !important; margin-right: auto !important; }
.kyom-s-cabecera-app .et_pb_text { margin-left: auto !important; margin-right: auto !important; }
.kyom-s-cabecera-app .et_pb_button_module_wrapper, .kyom-s-cabecera-app .et_pb_button_wrapper { text-align: center; }
.kyom-app-marcas { justify-content: space-between !important; flex-wrap: nowrap !important; }
.kyom-app-marcas .et_pb_column { width: 50% !important; flex: 0 0 auto !important; display: flex; flex-direction: column; align-items: flex-start; }
.kyom-app-marcas .et_pb_column:last-child { align-items: flex-end; }
.kyom-app-marcas .et_pb_column:last-child h3 { text-align: right; }
.kyom-app-marcas .et_pb_column:first-child h3 { text-align: left; }
.kyom-app-marcas .et_pb_image { margin-left: 0 !important; margin-right: 0 !important; }
.kyom-app-marcas .et_pb_column:first-child { animation: kyom-app-izq .9s cubic-bezier(.2,.8,.2,1) both; }
.kyom-app-marcas .et_pb_column:last-child { animation: kyom-app-der .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes kyom-app-izq { from { opacity: 0; transform: translateX(-60px); } }
@keyframes kyom-app-der { from { opacity: 0; transform: translateX(60px); } }
.kyom-s-instalacion.et_pb_section { border-top: 6px solid; border-image: linear-gradient(90deg, #DBC071 0 50%, #F5C518 50% 100%) 1; }
.kyom-s-instalacion .et_pb_button { background: linear-gradient(105deg, #DBC071, #F5C518) !important; color: #051B45 !important; border: 0 !important; }
.kyom-s-no-puedo-entrar.et_pb_section { background: linear-gradient(105deg, #DBC071 0 50%, #F5C518 50% 100%) !important; }
@media (max-width: 767px) {
	.kyom-s-cabecera-app.et_pb_section { background: linear-gradient(160deg, #051B45 0 49.6%, #DBC071 49.6% 50%, #F5C518 50% 50.4%, #1F6FD0 50.4% 100%) !important; }
	.kyom-app-marcas .et_pb_image { max-width: 84px !important; }
}
@media (prefers-reduced-motion: reduce) { .kyom-app-marcas .et_pb_column { animation: none; } }
.kyom-s-cabecera-app .et_pb_text_inner, .kyom-s-cabecera-app .et_pb_text_inner p { text-align: center; }

/* ===== Revisión móvil ===== */
/* El círculo de Contacto no enseña blanco detrás mientras se abre. */
body:has(.kyom-s-contacto), body:has(.kyom-s-contacto) #page-container, body:has(.kyom-s-contacto) #main-content, body:has(.kyom-s-contacto) article, body:has(.kyom-s-contacto) .entry-content, body:has(.kyom-s-contacto) .et-l { background: #030F29; }
/* WordPress da a los párrafos un margen de 1 em: en el coreano grande dejaba un hueco enorme. */
p.kyom-hangul { padding-bottom: .15em !important; }
.kyom-galeria .kyom-pista { scrollbar-width: none; }
.kyom-galeria .kyom-pista::-webkit-scrollbar { display: none; }

@media (max-width: 767px) {
	.et_pb_section .et_pb_button { white-space: nowrap; }

	/* Cabecera de las landing: escudo o nombre a un lado, botón al otro, sin tapar el león. */
	.et_pb_section.kyom-s-inicio > .et_pb_row:not(:has(h1)) { flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; position: relative; z-index: 3; margin-bottom: 262px !important; }
	.et_pb_section.kyom-s-inicio > .et_pb_row:not(:has(h1)) > .et_pb_column { width: auto !important; flex: 0 1 auto !important; }
	/* El dibujo o la foto empiezan debajo de la fila del botón de la app. */
	html body .et_pb_section.kyom-s-inicio { padding-top: 8px !important; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx { top: 74px; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx__taeguk { top: 0 !important; right: -18% !important; width: 72% !important; height: auto !important; margin-top: 0 !important; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx__leon { top: 14px !important; right: 10% !important; width: 52% !important; height: auto !important; margin-top: 0 !important; }
	.et_pb_section.kyom-s-inicio.kyom-tema-gar .kyom-hero-fx__leon { top: 26px !important; right: 4% !important; width: auto !important; height: 235px !important; }

	/* Portada. */
	/* Portada: cada escuela media pantalla y el sello justo en la unión. */
	.et_pb_section.kyom-s-portada { height: 100svh; }
	.et_pb_section.kyom-s-portada .et_pb_row { height: 100svh; min-height: 0 !important; }
	.et_pb_section.kyom-s-portada .et_pb_column { flex: 0 0 50% !important; height: 50%; min-height: 0 !important; padding: 12px 16px 50px !important; }
	.et_pb_section.kyom-s-portada .et_pb_column:last-child { padding: 50px 16px 12px !important; }
	.et_pb_section.kyom-s-portada .et_pb_image { width: min(19svh, 150px) !important; max-width: none !important; margin: 0 auto 6px !important; }
	.et_pb_section.kyom-s-portada h2 { font-size: min(7.6vw, 4.6svh) !important; line-height: 1.1 !important; }
	.et_pb_section.kyom-s-portada .et_pb_heading { margin-bottom: 2px !important; }
	.et_pb_section.kyom-s-portada .et_pb_text { margin-bottom: 8px !important; }
	.et_pb_section.kyom-s-portada .et_pb_text_inner p { font-size: 14px !important; line-height: 1.3 !important; padding-bottom: 0 !important; }
	.et_pb_section.kyom-s-portada .et_pb_button { padding: 8px 24px !important; font-size: 16px !important; }
	.kyom-sello { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
	.kyom-sello span { font-size: 26px; }
	.et_pb_section.kyom-s-portada .et_pb_text_inner, .et_pb_section.kyom-s-portada .et_pb_text_inner p { text-align: center; }
	.et_pb_section.kyom-s-dojang-zaragoza .et_pb_row, .et_pb_section.kyom-s-instalacion .et_pb_row { flex-wrap: wrap !important; }
	.et_pb_section.kyom-s-dojang-zaragoza .et_pb_column, .et_pb_section.kyom-s-instalacion .et_pb_column { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }

	/* Patada sobre la ciudad: Rafa entero. */
	html body .et_pb_section.kyom-s-patada-sobre-la-ciudad.kyom-s-patada-sobre-la-ciudad { background-position: 100% 50% !important; }

	/* Juramento: rejilla de 3 x 3. */
	.et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row { flex-wrap: nowrap !important; column-gap: 0 !important; }
	.et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row > .et_pb_column { width: 33.33% !important; flex: 0 0 33.33% !important; max-width: 33.33% !important; margin: 0 !important; }

	.et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row .et_pb_text { padding-left: 6px !important; padding-right: 2px !important; }
	.et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row p:not(.kyom-hangul) { font-size: 12.5px !important; overflow-wrap: normal; word-break: keep-all; }

	/* Pie de la foto de Rafa arriba, para no tapar el pie de la patada. */
	html body .et_pb_section.kyom-s-patada-sobre-la-ciudad.kyom-s-patada-sobre-la-ciudad { justify-content: flex-start !important; }

	/* Vídeos de 2 en 2. */
	.et_pb_section.kyom-s-en-movimiento > .et_pb_row:last-of-type { flex-wrap: wrap !important; gap: 8px !important; }
	.et_pb_section.kyom-s-en-movimiento > .et_pb_row:last-of-type > .et_pb_column { width: calc(50% - 4px) !important; flex: 0 0 calc(50% - 4px) !important; max-width: calc(50% - 4px) !important; margin: 0 !important; }
	.kyom-video { height: 300px; }

	/* Tatami de Garrapinillos: las fotos son fondo de columna y sin altura desaparecían. */
	.et_pb_section.kyom-s-en-el-tatami .et_pb_column { min-height: 460px !important; }

	/* App: la diagonal solo tras los escudos, para que no cruce el texto. */
	.et_pb_section.kyom-s-cabecera-app.et_pb_section { background: linear-gradient(105deg, #051B45 0 49.3%, #DBC071 49.3% 50%, #F5C518 50% 50.7%, #1F6FD0 50.7% 100%) top / 100% 190px no-repeat, linear-gradient(180deg, #051B45 190px, #030F29 100%) !important; }
	.kyom-app-marcas h3 { font-size: 14px !important; line-height: 1.15; white-space: normal; }
	.kyom-app-marcas .et_pb_column { width: calc(50% - 8px) !important; min-width: 0; }
	.kyom-app-marcas .et_pb_heading, .kyom-app-marcas .et_pb_heading_container { max-width: 100%; }
	.kyom-app-marcas .kyom-palabra { white-space: normal; }
}

/* La foto de Abel es apaisada y va entera, sin el recorte de las fichas de instructor. */
html body .kyom-s-instructores img[src*="abel-nunez"] { height: auto !important; object-fit: contain; max-width: 760px; }

/* ===== Tableta ===== */
/* Horizontal y vertical: escudo a un lado, botón de la app al otro. */
@media (min-width: 768px) and (max-width: 1180px) {
	.et_pb_section.kyom-s-inicio > .et_pb_row:not(:has(h1)) { flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; position: relative; z-index: 3; }
	.et_pb_section.kyom-s-inicio > .et_pb_row:not(:has(h1)) > .et_pb_column { width: auto !important; flex: 0 1 auto !important; }
}

/* Horizontal: texto a la izquierda y dibujo a la derecha, sin pisarse. */
@media (min-width: 900px) and (max-width: 1180px) {
	.et_pb_section.kyom-s-inicio h1 { font-size: min(7.6vw, 15vh) !important; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx__taeguk { top: 50% !important; right: -8% !important; width: 58% !important; height: auto !important; margin-top: -29vw !important; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx__leon { top: 50% !important; right: 3% !important; width: 40% !important; height: auto !important; margin-top: -20vw !important; }
	.et_pb_section.kyom-s-inicio.kyom-tema-gar .kyom-hero-fx__leon { width: auto !important; height: 66vh !important; margin-top: -33vh !important; right: 4% !important; }
}

/* Vertical. */
@media (min-width: 768px) and (max-width: 899px) {
	.et_pb_section .et_pb_button { white-space: nowrap; }

	/* Portada: cada escuela media pantalla y el sello en la unión. */
	.et_pb_section.kyom-s-portada { height: 100svh; }
	.et_pb_section.kyom-s-portada .et_pb_row { height: 100svh; min-height: 0 !important; }
	.et_pb_section.kyom-s-portada .et_pb_column { flex: 0 0 50% !important; height: 50%; min-height: 0 !important; padding: 16px 24px 64px !important; }
	.et_pb_section.kyom-s-portada .et_pb_column:last-child { padding: 64px 24px 16px !important; }
	.et_pb_section.kyom-s-portada .et_pb_image { width: min(20svh, 210px) !important; max-width: none !important; margin: 0 auto 8px !important; }
	.et_pb_section.kyom-s-portada h2 { font-size: min(6.4vw, 4.6svh) !important; line-height: 1.1 !important; }
	.et_pb_section.kyom-s-portada .et_pb_text { margin-bottom: 10px !important; }
	.et_pb_section.kyom-s-portada .et_pb_text_inner, .et_pb_section.kyom-s-portada .et_pb_text_inner p { text-align: center; padding-bottom: 0 !important; }

	/* Cabeceras: dibujo debajo de la fila del botón y título debajo del dibujo. */
	html body .et_pb_section.kyom-s-inicio { padding-top: 16px !important; }
	.et_pb_section.kyom-s-inicio > .et_pb_row:not(:has(h1)) { margin-bottom: 400px !important; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx { top: 96px; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx__taeguk { top: 0 !important; right: -8% !important; width: 58% !important; height: auto !important; margin-top: 0 !important; }
	.et_pb_section.kyom-s-inicio .kyom-hero-fx__leon { top: 24px !important; right: 8% !important; width: 42% !important; height: auto !important; margin-top: 0 !important; }
	.et_pb_section.kyom-s-inicio.kyom-tema-gar .kyom-hero-fx__leon { top: 24px !important; right: 10% !important; width: auto !important; height: 380px !important; }

	/* Dos columnas estrechas no dan para el coreano: una debajo de otra. */
	.et_pb_section.kyom-s-principios > .et_pb_row, .et_pb_section.kyom-s-juramento > .et_pb_row { flex-wrap: wrap !important; }
	.et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column, .et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
	.et_pb_section.kyom-s-principios .kyom-foto-fija { position: relative !important; top: auto !important; min-height: 620px; height: 620px !important; }
	.et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column:first-child { min-height: 620px !important; }
	.et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row { flex-wrap: nowrap !important; }
	.et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row > .et_pb_column { width: 33.33% !important; flex: 0 0 33.33% !important; max-width: 33.33% !important; margin: 0 !important; }

	/* Vídeos de 2 en 2 y cifra en una línea. */
	.et_pb_section.kyom-s-en-movimiento > .et_pb_row:last-of-type { flex-wrap: wrap !important; gap: 12px !important; }
	.et_pb_section.kyom-s-en-movimiento > .et_pb_row:last-of-type > .et_pb_column { width: calc(50% - 6px) !important; flex: 0 0 calc(50% - 6px) !important; max-width: calc(50% - 6px) !important; margin: 0 !important; }
	.kyom-video { height: 520px; max-height: none; }
	.kyom-cifra { font-size: 20vw; white-space: nowrap; }

	/* App: la diagonal, solo tras los escudos. */
	.et_pb_section.kyom-s-cabecera-app.et_pb_section { background: linear-gradient(105deg, #051B45 0 49.6%, #DBC071 49.6% 50%, #F5C518 50% 50.4%, #1F6FD0 50.4% 100%) top / 100% 230px no-repeat, linear-gradient(180deg, #051B45 230px, #030F29 100%) !important; }
}

/* Tableta vertical: título de la galería encima de su texto, sin pisarse. */
@media (min-width: 768px) and (max-width: 899px) {
	.et_pb_section.kyom-s-esto-es-garrapinillos > .et_pb_row:not(:has(img)), .et_pb_section.kyom-s-jjk-zaragoza > .et_pb_row:not(:has(img)) { flex-wrap: wrap !important; row-gap: 12px !important; }
	.et_pb_section.kyom-s-esto-es-garrapinillos > .et_pb_row:not(:has(img)) > .et_pb_column, .et_pb_section.kyom-s-jjk-zaragoza > .et_pb_row:not(:has(img)) > .et_pb_column { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; }
}

/* Linaje: Couet y Sanz, sin cortar la cabeza ni la patada. */
html body .kyom-s-de-seul-a-zaragoza > .et_pb_row:last-of-type > .et_pb_column:first-child { background-position: center 2% !important; }
html body .kyom-s-de-seul-a-zaragoza > .et_pb_row:last-of-type > .et_pb_column:last-child { background-position: center 6% !important; }
@media (max-width: 1180px) {
	html body .kyom-s-de-seul-a-zaragoza > .et_pb_row:last-of-type > .et_pb_column { min-height: 0 !important; aspect-ratio: 2 / 3; background-position: center center !important; }
}

/* Móvil y tableta vertical: misma composición en columnas que en ordenador, con fotos pequeñas. */
@media (max-width: 899px) {
	html body .et_pb_section.kyom-s-principios > .et_pb_row,
	html body .et_pb_section.kyom-s-juramento > .et_pb_row,
	html body .et_pb_section.kyom-s-de-seul-a-zaragoza > .et_pb_row { display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important; column-gap: 0 !important; }
	html body .et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column,
	html body .et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column,
	html body .et_pb_section.kyom-s-de-seul-a-zaragoza > .et_pb_row > .et_pb_column { min-width: 0; margin: 0 !important; min-height: 0 !important; }
	html body .et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column:first-child,
	html body .et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column:last-child { width: 62% !important; flex: 0 0 62% !important; max-width: 62% !important; padding: 28px 12px !important; }
	html body .et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column:last-child,
	html body .et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column:first-child { width: 38% !important; flex: 0 0 38% !important; max-width: 38% !important; height: auto !important; position: relative !important; top: auto !important; padding: 8px !important; }

	/* Tamaños dentro de la columna de texto. */
	html body .kyom-s-principios h2, html body .kyom-s-juramento h2 { font-size: clamp(26px, 8vw, 54px) !important; line-height: 1.08 !important; }
	html body .kyom-s-principios .et_pb_heading, html body .kyom-s-juramento .et_pb_heading { margin-bottom: 12px !important; }
	html body .kyom-s-principios .et_pb_text { padding: 10px 0 !important; margin-bottom: 0 !important; }
	html body .kyom-s-principios p.kyom-hangul { font-size: clamp(38px, 11vw, 64px) !important; }
	html body .kyom-s-principios h3 { font-size: clamp(16px, 4.6vw, 26px) !important; }
	html body .kyom-s-principios p:not(.kyom-hangul), html body .kyom-s-juramento > .et_pb_row > .et_pb_column > .et_pb_text p { font-size: clamp(13px, 3.6vw, 18px) !important; line-height: 1.35 !important; }
	html body .et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row .et_pb_text { padding: 6px 2px !important; }
	html body .kyom-s-juramento .et_pb_row .et_pb_row p.kyom-hangul { font-size: clamp(19px, 5.4vw, 34px) !important; }
	html body .kyom-s-juramento .et_pb_row .et_pb_row p:not(.kyom-hangul) { font-size: clamp(9.5px, 2.6vw, 14px) !important; }

	html body .et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column:last-child { background-position: 78% 50% !important; }

	/* Linaje: Lee Chang Soo junto a la línea de tiempo. */
	html body .et_pb_section.kyom-s-de-seul-a-zaragoza > .et_pb_row:first-of-type > .et_pb_column:first-child { width: 38% !important; flex: 0 0 38% !important; max-width: 38% !important; padding: 8px !important; background-position: center 25% !important; }
	html body .et_pb_section.kyom-s-de-seul-a-zaragoza > .et_pb_row:first-of-type > .et_pb_column:last-child { width: 62% !important; flex: 0 0 62% !important; max-width: 62% !important; padding: 0 0 0 20px !important; }
	html body .kyom-s-de-seul-a-zaragoza h2 { font-size: clamp(24px, 7.4vw, 50px) !important; line-height: 1.08 !important; }
	html body .kyom-s-de-seul-a-zaragoza .et_pb_text p { font-size: clamp(13px, 3.5vw, 17px) !important; line-height: 1.35 !important; display: block !important; max-width: 100% !important; }
	html body .kyom-s-de-seul-a-zaragoza .et_pb_text p strong { display: block; }
	html body .kyom-s-de-seul-a-zaragoza .et_pb_text p span:not(.kyom-hangul) { display: block; width: auto !important; margin: 0 !important; }

	/* Couet y Sanz, en paralelo. */
	html body .et_pb_section.kyom-s-de-seul-a-zaragoza > .et_pb_row:last-of-type { column-gap: 8px !important; margin-top: 16px !important; }
	html body .et_pb_section.kyom-s-de-seul-a-zaragoza > .et_pb_row:last-of-type > .et_pb_column { width: calc(50% - 4px) !important; flex: 0 0 calc(50% - 4px) !important; max-width: calc(50% - 4px) !important; aspect-ratio: 2 / 3; padding: 8px !important; }
	html body .kyom-s-principios .et_pb_column .et_pb_text p:has(> *) { max-width: 100%; }
	html body .kyom-s-principios .et_pb_column:last-child .et_pb_text p, html body .kyom-s-juramento > .et_pb_row > .et_pb_column:first-child > .et_pb_text p, html body .kyom-s-de-seul-a-zaragoza .et_pb_column .et_pb_text:only-child p { font-size: 11px !important; line-height: 1.2 !important; }
}

/* Móvil y tableta vertical: título arriba a todo el ancho y, debajo, texto y foto.
   Principios 50/50; Juramento 40 % foto y 60 % texto. */
@media (max-width: 899px) {
	html body .et_pb_section.kyom-s-principios > .et_pb_row,
	html body .et_pb_section.kyom-s-juramento > .et_pb_row { display: grid !important; column-gap: 12px !important; row-gap: 0 !important; padding: 40px 16px !important; width: 100% !important; max-width: 100% !important; }
	html body .et_pb_section.kyom-s-principios > .et_pb_row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	html body .et_pb_section.kyom-s-juramento > .et_pb_row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }

	/* La columna de texto desaparece como caja: sus módulos se colocan directamente en la rejilla. */
	html body .et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column:first-child,
	html body .et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column:last-child { display: contents !important; }
	html body .kyom-s-principios > .et_pb_row > .et_pb_column:first-child > *,
	html body .kyom-s-juramento > .et_pb_row > .et_pb_column:last-child > * { min-width: 0; width: auto !important; max-width: 100% !important; }
	html body .kyom-s-principios > .et_pb_row > .et_pb_column:first-child > * { grid-column: 1; }
	html body .kyom-s-juramento > .et_pb_row > .et_pb_column:last-child > * { grid-column: 2; }
	html body .kyom-s-principios > .et_pb_row > .et_pb_column:first-child > .et_pb_heading,
	html body .kyom-s-juramento > .et_pb_row > .et_pb_column:last-child > .et_pb_heading { grid-column: 1 / -1; margin-bottom: 20px !important; }
	html body .kyom-s-principios h2, html body .kyom-s-juramento h2 { font-size: clamp(36px, 11vw, 72px) !important; }

	/* Fotos. */
	html body .et_pb_section.kyom-s-principios > .et_pb_row > .et_pb_column:last-child { grid-column: 2; grid-row: 2 / span 3; width: auto !important; max-width: none !important; flex: none !important; }
	html body .et_pb_section.kyom-s-juramento > .et_pb_row > .et_pb_column:first-child { grid-column: 1; grid-row: 2 / span 4; width: auto !important; max-width: none !important; flex: none !important; }

	/* Textos. */
	html body .kyom-s-principios .et_pb_text { padding: 12px 0 !important; }
	html body .kyom-s-juramento > .et_pb_row > .et_pb_column:last-child > .et_pb_text { margin-bottom: 8px !important; padding: 0 !important; }
	html body .kyom-s-juramento > .et_pb_row > .et_pb_column:last-child > .et_pb_row { width: 100% !important; margin: 0 !important; padding: 0 !important; }
	html body .kyom-s-juramento .et_pb_row .et_pb_row p:not(.kyom-hangul) { font-size: clamp(10.5px, 2.85vw, 15px) !important; line-height: 1.2 !important; }
}

/* Que "Conocimiento" quepa entero en la rejilla del Juramento. */
@media (max-width: 899px) {
	html body .et_pb_section.kyom-s-juramento > .et_pb_row { grid-template-columns: minmax(0, 9fr) minmax(0, 16fr); }
	html body .et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row .et_pb_text { padding: 6px 1px 6px 3px !important; }
	html body .kyom-s-juramento .et_pb_row .et_pb_row p:not(.kyom-hangul) { font-size: clamp(10px, 2.65vw, 15px) !important; overflow-wrap: normal; word-break: normal; }
}
@media (max-width: 899px) {
	html body .et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row > .et_pb_column:nth-child(1) { width: 32% !important; flex: 0 0 32% !important; max-width: 32% !important; }
	html body .et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row > .et_pb_column:nth-child(2) { width: 32% !important; flex: 0 0 32% !important; max-width: 32% !important; }
	html body .et_pb_section.kyom-s-juramento .et_pb_row .et_pb_row > .et_pb_column:nth-child(3) { width: 36% !important; flex: 0 0 36% !important; max-width: 36% !important; }
	html body .kyom-s-juramento .et_pb_row .et_pb_row p:not(.kyom-hangul) { letter-spacing: -.01em; }
}

/* ===== Textos legales (páginas con [lumar_legal]): mismo aspecto que la web ===== */
body.kyom-legal { background: var(--gcid-kyom-papel) !important; font-family: "Barlow", sans-serif; }
body.kyom-legal #main-header, body.kyom-legal #top-header, body.kyom-legal #main-footer, body.kyom-legal #sidebar, body.kyom-legal .entry-title, body.kyom-legal .et_post_meta_wrapper { display: none !important; }
body.kyom-legal #page-container { padding-top: 0 !important; margin-top: 0 !important; background: transparent; }
body.kyom-legal #main-content { background: var(--gcid-kyom-papel); }
body.kyom-legal #main-content .container { width: min(860px, 100% - 40px); max-width: none; padding: 64px 0 88px; }
body.kyom-legal #main-content .container::before { display: none; }
body.kyom-legal #left-area { width: 100%; padding: 0 !important; float: none; }
body.kyom-legal article { margin: 0; padding: 0; }

.kyom-legal-cab, .kyom-legal-pie {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
	padding: 20px clamp(20px, 5vw, 64px); background: var(--gcid-kyom-profundo); font-family: "Barlow", sans-serif;
}
.kyom-legal-marca { font-family: "Anton", sans-serif; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; color: #fff !important; line-height: 1; }
.kyom-legal-marca span { color: var(--gcid-kyom-oro); }
.kyom-legal-cab nav, .kyom-legal-pie nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.kyom-legal-cab nav a, .kyom-legal-pie nav a { color: rgba(255,255,255,.78) !important; font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transition: color .2s; }
.kyom-legal-cab nav a:hover, .kyom-legal-pie nav a:hover { color: var(--gcid-kyom-oro) !important; }

.kyom-legal-portada {
	position: relative; overflow: hidden; isolation: isolate;
	padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 84px);
	background: var(--gcid-kyom-navy); border-bottom: 6px solid var(--gcid-kyom-oro);
}
.kyom-legal-etiqueta { margin: 0 0 14px; padding: 0; color: var(--gcid-kyom-oro); font-family: "Barlow", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; }
.kyom-legal-portada h1 { margin: 0; padding: 0; max-width: 900px; font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(42px, 7vw, 92px); line-height: .98; text-transform: uppercase; color: #fff; }
.kyom-legal-portada .kyom-legal-hangul { position: absolute; z-index: -1; right: 4%; bottom: -22%; margin: 0; font-size: clamp(130px, 22vw, 320px) !important; font-weight: 900; line-height: 1; white-space: nowrap; color: rgba(219,192,113,.10) !important; -webkit-text-stroke: 0; pointer-events: none; }
/* El título empieza donde empieza el texto. */
.kyom-legal-portada { padding-left: max(20px, calc((100% - 860px) / 2)); padding-right: max(20px, calc((100% - 860px) / 2)); }

body.kyom-legal .lleg-texto { color: #1f2228; font-family: "Barlow", sans-serif; font-size: 17px; line-height: 1.75; }
body.kyom-legal .lleg-texto p { padding-bottom: 1em; }
body.kyom-legal .lleg-texto h2 {
	margin: 48px 0 16px; padding: 0 0 0 16px; border-left: 5px solid var(--gcid-kyom-rojo);
	font-family: "Anton", sans-serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); line-height: 1.1; text-transform: uppercase; letter-spacing: .01em; color: var(--gcid-kyom-navy);
}
body.kyom-legal .lleg-texto h2:first-child { margin-top: 0; }
body.kyom-legal .lleg-texto h3 { margin: 28px 0 8px; padding: 0; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 19px; color: var(--gcid-kyom-navy); }
body.kyom-legal .lleg-texto ul { padding: 0 0 1em 1.2em; }
body.kyom-legal .lleg-texto li { margin-bottom: .35em; }
body.kyom-legal .lleg-texto li::marker { color: var(--gcid-kyom-rojo); }
body.kyom-legal .lleg-texto strong { color: var(--gcid-kyom-navy); font-weight: 600; }
body.kyom-legal .lleg-texto a { color: var(--gcid-kyom-rojo); text-decoration: underline; text-underline-offset: 3px; }
body.kyom-legal .lleg-tabla-scroll { overflow-x: auto; margin: 8px 0 24px; border-radius: 4px; box-shadow: 0 1px 0 rgba(5,27,69,.12); }
body.kyom-legal .lleg-tabla { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; line-height: 1.5; border: 0; }
body.kyom-legal .lleg-tabla th { padding: 12px 14px; background: var(--gcid-kyom-navy); color: #fff; font-weight: 600; text-align: left; letter-spacing: .04em; border: 0; }
body.kyom-legal .lleg-tabla td { padding: 12px 14px; border: 0; border-top: 1px solid #E6DCC0; vertical-align: top; }
body.kyom-legal .lleg-reabrir {
	margin: 8px 0 24px; padding: 14px 26px; border: 0; border-radius: 0; cursor: pointer;
	background: var(--gcid-kyom-oro); color: var(--gcid-kyom-profundo); font-family: "Anton", sans-serif; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; transition: background .2s;
}
body.kyom-legal .lleg-reabrir:hover { background: #fff; }
body.kyom-legal .lleg-fecha { margin-top: 40px; padding-top: 18px; border-top: 1px solid #DCCFA9; font-size: 14px; color: #6b6a63; }

.kyom-legal-pie { padding-top: 40px; padding-bottom: 76px; }
.kyom-legal-pie__legal { flex-basis: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.kyom-legal-pie__legal a { font-size: 13px !important; color: rgba(255,255,255,.55) !important; }

/* Franja legal en la portada y en la app, que no tienen pie propio. */
.kyom-franja-legal {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 22px;
	padding: 14px 20px 14px 110px; background: var(--gcid-kyom-profundo); font-family: "Barlow", sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.kyom-franja-legal span { color: var(--gcid-kyom-oro); font-weight: 600; }
.kyom-franja-legal a { color: rgba(255,255,255,.7) !important; }
.kyom-franja-legal a:hover { color: #fff !important; }

@media (max-width: 767px) {
	.kyom-legal-cab { justify-content: center; text-align: center; }
	.kyom-legal-cab nav { justify-content: center; gap: 6px 18px; }
	.kyom-legal-cab nav a { font-size: 12px; }
	body.kyom-legal #main-content .container { padding: 40px 0 64px; }
	body.kyom-legal .lleg-texto { font-size: 16px; }
	.kyom-legal-pie, .kyom-legal-pie nav { justify-content: center; text-align: center; }
}

/* ===== Página 404: misma capa que los textos legales ===== */
body.kyom-404 #main-content { display: none !important; }
.kyom-404-portada { min-height: calc(100vh - 230px); display: flex; flex-direction: column; justify-content: center; border-bottom: 0; }
.kyom-404-cifra { margin: 0 0 6px; padding: 0; font-family: "Anton", sans-serif; font-size: clamp(90px, 16vw, 200px); line-height: .9; color: var(--gcid-kyom-oro); letter-spacing: .02em; }
.kyom-404-texto { max-width: 560px; margin: 22px 0 0; padding: 0; font-family: "Barlow", sans-serif; font-size: 19px; line-height: 1.6; color: rgba(255,255,255,.82); }
.kyom-404-botones { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 34px; }
.kyom-404-boton { display: inline-block; padding: 15px 26px; background: var(--gcid-kyom-oro); color: var(--gcid-kyom-profundo) !important; font-family: "Anton", sans-serif; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; transition: background .2s, color .2s; }
.kyom-404-boton--azul { background: #1F6FD0; color: #fff !important; }
.kyom-404-boton:hover { background: #fff; color: var(--gcid-kyom-profundo) !important; }
.kyom-404-enlace { color: rgba(255,255,255,.75) !important; font-family: "Barlow", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.kyom-404-enlace:hover { color: var(--gcid-kyom-oro) !important; }
@media (max-width: 767px) {
	.kyom-404-portada { min-height: calc(100vh - 260px); }
	.kyom-404-boton { width: 100%; text-align: center; }
	.kyom-404-texto { font-size: 17px; }
}
