:root {
  --rbl-bg: #08090d;
  --rbl-panel: #111318;
  --rbl-panel-2: #17191f;
  --rbl-paper: #f1eee7;
  --rbl-ink: #17191f;
  --rbl-muted: #9b9ca1;
  --rbl-accent: #51e0b5;
  --rbl-accent-rgb: 81, 224, 181;
  --rbl-nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.rbl-page {
  margin: 0;
  color: #f5f2ec;
  background: var(--rbl-bg);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  overflow-x: hidden;
}
.rbl-page[data-level="1"] { --rbl-accent: #72d8e6; --rbl-accent-rgb: 114,216,230; }
.rbl-page[data-level="2"] { --rbl-accent: #55a7ff; --rbl-accent-rgb: 85,167,255; }
.rbl-page[data-level="3"] { --rbl-accent: #a78bfa; --rbl-accent-rgb: 167,139,250; }
.rbl-page[data-level="4"] { --rbl-accent: #f2a84b; --rbl-accent-rgb: 242,168,75; }
.rbl-page[data-level="5"] { --rbl-accent: #e3c77e; --rbl-accent-rgb: 227,199,126; }
.rbl-container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.rbl-page a { color: inherit; }

/* Cabecera compartida */
.rbl-topbar {
  position: relative;
  z-index: 30;
  height: var(--rbl-nav-h);
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(7,8,12,.96);
}
.rbl-topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rbl-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.rbl-brand img { width: auto; height: 40px; object-fit: contain; }
.rbl-brand span { display: grid; color: #f3f0ea; font-family: "Space Grotesk", sans-serif; font-size: .8rem; font-weight: 700; line-height: 1.1; }
.rbl-brand small { margin-top: 3px; color: #777980; font-family: "IBM Plex Sans", sans-serif; font-size: .58rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.rbl-top-links { display: flex; align-items: center; gap: 8px; }
.rbl-top-links a { padding: 9px 13px; border-radius: 999px; color: #a6a7ab; font-size: .76rem; font-weight: 700; text-decoration: none; }
.rbl-top-links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.rbl-top-links .rbl-route-link { color: #111318; background: var(--rbl-accent); }

.rbl-levelbar {
  position: sticky;
  top: 0;
  z-index: 25;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: rgba(12,13,18,.88);
  backdrop-filter: blur(18px);
}
.rbl-levelbar-inner { min-height: 58px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.rbl-back, .rbl-next-short { color: #a6a7ac; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.rbl-back i { margin-right: 7px; color: var(--rbl-accent); }
.rbl-next-short i { margin-left: 7px; color: var(--rbl-accent); }
.rbl-level-dots { display: flex; justify-content: center; gap: 8px; }
.rbl-level-dots a {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #82848a;
  font-size: .66rem;
  font-weight: 900;
  text-decoration: none;
}
.rbl-level-dots a:hover { color: #fff; border-color: rgba(var(--rbl-accent-rgb),.55); }
.rbl-level-dots a.is-active { color: #090b0e; border-color: var(--rbl-accent); background: var(--rbl-accent); box-shadow: 0 0 24px rgba(var(--rbl-accent-rgb),.35); }

/* Hero de misión */
.rbl-hero {
  position: relative;
  isolation: isolate;
  min-height: min(780px, calc(100svh - 58px));
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #090a0e;
}
.rbl-hero-image, .rbl-hero-shade, .rbl-hero-grid, .rbl-hero-aurora { position: absolute; inset: 0; pointer-events: none; }
.rbl-hero-image { z-index: -5; width: 100%; height: 100%; object-fit: cover; animation: rbl-hero-breathe 18s ease-in-out infinite alternate; }
.rbl-hero-shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(6,7,10,.95) 0%, rgba(6,7,10,.76) 42%, rgba(6,7,10,.2) 74%, rgba(6,7,10,.55) 100%),
    linear-gradient(180deg, rgba(6,7,10,.14), rgba(6,7,10,.25) 45%, #08090d 100%);
}
.rbl-hero-grid {
  z-index: -3;
  opacity: .28;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(circle at 24% 56%, #000, transparent 62%);
  mask-image: radial-gradient(circle at 24% 56%, #000, transparent 62%);
}
.rbl-hero-aurora {
  z-index: -2;
  inset: -30%;
  background: radial-gradient(circle at 18% 60%, rgba(var(--rbl-accent-rgb),.25), transparent 24%), radial-gradient(circle at 75% 18%, rgba(var(--rbl-accent-rgb),.13), transparent 23%);
  filter: blur(18px);
  animation: rbl-aurora-drift 14s ease-in-out infinite alternate;
}
.rbl-orbit {
  position: absolute;
  z-index: -1;
  right: -330px;
  top: 50%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  opacity: .5;
  background: repeating-radial-gradient(circle, transparent 0 75px, rgba(var(--rbl-accent-rgb),.18) 76px 77px);
  animation: rbl-orbit-spin 46s linear infinite;
}
.rbl-hero-content { position: relative; z-index: 2; padding: clamp(82px, 12vh, 128px) 0 clamp(62px, 9vh, 92px); }
.rbl-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 24px; }
.rbl-status { display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; border: 1px solid rgba(var(--rbl-accent-rgb),.42); border-radius: 999px; color: var(--rbl-accent); background: rgba(var(--rbl-accent-rgb),.09); font-size: .63rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rbl-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.rbl-mission-count { color: #85868c; font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.rbl-kicker { margin: 0 0 13px; color: var(--rbl-accent); font-size: .7rem; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.rbl-hero h1 { max-width: 15ch; margin: 0; color: #f5f2ec; font-family: "Space Grotesk", sans-serif; font-size: clamp(3.1rem, 7vw, 6.9rem); font-weight: 650; line-height: .91; letter-spacing: -.07em; }
.rbl-hero h1 em { display: block; color: var(--rbl-accent); font-style: normal; }
.rbl-lead { max-width: 58ch; margin: 24px 0 0; color: #b2b3b6; font-size: clamp(.98rem, 1.35vw, 1.13rem); line-height: 1.72; }
.rbl-quick-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.rbl-quick-stats span { min-width: 115px; padding: 10px 13px; border-left: 2px solid var(--rbl-accent); color: #888a90; background: rgba(255,255,255,.045); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.rbl-quick-stats b { display: block; margin-bottom: 3px; color: #f1eee8; font-size: .84rem; letter-spacing: 0; text-transform: none; }
.rbl-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.rbl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; color: #f3f0ea; background: rgba(10,11,15,.45); font-size: .78rem; font-weight: 800; text-decoration: none; }
.rbl-btn:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.rbl-btn--primary { color: #090b0e; border-color: var(--rbl-accent); background: var(--rbl-accent); box-shadow: 0 14px 38px rgba(var(--rbl-accent-rgb),.18); }
.rbl-btn--primary:hover { border-color: var(--rbl-accent); background: var(--rbl-accent); transform: translateY(-2px); }
.rbl-giant-number { position: absolute; right: 5vw; bottom: -3vw; z-index: 0; color: rgba(255,255,255,.035); font-family: "Space Grotesk", sans-serif; font-size: clamp(18rem, 42vw, 40rem); font-weight: 700; line-height: .72; letter-spacing: -.12em; user-select: none; }

/* Contenido individual */
.rbl-content-shell { position: relative; isolation: isolate; overflow: hidden; padding: clamp(72px, 9vw, 120px) 0; color: var(--rbl-ink); background: var(--rbl-paper); }
.rbl-content-shell::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(circle at 88% 20%, rgba(var(--rbl-accent-rgb),.13), transparent 24%), radial-gradient(circle at 8% 72%, rgba(var(--rbl-accent-rgb),.08), transparent 28%); animation: rbl-aurora-drift 18s ease-in-out infinite alternate-reverse; }
.rbl-content-grid { display: grid; grid-template-columns: minmax(270px,.68fr) minmax(0,1.45fr); align-items: start; gap: clamp(34px, 6vw, 82px); }
.rbl-brief { position: sticky; top: 86px; overflow: hidden; border: 1px solid rgba(20,22,28,.13); border-radius: 8px; background: rgba(255,255,255,.58); box-shadow: 0 28px 80px rgba(38,30,20,.1); }
.rbl-brief-head { padding: 25px; color: #f4f1eb; background: #121318; }
.rbl-brief-head span { color: var(--rbl-accent); font-size: .61rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.rbl-brief-head h2 { margin: 11px 0 0; color: #f4f1eb; font-family: "Space Grotesk", sans-serif; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.04em; }
.rbl-facts { margin: 0; padding: 8px 25px 20px; }
.rbl-facts > div { padding: 13px 0; border-bottom: 1px solid #ded8cf; }
.rbl-facts > div:last-child { border-bottom: 0; }
.rbl-facts dt { margin-bottom: 4px; color: #8e8981; font-size: .59rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.rbl-facts dd { margin: 0; color: #2a2c32; font-size: .85rem; font-weight: 600; line-height: 1.45; }
.rbl-main { min-width: 0; }
.rbl-section-kicker { color: color-mix(in srgb, var(--rbl-accent) 72%, #4b4b4b); font-size: .64rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.rbl-main h2 { max-width: 18ch; margin: 13px 0 16px; color: #17191f; font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4.4vw, 4rem); line-height: .96; letter-spacing: -.055em; }
.rbl-intro { max-width: 62ch; margin: 0; color: #64666d; font-size: .98rem; line-height: 1.75; }
.rbl-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 38px; }
.rbl-outcome { min-height: 210px; padding: 23px; border: 1px solid rgba(20,22,28,.12); border-radius: 6px; background: rgba(255,255,255,.58); }
.rbl-outcome i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 30px; border-radius: 50%; color: color-mix(in srgb, var(--rbl-accent) 70%, #202020); background: rgba(var(--rbl-accent-rgb),.13); }
.rbl-outcome h3 { margin: 0 0 8px; color: #22242a; font-size: .98rem; }
.rbl-outcome p { margin: 0; color: #717279; font-size: .8rem; line-height: 1.58; }
.rbl-topic-panel { margin-top: 46px; padding-top: 34px; border-top: 1px solid #d8d1c7; }
.rbl-topic-panel h3 { margin: 0 0 18px; color: #25272d; font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; }
.rbl-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.rbl-topics span { padding: 7px 11px; border: 1px solid #d6cfc5; border-radius: 999px; color: #5f6168; background: rgba(255,255,255,.52); font-size: .73rem; font-weight: 700; }
.rbl-artifact { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-top: 32px; padding: 25px; color: #f4f1eb; border: 1px solid rgba(255,255,255,.09); border-radius: 7px; background: #14151a; }
.rbl-artifact::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 260px; height: 260px; border: 1px solid rgba(var(--rbl-accent-rgb),.22); border-radius: 50%; box-shadow: 0 0 70px rgba(var(--rbl-accent-rgb),.12); }
.rbl-artifact > i { position: relative; z-index: 1; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #090b0e; background: var(--rbl-accent); }
.rbl-artifact div { position: relative; z-index: 1; }
.rbl-artifact span { color: var(--rbl-accent); font-size: .59rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rbl-artifact h3 { margin: 7px 0 6px; color: #f4f1eb; font-size: 1.15rem; }
.rbl-artifact p { margin: 0; color: #9b9ca1; font-size: .82rem; line-height: 1.55; }

/* Siguiente misión */
.rbl-next-level { position: relative; min-height: 460px; overflow: hidden; display: flex; align-items: center; background: #0b0c10; }
.rbl-next-level img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) brightness(.36) contrast(1.08); }
.rbl-next-level::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#090a0e 0%,rgba(9,10,14,.83) 45%,rgba(9,10,14,.28)); }
.rbl-next-copy { position: relative; z-index: 2; max-width: 700px; padding: 72px 0; }
.rbl-next-copy span { color: var(--rbl-accent); font-size: .65rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.rbl-next-copy h2 { margin: 13px 0 15px; color: #f4f1eb; font-family: "Space Grotesk", sans-serif; font-size: clamp(2.1rem, 5vw, 4.7rem); line-height: .95; letter-spacing: -.055em; }
.rbl-next-copy p { max-width: 52ch; margin: 0 0 26px; color: #a6a7ab; line-height: 1.65; }

.rbl-footer { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.08); color: #777980; background: #08090d; font-size: .72rem; }
.rbl-footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.rbl-footer a { color: #a7a8ac; text-decoration: none; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@keyframes rbl-hero-breathe { from { transform: scale(1.01); } to { transform: scale(1.07); } }
@keyframes rbl-aurora-drift { from { transform: translate3d(-2%,-2%,0) scale(1); opacity: .65; } to { transform: translate3d(4%,3%,0) scale(1.09); opacity: 1; } }
@keyframes rbl-orbit-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .rbl-content-grid { grid-template-columns: 1fr; }
  .rbl-brief { position: static; display: grid; grid-template-columns: .7fr 1.3fr; }
  .rbl-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; padding-top: 14px; }
  .rbl-outcomes { grid-template-columns: 1fr; }
  .rbl-outcome { min-height: 0; }
}

@media (max-width: 680px) {
  :root { --rbl-nav-h: 62px; }
  .rbl-container { width: min(100% - 28px, 1160px); }
  .rbl-brand span, .rbl-top-links a:not(.rbl-route-link) { display: none; }
  .rbl-brand img { height: 34px; }
  .rbl-top-links .rbl-route-link { padding: 8px 10px; font-size: .66rem; }
  .rbl-levelbar-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .rbl-next-short { display: none; }
  .rbl-level-dots { justify-content: flex-end; gap: 5px; }
  .rbl-level-dots a { width: 28px; height: 28px; }
  .rbl-back { font-size: .62rem; }
  .rbl-hero { min-height: 710px; }
  .rbl-hero-shade { background: linear-gradient(90deg,rgba(6,7,10,.9),rgba(6,7,10,.44)),linear-gradient(180deg,rgba(6,7,10,.15),rgba(6,7,10,.5) 52%,#08090d); }
  .rbl-orbit { right: -560px; opacity: .32; }
  .rbl-hero-content { padding: 74px 0 54px; }
  .rbl-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .rbl-lead { font-size: .94rem; }
  .rbl-quick-stats { display: grid; grid-template-columns: repeat(2, 1fr); }
  .rbl-quick-stats span { min-width: 0; }
  .rbl-hero-actions { display: grid; grid-template-columns: 1fr; }
  .rbl-btn { width: 100%; }
  .rbl-content-shell { padding: 68px 0; }
  .rbl-brief { grid-template-columns: 1fr; }
  .rbl-facts { grid-template-columns: 1fr; }
  .rbl-main h2 { font-size: clamp(2.2rem, 12vw, 3.3rem); }
  .rbl-artifact { grid-template-columns: 1fr; }
  .rbl-next-level { min-height: 520px; }
  .rbl-footer-inner { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
