/* RBLN Fuel · values from Pen lzyJo (desktop 1440) and Z2JPi (mobile 390).
   Mobile-first. Breakpoints follow content needs:
   40em map orientation · 48em inset panels, race row, 2-col grids · 64em desktop type, nav, two-column sections, plan order
   75em four-column rows, map beside its list, testimonial grid, wide plan cards. */

@font-face {
  font-family: WIDE;
  src: url("../rbln_fuel_1-assets/WIDE.ttf") format("truetype");
  font-display: swap;
  font-weight: 124 300;
}

:root {
  --ink: #050a17;
  --muted: #60616c;
  --muted-dark: #a0a1a8;
  --line: #d7d8df;
  --line-dark: #2e2e34;
  --page: #f5f6fc;
  --night: #0a0a12;
  --night-2: #1e1e29;
  --pink: #ff8fd0;
  --pink-soft: #ffc4e4;
  --pink-chip: #ffa8d9;
  --magenta: #ff007a;
  --quote: #f27bc6;

  --font-wide: WIDE, system-ui, sans-serif;
  --font-display: Manrope, system-ui, sans-serif;
  --font-body: Geist, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --pad: 24px;
  --content: 1312px;
  --h2-size: 40px;
  --h2-leading: 38px;
  --h2-tracking: -1.6px;
}

@media (min-width: 48em) {
  :root { --pad: clamp(32px, 4.444vw, 64px); }
}

@media (min-width: 64em) {
  .br-compact { display: none; }
  :root {
    --h2-size: 56px;
    --h2-leading: 53px;
    --h2-tracking: -2.24px;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/24px var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: currentColor; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { top: 16px; }

/* Shared section rhythm: content column of 1312 px, side padding --pad. */
.section,
.site-header,
.hero,
.site-footer { padding-inline: max(var(--pad), (100% - var(--content)) / 2); }

.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 2.88px;
  white-space: nowrap;
}
.kicker__label { color: var(--muted); }
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* Pen draws no rule after 01 and 06 on mobile. */
.kicker--wide-rule::after { display: none; }
@media (min-width: 64em) {
  .kicker--wide-rule::after { display: block; }
}
.kicker--dark .kicker__index { color: #fff; }
.kicker--dark .kicker__label { color: var(--muted-dark); }
.kicker--dark::after { background: var(--line-dark); }

.intro__title,
.classes__title,
.includes__title,
.audience__title,
.steps__title,
.profile__name,
.testimonials__title,
.pricing__title,
.race__title {
  font: 700 var(--h2-size)/var(--h2-leading) var(--font-display);
  letter-spacing: var(--h2-tracking);
}

/* Buttons: primary gradient and light outline variant from Pen. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  font: 500 14px/18px var(--font-body);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.button .icon { width: 16px; height: 16px; }
.button[href] { cursor: pointer; }
.button[href]:hover { filter: brightness(0.97); }
.button--primary,
.plan[data-plan="strategy"] .plan__cta { background: linear-gradient(0deg, var(--pink) 0%, var(--pink-soft) 100%); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  background: var(--page);
}

.logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.294em;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
}
.logo__iso { position: relative; flex: none; width: 1.1714em; height: 1em; margin-right: 0.147em; }
.logo__iso svg { position: absolute; height: 0.5em; }
.logo__iso-top { left: 0; top: 0; width: 0.7955em; }
.logo__iso-bottom { left: 0.4294em; top: 0.5em; width: 0.742em; }
.logo__word { flex: none; width: 2.5427em; height: 0.6667em; margin-top: 0.1667em; fill: currentColor; }
.logo__fuel {
  margin: 0.028em 0 0 -0.065em;
  font: 700 0.9259em/0.99 var(--font-display);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-header .logo { font-size: 22.4px; }

.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  cursor: pointer;
}
.menu-toggle .icon { width: 24px; height: 24px; }

.site-nav { display: none; }
.site-nav__links { display: flex; gap: 24px; }
.site-nav__links a,
.mobile-menu__links a { text-decoration: none; text-underline-offset: 4px; }
.site-nav__links a:hover,
.mobile-menu__links a:hover { text-decoration: underline; }

/* Compact menu panel: not drawn in Pen (only the closed toggle is), built from the same tokens. */
.mobile-menu {
  display: none;
  position: absolute;
  inset: 100% 0 auto;
  padding: 8px var(--pad) 24px;
  background: var(--page);
  border-bottom: 1px solid var(--line);
}
.menu-toggle[aria-expanded="true"] ~ .mobile-menu { display: block; }
.mobile-menu__links a { display: block; padding: 10px 0; font-size: 20px; line-height: 24px; }

@media (min-width: 64em) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    padding-block: 32px;
  }
  .logo { font-size: 36px; }
  .site-header .logo { font-size: 28.8px; }
  .menu-toggle,
  .menu-toggle[aria-expanded="true"] ~ .mobile-menu { display: none; }
  .site-nav { display: contents; }
  .site-nav__cta { justify-self: end; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 24px; }
.hero__intro { display: flex; flex-direction: column; gap: 32px; }
.hero__text { display: flex; flex-direction: column; gap: 24px; container-type: inline-size; }
.eyebrow { font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--muted); }
/* Pen breaks the mobile title into four lines; the size follows the text column (36.6 px at 390, as Pen's 37 px
   line "TU MEJOR 21" is ~1% wider in Chromium) and grows on tablets. */
.hero__title { font: 300 min(56px, 10.7cqi)/0.811 var(--font-wide); }
/* Closed enrolment (CLOSURE.md, no Pen node): the same WIDE voice, sentence case in the DOM, leading open enough for
   the accent of ENCARNACIÓN. Phones: 8.4cqi fits the longest word (INSCRIPCIONES, 11.14 em). From 40em, 6.7cqi keeps
   PARA ENCARNACIÓN (14.6 em) on one line; 15.5 em gives three lines at the 60 px top size. */
.hero__closed-title { max-width: 15.5em; font: 300 min(60px, 8.4cqi)/1 var(--font-wide); text-transform: uppercase; }
@media (min-width: 40em) {
  .hero__closed-title { font-size: min(60px, 6.7cqi); }
}
.hero__lead { max-width: 783px; font-size: 20px; line-height: 29px; }
.hero__meta { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted); }
.hero__cta { width: 100%; }
.hero__card {
  position: relative;
  width: 100%;
  max-width: 428px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}
.hero__card video,
.profile__portrait video,
.video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Extend video paint under the rounded clip to avoid a fractional-pixel seam in Safari. */
.hero__card video,
.profile__portrait video {
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}
.video-poster { pointer-events: none; }
[data-video-playing] > .video-poster { opacity: 0; }

@media (min-width: 48em) {
  .hero__cta { width: auto; align-self: flex-start; }
}

@media (min-width: 64em) {
  .hero { padding-top: 56px; }
  .hero__intro { flex-direction: row; align-items: center; gap: 24px; padding-top: 48px; }
  .hero__text { flex: 1; }
  .hero__title { max-width: 9.86em; font-size: min(84.939px, 10cqi); line-height: 0.824; }
  .hero__card { flex: none; width: 342px; max-width: none; height: 428px; aspect-ratio: auto; }
}

/* ---------- Course map ---------- */
.course { display: flex; flex-direction: column; gap: 16px; padding-top: 40px; }
.course__head { display: flex; flex-direction: column; gap: 8px; }
.course__title { font: 700 14px/20px var(--font-display); letter-spacing: 1.44px; color: var(--muted); }
.legend { display: flex; gap: 16px; font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.legend__dot--route { background: var(--pink); border: 1px solid #9c2b6c; }

.course__body { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.course-map { position: relative; background: var(--page); }
/* Border drawn on top so the 342 px map and its viewport keep the same width at 390. */
.course-map::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: inherit;
  pointer-events: none;
}
.course-map__viewport { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
.course-map__viewport::-webkit-scrollbar { display: none; }
.course-map__canvas {
  position: relative;
  width: max(342px, min(100%, 430px));
  aspect-ratio: 342 / 771;
  margin-inline: auto;
  container-type: inline-size;
}
.course-map__image { position: absolute; inset: 0; width: 100%; height: 100%; }

.marker {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 48px;
  background: var(--night-2);
  outline: 1px solid var(--muted-dark);
  outline-offset: -0.5px;
  color: #fff;
  font: 500 12px/16px var(--font-mono);
}
.marker--start { background: var(--pink); outline: 0; color: var(--ink); }
/* Mobile markers sit on the rotated raster ones (Pen draws them upright); size scales with the map. */
.course-map__markers .marker {
  position: absolute;
  left: calc(var(--vx) * 1%);
  top: calc(var(--vy) * 1%);
  width: 6.433cqi;
  height: auto;
  aspect-ratio: 1;
  font-size: 3.509cqi;
  line-height: 1;
  translate: -50% -50%;
}
.course-map__north {
  position: absolute;
  left: 83.626%;
  top: 1.556%;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  background: #fff;
  font: 500 12px/16px var(--font-mono);
}
.course-map__north .icon { width: 12px; height: 12px; }

.course-point { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.course-point:last-child { border-bottom: 0; }
.course-point__text { display: flex; flex-direction: column; gap: 4px; font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; }
.course-point__km { color: var(--muted); }

@media (min-width: 40em) {
  .course-map { overflow: hidden; border-radius: 8px; }
  .course-map__viewport { overflow: hidden; aspect-ratio: 946 / 352; }
  /* Same crop as Pen (image scaled to the frame width, raised 13 px). Markers are part of this raster. */
  .course-map__canvas { width: 100%; aspect-ratio: 2616 / 1394; margin-top: -1.382%; }
  .course-map__markers,
  .course-map__north { display: none; }
}

@media (min-width: 48em) {
  .course__head { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 64em) {
  .course { padding-top: 64px; }
}

@media (min-width: 75em) {
  .course__body { flex-direction: row; gap: 24px; }
  .course-map { flex: 1; align-self: flex-start; }
  .course-points { flex: none; width: 342px; }
}

/* ---------- Race panel ---------- */
.race { margin-top: 32px; }
.race__panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px;
  background: var(--night);
  color: #fff;
}
.race__main { display: flex; flex-direction: column; gap: 24px; }

.race-photos { position: relative; aspect-ratio: 757.2 / 599; overflow: hidden; border-radius: 8px; background: var(--night); }
.race-photos__track,
.bleed-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.race-photos__track::-webkit-scrollbar,
.bleed-track::-webkit-scrollbar { display: none; }
.race-photos__track { height: 100%; }
.race-photos__slide { flex: 0 0 100%; scroll-snap-align: start; }
.race-photos__slide img { width: 100%; height: 100%; object-fit: cover; }

.race-photos__controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
  pointer-events: none;
}
.race-photos__dots { display: flex; align-items: center; gap: 6px; }
.race-photos__dots > * {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #ffffff80;
}
.race-photos__dots > [aria-current="true"] { width: 22px; background: var(--pink); }
/* Mobile is swipe-only (Pen w89Yx): its dots are drawn indicators that let touches reach the track.
   The 6 px dots are buttons only where the 36 px arrows offer the same action. */
.race-photos__dots--buttons { display: none; pointer-events: auto; }
.race-photos__dots--buttons button { cursor: pointer; }
.race-photos__nav { display: flex; align-items: center; gap: 8px; }
.race-photos__count {
  margin-right: 8px;
  font: 400 11px/14px var(--font-mono);
  letter-spacing: 1.5px;
  color: #ffffffcc;
  white-space: nowrap;
}
.round-button {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #ffffff99;
  box-shadow: 0 0 0 0.5px #d9dff5, inset 0 0 0 0.5px #d9dff5;
  backdrop-filter: blur(6px);
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
}
.round-button .icon { width: 18px; height: 18px; }

.race__info { display: flex; flex-direction: column; gap: 24px; padding-top: 4px; }
.race__edition { font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--muted-dark); }
.race__title span { display: block; }
.race__desc { color: var(--muted-dark); }
/* Pen keeps every row 55.5 px tall, also when a mobile value wraps to two lines. */
.race-facts > div {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 55.5px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-dark);
}
.race-facts dt {
  flex: none;
  width: 120px;
  padding-top: 2px;
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 1.44px;
  color: var(--muted-dark);
}
.race-facts dd { flex: 1; font: 400 14px/20px var(--font-mono); }
.race-distance { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.race-distance__value { display: flex; align-items: flex-end; gap: 4px; font: 500 40px/38px var(--font-mono); letter-spacing: -1.6px; }
.race-distance__unit { padding-bottom: 4px; font: 400 24px/23px var(--font-mono); letter-spacing: 0; color: var(--muted-dark); }
.race-distance__label { font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--muted-dark); }

.reasons { display: flex; flex-direction: column; gap: 24px; }
.reasons__title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 1.44px;
  color: var(--muted-dark);
}
.reasons__title::after { content: ""; height: 1px; margin-right: -6px; background: var(--line-dark); }
/* Pen breaks this mono label before "DISTINTO" on mobile; Chromium's glyphs are slightly narrower. */
.reasons__title { margin-right: 6px; }
.reasons__list { display: flex; flex-direction: column; gap: 24px; }
.reason { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; border-bottom: 1px solid var(--line-dark); }
.reason:last-child { padding-bottom: 0; border-bottom: 0; }
.reason__num { font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--muted-dark); }
.reason h4 { font: 700 20px/22px var(--font-display); }
.reason p { color: var(--muted-dark); }

@media (min-width: 40em) {
  .reasons__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .reason:nth-child(n + 3) { padding-bottom: 0; border-bottom: 0; }
}

@media (min-width: 48em) {
  .race { padding-inline: max(16px, (100% - 1408px) / 2); }
  .race__panel { padding: 32px; border-radius: 8px; }
  .round-button { display: grid; }
  .race-photos__dots--buttons { display: flex; }
  .race-photos__dots--marks { display: none; }
  .reasons__title { flex-direction: row; align-items: center; margin-right: 0; white-space: nowrap; }
  .reasons__title::after { margin-right: 0; }
  .reasons__title::after { flex: 1; }
}

@media (min-width: 64em) {
  .race { margin-top: 64px; }
  .race__main { flex-direction: row; }
  .race-photos { flex: 0 0 50%; align-self: flex-start; }
  .race__info { flex: 1; padding-left: 24px; }
  .race-distance__value { font-size: 56px; line-height: 53px; letter-spacing: 0; }
}

@media (min-width: 75em) {
  .race-photos { flex-basis: 56.34%; }
  .reasons__list { display: flex; flex-direction: row; }
  .reason { flex: 1; padding: 0 24px 0 0; border-bottom: 0; border-right: 1px solid var(--line-dark); }
  .reason:last-child { border-right: 0; }
}

/* ---------- Giuli intro + classes ---------- */
.intro { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; }
.intro__cols { display: flex; flex-direction: column; gap: 32px; }
.intro__title { line-height: 40px; }
.intro__story { display: flex; flex-direction: column; gap: 16px; }
.intro__story p:first-child { font-size: 20px; line-height: 29px; }
.intro__sign { display: flex; gap: 6px; color: var(--muted); }

.classes { display: flex; flex-direction: column; gap: 24px; padding-block: 40px 48px; }
.classes__title { font-size: 32px; line-height: 33px; letter-spacing: -0.64px; }
/* Text metrics: Chromium sets some lines 1–6 px wider than Pen. Where that would move a word,
   the box gets just enough slack (measured against the next word) to break lines as Pen does. */
.classes__lead { max-width: 648px; font-size: 20px; line-height: 29px; }
.classes__carousel,
.testimonials__carousel { display: flex; flex-direction: column; gap: 24px; }

/* Mobile carousels bleed to the right edge (Pen viewport 366 = 342 + 24); only used below 1200 px. */
.bleed-track {
  gap: 16px;
  margin-right: calc(-1 * var(--pad));
  padding-right: var(--pad);
}

.class-card { display: flex; flex-direction: column; gap: 16px; flex: 0 0 280px; padding-top: 24px; scroll-snap-align: start; }
.class-card__art { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; overflow: hidden; background: #fff; }
.class-card__meta {
  display: flex;
  justify-content: space-between;
  align-self: stretch;
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 1.44px;
  color: var(--muted);
}
.class-art { position: relative; flex: none; width: 213.6px; height: 220.57px; overflow: hidden; }
.class-card h3 { font: 700 20px/22px var(--font-display); }
.class-card > p { color: var(--muted); }

.carousel-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 2.88px;
  white-space: nowrap;
}
.carousel-indicator__progress { display: flex; flex: 1; gap: 4px; height: 2px; }
.carousel-indicator__progress span { flex: 1; background: var(--line); }
.carousel-indicator__progress span[aria-current="true"] { background: var(--ink); }
.carousel-indicator__hint { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.carousel-indicator__hint .icon { width: 16px; height: 16px; }

@media (min-width: 48em) {
  .classes__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }
  .classes .carousel-indicator { display: none; }
}

@media (min-width: 64em) {
  .intro { padding-top: 64px; }
  .intro__cols { flex-direction: row; gap: 64px; }
  .intro__title,
  .intro__story { flex: 1; }
  .intro__title { line-height: 56px; }
  .intro__story { gap: 24px; font-size: 20px; line-height: 29px; }
  .classes { padding-block: 64px 72px; }
  .classes__title { font-size: 48px; line-height: 47px; letter-spacing: -0.96px; }
}

@media (min-width: 75em) {
  .classes__track { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Includes ---------- */
.includes__panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 24px var(--pad);
  background: var(--night);
  color: #fff;
}
.includes__head { display: flex; flex-direction: column; gap: 24px; }
.includes__cols { display: flex; flex-direction: column; gap: 32px; }
.includes__list { display: flex; flex-direction: column; gap: 24px; }
.includes__list li { display: flex; gap: 16px; font-size: 20px; line-height: 29px; }
.includes__list .icon { width: 24px; height: 24px; margin-top: 3px; color: var(--pink); }

@media (min-width: 48em) {
  .includes { padding-inline: max(16px, (100% - 1408px) / 2); }
  .includes__panel { padding-inline: max(16px, var(--pad) - 16px); border-radius: 8px; }
}

@media (min-width: 64em) {
  .includes__panel { padding-block: 64px; }
  .includes__cols { flex-direction: row; gap: 64px; }
  .includes__list { flex: 1; }
  .includes__list p { margin-right: -6px; }
}

/* ---------- Audience ---------- */
.audience { display: flex; flex-direction: column; gap: 24px; padding-block: 40px; }
.audience__cols { display: flex; flex-direction: column; gap: 32px; }
.audience__text p + p { margin-top: 24px; }

@media (min-width: 64em) {
  .audience { padding-block: 64px; }
  .audience__cols { flex-direction: row; gap: 64px; }
  .audience__title,
  .audience__text { flex: 1; }
  .audience__text { font-size: 20px; line-height: 29px; }
  .audience__text p + p { margin-top: 29px; }
}

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 48px; padding-bottom: 40px; }
.steps__head { display: flex; flex-direction: column; gap: 24px; }
.steps__list { display: flex; flex-direction: column; gap: 48px; }
.step { display: flex; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.step__num { flex: none; font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--muted); }
.step div { display: flex; flex: 1; flex-direction: column; gap: 8px; }
.step h3 { font: 700 24px/25px var(--font-display); }
.step p { color: var(--muted); }

@media (min-width: 64em) {
  .steps { padding-bottom: 64px; }
  .step { gap: 48px; }
}

/* ---------- Profile ---------- */
.profile { display: flex; flex-direction: column; gap: 32px; padding-bottom: 40px; }
.profile__portrait { position: relative; aspect-ratio: 342 / 428; overflow: hidden; border-radius: 8px; }
.profile__portrait .video-poster { object-position: 56.2% 50%; }
.profile__quote {
  position: absolute;
  right: 20px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  white-space: nowrap;
}
.profile__quote-label { font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--muted); }
.profile__quote-text { font: 500 14px/20px var(--font-body); }
.profile__info { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.profile__intro { display: flex; flex-direction: column; gap: 12px; }
.profile__kicker-lead { display: none; }
.profile__name { padding-top: 12px; }
.profile__school { font-size: 14px; line-height: 20px; color: var(--muted); }
.profile__bio { padding-top: 12px; font-size: 20px; line-height: 29px; color: var(--muted); }
.profile__specialties { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.profile__specialties-label { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--pink-soft);
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 2.88px;
}
.profile__stats { display: flex; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.profile__stats > div { display: flex; flex: 1; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.profile__stats dd { font: 500 40px/44px var(--font-mono); }
.profile__stats dt { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted); }

@media (min-width: 48em) {
  .profile { flex-direction: row; }
  .profile__portrait { flex: 0 0 40.85%; align-self: flex-start; }
  .profile__info { flex: 1; }
}

@media (min-width: 64em) {
  .profile { gap: 64px; padding-bottom: 64px; }
  .profile__kicker-lead { display: inline; }
  .profile__specialties { flex-direction: row; align-items: center; gap: 16px; }
  .profile__stats { gap: 32px; }
}

/* ---------- Testimonials ---------- */
.testimonials { display: flex; flex-direction: column; padding-bottom: 40px; }
.testimonials__title { padding: 24px 0 32px; }
.testimonial {
  display: flex;
  flex: 0 0 300px;
  min-height: 572px;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
}
.testimonial figure { display: flex; flex-direction: column; gap: 24px; width: 100%; padding: 24px; }
.testimonial--featured { background: var(--night); color: #fff; }
.testimonial--pink { background: var(--pink-soft); }
.testimonial__badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--page);
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 2.88px;
  white-space: nowrap;
}
.testimonial--featured .testimonial__badge { background: var(--night-2); }
.testimonial--pink .testimonial__badge { background: var(--pink-chip); }
.testimonial__sep { display: none; }
.testimonial__quote { flex: 1; font: 500 20px/26px var(--font-display); }
.testimonial__quote p + p { margin-top: 26px; }
.testimonial__mark { display: block; width: 28px; height: 28px; margin-bottom: 12px; color: var(--quote); }
.testimonial--featured .testimonial__mark { width: 36px; height: 36px; }
.testimonial--pink .testimonial__mark { color: #4d1a38; }
.testimonial__author { display: flex; align-items: center; gap: 12px; }
.testimonial__author img { width: 48px; height: 48px; border-radius: 50%; background: #ffddef; object-fit: cover; }
.testimonial--featured .testimonial__author img { background: var(--night-2); }
.testimonial--pink .testimonial__author img { background: #fff0f8; }
.testimonial__author > span { display: flex; flex-direction: column; }
.testimonial__name { font-weight: 500; }
.testimonial__handle { font: 500 14px/20px var(--font-body); color: var(--muted); }
.testimonial--featured .testimonial__handle { color: var(--muted-dark); }
.testimonial--pink .testimonial__handle { color: #4d1a38; }

@media (min-width: 64em) {
  .testimonials { padding-bottom: 64px; }
  /* The Pen head row is 58 px tall (empty lead slot beside the 53 px title). */
  .testimonials__title { padding-bottom: 69px; }
}

@media (min-width: 75em) {
  /* Pen grid: 776 + 512 on the first two rows, 644 + 644 on the third. */
  .testimonials__track {
    display: grid;
    grid-template-columns: 644fr 108fr 512fr;
    grid-template-rows: minmax(380px, auto) minmax(380px, auto) minmax(360px, auto);
    gap: 24px;
    margin-right: 0;
    padding-right: 0;
    overflow: visible;
  }
  .testimonial { min-height: 0; }
  .testimonial:nth-child(1) { grid-area: 1 / 1 / 3 / 3; }
  .testimonial:nth-child(2) { grid-area: 1 / 3; }
  .testimonial:nth-child(3) { grid-area: 2 / 3; }
  .testimonial:nth-child(4) { grid-area: 3 / 1; }
  .testimonial:nth-child(5) { grid-area: 3 / 2 / 4 / 4; }
  .testimonial figure { padding: 32px; }
  .testimonial:nth-child(2) figure,
  .testimonial:nth-child(3) figure { justify-content: space-between; }
  .testimonial:nth-child(2) .testimonial__quote,
  .testimonial:nth-child(3) .testimonial__quote { flex: none; }
  .testimonial__badge { flex-direction: row; gap: 6px; }
  .testimonial__sep { display: inline; }
  .testimonial__quote { margin-right: -4px; font-size: 24px; line-height: 31px; }
  .testimonial--featured .testimonial__quote { font-size: 32px; line-height: 42px; }
  .testimonial--featured .testimonial__quote p + p { margin-top: 42px; }
  .testimonials .carousel-indicator { display: none; }
}

/* ---------- Pricing: dates + plans ---------- */
.pricing { display: flex; flex-direction: column; gap: 48px; padding-bottom: 40px; }
.pricing__head { display: flex; flex-direction: column; gap: 24px; }

.date { display: flex; gap: 12px; }
.date__mark { display: flex; flex: none; flex-direction: column; align-items: center; width: 12px; }
.date__mark::before,
.date__mark::after { content: ""; width: 1.5px; background: currentColor; }
.date__mark::before { flex: none; height: 5.25px; color: transparent; }
.date__mark::after { flex: 1; }
.date__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.date__text { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 2.6px 0 32px; }
.date:last-child .date__text { padding-bottom: 0; }
.date__label { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted); }
.date__value { font: 500 20px/22px var(--font-mono); }
.date__note { font-size: 14px; line-height: 20px; color: var(--muted); }
.date[data-tone="past"] .date__note { font-family: var(--font-mono); }
.date[data-tone="past"] .date__dot { background: var(--ink); }
.date[data-tone="past"] .date__mark::after { color: var(--ink); }
.date[data-tone="start"] .date__dot { background: var(--page); box-shadow: inset 0 0 0 1.5px var(--muted); }
.date[data-tone="start"] .date__mark::before { color: var(--ink); }
.date[data-tone="start"] .date__mark::after { color: var(--pink); }
.date[data-tone="race"] .date__dot { background: var(--magenta); }
.date[data-tone="race"] .date__mark::before { color: var(--pink); }
.date[data-tone="race"] .date__mark::after { content: none; }

.plans { display: flex; flex-direction: column; gap: 24px; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  container-type: inline-size;
  border-radius: 8px;
  box-shadow: 0 0 0 0.5px var(--line), inset 0 0 0 0.5px var(--line);
}
.plan[data-plan="strategy"] { background: var(--night); color: #fff; box-shadow: none; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan[data-plan="strategy"] .plan__head { flex-direction: column; align-items: stretch; }
.plan__eyebrow,
.plan dt { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted); }
.plan__chip {
  flex: none;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--pink-chip);
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 1.44px;
}
.plan[data-plan="strategy"] .plan__chip { background: var(--night-2); }
.plan__title { font: 700 32px/33px var(--font-display); letter-spacing: -0.64px; }
.plan__facts { display: flex; flex-direction: column; gap: 24px; padding: 24px 0; border-block: 1px solid var(--line); }
.plan__fact { display: flex; flex-direction: column; gap: 8px; }
.plan__fact:first-child { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.plan dd { display: flex; flex-direction: column; gap: 8px; }
.plan__figure { display: flex; align-items: flex-end; gap: 8px; }
.plan__amount { font: 500 40px/40px var(--font-mono); letter-spacing: -1.6px; white-space: nowrap; }
.plan__unit { padding-bottom: 6px; font: 500 24px/24px var(--font-mono); color: var(--muted); }
.plan__note { font-size: 14px; line-height: 20px; color: var(--muted); }
.plan__cta { width: 100%; margin-bottom: 4px; }
.plan[data-plan="consultation"] .plan__cta {
  background: linear-gradient(0deg, #ffffff99 0%, #fff 100%);
  box-shadow: 0 0 0 0.5px #d9dff5, inset 0 0 0 0.5px #d9dff5;
}
.plan[data-plan="consultation"] .plan__cta .icon { display: none; }
.plan[data-plan="strategy"] :is(.plan__eyebrow, dt, .plan__unit, .plan__note) { color: var(--muted-dark); }
.plan[data-plan="strategy"] .plan__note { font-family: var(--font-mono); }
.plan[data-plan="strategy"] :is(.plan__facts, .plan__fact) { border-color: var(--line-dark); }

@media (min-width: 64em) {
  .pricing { padding-bottom: 64px; }
  .dates { display: flex; }
  .date { flex: 1; flex-direction: column; gap: 16px; }
  .date__mark { flex-direction: row; width: auto; height: 12px; }
  .date__mark::before { content: none; }
  .date__dot { width: 12px; height: 12px; }
  /* Pen dotted segment: 1.8 px dots every 6 px. */
  .date__mark::after { height: 2px; background: radial-gradient(circle, currentColor 0.9px, transparent 1px) 2.1px 0 / 6px 2px repeat-x; }
  .date[data-tone="past"] .date__mark::after { opacity: 0.5; }
  .date[data-tone="start"] .date__mark::after { opacity: 0.6; }
  .date__text { padding: 0 24px 0 0; }
  .plans { flex-direction: row; }
  .plan { flex: 1; padding: 32px; }
  .plan__amount { font-size: 56px; line-height: 56px; letter-spacing: -2.24px; }
}

/* Pen's wide card (price | 230 px side fact) needs ~520 px inside the card: chosen by the card's own width. */
@container (min-width: 520px) {
  .plan[data-plan="strategy"] .plan__head { flex-direction: row; align-items: center; }
  .plan__facts { flex-direction: row; gap: 0; }
  .plan__fact:first-child { flex: 1; padding: 0 24px 0 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .plan__fact:last-child { flex: none; width: 230px; padding-left: 24px; }
}

/* ---------- Waitlist: takes the place of the plans once enrolment is closed (CLOSURE.md) ---------- */
/* Dark panel with the strategy plan's title scale. Mobile: full-bleed band like the race and includes panels, field
   and button full width in a column; from 48em an inset card with both in a row. */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-inline: calc(-1 * var(--pad));
  padding: 24px var(--pad);
  background: var(--night);
  color: #fff;
}
.waitlist__title { font: 700 32px/33px var(--font-display); letter-spacing: -0.64px; }
.waitlist__form { display: flex; flex-direction: column; gap: 8px; }
.waitlist__label { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted-dark); }
.waitlist__row { display: flex; flex-direction: column; gap: 12px; }
.waitlist__email {
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--night-2);
  color: #fff;
  font: 400 16px/24px var(--font-body);
}
.waitlist__email[aria-invalid="true"] { border-color: var(--pink); }
.waitlist__submit { border: 0; cursor: pointer; }
.waitlist__submit:enabled:hover { filter: brightness(0.97); }
.waitlist__submit:disabled { opacity: 0.5; cursor: not-allowed; }
.waitlist__status:not(:empty) { margin-top: 4px; font-size: 14px; line-height: 20px; }
.waitlist__form:is([data-waitlist-state="invalid"], [data-waitlist-state="rate-limit"], [data-waitlist-state="error"]) .waitlist__status { color: var(--pink); }
.waitlist__purpose { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--muted-dark); }
/* Honeypot: off-screen (not display:none, so naive bots still fill it), out of the tab order and the AX tree. */
.waitlist__trap { position: absolute; left: -10000px; width: 1px; height: 1px; }

@media (min-width: 48em) {
  .waitlist { margin-inline: 0; padding-inline: 24px; border-radius: 8px; }
  .waitlist__row { flex-direction: row; }
  .waitlist__email { flex: 1; }
}

@media (min-width: 64em) {
  .waitlist { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 64px; padding: 32px; }
  .waitlist__title { flex: 1; max-width: 560px; }
  .waitlist__form { flex: 1; max-width: 560px; }
}

/* ---------- Footer ---------- */
.site-footer { padding-bottom: 40px; background: var(--night); color: #fff; container-type: inline-size; }
.site-footer__cols { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; border-top: 1px solid var(--line-dark); }
.site-footer__brand { display: flex; flex-direction: column; gap: 24px; max-width: 310px; }
.site-footer__brand p { margin-right: -6px; font-size: 14px; line-height: 20px; color: var(--muted-dark); }
.logo--footer { font-size: 27px; color: #fff; }
.logo--footer .logo__iso { width: 25.06px; height: 22.5px; margin-right: 0; }
.logo--footer .logo__iso svg { height: 9px; }
.logo--footer .logo__iso-top { top: 4.5px; width: 14.32px; }
.logo--footer .logo__iso-bottom { left: 7.73px; top: 13.5px; width: 13.356px; }
.site-footer__label { font: 500 12px/16px var(--font-mono); letter-spacing: 2.88px; color: var(--pink); }
.site-footer__index,
.site-footer__contact { display: flex; flex-direction: column; gap: 20px; }
.site-footer__index ul { display: flex; flex-direction: column; gap: 14px; }
.site-footer__index a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.site-footer__index a span { font: 500 12px/16px var(--font-mono); letter-spacing: 1.44px; color: var(--muted-dark); }
.site-footer__index a:hover,
.site-footer__contact a[href]:hover .site-footer__contact-title { text-decoration: underline; }
.site-footer__contact ul { display: flex; flex-direction: column; gap: 20px; }
.site-footer__contact a { display: flex; gap: 12px; text-decoration: none; }
.site-footer__contact .icon { width: 22px; height: 22px; color: var(--pink); }
.site-footer__contact a > span { display: flex; flex-direction: column; gap: 2px; }
.site-footer__contact-title { font-weight: 500; }
.site-footer__contact-detail { font-size: 14px; line-height: 20px; color: var(--muted-dark); }
.site-footer__slogan { padding: 56px 0 36px; font: 300 36px/30px var(--font-wide); }
.site-footer__legal {
  padding: 20px 0 0 2.88px;
  border-top: 1px solid var(--line-dark);
  font: 500 12px/16px var(--font-mono);
  letter-spacing: 2.88px;
  text-align: center;
  color: var(--muted-dark);
}

@media (min-width: 48em) {
  .site-footer__index ul { display: grid; grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 14px 24px; }
  .site-footer__slogan { font-size: min(92.66px, 7.07cqi); line-height: 0.82; white-space: nowrap; }
  .site-footer__slogan br { display: none; }
}

@media (min-width: 64em) {
  .site-footer__cols { display: grid; grid-template-columns: 310fr 644fr 310fr; }
  .site-footer__slogan { padding-top: 96px; }
}

/* ---------- Enrolment state (CLOSURE.md) ---------- */
/* scripts/main.mjs sets html[data-enrolment] to early, regular or closed; the static page is the open one. Closed hides
   every purchase surface, «Cómo funciona» (its steps sell) with its index entries, and the footer's WhatsApp contact
   (data-link strategyWhatsApp here, footerWhatsApp once the integrator syncs it). A waitlist form in any state but idle
   (the answer to a submission) keeps its panel visible whatever the clock says. */
:root[data-enrolment="closed"] :is([data-enrolment-only="open"], li:has(> a[href="#como-funciona"]), .site-footer__contact li:has(> a[data-link$="WhatsApp"])),
:root:not([data-enrolment="closed"]) [data-enrolment-only="closed"]:not(:has([data-waitlist-state]:not([data-waitlist-state="idle"]))) { display: none !important; }

/* ---------- Motion (scripts/motion.mjs) ---------- */
/* Before the scripts run, the hero title and lead wait at the dim ink their words start from (index.html sets
   .ink-boot only when the text motion can run); if the scripts fail, they return to full ink by themselves. */
.ink-boot :is(.hero__title, .hero__lead) { opacity: 0.24; animation: ink-boot 0.4s 2.4s forwards; }
@keyframes ink-boot { to { opacity: 1; } }
/* Testimonial text not yet typed keeps its place, invisible (scripts/typing.mjs). */
::highlight(rbln-typing) { color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  /* With the boot failsafe animation cancelled, a hero still dim from .ink-boot (scripts failed) goes straight to full ink. */
  .ink-boot :is(.hero__title, .hero__lead) { opacity: 1; }
}
