/* ============================================================================
   KATSU FITNESS - katsufitness.cl (sitio estático)
   Hoja de estilos única. Tokens de GL-005 (Team Knowledge/Guidelines/GL-005-katsu-design-system.md).
   Cada variable lleva al lado el nombre del token de GL-005. NO agregar colores ni tamaños
   sueltos: si falta un token, se pide a Iris (ver README, sección "Huecos de diseño").
   Origen de los estilos: landings 2026-07-30 y bloques de planes/horarios rev. 7 (aprobados por Vera),
   unificados en una sola hoja. Montserrat autoalojada (OFL), sin Google Fonts.
   ========================================================================= */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Color - GL-005 §2 */
  --k-bg: #000000;                    /* color_bg_dark */
  --k-surface: #111111;               /* color_surface_elevated */
  --k-text: #ffffff;                  /* color_text_primary */
  --k-muted: rgba(255, 255, 255, 0.70); /* color_text_muted */
  --k-accent: #1a9bd5;                /* color_accent_cyan */
  --k-on-accent: #001722;             /* texto sobre el botón cyan (patrón vigente de las landings, no es token GL-005) */
  --k-wa: #25d366;                    /* verde WhatsApp, solo el ícono (patrón vigente) */
  /* Hairlines: patrón vigente de las landings (no son tokens GL-005) */
  --k-hairline: rgba(255, 255, 255, 0.08);
  --k-border: rgba(255, 255, 255, 0.06);
  /* Tipografía - GL-005 §3 (Montserrat = body/UI/web; sustituye a Eurostile en web, ver README) */
  --k-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Radios - GL-005 §8 */
  --k-r-xs: 2px;                      /* radius_xs */
  --k-r-sm: 4px;                      /* radius_sm */
  --k-r-md: 6px;                      /* radius_md */
  /* Espaciado - GL-005 §5 (base 8px) */
  --k-s-xs: 4px;                      /* space_xs */
  --k-s-sm: 8px;                      /* space_sm */
  --k-s-md: 16px;                     /* space_md */
  --k-s-lg: 24px;                     /* space_lg */
  --k-s-xl: 48px;                     /* space_xl */
  --k-s-2xl: 64px;                    /* space_2xl */
  /* Movimiento - GL-005 §9 */
  --k-dur-base: 180ms;                /* dur_base */
  --k-ease: cubic-bezier(0.4, 0, 0.2, 1); /* ease_snap */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--k-bg); color: var(--k-text);
  font-family: var(--k-font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, table { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[id] { scroll-margin-top: var(--k-s-lg); }

/* Accesibilidad: foco visible y salto al contenido */
:focus-visible { outline: 3px solid var(--k-text); outline-offset: 3px; }
.k-cta:focus-visible { outline-color: var(--k-text); }
.k-skip {
  position: absolute; left: var(--k-s-md); top: -100px; z-index: 10;
  background: var(--k-text); color: var(--k-bg); padding: var(--k-s-sm) var(--k-s-md);
  border-radius: var(--k-r-sm); font-weight: 600; text-decoration: none;
}
.k-skip:focus { top: var(--k-s-md); }
.k-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */
.k-wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--k-s-lg); }
@media (min-width: 1024px) { .k-wrap { padding: 0 var(--k-s-xl); } }
.k-section { padding: 56px 0; border-top: 1px solid var(--k-hairline); }

/* Barra superior */
.k-top { padding: var(--k-s-md) 0; }
.k-top .k-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--k-s-md); flex-wrap: wrap; }
.k-top--center .k-wrap { justify-content: center; }
.k-logo { width: 132px; height: auto; }
.k-nav ul { display: flex; flex-wrap: wrap; gap: var(--k-s-xs) var(--k-s-lg); }
.k-nav a {
  display: inline-block; padding: var(--k-s-sm) 0; min-height: 24px;
  color: var(--k-muted); font-size: 14px; font-weight: 600; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.k-nav a:hover { color: var(--k-text); text-decoration: underline; text-underline-offset: 4px; }

/* Titulares: Montserrat 800 en mayúsculas (sustitución oficial de Eurostile en web, pendiente de bendición de Iris) */
h1, h2 { text-transform: uppercase; font-weight: 800; }
h1 { font-size: 30px; line-height: 1.12; letter-spacing: 0.01em; }
h2 { font-size: 24px; line-height: 1.2; letter-spacing: 0.02em; margin-bottom: var(--k-s-lg); }
h3 { font-size: 19px; line-height: 1.25; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: var(--k-s-sm); }
@media (min-width: 768px) { h1 { font-size: 44px; } h2 { font-size: 30px; } }

.k-eyebrow {
  display: inline-block; margin-bottom: var(--k-s-md);
  font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--k-accent);
}
.k-lead { color: var(--k-muted); max-width: 68ch; margin-bottom: 28px; }
.k-note { color: var(--k-muted); font-size: 13px; }

/* Hero */
.k-hero { padding: var(--k-s-2xl) 0 56px; text-align: center; }
.k-hero h1 { max-width: 16ch; margin: 0 auto var(--k-s-md); }
@media (min-width: 768px) { .k-hero h1 { max-width: 22ch; } }
.k-sub { color: var(--k-muted); font-size: 17px; max-width: 52ch; margin: 0 auto 28px; }
.k-addr { color: var(--k-muted); font-size: 15px; margin-bottom: 28px; }
.k-addr strong { color: var(--k-text); font-weight: 600; }

/* Hero con foto (home) */
.k-hero--photo { position: relative; isolation: isolate; overflow: hidden; }
.k-hero--photo > picture, .k-hero--photo > picture img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.k-hero--photo > picture img { object-fit: cover; }
.k-hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.80) 50%, rgba(0, 0, 0, 0.92) 100%);
}

/* CTA */
.k-cta-block { display: flex; flex-direction: column; align-items: center; }
.k-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--k-accent); color: var(--k-on-accent); text-decoration: none;
  font-weight: 800; font-size: 17px; padding: 14px 30px; border-radius: var(--k-r-sm);
  text-transform: uppercase; letter-spacing: 0.02em;
  transition: transform var(--k-dur-base) var(--k-ease), filter var(--k-dur-base) var(--k-ease);
}
.k-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.k-cta-note { display: block; color: var(--k-muted); font-size: 13px; margin-top: 12px; }
.k-cta-wa {
  display: inline-flex; align-items: center; gap: var(--k-s-sm); min-height: 44px; margin-top: var(--k-s-sm);
  color: var(--k-muted); text-decoration: none; font-size: 15px; font-weight: 600;
  transition: color var(--k-dur-base) var(--k-ease);
}
.k-cta-wa:hover { color: var(--k-text); text-decoration: underline; text-underline-offset: 3px; }
.k-cta-wa svg { width: 18px; height: 18px; flex: none; color: var(--k-wa); }

/* Tarjetas y listas */
.k-grid { display: grid; grid-template-columns: 1fr; gap: var(--k-s-md); }
@media (min-width: 768px) { .k-grid { grid-template-columns: 1fr 1fr; } }
.k-card { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r-md); padding: var(--k-s-lg); }
.k-card p { color: var(--k-muted); font-size: 15px; }
.k-tag { color: var(--k-accent); }

.k-why { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .k-why { grid-template-columns: 1fr 1fr; } }
.k-why li { display: flex; gap: 12px; align-items: flex-start; }
.k-why li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 7px; background: var(--k-accent); border-radius: var(--k-r-xs); }
.k-why strong { font-weight: 600; }
.k-why span { color: var(--k-muted); }
.k-why--stack { grid-template-columns: 1fr; }
.k-line { flex: 1; line-height: 1.45; }

/* Mapa / cómo llegar */
.k-map-wrap { display: grid; grid-template-columns: 1fr; gap: var(--k-s-lg); align-items: start; }
@media (min-width: 768px) { .k-map-wrap { grid-template-columns: 1fr 1fr; } }
.k-map-wrap iframe { width: 100%; min-height: 300px; border: 0; border-radius: var(--k-r-md); filter: grayscale(0.25) contrast(1.05); }
.k-info p { margin-bottom: 12px; color: var(--k-muted); font-size: 15px; }
.k-info p strong { color: var(--k-text); font-weight: 600; }
.k-info a { color: var(--k-accent); text-underline-offset: 3px; }

/* Cierre */
.k-close { text-align: center; }
.k-close h2 { margin-bottom: 12px; }
.k-close p { color: var(--k-muted); max-width: 48ch; margin: 0 auto 28px; }

/* Chip */
.k-chip {
  display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.10em;
  color: var(--k-accent); border: 1px solid var(--k-accent); border-radius: var(--k-r-xs); padding: var(--k-s-xs) var(--k-s-sm);
}
.k-chip-row { margin-bottom: var(--k-s-md); }

/* Planes */
.k-plans { display: grid; grid-template-columns: 1fr; gap: var(--k-s-md); }
@media (min-width: 768px) { .k-plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .k-plans { grid-template-columns: repeat(4, 1fr); } }
.k-plan { display: flex; flex-direction: column; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r-md); padding: var(--k-s-lg); }
.k-plan--entry { border-color: var(--k-accent); }
.k-plan-name { font-size: 14px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--k-muted); margin-bottom: var(--k-s-sm); }
.k-price { font-size: 28px; line-height: 1.05; font-weight: 800; letter-spacing: 0.01em; }
@media (min-width: 768px) { .k-price { font-size: 32px; } }
.k-price-unit { display: block; margin-top: var(--k-s-xs); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--k-muted); }
.k-plan-detail { margin-top: var(--k-s-sm); font-size: 15px; color: var(--k-muted); }
.k-plan-flag { margin-top: auto; padding-top: var(--k-s-md); }
.k-plans-note { margin-top: var(--k-s-md); }

/* Matrícula */
.k-panel { margin-top: var(--k-s-lg); background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-r-md); padding: var(--k-s-lg); }
@media (min-width: 768px) { .k-panel { margin-top: var(--k-s-xl); } }
.k-panel-lead { color: var(--k-muted); max-width: 68ch; margin-bottom: var(--k-s-lg); }
.k-routes { display: grid; grid-template-columns: 1fr; gap: var(--k-s-lg); }
@media (min-width: 768px) { .k-routes { grid-template-columns: 1fr 1fr; } }
.k-route { border-top: 1px solid var(--k-hairline); padding-top: var(--k-s-md); }
.k-route-amount { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: 0.01em; }
.k-route-title { margin-top: var(--k-s-xs); font-weight: 600; }
.k-route-text { margin-top: var(--k-s-sm); color: var(--k-muted); max-width: 60ch; }
.k-panel-note { margin-top: var(--k-s-lg); color: var(--k-muted); }

/* Horarios */
.k-table { width: 100%; max-width: 520px; border-collapse: collapse; }
.k-table th, .k-table td { text-align: left; padding: var(--k-s-md) 0; border-bottom: 1px solid var(--k-hairline); }
.k-table thead th { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--k-muted); padding: 0 0 var(--k-s-sm); }
.k-table tbody th { font-weight: 600; padding-right: var(--k-s-lg); }
.k-table tbody td { white-space: nowrap; }
.k-table tbody td.k-td-long { white-space: normal; }
.k-caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--k-muted); padding-top: var(--k-s-md); }
.k-schedules { display: grid; grid-template-columns: 1fr; gap: var(--k-s-xl); }
@media (min-width: 1024px) { .k-schedules { grid-template-columns: 1fr 1fr; } }

/* Sedes (home) */
.k-sedes { display: grid; grid-template-columns: 1fr; gap: var(--k-s-md); }
@media (min-width: 768px) { .k-sedes { grid-template-columns: 1fr 1fr; } }
.k-sede { display: flex; flex-direction: column; align-items: flex-start; gap: var(--k-s-sm); }
.k-sede h3 { font-size: 22px; margin-bottom: 0; }
.k-sede .k-cta { margin-top: var(--k-s-sm); }
.k-sede a:not(.k-cta) { color: var(--k-accent); text-underline-offset: 3px; }

/* Fundamentos (home) */
.k-start { display: grid; gap: var(--k-s-lg); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1024px) { .k-start { grid-template-columns: 3fr 2fr; } }
.k-card .k-start-price { font-size: 32px; line-height: 1.05; font-weight: 800; color: var(--k-text); }

/* Gracias */
.k-thanks { max-width: 640px; margin: 0 auto; padding: 56px 0; text-align: center; }
.k-thanks p { color: rgba(255, 255, 255, 0.85); font-size: 17px; line-height: 1.65; margin-bottom: 1em; }
.k-thanks h1 { color: var(--k-text); font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; margin-bottom: 22px; }
.k-thanks a { color: var(--k-accent); font-weight: 600; text-underline-offset: 3px; }
.k-back { margin-top: var(--k-s-xl); }
.k-back a { color: var(--k-muted); }

/* Pie */
.k-foot { border-top: 1px solid var(--k-hairline); padding: var(--k-s-xl) 0; color: var(--k-muted); font-size: 14px; }
.k-foot .k-wrap { display: flex; flex-wrap: wrap; gap: var(--k-s-sm) var(--k-s-lg); justify-content: space-between; }
.k-foot a { color: var(--k-muted); text-underline-offset: 3px; }
.k-foot a:hover { color: var(--k-text); }

/* 404 */
.k-404 { padding: var(--k-s-2xl) 0; text-align: center; }
.k-404 p { color: var(--k-muted); max-width: 48ch; margin: 0 auto 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .k-cta, .k-cta-wa { transition: none; }
  .k-cta:hover { transform: none; }
}

/* Sprite SVG inline (ícono de WhatsApp): sin estilos inline, para poder usar una CSP estricta */
.k-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
