/* Dojo KNS — Sitio. Uses the Dojo KNS design tokens when present. */

/* ---------- Japanese glyphs ---------- */
.dk-jp,
[lang="ja"] {
	font-family: 'Yuji Boku', serif !important;
	font-weight: 400 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}

.dk-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

/* ---------- Schedule ---------- */
.dk-horario { --dk-line: rgba(245, 242, 234, 0.14); color: var(--paper, #F5F2EA); }
.dk-tabs {
	display: flex;
	gap: clamp(20px, 4vw, 56px);
	border-bottom: 2px solid var(--paper, #F5F2EA);
	overflow-x: auto;
	scrollbar-width: none;
}
.dk-tabs::-webkit-scrollbar { display: none; }
.dk-horario:not(.is-enhanced) .dk-tabs { display: none; }
.dk-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 4px solid transparent;
	margin-bottom: -2px;
	padding: 6px 10px 14px;
	font-family: var(--font-display, 'Anton'), sans-serif;
	font-size: clamp(28px, 3.2vw, 40px);
	line-height: 1;
	text-transform: uppercase;
	color: #8491B8;
	cursor: pointer;
	transition: color var(--dur, 180ms) var(--ease-out, ease), border-color var(--dur, 180ms) var(--ease-out, ease);
	touch-action: manipulation;
}
.dk-tab:hover { color: #B4BDDA; }
.dk-tab[aria-selected="true"] { color: var(--gold, #E8A93A); border-bottom-color: var(--gold, #E8A93A); }
.dk-tab:focus-visible { outline: 3px solid var(--gold, #E8A93A); outline-offset: 2px; }
.dk-panel:focus-visible { outline: 2px dashed var(--gold, #E8A93A); outline-offset: 6px; }
.dk-panel-day {
	margin: 32px 0 4px;
	font-family: var(--font-display, 'Anton'), sans-serif;
	font-weight: 400;
	font-size: 32px;
	text-transform: uppercase;
	color: var(--gold, #E8A93A);
}
.dk-horario.is-enhanced .dk-panel-day { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dk-rows { list-style: none; margin: 0; padding: 0; }
.dk-row {
	display: grid;
	grid-template-columns: minmax(170px, 0.9fr) minmax(0, 2fr) minmax(200px, 1fr);
	gap: 16px 24px;
	align-items: center;
	padding: 26px 0;
	border-bottom: 1px solid var(--dk-line);
}
.dk-time,
.dk-name {
	font-family: var(--font-display, 'Anton'), sans-serif;
	font-size: clamp(24px, 2.6vw, 38px);
	line-height: 1;
	text-transform: uppercase;
	color: var(--paper, #F5F2EA);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.dk-names { display: flex; flex-wrap: wrap; gap: 8px 48px; }
.dk-name { text-decoration: none; transition: color var(--dur, 180ms); }
.dk-name:hover { color: var(--gold, #E8A93A); }
.dk-name:focus-visible { outline: 2px solid var(--gold, #E8A93A); outline-offset: 4px; }
.dk-tagcol { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dk-tagline { display: flex; flex-wrap: wrap; gap: 12px; }
.dk-tag {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 4px 10px;
	border: 2px solid var(--gold, #E8A93A);
	border-radius: 2px;
	font-family: var(--font-sans, 'Archivo'), sans-serif;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gold, #E8A93A);
	white-space: nowrap;
}
@media (max-width: 479px) {
	.dk-tabs { gap: 2px; justify-content: space-between; }
	.dk-tab { padding: 6px 6px 12px; font-size: 26px; }
}
@media (max-width: 767px) {
	.dk-row { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 0; }
	.dk-tagcol { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Map ---------- */



/* ---------- Map with consent ---------- */
.dk-map { position: relative; width: 100%; height: 100%; min-height: 320px; background: #ECE7DA; background-image: radial-gradient(circle at center, rgba(11,11,12,0.14) 1px, transparent 1.4px); background-size: 8px 8px; }
.dk-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.dk-map.is-loaded .dk-map-consent { display: none; }
.dk-map-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.dk-map-kanji { margin: 0; font-size: 56px; line-height: 1; color: var(--gold-deep, #C5851F); }
.dk-map-text { margin: 0; max-width: 300px; font-size: 14px; line-height: 1.5; color: #3A3D44; }
.dk-map-btn { min-height: 44px; padding: 10px 22px; font: 800 14px/1 var(--font-sans, 'Archivo'), sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #F5F2EA; background: #0B0B0C; border: 2px solid #0B0B0C; border-radius: 999px; box-shadow: 3px 3px 0 var(--gold, #E8A93A); cursor: pointer; }
.dk-map-btn:hover { background: #26282D; }
.dk-map-link { font-family: var(--font-mono, 'Space Mono'), monospace; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #0B0B0C; text-underline-offset: 3px; }
.dk-empty { color: var(--color-text-muted, #A7A39A); }

/* ---------- Modal (wraps «Dojo KNS — Agendar Clase») ---------- */
html.dk-modal-open { overflow: hidden; }
.dk-modal {
	width: min(880px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 3px solid var(--gold, #E8A93A);
	border-radius: 2px;
	background: #0B0B0C;
	color: #F5F2EA;
	box-shadow: 10px 10px 0 #6E7CAE;
	overflow: hidden;
}
.dk-modal::backdrop { background: rgba(5, 5, 6, 0.84); backdrop-filter: blur(3px); }
.dk-modal[open] { animation: dk-in 220ms var(--ease-strike, cubic-bezier(.5,0,.1,1)); }
.dk-modal[open]::backdrop { animation: dk-fade 220ms ease-out; }
@keyframes dk-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes dk-fade { from { opacity: 0; } to { opacity: 1; } }
.dk-modal-body { max-height: calc(100dvh - 38px); padding: 56px 20px 24px; overflow-y: auto; overscroll-behavior: contain; }
.dk-modal-body::before { content: ""; display: block; height: 12px; margin: -56px -20px 44px; background: repeating-linear-gradient(-45deg, #E8A93A 0 12px, #0B0B0C 12px 24px); }
.dk-modal-close {
	position: absolute;
	top: 22px;
	right: 14px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 2px solid #F5F2EA;
	background: #0B0B0C;
	color: #F5F2EA;
	cursor: pointer;
	transition: background-color 180ms, border-color 180ms, transform 120ms;
}
.dk-modal-close:hover { background: var(--red, #D92D20); border-color: var(--red, #D92D20); }
.dk-modal-close:active { transform: translateY(1px); }
.dk-modal-close:focus-visible { outline: 3px solid var(--gold, #E8A93A); outline-offset: 2px; }
.dk-modal .knsag { margin-top: 0; }

/* ---------- Cookie notice ---------- */
.dks-cookies {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	max-width: 980px;
	margin: 0 auto;
	padding: 18px 20px;
	background: #F5F2EA;
	color: #0B0B0C;
	border: 2px solid #0B0B0C;
	box-shadow: 6px 6px 0 var(--gold, #E8A93A);
}
.dks-cookies[hidden] { display: none; }
.dks-cookies-text { flex: 1 1 420px; margin: 0; font-size: 14px; line-height: 1.55; }
.dks-cookies-link { color: #0B0B0C; font-weight: 700; text-underline-offset: 3px; }
.dks-cookies-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dks-cookies-btn { min-height: 44px; padding: 10px 20px; font: 800 13px/1 var(--font-sans, 'Archivo'), sans-serif; letter-spacing: 0.04em; text-transform: uppercase; color: #0B0B0C; background: var(--gold, #E8A93A); border: 2px solid #0B0B0C; border-radius: 999px; cursor: pointer; }
.dks-cookies-btn--ghost { background: transparent; }
.dks-cookies-btn:hover { background: #0B0B0C; color: #F5F2EA; }

/* ---------- Accessibility helpers ---------- */
.dks-skip {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 1000;
	padding: 12px 18px;
	font: 800 14px/1 var(--font-sans, 'Archivo'), sans-serif;
	color: #0B0B0C;
	background: var(--gold, #E8A93A);
	border: 2px solid #0B0B0C;
	text-decoration: none;
}
.dks-skip:focus { top: calc(var(--wp-admin--admin-bar--height, 0px) + 12px); outline: 3px solid #F5F2EA; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--gold, #E8A93A); outline-offset: 3px; }
.theme-paper a:focus-visible, .theme-paper button:focus-visible, .theme-paper summary:focus-visible { outline-color: #0B0B0C; }

.kns-marquee.dks-has-motion-btn { position: relative; }
.dks-motion-btn {
	position: absolute;
	right: 8px;
	top: 50%;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-top: -16px;
	font-size: 12px;
	line-height: 1;
	color: #0B0B0C;
	background: #F5F2EA;
	border: 2px solid #0B0B0C;
	border-radius: 999px;
	cursor: pointer;
}
.dks-motion-paused .kns-marquee-track { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto !important; }
	.kns-marquee-track { animation: none !important; }
	[data-entrance] { opacity: 1 !important; visibility: visible !important; transform: none !important; }
	.dk-modal[open], .dk-modal[open]::backdrop { animation: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- Agendar Clase: contrast tweak for small muted text ---------- */
html .knsag { --k-faint: #8F8B82; }

/* ---------- Mobile menu (hamburger + drawer) ---------- */
.dks-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	color: var(--gold, #E8A93A);
	background: transparent;
	border: 0;
	cursor: pointer;
	touch-action: manipulation;
}
.dks-burger svg { width: 32px; height: 24px; fill: currentColor; }
.dks-burger:hover { color: #F4C76A; }
@media (max-width: 1023px) { .dks-burger { display: inline-flex; } }

html.dks-drawer-open { overflow: hidden; }
.dks-drawer {
	position: fixed;
	inset: 0 0 0 auto;
	width: min(420px, 76vw);
	max-width: none;
	height: 100dvh;
	max-height: none;
	margin: 0 0 0 auto;
	padding: 0;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: #0B0B0C;
	color: #F5F2EA;
	border: 0;
	border-left: 4px solid var(--gold, #E8A93A);
}
.dks-drawer:not([open]) { display: none; }
.dks-drawer::backdrop { background: rgba(5, 5, 6, 0.6); }
.dks-drawer[open] { animation: dks-slide 240ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes dks-slide { from { transform: translateX(100%); } to { transform: none; } }
.dks-drawer-top { display: flex; justify-content: flex-end; padding: 12px 12px 8px; border-bottom: 1px solid rgba(245,242,234,0.14); }
.dks-drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #F5F2EA; background: transparent; border: 0; cursor: pointer; }
.dks-drawer-close:hover { color: var(--gold, #E8A93A); }
.dks-drawer-list, .dks-drawer-sub { list-style: none; margin: 0; padding: 0; }
.dks-drawer-item { border-bottom: 1px solid rgba(245,242,234,0.14); }
.dks-drawer-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	min-height: 64px;
	padding: 14px 24px 14px 28px;
	font-family: var(--font-display, 'Anton'), sans-serif;
	font-weight: 400;
	font-size: clamp(34px, 9vw, 44px);
	line-height: 1;
	text-transform: uppercase;
	text-align: left;
	color: #F5F2EA;
	text-decoration: none;
	background: transparent;
	border: 0;
	cursor: pointer;
}
.dks-drawer-link:hover, .dks-drawer-link[aria-current="page"] { color: var(--gold, #E8A93A); }
.dks-chevron { flex: 0 0 auto; transition: transform 200ms; }
.dks-drawer-toggle[aria-expanded="true"] .dks-chevron { transform: rotate(180deg); }
.dks-drawer-sub li { border-top: 1px solid rgba(245,242,234,0.14); }
.dks-drawer-sublink {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 12px 24px 12px 44px;
	font-family: var(--font-mono, 'Space Mono'), monospace;
	font-size: 18px;
	letter-spacing: 0.12em;
	color: #F5F2EA;
	text-decoration: none;
}
.dks-drawer-sublink:hover, .dks-drawer-sublink[aria-current="page"] { color: var(--gold, #E8A93A); }
.dks-drawer-actions { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 28px; }
.dks-drawer-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px 20px;
	font-family: var(--font-mono, 'Space Mono'), monospace;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #0B0B0C;
	background: var(--gold, #E8A93A);
	border-radius: 8px;
	text-decoration: none;
}
.dks-drawer-cta:hover { background: #F4C76A; }
.dks-drawer-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dks-drawer-quick-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	font-family: var(--font-mono, 'Space Mono'), monospace;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #F5F2EA;
	border: 2px solid rgba(245,242,234,0.7);
	border-radius: 8px;
	text-decoration: none;
}
.dks-drawer-quick-btn:hover { border-color: var(--gold, #E8A93A); color: var(--gold, #E8A93A); }
.dks-drawer-address { margin: 8px 0 0; font-family: var(--font-mono, 'Space Mono'), monospace; font-size: 13px; line-height: 1.6; color: #C9C5BB; }
.dks-drawer-address a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dks-drawer-address a:hover { color: #E8A93A; }
@media (prefers-reduced-motion: reduce) { .dks-drawer[open] { animation: none; } }

/* ===== Layout: grids that match their number of items (2026-10-12) ===== */

/* Valores (Karate Niños): número arriba, palabra completa, sin cortes */
html body .kns-value { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: clamp(22px, 1.9vw, 28px); }
html body .kns-value-num { display: block; margin-bottom: 12px; }
@media (max-width: 1119px) {
	html body .kns-values { grid-template-columns: minmax(0, 1fr); }
	html body .kns-value { flex-direction: row; align-items: baseline; gap: 18px; padding: 20px 24px; border-right: 0; border-bottom: 2px solid #0b0b0c; font-size: clamp(24px, 4vw, 32px); }
	html body .kns-value:last-child { border-bottom: 0; }
	html body .kns-value-num { display: inline-block; margin: 0 14px 0 0; }
}

/* Tarjetas de beneficios: columnas según cuántas hay */
html body .kns-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html body .kns-feature-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html body .kns-feature-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
html body .kns-feature-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1119px) {
	html body .kns-feature-grid,
	html body .kns-feature-grid:has(> :nth-child(4):last-child),
	html body .kns-feature-grid:has(> :nth-child(5):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	html body .kns-feature-grid:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* impar: la última tarjeta ocupa el renglón completo */
	html body .kns-feature-grid:has(> :nth-child(5):last-child) > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	html body .kns-feature-grid,
	html body .kns-feature-grid:has(> :nth-child(3):last-child),
	html body .kns-feature-grid:has(> :nth-child(4):last-child),
	html body .kns-feature-grid:has(> :nth-child(5):last-child) { grid-template-columns: minmax(0, 1fr); }
}

/* Programas: la tarjeta "¿No sabes cuál elegir?" cierra el grid a todo lo ancho */
html body .kns-prog-grid > .kns-prog-card-cta { grid-column: 1 / -1; }
html body .kns-prog-grid > .kns-prog-card-cta .kns-prog-cta-body { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 28px; }
@media (max-width: 767px) {
	html body .kns-prog-grid > .kns-prog-card-cta .kns-prog-cta-body { flex-direction: column; align-items: flex-start; }
}

/* Datos del hero (16+ · 100+ · 2): tres columnas también en celular */
@media (max-width: 767px) {
	html body .kns-hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	html body .kns-hero-stats .kns-stat-value { font-size: clamp(38px, 11vw, 52px); }
}

/* Footer en tablet: marca a todo lo ancho, luego dos columnas */
@media (max-width: 1023px) and (min-width: 480px) {
	html body .kns-footer-grid-3 > :first-child { grid-column: 1 / -1; }
}

/* Teléfonos y correos no se parten */
html body a[href^="tel:"], html body a[href^="mailto:"] { white-space: nowrap; }

/* Tarjetas de programas: "Más detalles" siempre alineado abajo */
html body .kns-prog-card > .kns-prog-body { flex-grow: 1; }
html body .kns-prog-card > .kns-prog-body > .kns-prog-more { margin-top: auto; padding-top: 8px; }

/* Títulos grandes: espacio para tildes (Ñ, Á) entre renglones */
html body .kns-display, html body .kns-h1, html body .kns-h2 { line-height: 1.12; }
/* Datos del hero (Edad · Duración · Días): etiquetas alineadas aunque un valor ocupe dos renglones */
html body .kns-facts { align-items: end; }
