/* ==========================================================================
   Norte · comunidad cinemática — réplica de "AI Automation Society" (versión oscura)
   Secciones: tokens · base · header · hero (parallax 3 capas) · manifiesto · aula ·
   encuentros (tira → grilla) · caminos · lista · testimonios · planes · faq · videos ·
   cierre · footer · reduced-motion · responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --sky-top: #0f1c2b;
  --sky-bottom: #06111c;
  --astra-top: #0d1b2b;
  --astra-bottom: #0a1420;
  --black: #0a0a0a;
  --panel: #0e1114;
  --panel-2: #101317;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --text-50: rgba(255, 255, 255, 0.5);
  --text-60: rgba(255, 255, 255, 0.6);
  --text-70: rgba(255, 255, 255, 0.7);
  --cyan: #7fc3ea;
  --celeste: #8fc1e8;
  --celeste-light: #cfe6ff;
  --label-blue: #1f4e7a;
  --mountain-mid: #5a6478;
  --mountain-back: #2c3340;

  --font: "Poppins", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 3.9vw, 3.5rem); /* ~56 px a 1440 */
  --fs-h1-people: clamp(2.4rem, 5vw, 4.5rem); /* ~72 px */
  --fs-h2: clamp(1.75rem, 2.4vw, 2.25rem); /* ~34 px */
  --fs-h2-big: clamp(2.2rem, 4.4vw, 4rem); /* ~64 px */
  --fs-manifesto: clamp(1.15rem, 1.8vw, 1.625rem); /* ~26 px */
  --fs-body: 0.9375rem;
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.6s;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  --pad: 6vw;
}

/* Propiedades registradas para animarlas con scroll-driven animations */
@property --cw {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--pad));
  margin-inline: auto;
}
.muted {
  color: var(--text-60);
}
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-70);
  margin-bottom: 1.4rem;
}
.overline.caps {
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-60);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  display: inline-block;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h3 {
  font-weight: 500;
}

/* Botones píldora */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--fs-small);
  padding: 0.7em 1.4em;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: #0a0f14;
}
.btn-white:hover {
  background: #e8eef4;
}
.btn-dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}
.btn-outline {
  border-color: var(--line-strong);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn-sm {
  padding: 0.55em 1.1em;
  font-size: 0.75rem;
}
.btn-lg {
  padding: 0.95em 1.8em;
  font-size: var(--fs-body);
}

/* Reveal [Probable]: fade + 24 px de subida, ligado a la entrada en viewport, con stagger --i */
.reveal {
  animation: rise linear both;
  animation-timeline: view();
  animation-range: entry calc(var(--i, 0) * 8%) entry calc(55% + var(--i, 0) * 8%);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5vw;
  background: linear-gradient(rgba(6, 17, 28, 0.85), rgba(6, 17, 28, 0.35) 70%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--white);
  color: #0a0f14;
  font-weight: 600;
  font-size: 0.75rem;
  display: grid;
  place-items: center;
}
.nav {
  display: flex;
  gap: 2.2vw;
  font-size: var(--fs-small);
  color: var(--text-70);
}
.nav a:hover {
  color: var(--white);
}
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4vw;
  font-size: var(--fs-small);
}
.login {
  color: var(--text-70);
}
.login:hover {
  color: var(--white);
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
}
.burger span {
  width: 20px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out);
}
.burger[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}
.burger[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ---------- Fondos compartidos (cielo, estrellas, pinos, montañas) ---------- */
.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
}
.stars {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 60%, transparent 100%),
    radial-gradient(1px 1px at 33% 9%, rgba(255, 255, 255, 0.8) 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 57% 22%, #fff 60%, transparent 100%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.7) 60%, transparent 100%),
    radial-gradient(1px 1px at 88% 30%, #fff 60%, transparent 100%),
    radial-gradient(1px 1px at 45% 35%, rgba(255, 255, 255, 0.6) 60%, transparent 100%),
    radial-gradient(1px 1px at 20% 42%, rgba(255, 255, 255, 0.6) 60%, transparent 100%),
    radial-gradient(1.5px 1.5px at 66% 40%, rgba(255, 255, 255, 0.8) 60%, transparent 100%),
    radial-gradient(1px 1px at 5% 30%, rgba(255, 255, 255, 0.6) 60%, transparent 100%),
    radial-gradient(1px 1px at 95% 8%, rgba(255, 255, 255, 0.6) 60%, transparent 100%);
  background-size: 100% 100%;
}
.mountains {
  position: absolute;
  left: 0;
  top: -10vh;
  width: 100%;
  height: 110vh;
  object-fit: cover;
  object-position: center top;
  /* del azul del asset al lila-gris #5a6478 de la referencia */
  filter: saturate(0.32) brightness(1.25) contrast(0.95);
  -webkit-mask-image: linear-gradient(to bottom, transparent 8%, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 8%, #000 45%);
}
.pines {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background: url("assets/forest.webp") center bottom / cover no-repeat;
  filter: brightness(0.32) saturate(0.6);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--sky-bottom);
  overflow-x: clip; /* el glow (140 %) no debe generar scroll horizontal */
}
main {
  overflow-x: clip;
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
}
/* Montañas a 0,3× del scroll (scrubbed sobre los primeros 100 vh) */
.hero .mountains {
  animation: parallax-mountains linear both;
  animation-timeline: scroll(root);
  animation-range: 0 100vh;
}
@keyframes parallax-mountains {
  to {
    transform: translateY(-30vh);
  }
}
.hero-content {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  padding-top: calc(64px + 11vh);
  padding-bottom: 6vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-small);
  color: var(--text-70);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.45em 1.1em;
  background: rgba(6, 17, 28, 0.35);
}
.hero h1 {
  font-size: var(--fs-h1);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 3vh;
  max-width: 1100px;
}
.lead {
  margin-top: 2.6vh;
  max-width: 46ch;
  font-size: var(--fs-body);
  color: var(--text-70);
}
.hero .btn-lg {
  margin-top: 4vh;
}
.mock-wrap {
  position: relative;
  width: 60vw;
  max-width: 1100px;
  margin-top: 4.5vh;
}
.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 130%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(127, 195, 234, 0.55) 0%,
    rgba(127, 195, 234, 0.18) 32%,
    rgba(127, 195, 234, 0) 62%
  );
  mix-blend-mode: screen;
  pointer-events: none;
}
.mock {
  position: relative;
  display: grid;
  grid-template-columns: 22% 1fr;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  text-align: left;
}
.mock-side {
  background: #0c0f13;
  border-right: 1px solid var(--line);
  padding: 1.6vw 1.2vw;
  font-size: clamp(0.55rem, 0.85vw, 0.8rem);
  color: var(--text-60);
}
.mock-brand {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--white);
  font-weight: 500;
  margin-bottom: 1.6em;
}
.mock-brand span {
  width: 1.6em;
  height: 1.6em;
  border-radius: 0.35em;
  background: var(--white);
  color: #0a0f14;
  display: grid;
  place-items: center;
  font-size: 0.8em;
  font-weight: 600;
}
.mock-side li {
  padding: 0.55em 0.7em;
  border-radius: 0.4em;
  margin-bottom: 0.15em;
}
.mock-side li.on {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}
.mock-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 3vw 2.4vw;
  background: radial-gradient(
    ellipse 75% 65% at 50% 55%,
    #a9dbf5 0%,
    #5ea1cb 22%,
    #2b5f85 45%,
    #132b3f 70%,
    #0c1620 100%
  );
  font-size: clamp(0.55rem, 0.85vw, 0.8rem);
}
.mock-avatar {
  width: 3.4em;
  height: 3.4em;
  border-radius: 50%;
  background: #0d1a26;
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1.1em;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
  margin-bottom: 1em;
}
.mock-title {
  font-weight: 500;
  color: var(--white);
  font-size: 1.15em;
}
.mock-meta {
  color: rgba(255, 255, 255, 0.85);
  margin: 0.4em 0 1.2em;
}
.mock-cta {
  width: 80%;
  background: var(--white);
  color: #0a0f14;
  text-align: center;
  padding: 0.9em;
  border-radius: 0.5em;
  font-weight: 500;
}
.hero-pines {
  position: sticky;
  top: 0;
  height: 100vh;
  margin-top: -100vh;
  z-index: 2;
  pointer-events: none;
}

/* ---------- MANIFIESTO ---------- */
.manifesto {
  background: var(--black);
  padding: 22vh 0 18vh;
}
.manifesto-col {
  margin-left: 24%;
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  font-size: var(--fs-manifesto);
  line-height: 1.4;
}
.m-p {
  transition: opacity 0.45s var(--ease-out);
}
.m-p.read {
  opacity: 0.5;
}
.m-p.active {
  opacity: 1;
}
.m-p.next {
  opacity: 0.6;
}

/* ---------- AULA (cursos) ---------- */
.courses {
  background: var(--black);
  padding: 4vh 0 14vh;
}
.panel {
  width: 60vw;
  max-width: 1100px;
  margin-inline: auto;
  background: linear-gradient(180deg, var(--panel), #090b0d);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5vh 3.5vw;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3vw;
  position: relative;
  overflow: hidden;
}
.panel-text {
  display: flex;
  flex-direction: column;
}
.panel-text h2 {
  margin-bottom: 1.2rem;
}
.panel-text .muted {
  font-size: var(--fs-small);
  max-width: 34ch;
}
.panel-text .foot {
  margin-top: auto;
  padding-top: 8vh;
  font-size: var(--fs-micro);
  color: var(--text-50);
}
.panel-grid {
  position: relative;
}
.panel-glow {
  position: absolute;
  left: 50%;
  top: -30%;
  width: 120%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(127, 195, 234, 0.35), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.course-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9vw;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: url("assets/paisaje.webp") var(--pos, center) / 200% no-repeat;
  filter: hue-rotate(var(--hue, 0deg)) saturate(0.7) brightness(0.7);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.pill {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  background: rgba(10, 10, 10, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.course h3 {
  font-size: var(--fs-micro);
  font-weight: 500;
  margin-top: 0.7em;
  line-height: 1.3;
}
.course p {
  font-size: 0.625rem;
  color: var(--text-50);
  margin-top: 0.2em;
}

/* ---------- ENCUENTROS: tira en perspectiva → grilla, pinned 250 vh ---------- */
.people {
  position: relative;
  height: 250vh;
  view-timeline-name: --people;
  view-timeline-axis: block;
}
.people-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.people-stage .sky {
  background: linear-gradient(180deg, var(--astra-top), var(--astra-bottom));
}
.people-head,
.people-head2 {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 92vw);
  text-align: center;
}
.people-head {
  top: 18vh;
  animation: head-out linear both;
  animation-timeline: --people;
  animation-range: contain 0% contain 40%;
}
.people-head h2 {
  font-size: var(--fs-h1-people);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.people-head h2 em {
  font-style: normal;
  color: var(--celeste);
}
.people-head .tiny {
  margin-top: 2.2vh;
  font-size: var(--fs-micro);
  color: var(--text-50);
}
@keyframes head-out {
  to {
    opacity: 0;
    filter: blur(8px);
  }
}
.people-head2 {
  top: 12vh;
  opacity: 0;
  animation: head-in linear both;
  animation-timeline: --people;
  animation-range: contain 78% contain 96%;
}
.people-head2 h2 {
  font-size: var(--fs-h1);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.people-head2 .btn {
  margin-top: 2.6vh;
}
@keyframes head-in {
  from {
    opacity: 0;
    transform: translate(-50%, 14px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Marco: rotateX 30° → 0°, 60 vw → 70 vw, top 52 vh → 40 vh, tarjetas 9,5 vw → 16,25 vw */
.frame {
  --cw: 9.5vw;
  --gap: 0.9vw;
  position: absolute;
  left: 50%;
  top: 52vh;
  width: 60vw;
  transform: translateX(-50%) perspective(1200px) rotateX(30deg);
  transform-origin: 50% 50%;
  z-index: 2;
  animation: frame-grow linear both;
  animation-timeline: --people;
  animation-range: contain 5% contain 80%;
}
@keyframes frame-grow {
  to {
    --cw: 16.375vw;
    top: 40vh;
    width: 70vw;
    transform: translateX(-50%) perspective(1200px) rotateX(0deg);
  }
}
/* Entrada al aparecer (Astra 1): sube 3 vh y escala 0,91 → 1 en 1,5 s */
.frame-inner {
  background: linear-gradient(180deg, #10161e, #0b1017);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0 var(--gap) var(--gap);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  transform: translateY(3vh) scale(0.91);
  transition: transform 1.5s var(--ease-out);
}
.people.in .frame-inner {
  transform: none;
}
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-60);
  padding: 0 0.3vw;
}
.bar .counter {
  color: var(--celeste-light);
}
.rows {
  display: flex;
  flex-direction: column;
}
.row {
  display: flex;
  gap: var(--gap);
}
.row-marquee {
  overflow: hidden;
}
.track {
  display: flex;
  gap: var(--gap);
  will-change: transform;
}
.row-extra {
  height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  animation: row-in linear both;
  animation-timeline: --people;
  animation-range: contain 55% contain 85%;
}
@keyframes row-in {
  to {
    height: calc(var(--cw) * 2 / 3);
    margin-top: var(--gap);
    opacity: 1;
  }
}
.card {
  position: relative;
  flex: 0 0 var(--cw);
  width: var(--cw);
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: #0a1420;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  filter: hue-rotate(var(--hue, 0deg)) saturate(0.8) brightness(0.85);
  transform: scale(1.6);
  transform-origin: var(--pos, center);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55));
}
.card figcaption {
  position: absolute;
  left: 6%;
  bottom: 7%;
  z-index: 1;
  font-size: clamp(0.4rem, 0.55vw, 0.6rem);
  font-weight: 500;
  color: var(--white);
  background: var(--label-blue);
  border-radius: 4px;
  padding: 0.3em 0.7em;
  white-space: nowrap;
}

/* Chips flotantes */
.fchip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-micro);
  color: var(--white);
  background: rgba(16, 25, 36, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.5em 1em 0.5em 0.5em;
  white-space: nowrap;
}
.fchip-l {
  left: 8%;
  top: 66vh;
  animation: chip-l linear both;
  animation-timeline: --people;
  animation-range: contain 30% contain 65%;
}
.fchip-r {
  right: 10%;
  top: 74vh;
  padding-left: 1em;
  animation: chip-r linear both;
  animation-timeline: --people;
  animation-range: contain 30% contain 65%;
}
.fchip-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: url("assets/paisaje.webp") 40% 80% / 400% no-repeat;
  filter: hue-rotate(30deg);
}
@keyframes chip-l {
  to {
    opacity: 0;
    transform: translateX(-10vw);
  }
}
@keyframes chip-r {
  to {
    opacity: 0;
    transform: translateX(10vw);
  }
}
/* Pinos del escenario: la tira arranca "hundida" entre ellos y se alejan al crecer la grilla */
.people-pines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  animation: pines-out linear both;
  animation-timeline: --people;
  animation-range: contain 25% contain 70%;
}
.people-pines .pines {
  height: 34vh;
}
@keyframes pines-out {
  to {
    opacity: 0;
    transform: translateY(12vh);
  }
}

/* ---------- CAMINOS ---------- */
.paths {
  background: var(--black);
  padding: 16vh 0 12vh;
}
.paths h2 {
  font-size: var(--fs-h2-big);
  font-weight: 500;
  max-width: 14ch;
  margin-bottom: 6vh;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2vw;
}
.path {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2vw 1.6vw;
  min-height: 15vw;
  display: flex;
  flex-direction: column;
}
.path h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6em;
}
.path p {
  font-size: var(--fs-small);
  color: var(--text-60);
}
.path a {
  margin-top: auto;
  padding-top: 1.5em;
  font-size: var(--fs-small);
  color: var(--celeste);
}

/* ---------- LISTA DE DOS COLUMNAS ---------- */
.inside {
  background: var(--black);
  padding: 8vh 0 14vh;
  border-top: 1px solid var(--line);
}
.inside-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3vw;
  align-items: start;
}
.inside h2 {
  max-width: 12ch;
}
.checks li {
  position: relative;
  padding: 0.9em 0 0.9em 1.8em;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-body);
  color: var(--text-70);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 0.55em;
  height: 0.3em;
  border-left: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(-45deg);
}
.checks.small li {
  font-size: var(--fs-small);
  border: 0;
  padding: 0.55em 0 0.55em 1.8em;
}

/* ---------- TESTIMONIOS ---------- */
.testimonials {
  background: var(--black);
  padding: 0 0 14vh;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2vw;
}
.t {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2vw;
  display: flex;
  flex-direction: column;
  gap: 2em;
}
.t p {
  font-size: 1.05rem;
  line-height: 1.45;
}
.t footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--text-60);
}
.t footer img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--pos);
  filter: hue-rotate(var(--hue)) saturate(0.8);
  transform: scale(1);
}
.t footer span {
  display: flex;
  flex-direction: column;
}
.t footer strong {
  color: var(--white);
  font-weight: 500;
}

/* ---------- PLANES ---------- */
.pricing {
  background: var(--black);
  padding: 8vh 0 14vh;
}
.paint {
  font-size: var(--fs-h2-big);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8vh;
  view-timeline-name: --paint;
}
.paint .w {
  color: rgba(255, 255, 255, 0.22);
  animation: paint linear both;
  animation-timeline: --paint;
  animation-range-start: calc(28% + var(--i, 0) * 4%);
  animation-range-end: calc(38% + var(--i, 0) * 4%);
}
@keyframes paint {
  to {
    color: var(--white);
  }
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2vw;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4vw 2vw;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}
.plan-mid {
  background: linear-gradient(180deg, rgba(127, 195, 234, 0.06), transparent 60%);
  border-color: var(--line-strong);
}
.price {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price small {
  font-size: 0.875rem;
  color: var(--text-50);
}
.plan .muted {
  font-size: var(--fs-small);
  margin: 1.2em 0 1.6em;
  min-height: 3.2em;
}
.plan .checks {
  margin-top: 2em;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--black);
  padding: 0 0 14vh;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4vw;
}
.faq h2 {
  font-size: var(--fs-h2-big);
  font-weight: 500;
}
.acc-item {
  border-bottom: 1px solid var(--line);
}
.acc-item h3 {
  font-size: 1rem;
}
.acc-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  padding: 1.2em 0;
  text-align: left;
}
.plus {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: var(--text-70);
  inset: 50% 0 auto 0;
  height: 1.5px;
  transform: translateY(-50%);
  transition: transform 0.4s var(--ease-out);
}
.plus::after {
  transform: translateY(-50%) rotate(90deg);
}
[aria-expanded="true"] .plus::after {
  transform: translateY(-50%) rotate(0deg);
}
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.acc-panel > p {
  overflow: hidden;
  font-size: var(--fs-small);
  color: var(--text-60);
  min-height: 0;
}
.acc-panel.open {
  grid-template-rows: 1fr;
}
.acc-panel.open > p {
  padding-bottom: 1.4em;
}

/* ---------- VIDEOS ---------- */
.videos {
  background: var(--black);
  padding: 0 0 16vh;
}
.videos h2 {
  font-size: var(--fs-h2-big);
  font-weight: 500;
}
.lead-sm {
  margin: 1.2em 0 5vh;
  font-size: var(--fs-body);
}
.v-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2vw;
}
.v .thumb {
  aspect-ratio: 16 / 9;
  background-size: 160%;
}
.play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0a0f14;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  padding-left: 3px;
}
.dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-size: var(--fs-micro);
  background: rgba(10, 10, 10, 0.75);
  padding: 0.2em 0.6em;
  border-radius: 4px;
}
.v h3 {
  font-size: var(--fs-body);
  margin-top: 0.9em;
}

/* ---------- CIERRE ---------- */
.closing {
  position: relative;
  overflow: hidden;
  padding: 18vh 0 22vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.closing-bg {
  position: absolute;
  inset: 0;
}
.closing-bg .mountains {
  top: auto;
  bottom: 0;
  height: 100%;
  object-position: center bottom;
}
.closing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 4vw;
  align-items: center;
}
.closing h2 {
  font-size: var(--fs-h2-big);
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.closing .muted {
  max-width: 36ch;
  margin-bottom: 2rem;
}
.mock-small {
  width: 100%;
  margin-top: 0;
}
.closing-pines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.closing-pines .pines {
  height: 30vh;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--sky-bottom);
  border-top: 1px solid var(--line);
  padding: 8vh 0 4vh;
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3vw;
}
.footer-grid .muted {
  margin-top: 1em;
  max-width: 30ch;
}
.footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  color: var(--text-60);
}
.footer nav a:hover {
  color: var(--white);
}
.footer h4 {
  color: var(--white);
  font-weight: 500;
  margin-bottom: 0.4em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 8vh;
  padding-top: 2vh;
  border-top: 1px solid var(--line);
  color: var(--text-50);
  font-size: var(--fs-micro);
}
.collection {
  color: var(--text-50);
}
.collection:hover {
  color: var(--white);
}

/* ---------- Reduced motion: todo visible y quieto ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero .mountains,
  .people-head,
  .people-head2,
  .frame,
  .row-extra,
  .fchip,
  .people-pines,
  .paint .w {
    animation: none;
  }
  .btn,
  .m-p,
  .frame-inner,
  .acc-panel,
  .burger span,
  .plus::before,
  .plus::after {
    transition: none;
  }
  .m-p.next,
  .m-p.read {
    opacity: 0.6;
  }
  .m-p.active {
    opacity: 1;
  }
  .paint .w {
    color: var(--white);
  }
  /* La sección pinned se despliega en flujo normal: titular, grilla plana, segundo titular */
  .people {
    height: auto;
  }
  .people-stage {
    position: relative;
    height: auto;
    padding: 16vh 0 12vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6vh;
  }
  .people-head,
  .people-head2 {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    opacity: 1;
    filter: none;
  }
  .frame {
    --cw: 16.375vw;
    position: relative;
    top: auto;
    left: auto;
    width: 70vw;
    transform: none;
  }
  .frame-inner {
    transform: none;
  }
  .row-extra {
    height: auto;
    margin-top: var(--gap);
    opacity: 1;
  }
  .fchip {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    margin: 0 8px;
  }
  .people-pines {
    display: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav {
    gap: 1.6vw;
    font-size: 0.75rem;
  }
  .panel {
    width: min(92vw, 1100px);
  }
  .mock-wrap {
    width: 80vw;
  }
  .frame {
    --cw: 12vw;
    width: 80vw;
  }
  @keyframes frame-grow {
    to {
      --cw: 20.875vw;
      top: 40vh;
      width: 88vw;
      transform: translateX(-50%) perspective(1200px) rotateX(0deg);
    }
  }
  .path-grid,
  .plans {
    grid-template-columns: repeat(2, 1fr);
  }
  .path {
    min-height: 0;
    padding: 4vw 3vw;
  }
  .inside-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inside h2 {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root {
    --pad: 16px;
    --fs-h1: 2.25rem;
    --fs-h1-people: 2.4rem;
    --fs-h2-big: 2.1rem;
    --fs-manifesto: 1.15rem;
  }
  .header {
    padding: 0 16px;
    grid-template-columns: 1fr auto;
  }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 17, 28, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    font-size: 1rem;
    display: none;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .login,
  .header-right .btn {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hero-content {
    padding-top: calc(64px + 6vh);
    padding-inline: 16px;
  }
  .hero h1 {
    max-width: 14ch;
    line-height: 1.18;
  }
  .lead {
    font-size: var(--fs-small);
    max-width: 34ch;
  }
  .mock-wrap {
    width: 100%;
    margin-top: 5vh;
  }
  .mock {
    grid-template-columns: 1fr;
    aspect-ratio: 5 / 4;
  }
  .mock-side {
    display: none;
  }
  .mock-main {
    font-size: 0.7rem;
    padding-bottom: 26%;
  }
  .pines {
    height: 15vh;
    background-size: 220% auto;
  }
  .manifesto {
    padding: 14vh 0 10vh;
  }
  .manifesto-col {
    margin-left: var(--pad);
    width: calc(100% - 2 * var(--pad));
  }
  .panel {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 24px;
    width: calc(100% - 32px);
  }
  .panel-text {
    display: contents; /* el pie "→ Hechos por…" pasa debajo de la grilla, como en la referencia */
  }
  .panel-text .foot {
    order: 2;
    padding-top: 4px;
  }
  .panel-grid {
    order: 1;
  }
  .course-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .course h3 {
    font-size: var(--fs-small);
  }
  .course p {
    font-size: var(--fs-micro);
  }
  /* Encuentros en 390: 3 columnas, tarjetas 24 → 28,6 vw */
  .people-head {
    top: 16vh;
  }
  .people-head2 {
    top: 14vh;
  }
  .frame {
    --cw: 24vw;
    --gap: 2vw;
    width: 92vw;
    top: 50vh;
  }
  @keyframes frame-grow {
    to {
      --cw: 28vw;
      top: 44vh;
      width: 92vw;
      transform: translateX(-50%) perspective(1200px) rotateX(0deg);
    }
  }
  .row-extra .card:nth-child(4) {
    display: none;
  }
  .card figcaption {
    font-size: 0.45rem;
    max-width: 88%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fchip-l {
    left: 4%;
    top: 78vh;
  }
  .fchip-r {
    right: 4%;
    top: 85vh;
  }
  .people-pines .pines {
    height: 22vh;
  }
  .paths {
    padding: 10vh 0 8vh;
  }
  .path-grid,
  .plans,
  .t-grid,
  .v-grid,
  .inside-grid,
  .faq-grid,
  .closing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .path {
    padding: 20px;
  }
  .t {
    padding: 20px;
  }
  .plan {
    padding: 24px 20px;
  }
  .closing {
    padding: 14vh 0 26vh;
  }
  .closing-pines .pines {
    height: 22vh;
  }
  .footer-grid {
    gap: 24px;
  }
}
