/* KFRAME · Blog de la agencia — hoja compartida (2026-10-09, v2)
 * Estética de la landing de kframe.ar: Poppins 700 sentence-case, Roboto para
 * texto, navy/marfil planos (azul fondo3 sólo en el contacto), material real,
 * trazos a mano y el rosa como acento que se gana. Variables desde /tokens.css.
 *
 * Movimiento: la composición FINAL es el estado base. Bajo .kf-js cada escena
 * arranca en su estado inicial y avanza por fases (.is-revealed, .is-count…)
 * que agrega blog.js. Nada atado al scroll, nada que tocar, y nunca dos textos
 * en el mismo lugar a la vez: lo que sale termina antes de que entre lo nuevo. */

:root {
  --kf-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --kf-spring-dur: 640ms;
  --kf-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --kf-card: var(--color-flash-paper);
  --kf-line-dark: color-mix(in oklch, var(--color-kf-light) 12%, transparent);
  --kf-on-dark-muted: color-mix(in oklch, var(--color-kf-light) 62%, transparent);
  --kf-pink-ui: rgb(255 42 111);          /* el rosa de los botones de la landing */
  --kf-club-cream: oklch(95% 0.035 85);   /* crema de KFRAME Club */
  --fn-captar: var(--color-kf-pink);
  --fn-educar: var(--color-flash-blue);
  --fn-confianza: var(--color-flash-purple);
  --fn-accion: var(--color-flash-yellow);
  --font-kf-hand: "Kalam", "Poppins", cursive;
  --font-kf-social: "Archivo", "Poppins", sans-serif;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* Resorte críticamente amortiguado (respuesta ≈ 0,45 s, sin rebote). */
    --kf-spring: linear(0, 0.07 5%, 0.213 10%, 0.37 15%, 0.513 20%, 0.633 25%,
      0.729 30%, 0.802 35%, 0.858 40%, 0.898 45%, 0.928 50%, 0.965 60%,
      0.983 70%, 0.992 80%, 0.996 90%, 1);
  }
}

/* ---- Base ---- */
.kf-blog {
  margin: 0;
  background: var(--color-kf-paper);
  color: var(--color-kf-ink);
  font-family: var(--font-kf-body);
  font-size: var(--text-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.kf-blog *,
.kf-blog *::before,
.kf-blog *::after { box-sizing: border-box; }
.kf-blog img { max-width: 100%; }
.kf-blog :focus-visible {
  outline: 2px solid var(--color-kf-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Nav: el mismo de la landing (styles.css: .topbar / .menu / .nav-toggle),
 *      con «Blog» agregado. Fijo arriba, translúcido, con la muesca y la trama. ---- */
.kf-blog { --topbar-height: 76px; }
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: var(--topbar-height);
  color: #fff;
  isolation: isolate;
  pointer-events: none;
}
.topbar__shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--topbar-height);
  margin-top: -10px;
  padding: 0 32px;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(5, 7, 20, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
@supports ((-webkit-mask-image: url("")) or (mask-image: url(""))) {
  .topbar__shell {
    border-radius: 0;
    -webkit-mask-image: url("/assets/img/notch-snosotros.svg");
    mask-image: url("/assets/img/notch-snosotros.svg");
    -webkit-mask-size: auto 100%;
    mask-size: auto 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: 20% top;
    mask-position: 20% top;
  }
}
.topbar__shell::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.22) 1px, transparent 0);
  background-size: 14px 14px;
  opacity: 0.08;
  content: "";
  pointer-events: none;
}
.topbar__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(130px, 14vw, 220px) 0 0;
}
.brand { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; }
.brand__logo { display: block; width: auto; height: 40px; }
.menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  min-width: 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.menu a {
  padding: 8px 12px;
  background: transparent;
  color: #f2f2f2;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}
.menu a:not(.menu__cta):hover,
.menu a:not(.menu__cta):focus-visible,
.menu a[aria-current] { color: #fff; }
.menu__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 12px !important;
  background: #ed1b76 !important;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.menu__cta:hover { background: #fff !important; color: #0b0b1c; transform: translateY(-1px) scale(1.01); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.36); }
.menu__access { display: none; }
.nav-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span { width: 100%; height: 3px; border-radius: 2px; background: #fff; transform-origin: center; transition: transform 180ms ease, opacity 160ms ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
@media (max-width: 1024px) {
  .topbar__shell {
    margin-top: 0;
    padding: 0 14px;
    overflow: visible;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
    background: rgba(6, 8, 20, 0.78);
  }
  .topbar__content { justify-content: space-between; gap: 10px; width: 100%; padding: 0; }
  .brand { z-index: 2; min-width: 44px; }
  .brand__logo { height: 34px; max-width: 100%; object-fit: contain; }
  .menu {
    position: fixed;
    z-index: 120;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    width: min(84vw, 340px);
    height: 100svh;
    padding: 92px 16px 22px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 8, 21, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 220ms ease, opacity 160ms ease;
  }
  .menu.is-open { opacity: 1; transform: translateX(0); pointer-events: auto; }
  .menu a { width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
  .menu a[aria-current] { background: rgba(255, 255, 255, 0.06); text-decoration: none; }
  .menu__access { display: inline-flex; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.06); }
  .menu__cta { width: 100%; margin-top: 6px; padding: 12px 14px; }
  .nav-toggle { z-index: 121; display: flex; margin-left: auto; }
  .kf-blog.menu-open { overflow: hidden; }
}
/* Escritorio: mismos ajustes que la landing (styles.css ≥1025 y 1025–1280):
   el contenido se alinea con la pestaña de la máscara (padding 20 %). */
@media (min-width: 1025px) {
  .topbar__content { padding-left: max(24px, 20%); padding-right: clamp(28px, 3vw, 64px); gap: clamp(10px, 1vw, 16px); }
  .brand { position: static; z-index: 2; flex: 0 0 auto; min-width: 0; margin-left: -145px; margin-right: 64px; }
  .brand__logo { width: auto; height: clamp(30px, 2vw, 38px); }
  .menu { gap: clamp(18px, 1.7vw, 26px); margin-left: -34px; }   /* landing: 22–32 px; un link más (Blog) */
  .menu a { padding: 8px 8px; font-size: 14px; }
  .menu__cta { padding: 11px 16px; }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  .topbar__content { padding-left: max(20px, 10%); padding-right: 24px; gap: 12px; }
  .brand { margin-left: -72px; margin-right: 34px; }
  .menu { gap: 16px; margin-left: -10px; }
  .menu a { padding-inline: 6px; font-size: 13px; }
}
@media (max-width: 640px) { .menu { width: min(86vw, 320px); } }
@media (max-width: 420px) { .topbar__shell { padding: 0 10px; } }
.kf-brand { display: inline-flex; flex: none; }
.kf-brand img { width: 36px; height: 36px; display: block; }

/* ---- Grilla por capítulos: un solo borde para texto y escenas ---- */
.kf-chapter {
  --gutter: clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [ancho-start] minmax(0, calc((960px - 720px) / 2))
    [texto-start] minmax(0, 720px) [texto-end]
    minmax(0, calc((960px - 720px) / 2)) [ancho-end]
    minmax(var(--gutter), 1fr) [full-end];
  padding-block: clamp(56px, 9vw, 120px);
}
.kf-chapter > *         { grid-column: texto; }
.kf-chapter > .kf-ancho { grid-column: ancho; }
.kf-chapter--navy { background: var(--color-kf-navy); color: var(--color-kf-light); }
/* Dos capítulos marfil seguidos no suman su aire: si no, queda un hueco muerto. */
.kf-chapter:not(.kf-chapter--navy) + .kf-chapter:not(.kf-chapter--navy) { padding-top: 0; }
.kf-muted { color: var(--color-kf-muted); }
.kf-chapter--navy .kf-muted { color: var(--kf-on-dark-muted); }

/* ---- Títulos (replica type.css de la landing) ---- */
.kf-eyebrow {
  margin: 0 0 var(--space-md);
  color: var(--color-kf-pink);
  font-family: var(--font-kf-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kf-display {
  margin: 0;
  font-family: var(--font-kf-display);
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.kf-h2 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-kf-display);
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.kf-dek {
  max-width: 38ch;
  margin: var(--space-lg) 0 0;
  color: color-mix(in oklch, currentColor 82%, transparent);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.5;
}
.kf-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid color-mix(in oklch, var(--color-kf-light) 18%, transparent);
  color: var(--kf-on-dark-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.kf-scene-label {          /* lo que muestra la escena, en una línea */
  margin: 0 0 var(--space-lg);
  color: var(--kf-on-dark-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.kf-caption {              /* aclaración honesta, en voz humana (como en Club) */
  margin: var(--space-lg) 0 0;
  color: var(--kf-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.kf-hand { font-family: var(--font-kf-hand); font-weight: 700; line-height: 1; }

/* ---- Trazo a mano que se dibuja solo ----
 * El SVG conserva su proporción (alto automático) para que el trazo escale
 * parejo y pathLength=1 represente el largo real: así se dibuja completo. */
.kf-draw { position: absolute; height: auto; overflow: visible; pointer-events: none; }
.kf-draw path {
  fill: none;
  stroke: var(--color-kf-pink);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 700ms var(--kf-draw);
}

/* ---- Aparición genérica ---- */
[data-kf-reveal] { transition: opacity 700ms var(--ease-out), translate var(--kf-spring-dur) var(--kf-spring); }
.kf-js [data-kf-reveal]:not([data-kf-reveal="stagger"]):not(.is-revealed) { opacity: 0; translate: 0 18px; }
[data-kf-reveal="stagger"] > * {
  transition: opacity 600ms var(--ease-out), translate var(--kf-spring-dur) var(--kf-spring);
  transition-delay: calc(var(--kf-i, 0) * 90ms);
}
.kf-js [data-kf-reveal="stagger"]:not(.is-revealed) > * { opacity: 0; translate: 0 14px; }

@keyframes kf-drift { from { translate: 0 0; } to { translate: 0 -4px; } }

/* ========================================================================
 * PORTADA · «el número que pierde»
 * Dos Reels de la misma cuenta. Primero suben las reproducciones (el trend
 * aplasta al otro); después aparece lo que pedía cada uno: consultas.
 * ===================================================================== */
.kf-cover { padding-block: calc(var(--topbar-height) + clamp(28px, 5vw, 72px)) clamp(56px, 8vw, 104px); }
.kf-cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.kf-underline {
  display: block;
  width: min(72%, 20rem);
  height: auto;
  margin-top: var(--space-sm);
  clip-path: inset(0 0 0 0);
  transition: clip-path 850ms var(--kf-draw) 450ms;
}
.kf-js .kf-cover__copy:not(.is-revealed) .kf-underline { clip-path: inset(0 100% 0 0); }

.kf-reels { margin: 0; }
.kf-reels__stage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; }
.kf-reel {
  --tilt: -3deg;
  --tilt-in: -4deg;
  position: relative;
  rotate: var(--tilt);
  transition:
    opacity 450ms var(--ease-out),
    translate var(--kf-spring-dur) var(--kf-spring),
    rotate var(--kf-spring-dur) var(--kf-spring);
  transition-delay: calc(var(--kf-i, 0) * 120ms);
}
.kf-reel--b { --tilt: 2.5deg; --tilt-in: 6deg; margin-top: clamp(24px, 4vw, 48px); }
.kf-js .kf-reels:not(.is-revealed) .kf-reel { opacity: 0; translate: 0 40px; rotate: calc(var(--tilt) + var(--tilt-in)); }
.kf-reels.is-idle .kf-reel--a { animation: kf-drift 6.5s var(--ease-in-out) infinite alternate; }
.kf-reels.is-idle .kf-reel--b { animation: kf-drift 7.5s var(--ease-in-out) -2s infinite alternate; }
.kf-reel__note { display: block; margin: 0 0 8px 4px; color: var(--kf-on-dark-muted); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.kf-reel__frame {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: var(--kf-card);
  box-shadow: 0 24px 48px oklch(8% 0.02 285 / 0.55);
  transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-out);
}
.kf-reel__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 700ms var(--ease-out), filter 700ms var(--ease-out); }
.kf-reel__frame::after {   /* lectura del texto sobre la foto, sin brillos */
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to top, oklch(10% 0.02 285 / 0.75), transparent);
  content: "";
}
.kf-reel__caption {        /* titular del Reel: texto con fondo, como en Instagram */
  position: absolute;
  z-index: 1;
  top: 9%;
  right: 6%;
  left: 6%;
  font-family: var(--font-kf-social);
  font-size: 11.5cqi;       /* escala con el ancho del Reel, no de la pantalla */
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.16;
  text-align: center;
  text-transform: uppercase;
}
.kf-reel__caption span {
  padding: 0.05em 0.28em;
  border-radius: 4px;
  background: var(--color-kf-light);
  color: var(--color-kf-ink);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.kf-reel__views {          /* el contador de reproducciones de Instagram */
  position: absolute;
  z-index: 1;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-kf-light);
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px oklch(8% 0.02 285 / 0.8);
}
.kf-reel__views svg { width: 13px; height: 13px; }
.kf-reel__result {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: var(--space-md) 0 0 4px;
  color: var(--kf-on-dark-muted);
  font-size: var(--text-sm);
  font-weight: 700;
  transition: opacity 500ms var(--ease-out), translate var(--kf-spring-dur) var(--kf-spring);
}
.kf-reel__result strong {
  position: relative;
  color: var(--color-kf-light);
  font-family: var(--font-kf-display);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}
.kf-reel--a .kf-reel__result strong { color: var(--kf-on-dark-muted); }
.kf-reel--b .kf-reel__result { gap: 22px; margin-left: 14px; color: var(--color-kf-light); transition-delay: 280ms; }
.kf-reel--b .kf-reel__result strong { color: var(--color-kf-pink); }
.kf-reel__result .kf-draw { left: -58%; top: -38%; width: 216%; }
.kf-reel--a .kf-reel__frame img { opacity: 0.4; filter: saturate(0.4); }
.kf-js .kf-reels:not(.is-result) .kf-reel__result { opacity: 0; translate: 0 12px; }
.kf-js .kf-reels:not(.is-result) .kf-reel--a .kf-reel__frame img { opacity: 1; filter: none; }
.kf-js .kf-reels:not(.is-mark) .kf-reel__result path { stroke-dashoffset: 1; }
.kf-reels .kf-caption { margin-top: var(--space-xl); }

/* ========================================================================
 * PROSA
 * ===================================================================== */
.kf-prose > * { grid-column: texto; }
.kf-prose p { max-width: 64ch; margin: 0; }
.kf-prose p + p,
.kf-prose .kf-goals + p { margin-top: var(--space-md); }
.kf-prose .kf-h2 { max-width: 22ch; }
.kf-prose .kf-h2:not(:first-child) { margin-top: clamp(56px, 8vw, 96px); }
.kf-bridge {
  max-width: 46ch;
  margin-top: var(--space-xl) !important;
  padding-top: var(--space-md);
  border-top: var(--rule-hairline);
  color: var(--color-kf-muted);
  font-weight: 700;
}
.kf-goals { margin: var(--space-xl) 0; padding: 0; }
.kf-goals > div {
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: var(--rule-hairline);
}
.kf-goals > div:last-child { border-bottom: var(--rule-hairline); }
.kf-goals dt { font-family: var(--font-kf-display); font-weight: 700; line-height: 1.3; }
.kf-goals dd { margin: 0; color: var(--color-kf-muted); line-height: 1.45; }
.kf-pull {
  max-width: 24ch !important;
  margin-top: var(--space-xl) !important;
  font-family: var(--font-kf-display);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ========================================================================
 * PLANIFICACIÓN · «de la semana al mes»
 * El chip «No sé qué publicar.» es el de la landing. La semana se llena,
 * el chip queda tachado y la semana se pliega en la primera fila de un mes
 * con su grabación, sus fechas y las campañas de KFRAME Club.
 * ===================================================================== */
.kf-plan { position: relative; margin: clamp(36px, 5vw, 60px) 0 0; padding-top: 34px; }
.kf-need {
  position: absolute;
  z-index: 3;
  top: 0;
  left: -10px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 52px;
  padding: var(--space-sm) var(--space-md);
  border: var(--rule-hairline);
  border-radius: var(--radius-control);
  background: var(--color-kf-light);
  color: var(--color-kf-muted);
  box-shadow: 0 8px 22px oklch(8% 0.02 285 / 0.4);
  font-family: var(--font-kf-display);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  rotate: -3deg;
  white-space: nowrap;
  transition: color 500ms var(--ease-out), opacity var(--kf-spring-dur) var(--kf-spring), translate var(--kf-spring-dur) var(--kf-spring);
}
.kf-need > svg { width: 18px; height: 18px; flex: none; color: var(--color-kf-pink); }
.kf-need__text { position: relative; }
.kf-need .kf-draw { left: -5%; top: 22%; width: 110%; }
.kf-js .kf-plan:not(.is-revealed) .kf-need { opacity: 0; translate: 0 -16px; }
.kf-js .kf-plan:not(.is-strike) .kf-need { color: var(--color-kf-ink); }
.kf-js .kf-plan:not(.is-strike) .kf-need path { stroke-dashoffset: 1; }
.kf-plan.is-idle .kf-need { animation: kf-drift 7s var(--ease-in-out) infinite alternate; }

.kf-cal {
  padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid var(--kf-line-dark);
  border-radius: 20px;
  background: var(--kf-card);
  box-shadow: 0 26px 60px oklch(6% 0.02 285 / 0.5);
  transition: opacity 600ms var(--ease-out), translate var(--kf-spring-dur) var(--kf-spring);
}
.kf-js .kf-plan:not(.is-revealed) .kf-cal { opacity: 0; translate: 0 30px; }
.kf-cal__title { display: grid; margin: 0 0 var(--space-md); }
.kf-cal__title span {
  grid-area: 1 / 1;
  font-family: var(--font-kf-display);
  font-size: var(--text-base);
  font-weight: 700;
  transition: opacity 260ms var(--ease-out);
}
.kf-cal__body { display: grid; }
.kf-cal__body > * { grid-area: 1 / 1; min-width: 0; }

/* Vista semana */
.kf-weekview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
  transform-origin: 50% 0;
  transition: opacity 300ms var(--ease-in), scale 420ms var(--ease-in);
}
.kf-wday { min-width: 0; }
.kf-wday__name {
  display: block;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--kf-line-dark);
  color: var(--kf-on-dark-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.kf-slot { position: relative; min-height: 13rem; border: 1px dashed color-mix(in oklch, var(--color-kf-light) 18%, transparent); border-radius: 12px; }
.kf-wpiece {
  position: absolute;
  inset: -1px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 9px;
  border-radius: 12px;
  border-left: 3px solid var(--fn);
  background: var(--color-kf-navy-raised);
  transition: opacity 400ms var(--ease-out), translate var(--kf-spring-dur) var(--kf-spring), scale var(--kf-spring-dur) var(--kf-spring);
  transition-delay: calc(var(--kf-i, 0) * 200ms);
}
.kf-wpiece--rec { border-left: 0; background: var(--color-kf-light); color: var(--color-kf-ink); }
.kf-wpiece__type { color: var(--fn); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kf-wpiece--rec .kf-wpiece__type { display: inline-flex; align-items: center; gap: 5px; color: var(--color-kf-ink); }
.kf-wpiece--rec .kf-wpiece__type svg { width: 13px; height: 13px; }
.kf-wpiece__title { color: var(--color-kf-light); font-family: var(--font-kf-display); font-size: clamp(0.74rem, 1.1vw, 0.84rem); font-weight: 600; line-height: 1.22; overflow-wrap: break-word; }
.kf-wpiece--rec .kf-wpiece__title { color: var(--color-kf-ink); }
.kf-wpiece__fn { margin-top: auto; color: var(--kf-on-dark-muted); font-size: 0.62rem; font-weight: 700; }
.kf-wpiece--rec .kf-wpiece__fn { color: var(--color-kf-muted); }
.kf-js .kf-plan:not(.is-fill) .kf-wpiece { opacity: 0; translate: 0 -16px; scale: 0.94; }

/* Vista mes (estado final). Cada fila baja desde la primera: el mes se
 * despliega desde la semana que ya armaste. */
.kf-monthview { transition: opacity 360ms var(--ease-out) 240ms; }
.kf-mhead, .kf-mrow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kf-mhead { margin-bottom: 6px; color: var(--kf-on-dark-muted); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.12em; }
.kf-mrow {
  margin-top: 6px;
  transition: opacity 420ms var(--ease-out), translate var(--kf-spring-dur) var(--kf-spring);
  transition-delay: calc(260ms + var(--row, 0) * 90ms);
}
.kf-mcell {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 3rem;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--color-kf-light) 3%, transparent);
}
.kf-mcell__n { color: var(--kf-on-dark-muted); font-size: 0.62rem; font-weight: 700; line-height: 1; }
.kf-mcell--hol { background: color-mix(in oklch, var(--color-kf-pink) 14%, transparent); }
.kf-mcell--hol .kf-mcell__n { color: var(--color-kf-pink); }
.kf-mcell__tag { color: var(--color-kf-pink); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.1; }
.kf-mchip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 6px;
  border-left: 3px solid var(--fn);
  background: var(--color-kf-navy-raised);
  color: var(--fn);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 360ms var(--ease-out), scale 480ms var(--kf-spring);
  transition-delay: calc(var(--kf-i, 0) * 55ms);
}
.kf-mchip svg { width: 11px; height: 11px; flex: none; }
.kf-mchip--rec { border-left: 0; background: var(--color-kf-light); color: var(--color-kf-ink); }
.kf-mchip--club { border-left: 0; background: var(--kf-club-cream); color: var(--kf-pink-ui); }
.kf-mcell { container-type: inline-size; }
.kf-mcell__n--mark { position: relative; align-self: flex-start; color: var(--color-kf-pink); }
.kf-mcell__n--mark .kf-draw { left: -75%; top: -62%; width: 250%; }
@container (max-width: 7.2rem) {
  .kf-mchip--rec { justify-content: center; }
  .kf-mchip--rec .kf-mchip__t { display: none; }
}

.kf-weekview { opacity: 0; scale: 1 0.3; visibility: hidden; }
.kf-cal__title span:first-child { opacity: 0; }
.kf-js .kf-plan:not(.is-month) .kf-weekview { opacity: 1; scale: 1; visibility: visible; }
.kf-js .kf-plan:not(.is-month) .kf-cal__title span:first-child { opacity: 1; }
.kf-js .kf-plan:not(.is-month) .kf-cal__title span:last-child { opacity: 0; transition-delay: 0ms; }
.kf-cal__title span:last-child { transition-delay: 260ms; }
.kf-js .kf-plan:not(.is-month) .kf-monthview { opacity: 0; transition-delay: 0ms; }
.kf-js .kf-plan:not(.is-month) .kf-mrow { opacity: 0; translate: 0 calc(var(--row, 0) * -100%); }
.kf-js .kf-plan:not(.is-fill2) .kf-mrow:not(:nth-child(2)) .kf-mchip { opacity: 0; scale: 0.7; }
.kf-js .kf-plan:not(.is-fill2) .kf-mcell--hol { background: color-mix(in oklch, var(--color-kf-light) 3%, transparent); }
.kf-js .kf-plan:not(.is-fill2) .kf-mcell__tag { opacity: 0; }
.kf-mcell--hol, .kf-mcell__tag { transition: background-color 500ms var(--ease-out), opacity 500ms var(--ease-out); }
.kf-js .kf-plan:not(.is-marks) .kf-mcell path { stroke-dashoffset: 1; }
@keyframes kf-shoot {      /* las piezas que salen de la grabación se encienden en cadena */
  0%, 100% { scale: 1; box-shadow: none; }
  40% { scale: 1.12; box-shadow: 0 0 0 2px var(--color-kf-light); }
}
.kf-plan.is-marks [data-shoot] { animation: kf-shoot 620ms var(--ease-out) both; animation-delay: calc(var(--s, 0) * 130ms); }

.kf-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.kf-legend li { display: inline-flex; align-items: center; gap: 7px; color: var(--kf-on-dark-muted); font-size: 0.74rem; font-weight: 700; }
.kf-legend li::before { width: 9px; height: 9px; border-radius: 50%; background: var(--fn); content: ""; }
.kf-legend .is-rec::before { border-radius: 3px; background: var(--color-kf-light); }
.kf-legend .is-club::before { border-radius: 3px; background: var(--kf-club-cream); box-shadow: inset 0 0 0 2px var(--kf-pink-ui); }
.kf-legend .is-hol::before { border-radius: 3px; background: color-mix(in oklch, var(--color-kf-pink) 45%, transparent); }

/* ========================================================================
 * TRABAJOS · reels reales de clientes (los del showcase de la landing).
 * La tira avanza sola; cada video corre sólo mientras está en pantalla.
 * ===================================================================== */
.kf-works {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
  overflow: hidden;
  background: #6a2be6;
  color: #fff;
}
.kf-works::before { position: absolute; inset: 0; background: rgba(11, 11, 28, 0.08); content: ""; pointer-events: none; }
.kf-works__head { position: relative; width: min(960px, 100% - 2 * clamp(20px, 5vw, 64px)); margin: 0 auto clamp(28px, 4vw, 44px); }
.kf-works__head .kf-eyebrow { color: rgba(255, 255, 255, 0.78); }
.kf-works__head .kf-h2 { max-width: 20ch; }
.kf-works__head p:last-child { max-width: 52ch; margin: 0; color: rgba(255, 255, 255, 0.82); }
.kf-works__viewport { position: relative; overflow-x: auto; scrollbar-width: none; cursor: grab; }
.kf-works__viewport::-webkit-scrollbar { display: none; }
.kf-works__viewport.is-dragging { cursor: grabbing; }
.kf-works__track { display: flex; gap: clamp(12px, 1.6vw, 20px); width: max-content; margin: 0; padding: 0 clamp(20px, 5vw, 64px); list-style: none; }
.kf-work { width: clamp(150px, 17vw, 210px); flex: none; }
.kf-work__frame {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: #0b0b1c;
  box-shadow: 0 18px 38px rgba(11, 11, 28, 0.35);
}
.kf-work__frame img,
.kf-work__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kf-work__frame video { opacity: 0; transition: opacity 400ms var(--ease-out); }
.kf-work__frame video.is-on { opacity: 1; }   /* aparece sólo cuando de verdad corre */
.kf-work__client { margin: 10px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kf-work__title { margin: 4px 0 0; font-family: var(--font-kf-display); font-size: 0.92rem; font-weight: 700; line-height: 1.25; }
.kf-works__more { position: relative; width: min(960px, 100% - 2 * clamp(20px, 5vw, 64px)); margin: clamp(24px, 3vw, 36px) auto 0; }
.kf-works__more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
  color: #fff;
  font-size: 14.4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.kf-works__more a:hover { background: rgba(255, 255, 255, 0.12); }
.kf-works__more a:active { transform: scale(0.97); }

/* ========================================================================
 * FECHAS DEL MES + puente a Club
 * ===================================================================== */
.kf-dates { margin: var(--space-xl) 0 0; padding: 0; list-style: none; }
.kf-dates li {
  display: grid;
  grid-template-columns: 6.6rem minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
  padding: var(--space-md) 0;
  border-top: var(--rule-hairline);
}
.kf-dates li:last-child { border-bottom: var(--rule-hairline); }
.kf-dates time { display: flex; flex-direction: column; color: var(--color-kf-pink); }
.kf-dates time strong { font-family: var(--font-kf-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; white-space: nowrap; }
.kf-dates time strong.is-range { font-size: clamp(1.35rem, 2.6vw, 1.95rem); }
.kf-dates time span { margin-top: var(--space-xs); font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.kf-dates h3 { margin: 0; font-family: var(--font-kf-display); font-size: clamp(1rem, 1.65vw, 1.2rem); font-weight: 700; line-height: 1.15; }
.kf-dates h3 em {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--kf-club-cream);
  color: var(--kf-pink-ui);
  font-family: var(--font-kf-body);
  font-size: 0.62rem;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.kf-dates p { max-width: 52ch; margin: var(--space-xs) 0 0 !important; color: var(--color-kf-muted); font-size: var(--text-sm); line-height: 1.45; }
.kf-club-bridge { max-width: 46ch; margin-top: var(--space-xl) !important; color: var(--color-kf-muted); }
.kf-club-bridge a { color: var(--color-kf-ink); font-weight: 700; text-decoration-color: var(--kf-pink-ui); text-decoration-thickness: 2px; text-underline-offset: 4px; white-space: nowrap; }
.kf-club-bridge a:hover { color: var(--kf-pink-ui); }

/* ---- Para llevarte hoy ---- */
.kf-take { margin: var(--space-xl) 0 0; padding: 0; list-style: none; counter-reset: kf-take; }
.kf-take li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: var(--rule-hairline);
  font-family: var(--font-kf-display);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
}
.kf-take li:last-child { border-bottom: var(--rule-hairline); }
.kf-take li::before {
  counter-increment: kf-take;
  content: counter(kf-take);
  color: var(--color-kf-pink);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1;
}
.kf-sign { margin-top: var(--space-xl) !important; color: var(--color-kf-muted); font-size: var(--text-sm); }

/* ========================================================================
 * CONTACTO · el bloque #contacto de la landing, tal cual
 * ===================================================================== */
.kf-contact {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 64px);
  background: #3b5bf0 center / cover no-repeat;
  background-image: image-set(
    url("/assets/img/optimized/fondo3.avif") type("image/avif"),
    url("/assets/img/optimized/fondo3.webp") type("image/webp"),
    url("/assets/img/fondo3.png") type("image/png"));
  color: var(--color-kf-light);
  text-align: center;
}
.kf-contact__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 1080px; margin: 0 auto; }
.kf-contact__eyebrow { margin: 0; font-family: var(--font-kf-display); font-size: 14px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; }
.kf-contact__title {
  margin: 0;
  font-family: var(--font-kf-display);
  font-size: clamp(2.4rem, 4.8vw, 4.3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.kf-contact__actions { display: grid; gap: 12px; width: 100%; max-width: 420px; }
.kf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-kf-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: filter var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.kf-btn:hover { filter: brightness(1.06); }
.kf-btn:active { transform: scale(0.97); }
.kf-btn--wpp { background: rgb(30 190 108); }
.kf-btn--mail { background: rgb(244 67 54); }

/* ---- Footer ---- */
.kf-foot { padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 64px); background: var(--color-kf-navy); color: var(--kf-on-dark-muted); font-size: var(--text-sm); }
.kf-foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md) var(--space-xl); max-width: 960px; margin: 0 auto; }
.kf-foot p { margin: 0; }
.kf-foot nav { display: flex; gap: var(--space-lg); margin-left: auto; }
.kf-foot a { color: var(--color-kf-light); text-decoration: none; }
.kf-foot a:hover { color: var(--color-kf-pink); }

/* ========================================================================
 * ÍNDICE DEL BLOG
 * ===================================================================== */
.kf-index-hero { padding-block: calc(var(--topbar-height) + clamp(32px, 6vw, 80px)) clamp(36px, 6vw, 64px); }
.kf-index-hero .kf-dek { max-width: 46ch; }
.kf-index-list { padding-block: clamp(28px, 4vw, 48px) clamp(56px, 9vw, 120px); row-gap: clamp(24px, 4vw, 40px); }
.kf-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-radius: var(--radius-large);
  background: var(--color-kf-navy);
  color: var(--color-kf-light);
  text-decoration: none;
  transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.kf-card:hover { transform: translateY(-2px); box-shadow: 0 24px 48px oklch(8% 0.02 285 / 0.4); }
.kf-card__cover { overflow: hidden; border-radius: 14px; }
.kf-card__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.kf-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 var(--space-sm); color: var(--kf-on-dark-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.kf-card__meta span:first-child { color: var(--color-kf-pink); }
.kf-card__title { margin: 0; font-family: var(--font-kf-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }
.kf-card__excerpt { max-width: 48ch; margin: var(--space-md) 0 0; color: color-mix(in oklch, var(--color-kf-light) 82%, transparent); line-height: 1.5; }
.kf-card__cta { display: inline-flex; gap: 6px; margin-top: var(--space-lg); color: var(--color-kf-pink); font-family: var(--font-kf-display); font-weight: 700; }
@media (max-width: 760px) {
  .kf-card { grid-template-columns: 1fr; }
}

/* ========================================================================
 * Responsive
 * ===================================================================== */
@media (max-width: 900px) {
  .kf-cover__grid { grid-template-columns: 1fr; }
  .kf-reels { max-width: 520px; }
}
@media (max-width: 760px) {
  .kf-chapter {
    grid-template-columns:
      [full-start] var(--gutter)
      [ancho-start texto-start] minmax(0, 1fr) [texto-end ancho-end]
      var(--gutter) [full-end];
    padding-block: clamp(44px, 11vw, 72px);
  }
  .kf-cover { padding-top: calc(var(--topbar-height) + 32px); }   /* que el nav fijo no tape la portada */
  /* La semana pasa a lista: siete columnas no dejan leer los títulos. */
  .kf-weekview { grid-template-columns: 1fr; gap: 6px; }
  .kf-wday { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); align-items: stretch; gap: 8px; }
  .kf-wday__name { display: flex; align-items: center; margin: 0; padding: 0; border: 0; }
  .kf-wday--off { display: none; }
  .kf-slot { min-height: 2.9rem; }
  .kf-wpiece { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 7px 10px; }
  .kf-wpiece__title { flex: 1 1 60%; }
  .kf-wpiece__fn { margin: 0; }
  .kf-mchip { justify-content: center; padding: 0; font-size: 0; }
  .kf-mchip svg { width: 12px; height: 12px; }
  .kf-mcell { min-height: 4rem; padding: 4px 3px; }
  .kf-mcell__tag { display: none; }
  .kf-goals > div { grid-template-columns: 1fr; gap: 2px; }
  .kf-dates li { grid-template-columns: 4.6rem minmax(0, 1fr); gap: var(--space-md); }
}
@media (max-width: 560px) {
  .kf-plan { padding-top: 0; }
  .kf-need { position: relative; left: 0; margin: 0 0 -14px 6px; }
  .kf-foot nav { margin-left: 0; }
}

/* Red de seguridad: si el sistema pide menos movimiento, nada transiciona. */
@media (prefers-reduced-motion: reduce) {
  .kf-blog *,
  .kf-blog *::before,
  .kf-blog *::after { transition: none !important; animation: none !important; }
}
