/* =========================================================
   maIAs — sistema visual
   Cenote (oscuro) · Caliza (claro) · Almagre · Azul maya
   ========================================================= */
:root {
  --cenote: #0d1d20;
  --cenote-2: #13292d;
  --cenote-3: #1a3439;
  --line-dark: rgba(238, 231, 217, 0.13);
  --caliza: #eee7d9;
  --caliza-2: #e4dbc8;
  --sascab: #f7f2e8;
  --tinta: #17191a;
  --tinta-2: #55554f;
  --line-light: rgba(23, 25, 26, 0.13);
  --almagre: #c4462a;
  --almagre-2: #e0694b;
  --azul-maya: #6cc3c0;
  --azul-maya-ink: #1f6f72;
  --ambar: #d99a2b;

  --f-sans: "Schibsted Grotesk", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--cenote);
  color: var(--caliza);
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-loading {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

em {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

::selection {
  background: var(--almagre);
  color: var(--sascab);
}

/* ---------- Botones ---------- */
.btn {
  --bg: var(--tinta);
  --fg: var(--sascab);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  color: var(--fg);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--almagre);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: none;
}

.btn:hover,
.btn:focus-visible {
  color: var(--sascab);
}

.btn--light {
  --bg: var(--caliza);
  --fg: var(--tinta);
}

.btn--ghost {
  --bg: transparent;
  --fg: var(--caliza);
  border-color: var(--line-dark);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
  justify-content: center;
}

:focus-visible {
  outline: 2px solid var(--azul-maya);
  outline-offset: 3px;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--cenote);
  display: grid;
  place-items: center;
  color: var(--caliza);
  transition: clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}

.loader.is-done {
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.loader__num {
  width: 64px;
  height: 120px;
  display: grid;
  place-items: center;
  color: var(--caliza);
}

.loader__num svg {
  width: 64px;
  height: auto;
}

.loader__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  color: rgba(238, 231, 217, .55);
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 90;
  pointer-events: none;
  display: none;
  mix-blend-mode: difference;
}

.has-cursor .cursor {
  display: block;
}

.has-cursor,
.has-cursor a,
.has-cursor button,
.has-cursor label {
  cursor: none;
}

.has-cursor input,
.has-cursor select {
  cursor: text;
}

.has-cursor select {
  cursor: pointer;
}

.cursor__ring,
.cursor__dot {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
}

.cursor__ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid #fff;
  transition: transform .35s var(--ease), background .35s;
}

.cursor__dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  background: #fff;
}

.cursor__label {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 10px;
  opacity: 0;
  transition: opacity .25s;
  white-space: nowrap;
}

.cursor.is-hover .cursor__ring {
  transform: scale(1.6);
}

.cursor.is-label .cursor__ring {
  transform: scale(2.3);
  background: #fff;
}

.cursor.is-label .cursor__label {
  opacity: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter);
  color: var(--caliza);
  transition: color .4s var(--ease), transform .5s var(--ease);
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--cenote), transparent);
  opacity: .7;
  transition: opacity .4s;
}

.nav.on-light {
  color: var(--tinta);
}

.nav.on-light::before {
  background: linear-gradient(var(--caliza), transparent);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo__img {
  display: block;
  height: 24px;
  width: auto;
}

.logo__img--oscuro,
.nav.on-light .logo__img--claro {
  display: none;
}

.nav.on-light .logo__img--oscuro {
  display: block;
}

.footer .logo__img {
  height: 28px;
}

.logo__mark {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.logo__dot {
  fill: var(--almagre);
}

.logo__word {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.logo__word b {
  color: var(--almagre);
  font-weight: 800;
}

.nav.on-light .logo__word b {
  color: var(--almagre);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav__links a {
  position: relative;
  opacity: .8;
  transition: opacity .3s;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}

.nav__links a:hover {
  opacity: 1;
}

.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__cta {
  --bg: var(--caliza);
  --fg: var(--tinta);
  padding: 7px 30px;
  line-height: 1.2;
}

.nav.on-light .nav__cta {
  --bg: var(--tinta);
  --fg: var(--sascab);
}

/* ---------- Escena / Stage ---------- */
.scrolly {
  position: relative;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 68% 45%, rgba(108, 195, 192, .08), transparent 70%),
    radial-gradient(ellipse 120% 80% at 50% 120%, rgba(196, 70, 42, .06), transparent 60%),
    var(--cenote);
}

#gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.no-webgl #gl {
  display: none;
}

.hud {
  position: absolute;
  inset: calc(var(--nav-h) + 8px) var(--gutter) 22px;
  pointer-events: none;
  color: rgba(238, 231, 217, .6);
}

.hud__corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 0 solid rgba(238, 231, 217, .35);
}

.hud__corner--tl {
  left: 0;
  top: 0;
  border-left-width: 1px;
  border-top-width: 1px;
}

.hud__corner--tr {
  right: 0;
  top: 0;
  border-right-width: 1px;
  border-top-width: 1px;
}

.hud__corner--bl {
  left: 0;
  bottom: 0;
  border-left-width: 1px;
  border-bottom-width: 1px;
}

.hud__corner--br {
  right: 0;
  bottom: 0;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.hud__bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
}

.hud__scene {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}

.hud__idx {
  color: var(--caliza);
}

.hud__name {
  margin-left: 12px;
  color: var(--azul-maya);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud__ticks {
  display: flex;
  gap: 6px;
}

.hud__ticks i {
  width: 28px;
  height: 2px;
  background: rgba(238, 231, 217, .18);
  position: relative;
  overflow: hidden;
}

.hud__ticks i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--almagre-2);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
}

.hero__inner {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(72px, 11vh, 130px);
  will-change: opacity, transform;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--azul-maya);
  margin-bottom: 24px;
}

.section-light .kicker,
.cero .kicker {
  color: var(--almagre);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--almagre-2);
  box-shadow: 0 0 0 0 rgba(224, 105, 75, .6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgba(224, 105, 75, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(224, 105, 75, 0);
  }
}

.hero__title {
  font-size: clamp(3rem, 8.2vw, 8.6rem);
  line-height: .9;
  font-weight: 700;
  letter-spacing: -0.055em;
  max-width: 10.5ch;
}

.hero__title em {
  color: var(--azul-maya);
  font-size: 1.08em;
  letter-spacing: -0.03em;
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: 40px;
}

.lede {
  max-width: 46ch;
  color: rgba(238, 231, 217, .78);
  font-size: clamp(16px, 1.25vw, 19px);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(238, 231, 217, .5);
  font-size: 10px;
}

.scroll-hint span {
  width: 1px;
  height: 36px;
  background: linear-gradient(transparent, var(--caliza));
  animation: drip 2s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drip {
  0% {
    transform: scaleY(0);
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  51% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ---------- Comunidad ---------- */
.community {
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(13, 29, 32, 0) 0, var(--cenote) clamp(120px, 14vw, 220px));
  padding: clamp(90px, 11vw, 160px) 0 clamp(80px, 9vw, 140px);
}

.community__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: start;
}

.community__text {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.community .sec-title em {
  color: var(--azul-maya);
}

.community__lede {
  margin-top: 26px;
  max-width: 48ch;
  color: rgba(238, 231, 217, .78);
  font-size: clamp(17px, 1.3vw, 19px);
}

.values {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  border-top: 1px solid var(--line-dark);
}

.values li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
}

.values__n {
  width: 22px;
  color: var(--azul-maya);
  padding-top: 4px;
}

.values__n svg {
  width: 100%;
  height: auto;
}

.values b {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.values p {
  margin-top: 2px;
  font-size: 15px;
  color: rgba(238, 231, 217, .6);
}

.community__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.gallery__col {
  display: grid;
  gap: 14px;
  align-content: start;
  will-change: transform;
}

.gallery__col--offset {
  padding-top: 90px;
}

.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 1px 1px, rgba(238, 231, 217, .12) 1px, transparent 0) 0 0 / 14px 14px,
    var(--cenote-2);
  border: 1px solid var(--line-dark);
}

.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--cenote);
  transform-origin: top;
  transition: transform 1.2s var(--ease);
}

.ph.in::after {
  transform: scaleY(0);
}

.ph[data-reveal] {
  opacity: 1;
  transform: none;
}

.ph--tall {
  aspect-ratio: 3 / 4;
}

.ph--square {
  aspect-ratio: 1;
}

.ph--wide {
  aspect-ratio: 4 / 3;
}

.ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transform: scale(1.15);
  transition: transform 1.6s var(--ease), filter .6s;
  filter: saturate(.85);
}

.ph.in img {
  transform: scale(1);
}

.ph:hover img {
  transform: scale(1.04);
  filter: saturate(1.05);
}

.ph__empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  color: rgba(238, 231, 217, .45);
}

.ph__glyph {
  width: 30px;
  color: rgba(108, 195, 192, .55);
  margin-bottom: 4px;
}

.ph__glyph svg {
  width: 100%;
  height: auto;
}

.ph__empty code {
  font-size: 10px;
  text-transform: none;
  color: rgba(238, 231, 217, .3);
  word-break: break-all;
}

.ph figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--caliza);
  background: rgba(13, 29, 32, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ph figcaption span:last-child {
  color: var(--azul-maya);
}

.gallery__credits {
  margin-top: 110px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(238, 231, 217, .4);
}

.gallery__credits a {
  text-decoration: underline;
  text-decoration-color: rgba(238, 231, 217, .2);
  text-underline-offset: 2px;
}

.gallery__credits a:hover {
  color: var(--caliza);
}

/* Dónde aplicarla (dentro de Áreas) */
.apply {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--line-light);
}

.apply__sub {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-top: -8px;
  max-width: 14ch;
}

.apply__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

.apply__list li {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}

.apply__list b {
  font-weight: 700;
}

.apply__list span {
  color: var(--tinta-2);
  font-size: 15px;
}

.apply__list em {
  font-style: normal;
  font-size: 10px;
  color: var(--azul-maya-ink);
}

/* Hoy en la Cuenta Larga (dentro de Base 20) */
.today {
  position: relative;
  margin-top: clamp(64px, 8vw, 110px);
  padding: 22px 24px 18px;
  border-radius: 16px;
  background: var(--sascab);
  border: 1px solid var(--line-light);
}

.today__head {
  display: flex;
  justify-content: space-between;
  color: var(--almagre);
  font-size: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
}

.today__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tinta-2);
}

.today__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--almagre);
  animation: blink 1.6s steps(2) infinite;
}

.today__body {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 40px;
  align-items: center;
  padding: 22px 0 6px;
}

.lc {
  display: grid;
  grid-template-columns: repeat(5, 46px);
  gap: 14px;
  align-items: end;
}

.lc figure {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.lc svg {
  width: 34px;
  height: auto;
  color: var(--tinta);
}

.lc figcaption {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--tinta-2);
}

.lc__code {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.today__rows {
  margin: 0;
  display: grid;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.today__rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line-light);
}

.today__rows div:last-child {
  border-bottom: 0;
}

.today__rows dt {
  color: var(--tinta-2);
}

.today__rows dd {
  margin: 0;
  font-weight: 500;
}

.today__foot {
  margin-top: 10px;
  font-size: 10px;
  color: var(--tinta-2);
  text-transform: none;
  letter-spacing: 0;
}

/* ---------- Ribbon / marquee ---------- */
.ribbon {
  position: relative;
  z-index: 2;
  background: var(--caliza);
  color: var(--tinta);
  padding-top: 28px;
}

.ribbon__greca {
  width: 100%;
  height: 24px;
  color: var(--almagre);
}

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
}

.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__track i {
  font-style: normal;
  color: var(--almagre);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Secciones claras ---------- */
.section-light {
  position: relative;
  z-index: 2;
  background: var(--caliza);
  color: var(--tinta);
}

.section-light em {
  color: var(--almagre);
}

.sec-head {
  padding: clamp(80px, 12vw, 160px) 0 clamp(48px, 6vw, 80px);
  max-width: 980px;
}

.sec-title {
  font-size: clamp(2.6rem, 6.4vw, 6.2rem);
  line-height: .93;
  letter-spacing: -0.05em;
  font-weight: 700;
}

.sec-lede {
  margin-top: 28px;
  max-width: 54ch;
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--tinta-2);
}

/* Áreas */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: var(--sascab);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color .4s, box-shadow .5s var(--ease);
}

.card:hover {
  border-color: rgba(23, 25, 26, .28);
  box-shadow: 0 30px 60px -36px rgba(60, 40, 10, .35);
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  height: 44px;
}

.card__num {
  width: 22px;
  color: var(--tinta);
}

.card__num svg {
  width: 100%;
  height: auto;
}

.card__tag {
  color: var(--tinta-2);
}

.card .viz {
  width: 100%;
  height: 128px;
  margin: 10px 0 18px;
  border-radius: 10px;
  background: var(--caliza);
}

.card h3 {
  font-size: 21px;
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.1;
}

.card p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--tinta-2);
  flex: 1;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.chips li {
  font-size: 10.5px;
  padding: 4px 8px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--tinta-2);
  text-transform: none;
}

.areas__note {
  padding: 36px 0 0;
  color: var(--tinta-2);
}

/* Tilt */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease), border-color .4s, box-shadow .5s var(--ease);
  will-change: transform;
}

/* Programas */
.programs {
  padding-bottom: clamp(80px, 10vw, 140px);
}

.program {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(48px, 6vw, 88px) 0;
  border-top: 1px solid var(--line-light);
  align-items: center;
}

.program__idx {
  color: var(--almagre);
  margin-bottom: 18px;
}

.program__title {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 700;
  max-width: 14ch;
}

.program__text>p:not(.program__idx) {
  margin-top: 20px;
  color: var(--tinta-2);
  max-width: 44ch;
}

.program__list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line-light);
  max-width: 420px;
}

.program__list li {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
  text-transform: none;
  font-size: 13px;
  letter-spacing: 0;
}

.program__list span {
  color: var(--almagre);
  min-width: 28px;
}

.mock {
  background: var(--sascab);
  border: 1px solid var(--line-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px -48px rgba(60, 40, 10, .45);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-light);
  font-size: 11px;
}

.mock__tab {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--tinta-2);
  text-transform: none;
}

.mock__tab.is-on {
  background: var(--caliza);
  color: var(--tinta);
}

.mock__status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tinta-2);
  font-size: 10px;
}

.mock__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3f8f5e;
}

.mock__status--warn {
  color: var(--ambar);
}

.nb {
  padding: 18px 18px 22px;
  display: grid;
  gap: 10px;
}

.nb__cell {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
}

.nb__in {
  color: var(--tinta-2);
  padding-top: 12px;
  font-size: 11px;
}

.nb pre {
  margin: 0;
  padding: 12px 14px;
  background: var(--caliza);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.65;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tinta);
}

.nb pre b.k {
  font-weight: 500;
  color: var(--almagre);
}

.nb pre s {
  text-decoration: none;
  color: var(--azul-maya-ink);
}

.nb pre u {
  text-decoration: none;
  color: #8a5a10;
}

.nb__out {
  margin-left: 42px;
  min-height: 152px;
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--tinta-2);
  display: grid;
  gap: 6px;
  align-content: start;
}

.nb__row {
  display: grid;
  grid-template-columns: 74px 1fr 92px;
  gap: 12px;
  align-items: center;
  animation: rowIn .4s var(--ease);
}

.nb__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--caliza-2);
  overflow: hidden;
}

.nb__bar i {
  display: block;
  height: 100%;
  background: var(--tinta);
  transform-origin: left;
  animation: fill .6s var(--ease) both;
}

.nb__done {
  color: #2f7a4f;
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes fill {
  from {
    transform: scaleX(0);
  }
}

.mock--viewer {
  background: var(--cenote);
  border-color: rgba(0, 0, 0, .4);
  color: var(--caliza);
}

.mock--viewer .mock__bar {
  border-color: var(--line-dark);
}

.mock--viewer .mock__tab {
  color: rgba(238, 231, 217, .55);
}

.mock--viewer .mock__tab.is-on {
  background: var(--cenote-3);
  color: var(--caliza);
}

.viewer {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 300px;
}

.viewer__tree {
  list-style: none;
  margin: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--line-dark);
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}

.viewer__tree li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px 5px 14px;
  color: rgba(238, 231, 217, .82);
}

.viewer__tree li.is-dir {
  padding-left: 0;
  color: rgba(238, 231, 217, .5);
  margin-top: 6px;
}

.viewer__tree li.is-muted {
  color: rgba(238, 231, 217, .35);
}

.viewer__tree li i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--c);
}

.viewer__main {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  min-width: 0;
}

.viz--viewer {
  width: 100%;
  flex: 1;
  min-height: 230px;
}

.viewer__timeline {
  position: relative;
  height: 22px;
  border-radius: 6px;
  background: repeating-linear-gradient(90deg, rgba(238, 231, 217, .14) 0 1px, transparent 1px 12px), var(--cenote-2);
}

.viewer__head {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--almagre-2);
  left: 0;
  animation: head 9s linear infinite;
}

@keyframes head {
  to {
    left: 100%;
  }
}

.nlp {
  padding: 28px 26px;
  display: grid;
  gap: 16px;
  min-height: 300px;
  align-content: center;
}

.nlp__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--caliza);
}

.nlp__row--out {
  background: var(--tinta);
  color: var(--sascab);
}

.nlp__lang {
  font-size: 10px;
  color: var(--tinta-2);
  min-width: 32px;
}

.nlp__row--out .nlp__lang {
  color: var(--azul-maya);
}

.nlp__text {
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  min-height: 1.2em;
}

.nlp__row--out .nlp__text {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
}

.nlp__caret {
  width: 2px;
  height: 1.1em;
  background: var(--azul-maya);
  align-self: center;
  animation: blink 1s steps(2) infinite;
  margin-left: -12px;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nlp__arrow {
  color: var(--tinta-2);
  font-size: 10.5px;
  padding-left: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#nlpTok {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
}

#nlpTok b {
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--caliza-2);
  color: var(--tinta);
  text-transform: none;
  animation: rowIn .3s var(--ease) both;
}

.nlp__note {
  color: var(--tinta-2);
  font-size: 10px;
  padding-left: 20px;
}

/* ---------- Base 20 ---------- */
.cero {
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, var(--caliza) 0, var(--caliza-2) clamp(160px, 22vw, 320px));
  color: var(--tinta);
  padding: clamp(80px, 11vw, 150px) 0;
  overflow: hidden;
}

.cero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: linear-gradient(var(--line-light) 1px, transparent 1px), linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 70%);
}

.cero em {
  color: var(--almagre);
}

.cero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.cero__text>p:not(.kicker) {
  margin-top: 26px;
  max-width: 46ch;
  color: var(--tinta-2);
  font-size: 18px;
}

.cero__field {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  max-width: 420px;
}

.cero__field span {
  color: var(--tinta-2);
}

.cero__field input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--tinta);
  background: transparent;
  padding: 6px 0 10px;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  outline: none;
  -moz-appearance: textfield;
}

.cero__field input::-webkit-outer-spin-button,
.cero__field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cero__field input:focus {
  border-color: var(--almagre);
}

.cero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.cero__chips button {
  border: 1px solid rgba(23, 25, 26, .22);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  transition: background .3s, color .3s;
}

.cero__chips button:hover {
  background: var(--tinta);
  color: var(--sascab);
}

.cero__out {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  justify-items: start;
}

.cero__glyph {
  width: clamp(110px, 12vw, 160px);
  color: var(--tinta);
}

.cero__glyph svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.cero__glyph .lvl {
  animation: lvlIn .6s var(--ease) both;
}

@keyframes lvlIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.cero__break {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  width: 100%;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.cero__break li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-light);
}

.cero__break li:first-child {
  border-top: 1px solid var(--line-light);
}

.cero__break b {
  font-weight: 500;
  color: var(--almagre);
}

.cero__break .total {
  color: var(--tinta);
  font-weight: 500;
}

/* ---------- Únete ---------- */
.join {
  position: relative;
  z-index: 2;
  background: var(--cenote);
  padding: clamp(96px, 13vw, 180px) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
}

.join::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  right: -25vw;
  top: -20vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 195, 192, .12), transparent 65%);
  pointer-events: none;
}

.join__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: end;
}

.join__title {
  font-size: clamp(5rem, 17vw, 16rem);
  line-height: .82;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.join__title em {
  color: var(--almagre-2);
}

.join__sub {
  margin-top: 18px;
  color: var(--azul-maya);
}

.join__lede {
  margin-top: 28px;
  max-width: 42ch;
  font-size: clamp(17px, 1.4vw, 21px);
  color: rgba(238, 231, 217, .8);
}

.join__social {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.join__social a {
  opacity: .75;
  transition: opacity .3s, color .3s;
}

.join__social a:hover {
  opacity: 1;
  color: var(--azul-maya);
}

.form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  background: rgba(19, 41, 45, .6);
  backdrop-filter: blur(8px);
}

.form label {
  display: grid;
  gap: 8px;
}

.form label span {
  color: rgba(238, 231, 217, .55);
  font-size: 11px;
}

.form input,
.form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  background: var(--cenote);
  color: var(--caliza);
  font-size: 16px;
  outline: none;
  transition: border-color .3s;
}

.form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--caliza) 50%), linear-gradient(135deg, var(--caliza) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.form input::placeholder {
  color: rgba(238, 231, 217, .3);
}

.form input:focus,
.form select:focus {
  border-color: var(--azul-maya);
}

.form input.is-invalid {
  border-color: var(--almagre-2);
}

.form button {
  margin-top: 6px;
}

.form__msg {
  min-height: 1.4em;
  color: var(--azul-maya);
  text-transform: none;
  font-size: 12.5px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  background: var(--cenote);
  color: var(--caliza);
  padding: 0 0 28px;
}

.frieze {
  width: 100%;
  height: 44px;
  margin-bottom: clamp(72px, 8vw, 104px);
  background: var(--cenote-2);
  box-shadow: inset 0 1px 0 rgba(238, 231, 217, .08), inset 0 -1px 0 rgba(0, 0, 0, .4);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: clamp(64px, 7vw, 96px);
}

.footer__brand p {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 15px;
  color: rgba(238, 231, 217, .6);
}

.footer__col {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 15px;
}

.footer__col span {
  color: var(--azul-maya);
  font-size: 11px;
  margin-bottom: 4px;
}

.footer__col a {
  color: rgba(238, 231, 217, .75);
  transition: color .3s;
}

.footer__col a:hover {
  color: var(--caliza);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  padding-top: 36px;
  border-top: 1px solid var(--line-dark);
  color: rgba(238, 231, 217, .5);
  font-size: 13px;
}

.footer__row a:hover {
  color: var(--caliza);
}

/* ---------- Reveals ---------- */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}

[data-split] .w>span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}

[data-split].in .w>span {
  transform: none;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

.cards [data-reveal]:nth-child(4n+2) {
  transition-delay: .07s;
}

.cards [data-reveal]:nth-child(4n+3) {
  transition-delay: .14s;
}

.cards [data-reveal]:nth-child(4n+4) {
  transition-delay: .21s;
}

.card.tilt.in {
  transition: opacity .9s var(--ease), transform .6s var(--ease), border-color .4s, box-shadow .5s var(--ease);
}

/* ---------- Responsive ---------- */
@media (min-width: 821px) and (min-height: 700px) {
  .scroll-hint {
    display: flex;
  }
}

@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today__body {
    grid-template-columns: auto 1fr;
  }

  .today__rows {
    grid-column: 1 / -1;
  }

  .apply__list {
    grid-template-columns: 1fr;
  }

  .program {
    grid-template-columns: 1fr;
  }

  .program__title {
    max-width: 18ch;
  }
}

@media (max-width: 820px) {
  :root {
    --nav-h: 62px;
  }

  .nav__links {
    display: none;
  }

  #gl {
    opacity: .75;
  }

  .hero__title {
    max-width: 9ch;
  }

  .community__grid {
    grid-template-columns: 1fr;
  }

  .community__text {
    position: static;
  }

  .gallery {
    gap: 10px;
  }

  .gallery__credits {
    margin-top: 24px;
  }

  .gallery__col {
    gap: 10px;
  }

  .gallery__col--offset {
    padding-top: 48px;
  }

  .apply {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .apply__list {
    grid-template-columns: 1fr;
  }

  .today__body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lc {
    grid-template-columns: repeat(5, 1fr);
  }

  .hud__coord,
  .hud__ticks {
    display: none;
  }

  .cero__grid,
  .join__grid {
    grid-template-columns: 1fr;
  }

  .cero__out {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .viewer {
    grid-template-columns: 1fr;
  }

  .viewer__tree {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-dark);
    padding: 10px 12px;
  }

  .viewer__tree li.is-dir {
    display: none;
  }

  .viewer__tree li {
    padding: 3px 0;
  }

  .nb__out {
    margin-left: 0;
  }

  .nb__row {
    grid-template-columns: 64px 1fr 80px;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    flex: 1;
    justify-content: center;
  }

  .nb__cell {
    grid-template-columns: 1fr;
  }

  .ph figcaption span:last-child {
    display: none;
  }

  .apply__list li {
    grid-template-columns: 84px 1fr;
  }

  .apply__list em {
    grid-column: 2;
  }

  .nb__in {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }

  .marquee__track {
    animation: none;
  }
}


/* ---------- Animaciones (motion.js) ---------- */
.btn {
  transition: color .4s var(--ease), border-color .4s var(--ease), translate .35s var(--ease);
}

.motion-on .cero__glyph {
  position: relative;
}

.motion-on .ribbon {
  overflow: hidden;
}




/* Animaciones de entrada por sección (motion.js, bloque 11) */
.motion-on .gallery {
  perspective: 1200px;
}

.cero__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  height: auto;
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  overflow: visible;
}

.cero__ring line {
  stroke: var(--tinta);
  stroke-width: 1.4;
  opacity: .12;
  transition: opacity .2s;
}

.cero__ring line.on {
  opacity: .75;
}

.cero__ring line.on:nth-child(6n+1) {
  stroke: var(--almagre);
  opacity: 1;
}

/* Cambio de sección: disolución tipo video (motion.js, bloque 12) */
.tr-smoke {
  position: absolute;
  left: 0;
  right: 0;
  top: -30vh;
  height: 130vh;
  top: -30svh;
  height: 130svh;
  z-index: 30;
  pointer-events: none;
  overflow: hidden;
  /* sin borde: el humo se desvanece hacia arriba y se mezcla con la sección anterior */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 12%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, .35) 12%, #000 34%);
}

/* Base 20 recorta su contenido (overflow: hidden): el humo se desvanece dentro de la sección */
.cero>.tr-smoke {
  top: 0;
  height: 100vh;
  height: 100svh;
}

/* Base 20 recorta su contenido (overflow: hidden): el humo se desvanece dentro de la sección */
.cero > .tr-smoke {
  top: 0;
  height: 100vh;
  height: 100svh;
}

.tr-smoke canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: auto;
}

.motion-on .ph img {
  transition: filter .6s;
  will-change: transform;
}

.tr-arch {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 30;
  pointer-events: none;
}

/* Base 20 → Únete: anochecer + Ko'ox (motion.js, bloque 13) */
.cero__dusk {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: var(--cenote);
}

/* el borde de Únete arranca crema (igual que Base 20) y se apaga al mismo ritmo que Base 20 se oscurece */
.join__dawn {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(160px, 20vw, 300px);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--caliza-2) 0, rgba(228, 219, 200, 0) 100%);
}

.join__title {
  white-space: nowrap; /* el punto no se va a otra línea */
  transform-origin: 0% 0%;
  will-change: transform;
}
