/* =====================================================================
   Home (index.html + en/index.html) · public landing
   Handoff 2026-09-28 (docs/design/handoff-2026-09-28/): WEB-C01/C02/C03/C04 canonical references.
   Loaded after styles.flow.css; everything here is prefixed `h-`.
   Motion: transform/opacity only, ≤400ms reveals via the shared .reveal/.in-view mechanism
   (app.flow.js) plus a couple of self-contained keyframe hints below, both disabled under
   prefers-reduced-motion.
   Spacing scale follows the tokens (48–64px mobile / 96–128px desktop between sections).
   ===================================================================== */

.home {
  --h-radius: 16px;
  --h-radius-sm: 12px;
  --h-shadow: 0 1px 2px rgba(11, 31, 77, 0.05), 0 18px 44px rgba(11, 31, 77, 0.1);
  --h-shadow-lg: 0 2px 6px rgba(11, 31, 77, 0.06), 0 36px 80px rgba(11, 31, 77, 0.16);
  --h-green: #137a42;
  --h-green-bg: #eaf7ef;
}
[data-theme="dark"] .home {
  --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 44px rgba(0, 0, 0, 0.3);
  --h-shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 36px 80px rgba(0, 0, 0, 0.42);
  --h-green: #6ad99a;
  --h-green-bg: #123c2b;
}

/* ---------- Shared section rhythm ---------- */
.h-section {
  padding: 64px 0;
}
.h-section-alt {
  background: var(--soft);
}
.h-title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.h-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.h-head .h-title {
  max-width: none;
}
.h-lead {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
}
.h-head .h-lead {
  margin-inline: auto;
}
.h-blue {
  color: var(--blue);
}
.h-center-actions {
  text-align: center;
  margin-top: 28px;
}
.h-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
}
@media (min-width: 768px) {
  .h-section {
    padding: 96px 0;
  }
}
@media (min-width: 1024px) {
  .h-section {
    padding: 128px 0;
  }
}

/* =====================================================================
   HERO (WEB-C01 / WEB-C03)
   ===================================================================== */
.h-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 48px;
}
@media (min-width: 1024px) {
  .h-hero {
    padding: 56px 0 72px;
  }
}
/* Scoped to .h-hero-visual (not the whole hero) so the glow stays behind the calendar and never
   tints the audience strip below it — a lighter background there would drop the selected tab's
   blue text under AA contrast (WCAG 1.4.3). */
.h-hero-blob {
  position: absolute;
  inset: -8% -14% auto auto;
  width: 46%;
  max-width: 300px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 100, 255, 0.16), rgba(0, 217, 233, 0.06) 60%, transparent 72%);
  pointer-events: none;
  z-index: 0;
}
.h-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}
@media (min-width: 1024px) {
  .h-hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 32px;
    align-items: center;
  }
}
.h-hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(36px, 8.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (min-width: 1280px) {
  .h-hero-title {
    font-size: 68px;
  }
}
.h-line-accent {
  color: var(--blue);
}
.h-dot {
  color: var(--cyan);
}
.h-hero-lead {
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}
.h-hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.h-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.h-play-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--blue);
  flex: none;
  transition: border-color 0.18s, transform 0.18s;
}
.h-play-icon .icon {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}
.h-play:hover .h-play-icon,
.h-play:focus-visible .h-play-icon {
  border-color: var(--blue);
  transform: scale(1.05);
}

/* ---------- Hero calendar illustration ---------- */
.h-hero-visual {
  position: relative;
}
.h-cal-frame {
  position: relative;
  aspect-ratio: 6 / 5;
  margin: 0 auto;
  max-width: 620px;
  /* This illustration is a fixed light-mode product mockup, like a screenshot: it never inverts
     with the site's dark toggle. Pinning the shared tokens here (not on the page) keeps every
     var(--text)/var(--surface)/… reference below correct in both themes (WCAG 1.4.3). */
  --text: #0b1f4d;
  --muted: #51617a;
  --surface: #ffffff;
  --soft: #f6f8fc;
  --line: #d6deea;
  --blue: #0064ff;
}
@media (min-width: 1024px) {
  .h-cal-frame {
    aspect-ratio: 11 / 9;
    max-width: none;
  }
}
.h-cal-blob {
  position: absolute;
  inset: -8% -10%;
  border-radius: 40%;
  background: radial-gradient(ellipse at 60% 30%, rgba(0, 100, 255, 0.16), rgba(0, 217, 233, 0.08) 55%, transparent 75%);
  z-index: 0;
}
.h-cal-sparkle {
  position: absolute;
  top: 34%;
  left: 2%;
  width: 34px;
  height: 34px;
  color: var(--cyan);
  z-index: 3;
}
.h-cal-sparkle svg {
  width: 100%;
  height: 100%;
}
.h-cal-panel {
  position: absolute;
  inset: 4% 4% auto 4%;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--h-radius);
  box-shadow: var(--h-shadow-lg);
  padding: 14px 16px 18px;
  /* A short, stable reveal: opacity + a small rise. Off entirely under reduced motion. */
  opacity: 0;
  transform: translateY(10px);
  animation: h-cal-in 0.4s var(--flow-ease-enter, ease-out) 0.1s forwards;
}
@keyframes h-cal-in {
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .h-cal-panel {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.h-cal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.h-cal-nav {
  display: flex;
  gap: 4px;
  flex: none;
}
.h-cal-arrow {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
}
.h-cal-month {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(11px, 1.6vw, 15px);
  color: var(--text);
  flex: 1;
  white-space: nowrap;
}
.h-cal-views {
  display: none;
  flex: none;
  gap: 2px;
  background: var(--soft);
  border-radius: 999px;
  padding: 2px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
}
.h-cal-views span {
  padding: 4px 8px;
  border-radius: 999px;
}
.h-cal-views .is-on {
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(11, 31, 77, 0.15);
}
@media (min-width: 480px) {
  .h-cal-views {
    display: flex;
  }
}
.h-cal-grid {
  display: grid;
  grid-template-columns: minmax(28px, auto) repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.h-cal-hours {
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  font-size: 8px;
  color: var(--muted);
  padding-top: 22px;
}
@media (min-width: 480px) {
  .h-cal-hours {
    font-size: 10px;
  }
}
.h-cal-hours span:first-child {
  align-self: start;
}
.h-cal-hour-end {
  align-self: end !important;
}
.h-cal-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.h-cal-daylabel {
  font-size: 8px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
}
@media (min-width: 480px) {
  .h-cal-daylabel {
    font-size: 10px;
  }
}
.h-cal-daylabel strong {
  color: var(--text);
  font-weight: 700;
}
.h-cal-track {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 3px;
  min-height: 150px;
}
@media (min-width: 1024px) {
  .h-cal-track {
    min-height: 340px;
  }
}
.h-cal-card {
  grid-column: 1;
  align-self: start;
  background: #eaf2ff;
  border-radius: 6px;
  padding: 3px 5px;
  font-size: 7px;
  line-height: 1.25;
  color: var(--text);
  overflow: hidden;
}
@media (min-width: 480px) {
  .h-cal-card {
    font-size: 9px;
    padding: 5px 7px;
    border-radius: 8px;
  }
}
.h-cal-card.is-mint {
  background: #e4f6ef;
}
.h-cal-card.is-pink {
  background: #fbe9f5;
}
.h-cal-card.is-blue {
  background: #e9f0ff;
}
.h-cal-time {
  font-weight: 700;
  opacity: 0.7;
}
.h-cal-card-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.h-cal-nets {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}
.h-net {
  display: inline-grid;
  place-items: center;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  color: #fff;
  font-size: 6px;
  font-weight: 800;
  overflow: hidden;
}
@media (min-width: 480px) {
  .h-net {
    width: 13px;
    height: 13px;
    border-radius: 4px;
    font-size: 7px;
  }
}
.h-net svg {
  width: 100%;
  height: 100%;
}
.h-net-ig {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b 55%, #6228d7);
}
.h-net-tt {
  background: #000;
}
.h-net-fb {
  background: #1877f2;
}
.h-net-li {
  background: #0a66c2;
}
.h-net-drive {
  background: #34a853;
}
.h-cal-slot {
  grid-column: 1;
  align-self: start;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  min-height: 20px;
  display: grid;
  place-items: center;
}
@media (min-width: 480px) {
  .h-cal-slot {
    border-radius: 8px;
    min-height: 28px;
  }
}
.h-cal-plus {
  color: var(--blue);
  font-weight: 700;
  font-size: 12px;
}
.h-cal-slot-arrow {
  position: absolute;
  left: 35%;
  top: 34%;
  color: var(--blue);
  font-size: 16px;
  opacity: 0.7;
}
.h-cal-chip {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: 25%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--h-shadow);
  padding: 7px 12px;
  font-size: 10px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(8px);
  animation: h-cal-in 0.4s var(--flow-ease-enter, ease-out) 0.32s forwards;
}
@media (min-width: 480px) {
  .h-cal-chip {
    font-size: 12px;
    padding: 8px 14px;
  }
}
.h-cal-chip .icon {
  width: 14px;
  height: 14px;
  color: var(--h-green);
  background: var(--h-green-bg);
  border-radius: 50%;
  padding: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .h-cal-chip {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.h-cal-photo {
  position: absolute;
  z-index: 2;
  margin: 0;
  border-radius: var(--h-radius-sm);
  overflow: hidden;
  box-shadow: var(--h-shadow-lg);
  border: 3px solid var(--surface);
  opacity: 0;
  transform: translateY(14px);
  animation: h-cal-in 0.4s var(--flow-ease-enter, ease-out) 0.2s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .h-cal-photo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.h-cal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.h-cal-photo-a {
  width: 34%;
  aspect-ratio: 4 / 5;
  left: 2%;
  bottom: 4%;
}
.h-cal-photo-b {
  width: 30%;
  aspect-ratio: 4 / 5;
  left: 32%;
  top: 42%;
  animation-delay: 0.28s;
}
.h-cal-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(11, 31, 77, 0.72);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
@media (min-width: 480px) {
  .h-cal-badge {
    font-size: 9px;
    padding: 3px 8px;
  }
}
.h-cal-duration {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(11, 31, 77, 0.72);
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
}
@media (min-width: 480px) {
  .h-cal-duration {
    font-size: 9px;
    padding: 3px 8px;
  }
}

/* On narrow phones the week panel is taller than the 6:5 frame it sits in: give the frame the height it needs. */
@media (max-width: 479px) {
  .h-cal-frame {
    aspect-ratio: 1 / 1.02;
  }
}

/* =====================================================================
   HERO FLOW RAIL · the five steps, drawn once (≤ 1.2 s, CSS only)
   Line: 0.1 s + 1.05 s = 1.15 s. Dots: 0.15 s + 4 × 0.16 s + 0.4 s = 1.19 s.
   The resting state is the finished one, so reduced motion (which switches animation off) shows it complete.
   ===================================================================== */
.h-rail-wrap {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
@media (min-width: 1024px) {
  .h-rail-wrap {
    margin-top: 56px;
  }
}
.h-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-rail::before,
.h-rail::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 10%;
  right: 10%;
  height: 2px;
  border-radius: 2px;
}
.h-rail::before {
  background: var(--line);
}
.h-rail::after {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transform-origin: left center;
  animation: h-rail-line 1.05s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
}
@keyframes h-rail-line {
  from {
    transform: scaleX(0);
  }
}
.h-rail-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
  text-align: center;
  animation: h-rail-pop 0.4s ease-out both;
  animation-delay: calc(var(--i) * 0.16s + 0.15s);
}
@keyframes h-rail-pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.h-rail-dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: var(--surface);
  color: var(--link);
  font-family: var(--head);
  font-size: 15px;
  font-weight: 700;
}
.h-rail-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}
@media (min-width: 560px) {
  .h-rail-label {
    font-size: 14px;
  }
}

/* =====================================================================
   PRUEBA VISUAL · real screenshots with sample data
   ===================================================================== */
.h-proof {
  padding-top: 48px;
}
.h-proof-grid {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .h-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.h-proof-fig {
  margin: 0;
}
.h-proof-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--h-shadow);
}
.h-proof-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  background: var(--soft);
}
.h-proof-fig figcaption {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.h-proof-fig figcaption strong {
  font-family: var(--head);
  font-size: 16px;
  color: var(--text);
}

/* =====================================================================
   COMPATIBLE CON · networks with their real state (never a client list)
   ===================================================================== */
.h-compat-sec {
  padding: 0 0 56px;
}
@media (min-width: 1024px) {
  .h-compat-sec {
    padding-bottom: 96px;
  }
}
.h-compat {
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--h-shadow);
}
@media (min-width: 1024px) {
  .h-compat {
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 16px 32px;
    padding: 26px 32px;
  }
  .h-compat-note {
    grid-column: 1 / -1;
  }
}
.h-compat-title {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.h-compat-head p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.h-compat-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .h-compat-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .h-compat-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }
}
.h-compat-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
@media (min-width: 1024px) {
  .h-compat-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
.h-compat-glyph {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--soft);
  color: var(--text);
}
.h-compat-glyph svg {
  width: 18px;
  height: 18px;
}
.h-compat-text {
  font-family: var(--head);
  font-size: 14px;
  font-weight: 800;
}
.h-compat-name {
  font-size: 15px;
  font-weight: 800;
}
.h-compat-item .status {
  font-size: 12px;
  /* Manrope's space is only 0.2em wide: at 12px «Coming soon» read as one word. */
  word-spacing: 0.12em;
}
.h-compat-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

/* =====================================================================
   RECORRIDO CON SCROLL · five steps, a sticky visual that follows them
   Without JavaScript (or under 1024 px) it is a plain list: each step carries its own visual.
   With JavaScript on a wide screen, assets/home.js adds .jr-live, copies the visuals into the sticky
   stage and switches the active one as a step crosses the middle of the viewport. No scroll hijacking:
   the page scrolls exactly as the visitor asks.
   ===================================================================== */
.jr-layout {
  display: grid;
  gap: 40px;
}
.jr-side {
  display: none;
}
.jr-steps {
  display: grid;
  gap: 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.jr-step {
  display: grid;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: 110px;
}
.jr-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--link);
}
.jr-step h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.03em;
}
.jr-lead {
  max-width: 46ch;
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}
.jr-points {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.jr-points li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
}
.jr-points .icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--blue);
}
.jr-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 4px 0 0;
}
.jr-status-note {
  font-size: 13px;
  color: var(--muted);
}
.jr-visual {
  min-width: 0;
  margin: 12px 0 0;
}
.jr-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.jr-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--h-shadow-lg);
}
.jr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 900;
  background: var(--soft);
}
.jr-frame.dm-mock {
  box-shadow: var(--h-shadow-lg);
}
@media (min-width: 1024px) {
  /* In the stage every visual has the screenshots' 16:10 proportion, so the stage never changes height. */
  .jr-stage .jr-frame.dm-mock {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1440 / 900;
  }
  .jr-stage .jr-frame.dm-mock .dm-body {
    flex: 1;
    align-content: center;
  }
  .jr-stage .jr-frame.dm-mock .dm-chart {
    height: 150px;
  }
}
.jr-nav ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.jr-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 4px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--muted);
}
.jr-nav a:hover {
  color: var(--link);
}
.jr-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--head);
  font-size: 13px;
  color: var(--muted);
}
.jr-nav a[aria-current="step"] {
  color: var(--text);
}
.jr-nav a[aria-current="step"] .jr-n {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--flow-on-action);
}
@media (min-width: 1024px) {
  .jr-live .jr-layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }
  .jr-live .jr-side {
    position: sticky;
    top: 100px;
    display: block;
    order: 2;
  }
  .jr-live .jr-steps {
    order: 1;
    gap: 0;
  }
  .jr-live .jr-step {
    align-content: center;
    min-height: min(64vh, 600px);
    padding: 6vh 0 6vh 24px;
    border-left: 3px solid var(--line);
  }
  .jr-live .jr-step.is-active {
    border-left-color: var(--blue);
  }
  /* The stage shows the visual; the original stays in the page for screen readers (its alt text and the «datos de ejemplo» caption). */
  .jr-live .jr-step .jr-visual {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .jr-stage {
    display: grid;
  }
  .jr-stage > .jr-visual {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
  }
  .jr-stage > .jr-visual.is-active {
    opacity: 1;
    visibility: visible;
  }
}
@media (min-width: 1024px) and (max-height: 720px) {
  .jr-live .jr-side {
    top: 90px;
  }
  .jr-live .jr-nav {
    display: none;
  }
}

/* =====================================================================
   RECORRIDOS POR PERFIL · one task, its result and one next step per profile
   ===================================================================== */
.h-prof-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .h-prof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
.h-prof-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--h-radius);
  background: var(--surface);
  box-shadow: var(--h-shadow);
}
.h-prof-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
}
.h-prof-kicker .icon {
  width: 20px;
  height: 20px;
}
.h-prof-card h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.h-prof-dl {
  display: grid;
  gap: 14px;
  margin: 0;
}
.h-prof-dl dt {
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-prof-dl dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.h-prof-card .btn {
  margin-top: auto;
}
.h-prof-example {
  margin-top: 44px;
}
.h-aud2-example-note {
  margin-bottom: 20px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
.h-client-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .h-client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.h-client-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--h-radius);
  background: var(--surface);
  box-shadow: var(--h-shadow);
}
.h-client-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.h-client-body {
  padding: 14px 16px;
}
.h-client-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}
.h-client-example {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-client-status {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* =====================================================================
   PLANES (WEB-07) — values sourced only from apps/web/src/data/plans.ts
   ===================================================================== */
.h-plans {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 900px) {
  .h-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}
.h-plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--h-radius);
  padding: 28px 24px;
  box-shadow: var(--h-shadow);
}
.h-plan.is-featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), var(--h-shadow-lg);
}
.h-plan-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--blue);
  color: var(--flow-on-action);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.h-plan h3 {
  font-size: 22px;
}
.h-plan-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  min-height: 38px;
}
.h-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 16px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 40px;
}
.h-plan-price sup {
  font-size: 20px;
  top: -0.9em;
}
.h-plan-price small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-left: 4px;
}
.h-plan-billing {
  margin: 4px 0 20px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}
.h-plan-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.h-plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.h-plan-list .icon {
  color: var(--blue);
  flex: none;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

/* =====================================================================
   CIERRE (WEB-C02 / WEB-C04)
   ===================================================================== */
.h-closing {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .h-closing {
    padding: 0;
  }
}
.h-closing-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .h-closing-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 0;
    min-height: 460px;
  }
  .h-closing-copy {
    padding-right: 40px;
  }
}
.h-closing-copy h2 {
  font-size: clamp(30px, 4.6vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.h-closing-rule {
  display: inline-block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--cyan);
}
.h-closing-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.h-closing-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border-radius: var(--h-radius);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .h-closing-photos {
    height: 100%;
    border-radius: 0;
    align-self: stretch;
  }
}
.h-closing-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
@media (min-width: 1024px) {
  .h-closing-photos img {
    aspect-ratio: auto;
  }
}

/* =====================================================================
   Reduced motion: belt and suspenders on top of the per-rule guards above.
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  .home * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
