/* Kongenita — sitio web */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --k-yellow: #F4C542;
  --k-carbon: #252A32;
  --k-white: #FFFFFF;
  --k-fog: #F3F5F6;
  --k-slate: #65717D;
  --k-line: #DDE2E6;
  --k-yellow-soft: #FDF5D9;
  --k-yellow-ink: #5E4800;
  --k-on-dark-muted: #A9B2BB;

  --gutter: 24px;
  --max: 1240px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--k-white);
  color: var(--k-carbon);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--k-carbon); color: var(--k-white);
  padding: 8px 12px; border-radius: 6px; font-size: 14px; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--k-carbon); outline-offset: 3px; border-radius: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100vh, 1080px);
  min-height: min(100svh, 1080px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px var(--gutter) 28px;
  overflow: hidden;
  isolation: isolate;
}

.sequence {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 72%);
          mask-image: linear-gradient(to bottom, transparent 0%, transparent 46%, #000 72%);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto;
}
.brand img { width: 150px; }

.soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--k-yellow); border-radius: 999px;
  background: var(--k-yellow-soft); color: var(--k-yellow-ink);
  font-size: 13px; font-weight: 600;
}
.soon-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--k-yellow); }

.hero-body {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-top: clamp(40px, 9vh, 112px);
}

h1 {
  font-size: clamp(52px, 10.6vw, 148px);
  line-height: 0.94;
  font-weight: 680;
  letter-spacing: -0.045em;
}
h1 .line { display: block; }

.hero-lead {
  margin-top: clamp(20px, 3vh, 36px);
  max-width: 33em;
  color: var(--k-slate);
  font-size: clamp(16px, 1.35vw, 20px);
}

.hero-note {
  width: 100%; max-width: var(--max); margin: 0 auto;
  font-size: 13px; line-height: 1.45; font-weight: 500;
  color: var(--k-carbon);
}
.hero-note span {
  display: inline-block; background: var(--k-white);
  padding: 8px 12px; margin-left: -12px; border-radius: 6px;
}

@media (min-width: 900px) {
  :root { --gutter: 48px; }
  .hero { padding-top: 32px; padding-bottom: 36px; }
  .brand img { width: 184px; }
  .sequence {
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, transparent 54%, #000 84%);
            mask-image: linear-gradient(100deg, transparent 0%, transparent 54%, #000 84%);
  }
  .hero-note { text-align: right; font-size: 15px; }
  .hero-note span { margin-left: 0; margin-right: -12px; }
}

/* Entrada única al cargar */
@media (prefers-reduced-motion: no-preference) {
  h1 .line, .hero-lead, .hero-note {
    opacity: 0; transform: translateY(8px);
    animation: rise 300ms var(--ease-out) forwards;
  }
  h1 .line:nth-child(2) { animation-delay: 100ms; }
  .hero-lead { animation-delay: 200ms; }
  .hero-note { animation-delay: 300ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Tres disciplinas ---------- */
.pillars {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 12vw, 152px) var(--gutter) clamp(56px, 9vw, 120px);
}
.pillars h2 {
  font-size: 15px; font-weight: 500; color: var(--k-slate);
  margin-bottom: 20px;
}
.pillar {
  display: grid; gap: 8px;
  padding: 28px 0;
  border-top: 1px solid var(--k-line);
}
.pillar:last-child { border-bottom: 1px solid var(--k-line); }
.pillar h3 {
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 1; font-weight: 620; letter-spacing: -0.04em;
}
.pillar p { max-width: 30em; color: var(--k-slate); }

@media (min-width: 900px) {
  .pillar {
    grid-template-columns: 7fr 5fr; align-items: end; gap: 48px;
    padding: 36px 0;
  }
  .pillar p { font-size: 18px; padding-bottom: 8px; }
}

/* ---------- Rigor (sección oscura) ---------- */
.rigor { background: var(--k-carbon); color: var(--k-white); }
.rigor-inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 144px) var(--gutter);
}
.rigor h2 {
  font-size: clamp(38px, 6.6vw, 92px);
  line-height: 1; font-weight: 660; letter-spacing: -0.04em;
  max-width: 13em; text-wrap: balance;
}
.rigor-lead {
  margin-top: 24px; max-width: 34em;
  color: var(--k-on-dark-muted); font-size: clamp(16px, 1.3vw, 19px);
}

.terms { margin-top: clamp(40px, 6vw, 72px); }
.term-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.term-list button {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 500;
  color: var(--k-white); background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  padding: 9px 16px; min-height: 44px;
  transition: background-color 150ms var(--ease-out), border-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.term-list button:hover { border-color: var(--k-white); }
.term-list button[aria-selected="true"] {
  background: var(--k-yellow); border-color: var(--k-yellow); color: var(--k-carbon); font-weight: 600;
}
.term-list button:focus-visible { outline-color: var(--k-yellow); border-radius: 999px; }

.term-def {
  margin-top: 28px; max-width: 24em; min-height: 4.2em;
  font-size: clamp(22px, 2.7vw, 36px);
  line-height: 1.25; font-weight: 500; letter-spacing: -0.02em;
  transition: opacity 150ms var(--ease-out);
}
.term-def.is-changing { opacity: 0; }

/* ---------- Cierre ---------- */
.closing {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(72px, 11vw, 144px) var(--gutter) clamp(56px, 8vw, 104px);
}
.closing h2 {
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.02; font-weight: 650; letter-spacing: -0.04em;
  max-width: 12em; text-wrap: balance;
}
.closing p { margin-top: 20px; max-width: 32em; color: var(--k-slate); font-size: clamp(16px, 1.3vw, 19px); }

/* ---------- Pie ---------- */
.footer {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  border-top: 1px solid var(--k-line);
  display: grid; gap: 12px;
  font-size: 14px; color: var(--k-carbon);
}
.footer img { width: 132px; }
.footer p { font-weight: 500; }
.footer .legal { font-weight: 400; color: var(--k-slate); max-width: 44em; }

@media (min-width: 900px) {
  .footer { grid-template-columns: auto 1fr; align-items: center; column-gap: 32px; }
  .footer .legal { grid-column: 1 / -1; }
}

/* ---------- Página 404 ---------- */
.simple {
  min-height: 100vh; min-height: 100svh;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: 32px var(--gutter);
  display: grid; grid-template-rows: auto 1fr auto;
}
.simple .brand img { width: 168px; }
.simple-body { align-self: center; padding: 64px 0; }
.simple-body h1 { font-size: clamp(40px, 7vw, 88px); }
.simple-body p { margin-top: 20px; color: var(--k-slate); }
.simple-body a {
  color: var(--k-carbon); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--k-yellow);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.simple-foot { padding-top: 20px; border-top: 1px solid var(--k-line); font-size: 14px; color: var(--k-slate); }
