/* ============================================================
   TEC CONSTRUCTORA - AULA VIRTUAL
   ruta-bim-cusco.css   ·   v2 identidad institucional
   Pagina "Ruta BIM Cusco por Niveles"
   Comite Tecnico BIM - CIP Cusco / Direccion de Capacitacion y Certificacion

   IDENTIDAD:
     Rojo  #ED1C24  -> Comite Tecnico BIM Cusco (color de marca)
     Oro   #C8A24A  -> Colegio de Ingenieros del Peru
     Tinta #14161C  -> fondo institucional

   Todas las clases llevan el prefijo .rbc- para no afectar al resto del sitio.
   Reutiliza los tokens de css/styles.css (--radius, --navbar-h, --transition).
   ============================================================ */

:root {
  /* Marca institucional */
  --rbc-rojo: #ED1C24;
  --rbc-rojo-osc: #B3141A;
  --rbc-rojo-hondo: #7E0E13;
  --rbc-rojo-suave: rgba(237, 28, 36, .10);
  --rbc-oro: #C8A24A;
  --rbc-oro-claro: #E3C77E;
  --rbc-oro-suave: rgba(200, 162, 74, .14);
  --rbc-tinta: #14161C;
  --rbc-tinta-2: #1E2129;
  --rbc-papel: #FBFAF8;

  /* Estados visuales de la Ruta */
  --rbc-verde: #1E8E4E;
  --rbc-verde-bg: rgba(30, 142, 78, .12);
  --rbc-azul: #1565C0;
  --rbc-azul-bg: rgba(21, 101, 192, .10);
  --rbc-dorado: #B8860B;
  --rbc-dorado-bg: rgba(200, 162, 74, .20);
  --rbc-gris: #6B7280;
  --rbc-gris-bg: rgba(107, 114, 128, .12);
}

/* ---------- Utilidades de seccion ---------- */
.rbc-section { padding: 74px 0; position: relative; }
.rbc-section--tight { padding: 46px 0; }
.rbc-section--alt { background: var(--rbc-papel); }
.rbc-section--linea { border-top: 1px solid #ECE7DF; }

.rbc-head { max-width: 800px; margin: 0 0 34px; }
.rbc-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rbc-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .73rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: var(--rbc-rojo); margin-bottom: 12px;
}
.rbc-eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--rbc-rojo), var(--rbc-oro));
}
.rbc-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800;
  color: var(--rbc-tinta); line-height: 1.18; margin: 0 0 13px;
  letter-spacing: -.01em;
}
.rbc-head p { font-size: 1.03rem; color: #4A5160; margin: 0; line-height: 1.72; }

/* ============================================================
   BANDA INSTITUCIONAL (logos Comite BIM + CIP)
   ============================================================ */
.rbc-inst-band {
  background: #fff; border-bottom: 1px solid #ECE7DF;
  padding: 16px 0; position: relative;
  /* El navbar del sitio es fixed: la banda debe empezar debajo de el */
  margin-top: var(--navbar-h);
}
.rbc-inst-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, var(--rbc-rojo) 0%, var(--rbc-rojo) 42%,
                              var(--rbc-oro) 42%, var(--rbc-oro) 100%);
}
.rbc-inst-band-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.rbc-inst-logo { display: flex; align-items: center; gap: 14px; }
.rbc-inst-logo img { display: block; }
.rbc-logo-comite { height: 56px; width: auto; }
.rbc-logo-cip { height: 54px; width: auto; }
.rbc-inst-sep { width: 1px; align-self: stretch; background: #E4DED4; margin: 2px 0; }
.rbc-inst-txt { line-height: 1.35; }
.rbc-inst-txt strong {
  display: block; font-size: .96rem; font-weight: 800; color: var(--rbc-tinta);
  letter-spacing: -.005em;
}
.rbc-inst-txt span { display: block; font-size: .8rem; color: #6B7280; }
.rbc-inst-gestion {
  margin-left: auto; text-align: right; line-height: 1.3;
}
.rbc-inst-gestion b {
  display: block; font-size: .82rem; font-weight: 800; letter-spacing: .08em;
  color: var(--rbc-rojo); text-transform: uppercase;
}
.rbc-inst-gestion i {
  font-style: normal; font-size: .72rem; color: #8A8F9A; letter-spacing: .04em;
}

/* ============================================================
   HERO
   ============================================================ */
.rbc-hero {
  position: relative; overflow: hidden; color: #fff;
  /* La banda institucional ya compensa el navbar fixed */
  padding: 96px 0 88px;
  background-color: #0E1014;
  background-image:
    linear-gradient(100deg, rgba(14,16,20,.96) 0%, rgba(14,16,20,.82) 42%, rgba(14,16,20,.42) 72%, rgba(14,16,20,.55) 100%),
    url("../media/rbc-hero-higgsfield.png");
  background-size: cover, cover;
  background-position: center, center 42%;
}
.rbc-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 80% at 88% 26%, rgba(237, 28, 36, .22) 0%, transparent 64%),
    linear-gradient(180deg, transparent 62%, rgba(14,16,20,.86) 100%);
}
/* Video de fondo del hero */
.rbc-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; pointer-events: none;
}
.rbc-hero > .rbc-hero-wm, .rbc-hero::after { z-index: 1; }

/* Filigrana: la marca del Comite en gran formato */
.rbc-hero-wm {
  position: absolute; right: -80px; top: 50%; transform: translateY(-50%);
  width: 620px; max-width: 62vw; opacity: .07; pointer-events: none;
  filter: grayscale(1) brightness(3);
}
.rbc-hero > .container { position: relative; z-index: 2; }

/* ============================================================
   DIAGRAMAS
   ============================================================ */
.rbc-diagrama {
  border: 1px solid #ECE7DF; border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: 0 3px 16px rgba(20,22,28,.06);
}
.rbc-diagrama img { display: block; width: 100%; height: auto; }
.rbc-diagrama-pie {
  padding: 12px 18px; border-top: 1px solid #F1ECE4; background: #FBFAF8;
  font-size: .82rem; color: #7A8090;
}
/* En móvil el diagrama se desplaza en horizontal para no perder legibilidad */
.rbc-diagrama-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(227,199,126,.55) rgba(255,255,255,.05);
}
.rbc-diagrama-scroll img { display: block; width: 100%; min-width: 980px; height: auto; }

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */
.rbc-anim { opacity: 0; transform: translateY(22px); }
.rbc-anim.is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--rbc-delay, 0s);
}
/* El riel dibuja sus nodos en secuencia */
.rbc-riel li { opacity: 0; transform: translateY(16px) scale(.94); }
.rbc-riel.is-visible li {
  opacity: 1; transform: none;
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .5s cubic-bezier(.22,1,.36,1);
}
.rbc-riel.is-visible li:nth-child(1) { transition-delay: .05s; }
.rbc-riel.is-visible li:nth-child(2) { transition-delay: .15s; }
.rbc-riel.is-visible li:nth-child(3) { transition-delay: .25s; }
.rbc-riel.is-visible li:nth-child(4) { transition-delay: .35s; }
.rbc-riel.is-visible li:nth-child(5) { transition-delay: .45s; }
.rbc-riel.is-visible li:nth-child(6) { transition-delay: .55s; }
/* La línea del riel se traza de izquierda a derecha */
.rbc-riel::before { transform: scaleX(0); transform-origin: left center; }
.rbc-riel.is-visible::before { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.22,1,.36,1); }

/* Nada se mueve si el usuario pide reducir el movimiento */
@media (prefers-reduced-motion: reduce) {
  .rbc-hero-video { display: none; }
  .rbc-anim, .rbc-riel li { opacity: 1; transform: none; transition: none; }
  .rbc-riel::before { transform: none; }
  .rbc-level, .rbc-card, .btn { transition: none !important; }
}

.rbc-hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(237, 28, 36, .16); border: 1px solid rgba(237, 28, 36, .42);
  color: #FFC9CB; padding: 8px 16px; border-radius: 999px;
  font-size: .76rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; margin-bottom: 22px;
}
.rbc-hero-tag img { height: 20px; width: auto; }
.rbc-hero h1 {
  font-size: clamp(2.05rem, 5vw, 3.3rem); font-weight: 900;
  line-height: 1.1; margin: 0 0 18px; max-width: 16ch; color: #fff;
  letter-spacing: -.02em;
}
.rbc-hero h1 em {
  font-style: normal; display: block;
  background: linear-gradient(100deg, #FF5A60 0%, var(--rbc-oro-claro) 92%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rbc-hero-sub {
  font-size: 1.12rem; color: #C6C9D2; max-width: 58ch;
  line-height: 1.68; margin: 0 0 30px;
}
.rbc-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.rbc-hero-meta { display: flex; flex-wrap: wrap; gap: 9px; }
.rbc-hero-meta span {
  font-size: .78rem; color: #B9BEC9; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.13); border-radius: 999px; padding: 6px 14px;
}
.rbc-hero-meta span b { color: var(--rbc-oro-claro); font-weight: 700; }

/* ---------- Botones ---------- */
.rbc-btn-cta {
  background: linear-gradient(135deg, var(--rbc-rojo) 0%, var(--rbc-rojo-osc) 100%);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 22px rgba(237, 28, 36, .34);
}
.rbc-btn-cta:hover {
  background: linear-gradient(135deg, var(--rbc-rojo-osc) 0%, var(--rbc-rojo-hondo) 100%);
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(237, 28, 36, .44);
}
.rbc-btn-ghost {
  background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.38);
}
.rbc-btn-ghost:hover {
  background: rgba(255,255,255,.15); border-color: #fff; color: #fff; transform: translateY(-2px);
}
.rbc-btn-oro {
  background: transparent; color: var(--rbc-oro-claro);
  border-color: rgba(200, 162, 74, .55);
}
.rbc-btn-oro:hover {
  background: rgba(200, 162, 74, .14); border-color: var(--rbc-oro-claro);
  color: #fff; transform: translateY(-2px);
}

/* ============================================================
   RIEL DE LA RUTA  ·  progresion visual 0 -> 5
   ============================================================ */
.rbc-riel-wrap { position: relative; }
.rbc-riel {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 0;
  position: relative;
}
/* Línea continua que atraviesa los seis nodos */
.rbc-riel::before {
  content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 27px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--rbc-verde) 0%, var(--rbc-verde) 17%,
    var(--rbc-azul) 30%, var(--rbc-azul) 50%,
    var(--rbc-dorado) 63%, var(--rbc-dorado) 78%,
    var(--rbc-gris) 90%, var(--rbc-gris) 100%);
  opacity: .38;
}
.rbc-riel li { position: relative; text-align: center; padding: 0 6px; }
.rbc-riel a {
  display: block; text-decoration: none; padding-top: 0; cursor: pointer;
}
.rbc-riel-nodo {
  position: relative; z-index: 1; display: inline-flex;
  align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  font-size: 1.34rem; font-weight: 900; color: #fff;
  background: var(--rbc-gris); border: 4px solid #fff;
  box-shadow: 0 3px 14px rgba(20,22,28,.20); transition: var(--transition);
}
.rbc-riel li.es-verde  .rbc-riel-nodo { background: var(--rbc-verde); }
.rbc-riel li.es-azul   .rbc-riel-nodo { background: var(--rbc-azul); }
.rbc-riel li.es-dorado .rbc-riel-nodo { background: var(--rbc-dorado); }
.rbc-riel li.es-gris   .rbc-riel-nodo { background: var(--rbc-gris); }
.rbc-riel a:hover .rbc-riel-nodo { transform: translateY(-4px) scale(1.06); }
.rbc-riel-tit {
  display: block; margin-top: 13px; font-size: .87rem; font-weight: 700;
  color: var(--rbc-tinta); line-height: 1.35;
  /* Dos líneas fijas para que meta y estado queden alineados entre nodos */
  min-height: 2.7em;
}
.rbc-riel-meta { display: block; margin-top: 5px; font-size: .76rem; color: #7A8090; line-height: 1.45; }
.rbc-riel-estado {
  display: inline-block; margin-top: 8px; font-size: .68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.rbc-riel li.es-verde  .rbc-riel-estado { background: var(--rbc-verde-bg);  color: var(--rbc-verde); }
.rbc-riel li.es-azul   .rbc-riel-estado { background: var(--rbc-azul-bg);   color: var(--rbc-azul); }
.rbc-riel li.es-dorado .rbc-riel-estado { background: var(--rbc-dorado-bg); color: #8A6508; }
.rbc-riel li.es-gris   .rbc-riel-estado { background: var(--rbc-gris-bg);   color: var(--rbc-gris); }

.rbc-riel-pie {
  margin-top: 26px; text-align: center; font-size: .87rem; color: #6B7280;
}
.rbc-riel-pie b { color: var(--rbc-tinta); }

/* ============================================================
   ACORDEON DE NIVELES SIGUIENTES  (comprime N2, N3, N4 y N5)
   ============================================================ */
.rbc-acordeon { display: grid; gap: 12px; }
.rbc-panel {
  background: #fff; border: 1px solid #ECE7DF; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 2px 12px rgba(20,22,28,.05);
}
.rbc-panel > summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  display: flex; align-items: center; gap: 16px;
}
.rbc-panel > summary::-webkit-details-marker { display: none; }
.rbc-panel-n {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 900; color: #fff; background: var(--rbc-gris);
}
.rbc-panel.es-azul   .rbc-panel-n { background: var(--rbc-azul); }
.rbc-panel.es-dorado .rbc-panel-n { background: var(--rbc-dorado); }
.rbc-panel.es-gris   .rbc-panel-n { background: var(--rbc-gris); }
.rbc-panel-tit { flex: 1; }
.rbc-panel-tit b { display: block; font-size: 1.02rem; color: var(--rbc-tinta); line-height: 1.35; }
.rbc-panel-tit span { display: block; font-size: .82rem; color: #7A8090; margin-top: 3px; }
.rbc-panel-mas {
  flex-shrink: 0; color: var(--rbc-rojo); font-weight: 900; font-size: 1.3rem;
  width: 22px; text-align: center; transition: var(--transition);
}
.rbc-panel[open] .rbc-panel-mas { transform: rotate(45deg); }
.rbc-panel[open] > summary { background: #FBFAF8; border-bottom: 1px solid #F1ECE4; }
.rbc-panel-cuerpo { padding: 22px; }
.rbc-panel-cuerpo > p:first-child { margin-top: 0; }

/* Panel con fotografía de fondo */
.rbc-panel-foto {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 190px; display: flex; align-items: flex-end;
  padding: 20px; margin-bottom: 18px; color: #fff;
  background-size: cover; background-position: center;
}
.rbc-panel-foto::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,16,20,.18) 0%, rgba(14,16,20,.86) 100%);
}
.rbc-panel-foto p {
  position: relative; z-index: 1; margin: 0; font-size: .92rem;
  line-height: 1.62; color: #E6E9EF; max-width: 62ch;
}
.rbc-foto-infra { background-image: url("../media/rbc-infraestructura.jpg"); }
.rbc-foto-patri { background-image: url("../media/rbc-patrimonio.jpg"); }

/* ---------- Aviso institucional ---------- */
.rbc-aviso {
  border-left: 5px solid var(--rbc-rojo); background: #fff;
  border-radius: var(--radius); padding: 20px 24px; margin: 0;
  box-shadow: 0 2px 12px rgba(20, 22, 28, .05);
}
/* Solo el <strong> hijo directo es el titulo del aviso.
   Los <strong> dentro de <p> deben seguir siendo texto en linea. */
.rbc-aviso > strong {
  display: flex; align-items: center; gap: 9px; color: var(--rbc-tinta);
  margin-bottom: 8px; font-size: .97rem; font-weight: 800;
}
.rbc-aviso > strong i { color: var(--rbc-rojo); }
.rbc-aviso p strong { color: var(--rbc-tinta); font-weight: 700; }
.rbc-aviso p { margin: 0; color: #4A5160; font-size: .93rem; line-height: 1.74; }
.rbc-aviso + .rbc-aviso { margin-top: 14px; }
.rbc-aviso--oro { border-left-color: var(--rbc-oro); }
.rbc-aviso--oro strong i { color: var(--rbc-oro); }

/* ---------- Flujo formativo ---------- */
.rbc-flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.rbc-flow-step {
  flex: 1 1 168px; background: #fff; border: 1px solid #ECE7DF;
  border-top: 4px solid var(--rbc-rojo); border-radius: var(--radius);
  padding: 17px 16px; box-shadow: 0 2px 10px rgba(20, 22, 28, .04);
}
.rbc-flow-step:nth-child(4n+1) { border-top-color: var(--rbc-oro); }
.rbc-flow-step b { display: block; color: var(--rbc-tinta); font-size: .93rem; margin-bottom: 5px; }
.rbc-flow-step span { font-size: .82rem; color: #6B7280; line-height: 1.58; }
.rbc-flow-arrow { align-self: center; color: var(--rbc-rojo); font-weight: 900; font-size: 1.2rem; }

/* ---------- Tarjetas de nivel ---------- */
.rbc-levels {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.rbc-level {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #ECE7DF; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 2px 12px rgba(20, 22, 28, .05);
  transition: var(--transition);
}
.rbc-level:hover { transform: translateY(-4px); box-shadow: 0 14px 38px rgba(20, 22, 28, .13); }
.rbc-level-top { padding: 19px 20px 15px; border-top: 5px solid var(--rbc-gris); }
.rbc-level--verde  .rbc-level-top { border-top-color: var(--rbc-verde); }
.rbc-level--azul   .rbc-level-top { border-top-color: var(--rbc-azul); }
.rbc-level--dorado .rbc-level-top { border-top-color: var(--rbc-dorado); }
.rbc-level--gris   .rbc-level-top { border-top-color: var(--rbc-gris); }
.rbc-level-num {
  font-size: .71rem; font-weight: 800; letter-spacing: .17em;
  text-transform: uppercase; color: #9AA0AC;
}
.rbc-level-top h3 { margin: 6px 0 0; font-size: 1.06rem; line-height: 1.34; color: var(--rbc-tinta); }
.rbc-level-body { padding: 0 20px 18px; flex: 1; display: flex; flex-direction: column; }
.rbc-level-body p { font-size: .89rem; color: #6B7280; line-height: 1.64; margin: 0 0 14px; }
.rbc-level-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.rbc-level-foot {
  padding: 12px 20px; border-top: 1px solid #F1ECE4; background: #FBFAF8;
  font-size: .81rem; color: #6B7280;
}
.rbc-level-foot a { color: var(--rbc-rojo); font-weight: 700; }

/* Chips de estado */
.rbc-chip {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: .73rem; font-weight: 700; line-height: 1.45;
  background: var(--rbc-gris-bg); color: var(--rbc-gris);
}
.rbc-chip--verde  { background: var(--rbc-verde-bg);  color: var(--rbc-verde); }
.rbc-chip--azul   { background: var(--rbc-azul-bg);   color: var(--rbc-azul); }
.rbc-chip--dorado { background: var(--rbc-dorado-bg); color: #8A6508; }
.rbc-chip--gris   { background: var(--rbc-gris-bg);   color: var(--rbc-gris); }
.rbc-chip--neutro { background: #F3F0EA; color: #4A5160; }

.rbc-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.rbc-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: #6B7280; }
.rbc-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ---------- Fichas Nivel 0 / Nivel 1 ---------- */
.rbc-ficha-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.rbc-ficha {
  background: #fff; border: 1px solid #ECE7DF; border-radius: var(--radius-lg);
  box-shadow: 0 3px 16px rgba(20, 22, 28, .07); overflow: hidden;
  display: flex; flex-direction: column;
}
.rbc-ficha-head {
  padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(130deg, var(--rbc-tinta) 0%, #26161A 100%);
}
.rbc-ficha-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--rbc-rojo), var(--rbc-oro));
}
.rbc-ficha-head .rbc-level-num { color: var(--rbc-oro-claro); }
.rbc-ficha-head h3 { margin: 7px 0 0; font-size: 1.16rem; color: #fff; line-height: 1.34; }
.rbc-ficha-body { padding: 20px 22px; flex: 1; }
.rbc-dl { margin: 0; }
.rbc-dl > div {
  display: grid; grid-template-columns: 42% 58%; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #EDE8E0;
}
.rbc-dl > div:last-child { border-bottom: 0; }
.rbc-dl dt { font-size: .81rem; font-weight: 700; color: #7A8090; margin: 0; }
.rbc-dl dd { font-size: .89rem; color: var(--rbc-tinta); margin: 0; font-weight: 500; }
.rbc-ficha-foot { padding: 0 22px 22px; }

/* ---------- Tarjetas de contenido ---------- */
.rbc-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.rbc-card {
  background: #fff; border: 1px solid #ECE7DF; border-radius: var(--radius-lg);
  padding: 23px; box-shadow: 0 2px 12px rgba(20, 22, 28, .05);
}
.rbc-card h3 {
  margin: 0 0 9px; font-size: 1.04rem; color: var(--rbc-tinta);
  display: flex; align-items: center; gap: 10px;
}
.rbc-card h3 i { color: var(--rbc-rojo); font-size: .95em; }
.rbc-card p { margin: 0 0 12px; font-size: .9rem; color: #6B7280; line-height: 1.68; }
.rbc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rbc-tag {
  font-size: .75rem; font-weight: 600; padding: 4px 11px; border-radius: 6px;
  background: #FBFAF8; color: #4A5160; border: 1px solid #ECE7DF;
}
.rbc-list { margin: 0; padding-left: 20px; }
.rbc-list li { font-size: .9rem; color: #6B7280; line-height: 1.72; margin-bottom: 7px; }
.rbc-list li::marker { color: var(--rbc-rojo); }

/* ---------- Tabla ---------- */
.rbc-table-wrap { overflow-x: auto; border: 1px solid #ECE7DF; border-radius: var(--radius-lg); background: #fff; }
.rbc-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 660px; }
.rbc-table th {
  background: var(--rbc-tinta); color: #fff; text-align: left;
  padding: 13px 15px; font-weight: 600; font-size: .83rem;
  letter-spacing: .02em;
}
.rbc-table td { padding: 13px 15px; border-bottom: 1px solid #F1ECE4; color: #6B7280; vertical-align: top; }
.rbc-table tr:last-child td { border-bottom: 0; }
.rbc-table tbody tr:nth-child(even) td { background: #FBFAF8; }
.rbc-table td strong { color: var(--rbc-tinta); }

/* ---------- FAQ ---------- */
.rbc-faq { max-width: 880px; }
.rbc-faq details {
  background: #fff; border: 1px solid #ECE7DF;
  border-radius: var(--radius); margin-bottom: 10px; overflow: hidden;
}
.rbc-faq summary {
  cursor: pointer; list-style: none; padding: 16px 19px;
  font-weight: 600; color: var(--rbc-tinta); font-size: .95rem;
  display: flex; align-items: center; gap: 12px;
}
.rbc-faq summary::-webkit-details-marker { display: none; }
.rbc-faq summary::before {
  content: "+"; color: var(--rbc-rojo); font-weight: 900;
  font-size: 1.15rem; line-height: 1; flex-shrink: 0; width: 14px;
}
.rbc-faq details[open] summary::before { content: "\2013"; }
.rbc-faq details[open] summary { background: #FBFAF8; border-bottom: 1px solid #F1ECE4; }
.rbc-faq .rbc-faq-a { padding: 16px 19px 18px 45px; font-size: .9rem; color: #6B7280; line-height: 1.76; }

/* ---------- CTA ---------- */
.rbc-cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  padding: 48px 42px; text-align: center; color: #fff;
  background:
    radial-gradient(60% 100% at 80% 20%, rgba(237, 28, 36, .34) 0%, transparent 62%),
    linear-gradient(140deg, var(--rbc-tinta) 0%, #24161A 100%);
}
.rbc-cta::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--rbc-rojo), var(--rbc-oro));
}
.rbc-cta h2 { color: #fff; font-size: clamp(1.42rem, 3vw, 2rem); margin: 0 0 13px; font-weight: 800; }
.rbc-cta p { color: #C6C9D2; max-width: 62ch; margin: 0 auto 24px; line-height: 1.72; }
.rbc-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rbc-cta-note {
  margin-top: 24px; font-size: .82rem; color: #9AA0AC;
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 19px;
}

.rbc-pending {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--rbc-oro-suave); border: 1px dashed var(--rbc-oro);
  color: #7A5E12; border-radius: var(--radius); padding: 11px 16px;
  font-size: .82rem; font-weight: 600; margin-top: 18px; text-align: left;
}

/* ---------- Pasos ---------- */
.rbc-steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.rbc-step {
  background: #fff; border: 1px solid #ECE7DF; border-radius: var(--radius);
  padding: 19px; text-align: left;
}
.rbc-step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; margin-bottom: 11px;
  background: var(--rbc-rojo-suave); color: var(--rbc-rojo); font-size: .86rem; font-weight: 800;
}
.rbc-step h4 { margin: 0 0 6px; font-size: .95rem; color: var(--rbc-tinta); }
.rbc-step p { margin: 0; font-size: .85rem; color: #6B7280; line-height: 1.62; }

/* ---------- Pie institucional ---------- */
.rbc-inst-footer {
  position: relative; overflow: hidden; color: #C6C9D2; padding: 52px 0 46px;
  background:
    radial-gradient(55% 90% at 88% 15%, rgba(237, 28, 36, .18) 0%, transparent 62%),
    linear-gradient(150deg, var(--rbc-tinta) 0%, #1A1418 100%);
}
.rbc-inst-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--rbc-rojo) 0%, var(--rbc-rojo) 42%,
                              var(--rbc-oro) 42%, var(--rbc-oro) 100%);
}
.rbc-inst-grid { display: grid; gap: 30px; grid-template-columns: 1.35fr 1fr; position: relative; z-index: 1; }
.rbc-inst-logos { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.rbc-inst-logos img { display: block; }
.rbc-inst-logos .l-comite { height: 72px; width: auto; }
.rbc-inst-logos .l-cip { height: 68px; width: auto; }
.rbc-inst-footer h3 { color: #fff; font-size: 1.06rem; margin: 0 0 10px; }
.rbc-inst-footer p { font-size: .9rem; line-height: 1.74; margin: 0 0 10px; }
.rbc-inst-footer a { color: var(--rbc-oro-claro); }
.rbc-inst-footer a:hover { color: #fff; }
.rbc-inst-note {
  background: rgba(255,255,255,.055); border-left: 4px solid var(--rbc-oro);
  border-radius: 9px; padding: 16px 18px; font-size: .855rem; line-height: 1.74;
}
.rbc-inst-note strong { color: #fff; display: block; margin-bottom: 7px; }
.rbc-inst-note--rojo { border-left-color: var(--rbc-rojo); }

/* ---------- Indice de anclas ---------- */
.rbc-anchors {
  position: sticky; top: var(--navbar-h); z-index: 40;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid #ECE7DF;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.rbc-anchors-inner { display: flex; gap: 6px; padding: 11px 0; white-space: nowrap; }
.rbc-anchors a {
  font-size: .81rem; font-weight: 600; color: #6B7280;
  padding: 7px 14px; border-radius: 999px; border: 1px solid #ECE7DF;
  transition: var(--transition);
}
.rbc-anchors a:hover { background: #FBFAF8; color: var(--rbc-tinta); border-color: #DED7CC; }
.rbc-anchors a.is-active {
  background: var(--rbc-rojo); color: #fff; border-color: var(--rbc-rojo);
}

[id^="rbc-"] { scroll-margin-top: calc(var(--navbar-h) + 60px); }

/* ============================================================
   Bloque promocional para index.html
   ============================================================ */
.rbc-promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1.5fr 1fr; gap: 30px; align-items: center;
  border-radius: var(--radius-xl); padding: 36px 40px; color: #fff;
  background:
    radial-gradient(58% 100% at 88% 25%, rgba(237, 28, 36, .30) 0%, transparent 62%),
    linear-gradient(140deg, var(--rbc-tinta) 0%, #23161A 100%);
}
.rbc-promo::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--rbc-rojo), var(--rbc-oro));
}
.rbc-promo-marca { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.rbc-promo-marca img.m-comite { height: 86px; width: auto; }
.rbc-promo-marca img.m-cip { height: 56px; width: auto; opacity: .95; }
.rbc-promo .rbc-eyebrow { color: var(--rbc-oro-claro); }
.rbc-promo .rbc-eyebrow::before { background: linear-gradient(90deg, var(--rbc-rojo), var(--rbc-oro)); }
.rbc-promo h2 { color: #fff; font-size: clamp(1.35rem, 2.8vw, 1.85rem); margin: 0 0 12px; font-weight: 800; }
.rbc-promo p { color: #C6C9D2; margin: 0 0 20px; line-height: 1.7; font-size: .97rem; }
.rbc-promo-side { display: flex; flex-direction: column; gap: 9px; }
.rbc-promo-side span {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 11px 15px; font-size: .85rem; color: #D6D9E0;
  display: flex; align-items: center; gap: 10px;
}
.rbc-promo-side span i { color: var(--rbc-oro-claro); width: 16px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .rbc-promo { grid-template-columns: auto 1fr; }
  .rbc-promo-side { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  /* El riel pasa a vertical */
  .rbc-riel { grid-template-columns: 1fr; gap: 4px; }
  .rbc-riel::before {
    left: 29px; right: auto; top: 8%; bottom: 8%; width: 4px; height: auto;
    background: linear-gradient(180deg,
      var(--rbc-verde) 0%, var(--rbc-verde) 17%,
      var(--rbc-azul) 30%, var(--rbc-azul) 50%,
      var(--rbc-dorado) 63%, var(--rbc-dorado) 78%,
      var(--rbc-gris) 90%, var(--rbc-gris) 100%);
  }
  /* La línea es vertical: se traza de arriba hacia abajo, no de izquierda a derecha */
  .rbc-riel::before { transform: scaleY(0); transform-origin: center top; }
  .rbc-riel.is-visible::before { transform: scaleY(1); }
  .rbc-riel li { text-align: left; padding: 8px 0; }
  .rbc-riel a { display: grid; grid-template-columns: 58px 1fr; gap: 16px; align-items: center; }
  .rbc-riel-tit { margin-top: 0; min-height: 0; }
  .rbc-riel-tit, .rbc-riel-meta, .rbc-riel-estado { grid-column: 2; }
  /* El chip debe ajustarse a su texto, no estirarse a toda la celda */
  .rbc-riel-estado { justify-self: start; }
  .rbc-riel-nodo { grid-row: 1 / span 3; }
}
@media (max-width: 900px) {
  .rbc-inst-grid { grid-template-columns: 1fr; }
  .rbc-hero { padding: 62px 0 58px; }
  .rbc-panel > summary { padding: 15px 16px; gap: 12px; }
  .rbc-panel-cuerpo { padding: 16px; }
  .rbc-panel-foto { min-height: 150px; }
  .rbc-promo { grid-template-columns: 1fr; padding: 30px 24px; text-align: center; }
  .rbc-promo-marca { flex-direction: row; justify-content: center; }
  .rbc-promo .rbc-eyebrow { justify-content: center; }
  .rbc-cta { padding: 36px 22px; }
  .rbc-section { padding: 54px 0; }
  .rbc-hero-wm { display: none; }
  .rbc-flow-arrow { display: none; }
  .rbc-dl > div { grid-template-columns: 1fr; gap: 3px; }
  .rbc-inst-band-inner { gap: 14px; }
  .rbc-inst-gestion { margin-left: 0; text-align: left; width: 100%; }
  .rbc-inst-sep { display: none; }
}
@media (max-width: 560px) {
  .rbc-hero-actions .btn, .rbc-cta-actions .btn { width: 100%; }
  .rbc-hero h1 { font-size: 1.92rem; }
  .rbc-logo-comite { height: 50px; }
  .rbc-logo-cip { height: 46px; }
  .rbc-inst-txt strong { font-size: .88rem; }
  .rbc-faq .rbc-faq-a { padding-left: 19px; }
}

@media print {
  .rbc-anchors, .navbar, .nav-mobile { display: none !important; }
  .rbc-hero, .rbc-cta, .rbc-inst-footer, .rbc-promo, .rbc-ficha-head {
    background: #fff !important; color: #000 !important;
  }
  .rbc-hero h1, .rbc-cta h2, .rbc-inst-footer h3, .rbc-ficha-head h3 { color: #000 !important; }
  .rbc-hero h1 em { -webkit-text-fill-color: #000; }
  .rbc-hero-wm { display: none; }
}

/* ============================================================
   v4 · EXPERIENCIA CINEMATOGRAFICA CONTROLADA POR SCROLL
   Inspirada en el flujo Higgsfield: una secuencia visual continua,
   tipografia editorial y profundidad, adaptadas a la identidad BIM Cusco.
   ============================================================ */

.rbc-page {
  background: #0A0B0E;
  color: #E9E7E2;
  overflow-x: clip;
}

.rbc-skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 9999;
  padding: 11px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--rbc-tinta);
  font-size: .86rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.rbc-skip-link:focus { transform: translateY(0); }

.rbc-page .rbc-site-nav {
  background: rgba(10, 11, 14, .9);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(18px) saturate(130%);
}
.rbc-page .rbc-site-nav .nav-links a { color: #B8B7B2; }
.rbc-page .rbc-site-nav .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
}
.rbc-page .rbc-site-nav .nav-links a.active { color: var(--rbc-oro-claro); }
.rbc-page .rbc-site-nav .nav-toggle span { background: #fff; }
.rbc-page .nav-mobile {
  background: #101116;
  border-bottom-color: rgba(255,255,255,.1);
}
.rbc-page .nav-mobile a { color: #E9E7E2; }

.rbc-page .rbc-inst-band {
  margin-top: var(--navbar-h);
  padding: 11px 0;
  background: #111216;
  border-bottom-color: rgba(255,255,255,.08);
}
.rbc-page .rbc-inst-band-inner { gap: 18px; }
.rbc-page .rbc-logo-comite { height: 43px; }
.rbc-page .rbc-logo-cip { height: 41px; }
.rbc-page .rbc-inst-txt strong { color: #F3F1EC; font-size: .86rem; }
.rbc-page .rbc-inst-txt span { color: #85868B; font-size: .72rem; }
.rbc-page .rbc-inst-sep { background: rgba(255,255,255,.14); }
.rbc-page .rbc-inst-gestion i { color: #85868B; }

/* --- Hero sticky: el desplazamiento controla el tiempo del video --- */
.rbc-page .rbc-hero--cinematic {
  --hero-progress: 0;
  height: 290svh;
  min-height: 1640px;
  padding: 0;
  overflow: visible;
  background: #090A0D;
  color: #fff;
}
.rbc-page .rbc-hero--cinematic::after { content: none; }
.rbc-page .rbc-hero-stage {
  position: sticky;
  top: var(--navbar-h);
  height: calc(100svh - var(--navbar-h));
  min-height: 580px;
  overflow: hidden;
  isolation: isolate;
  background: #090A0D url("../media/rbc-hero-higgsfield.png") center 42% / cover no-repeat;
}
.rbc-page .rbc-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.82) contrast(1.08) brightness(.8);
  transform: translate3d(0,0,0) scale(1.012);
  backface-visibility: hidden;
  will-change: transform, opacity;
  transition: opacity .32s linear;
}
.rbc-page .rbc-hero-video.is-looping { opacity: 0; }
.rbc-page .rbc-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,8,11,.92) 0%, rgba(7,8,11,.7) 40%, rgba(7,8,11,.12) 72%, rgba(7,8,11,.38) 100%),
    linear-gradient(180deg, rgba(7,8,11,.22) 0%, transparent 45%, rgba(7,8,11,.92) 100%);
}
.rbc-page .rbc-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: calc(.08 + var(--hero-progress) * .16);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(227,199,126,.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,199,126,.24) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent 35%, #000 72%, transparent 100%);
  transform: perspective(700px) rotateX(58deg) translateY(40%) scale(1.35);
  transform-origin: center bottom;
}
.rbc-page .rbc-hero-wm {
  z-index: 2;
  top: 48%;
  right: -7vw;
  width: min(48vw, 690px);
  max-width: none;
  opacity: calc(.025 + var(--hero-progress) * .055);
  filter: grayscale(1) brightness(4);
}
.rbc-page .rbc-hero-scenes {
  position: relative;
  z-index: 4;
  height: 100%;
  pointer-events: none;
}
.rbc-page .rbc-hero-chapter {
  position: absolute;
  top: 48%;
  left: 0;
  width: min(690px, calc(100% - 120px));
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 42px, 0) scale(.985);
  transition:
    opacity .5s cubic-bezier(.22,1,.36,1),
    transform .7s cubic-bezier(.22,1,.36,1),
    visibility .5s;
  translate: 0 -50%;
}
.rbc-page .rbc-hero-chapter.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
}
.rbc-page .rbc-hero-chapter h1,
.rbc-page .rbc-hero-chapter h2 {
  max-width: 13ch;
  margin: 0 0 19px;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6.8vw, 6.7rem);
  font-weight: 650;
  line-height: .91;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.rbc-page .rbc-hero-chapter h1 { font-size: clamp(3.25rem, 7.2vw, 7rem); }
.rbc-page .rbc-hero-chapter h1 em,
.rbc-page .rbc-hero-chapter h2 em {
  display: block;
  font-style: normal;
  color: var(--rbc-oro-claro);
  background: none;
  -webkit-text-fill-color: currentColor;
}
.rbc-page .rbc-hero-chapter p {
  max-width: 54ch;
  margin: 0 0 28px;
  color: #D0CFCA;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
  line-height: 1.62;
}
.rbc-page .rbc-hero-tag {
  margin-bottom: 24px;
  background: rgba(10,11,14,.5);
  border-color: rgba(227,199,126,.46);
  color: #F1E5C5;
  backdrop-filter: blur(12px);
}
.rbc-page .rbc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #F0E2BB;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.rbc-page .rbc-hero-kicker::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--rbc-oro-claro);
}
.rbc-page .rbc-hero-actions { margin: 0; }
.rbc-page .rbc-hero-actions .btn {
  min-height: 50px;
  border-radius: 6px;
  letter-spacing: .01em;
}
.rbc-page .rbc-hero-meta {
  position: absolute;
  z-index: 5;
  left: max(24px, calc((100vw - 1200px) / 2));
  right: 116px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  pointer-events: none;
}
.rbc-page .rbc-hero-meta span {
  padding: 6px 11px;
  color: #B7B7B2;
  background: rgba(10,11,14,.5);
  border-color: rgba(255,255,255,.13);
  backdrop-filter: blur(10px);
  font-size: .69rem;
}
.rbc-page .rbc-hero-progress {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: 34px;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: #D5D2CA;
  translate: 0 -50%;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.rbc-page .rbc-hero-progress-label {
  writing-mode: vertical-rl;
  rotate: 180deg;
  font-size: .61rem;
  letter-spacing: .2em;
  color: #8C8B87;
}
.rbc-page .rbc-hero-progress > i {
  display: block;
  position: relative;
  width: 2px;
  height: 140px;
  overflow: hidden;
  background: rgba(255,255,255,.2);
}
.rbc-page .rbc-hero-progress > i > b {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(180deg, var(--rbc-rojo), var(--rbc-oro-claro));
  transform: scaleY(var(--hero-progress));
  transform-origin: top;
}
.rbc-page .rbc-scroll-cue {
  position: absolute;
  z-index: 5;
  right: 30px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9C9B96;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: calc(1 - var(--hero-progress) * 2.5);
}
.rbc-page .rbc-scroll-cue i {
  position: relative;
  display: block;
  width: 18px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
}
.rbc-page .rbc-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: var(--rbc-oro-claro);
  translate: -50% 0;
  animation: rbc-scroll-dot 1.7s ease-in-out infinite;
}
@keyframes rbc-scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(11px); }
}

/* --- Navegacion secundaria y ritmo editorial --- */
.rbc-page .rbc-anchors {
  top: var(--navbar-h);
  z-index: 45;
  background: rgba(11,12,15,.94);
  border-bottom-color: rgba(255,255,255,.1);
  backdrop-filter: blur(16px);
}
.rbc-page .rbc-anchors a {
  color: #9D9E9F;
  border-color: rgba(255,255,255,.11);
  background: rgba(255,255,255,.025);
}
.rbc-page .rbc-anchors a:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.rbc-page .rbc-anchors a.is-active {
  color: #0A0B0E;
  background: var(--rbc-oro-claro);
  border-color: var(--rbc-oro-claro);
}
.rbc-page .rbc-section { padding: clamp(74px, 9vw, 128px) 0; }
.rbc-page .rbc-section--tight { padding: 42px 0; }
.rbc-page .rbc-head { max-width: 880px; margin-bottom: clamp(34px, 5vw, 58px); }
.rbc-page .rbc-head h2 {
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 650;
}
.rbc-page .rbc-head p { max-width: 68ch; font-size: clamp(1rem, 1.35vw, 1.14rem); }
.rbc-page .rbc-eyebrow { letter-spacing: .2em; }

.rbc-page #rbc-aviso,
.rbc-page #rbc-la-ruta,
.rbc-page #rbc-niveles,
.rbc-page #rbc-faq {
  background: #0A0B0E;
  color: #EDEAE4;
}
.rbc-page #rbc-la-ruta { background: #0D0E12; }
/* Ojo: el fondo claro se asigna por el id de cada sección, no por la clase
   .rbc-ambient--light. Una sección nueva que no figure aquí cae sobre el
   fondo oscuro del cuerpo y su texto se vuelve ilegible. */
.rbc-page #rbc-una-ruta,
.rbc-page #rbc-primera-etapa,
.rbc-page #rbc-malla,
.rbc-page #rbc-certificaciones,
.rbc-page #rbc-preinscripcion {
  background: #F0ECE4;
  color: var(--rbc-tinta);
}
.rbc-page #rbc-siguientes { background: #E6E0D6; color: var(--rbc-tinta); }
.rbc-page #rbc-la-ruta .rbc-head h2,
.rbc-page #rbc-niveles .rbc-head h2,
.rbc-page #rbc-faq .rbc-head h2 { color: #F4F1EA; }
.rbc-page #rbc-la-ruta .rbc-head p,
.rbc-page #rbc-niveles .rbc-head p,
.rbc-page #rbc-faq .rbc-head p { color: #A5A5A2; }

.rbc-page #rbc-aviso .rbc-aviso {
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--rbc-rojo);
  background: #111216;
  box-shadow: none;
}
.rbc-page #rbc-aviso .rbc-aviso > strong,
.rbc-page #rbc-aviso .rbc-aviso p strong { color: #F3F1EC; }
.rbc-page #rbc-aviso .rbc-aviso p { color: #A8A8A4; }

/* --- Ruta / riel --- */
.rbc-page #rbc-la-ruta .rbc-riel::before { opacity: .58; }
.rbc-page #rbc-la-ruta .rbc-riel-tit { color: #EFECE5; }
.rbc-page #rbc-la-ruta .rbc-riel-meta { color: #85868A; }
.rbc-page #rbc-la-ruta .rbc-riel a:hover .rbc-riel-tit { color: var(--rbc-oro-claro); }
.rbc-page #rbc-la-ruta .rbc-diagrama,
.rbc-page #rbc-niveles .rbc-diagrama {
  position: relative;
  border-color: rgba(255,255,255,.12);
  background: #15161B;
  box-shadow: 0 28px 80px rgba(0,0,0,.32);
}
.rbc-page #rbc-la-ruta .rbc-diagrama img,
.rbc-page #rbc-niveles .rbc-diagrama img {
  filter: saturate(.9) contrast(1.05);
}
.rbc-page #rbc-la-ruta .rbc-diagrama::after,
.rbc-page #rbc-niveles .rbc-diagrama::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-140%) skewX(-12deg);
  background: linear-gradient(90deg, transparent, rgba(116,224,243,.13), rgba(227,199,126,.2), transparent);
  mix-blend-mode: screen;
}
.rbc-page .rbc-diagrama.rbc-anim.is-visible::after {
  animation: rbc-diagram-scan 1.45s cubic-bezier(.22,1,.36,1) .22s both;
}
@keyframes rbc-diagram-scan {
  0% { opacity: 0; transform: translateX(-140%) skewX(-12deg); }
  18% { opacity: 1; }
  82% { opacity: .85; }
  100% { opacity: 0; transform: translateX(560%) skewX(-12deg); }
}
.rbc-page #rbc-la-ruta .rbc-diagrama-pie,
.rbc-page #rbc-niveles .rbc-diagrama-pie {
  background: #131419;
  border-top-color: rgba(255,255,255,.1);
  color: #909195;
}

/* --- Tarjetas claras con una profundidad sobria --- */
.rbc-page #rbc-una-ruta .rbc-card,
.rbc-page #rbc-certificaciones .rbc-card,
.rbc-page #rbc-preinscripcion .rbc-card,
.rbc-page .rbc-ficha,
.rbc-page .rbc-panel,
.rbc-page .rbc-step,
.rbc-page .rbc-table-wrap {
  border-color: rgba(20,22,28,.11);
  border-radius: 4px;
  box-shadow: 0 18px 55px rgba(34,27,19,.08);
}
.rbc-page #rbc-una-ruta .rbc-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
}
.rbc-page #rbc-una-ruta .rbc-card::after {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -58px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(200,162,74,.28);
  rotate: 45deg;
}

/* --- Los seis niveles como campaña: mundos distintos, un mismo juego --- */
.rbc-page #rbc-niveles .rbc-levels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 58px);
  padding-left: 66px;
}
.rbc-page #rbc-niveles .rbc-levels::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 98px;
  width: 2px;
  background: linear-gradient(180deg, #51E0B5, #55A7FF 44%, #A78BFA 64%, #F2B84B 84%, #E3C77E);
  box-shadow: 0 0 22px rgba(85,167,255,.28);
}
.rbc-page #rbc-niveles .rbc-level {
  --level-accent: #72D8E6;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, .84fr);
  grid-template-rows: auto 1fr auto;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background:
    radial-gradient(100% 100% at 100% 0%, color-mix(in srgb, var(--level-accent) 12%, transparent), transparent 56%),
    linear-gradient(145deg, #15171C, #0C0D11);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--level-accent) 12%, transparent),
    0 28px 90px rgba(0,0,0,.34);
  transform-style: preserve-3d;
  transition: transform .55s cubic-bezier(.22,1,.36,1), border-color .45s, box-shadow .45s;
}
.rbc-page #rbc-niveles .rbc-level::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background: linear-gradient(120deg, transparent 45%, rgba(255,255,255,.035) 50%, transparent 55%);
  translate: -100% 0;
  transition: translate .8s cubic-bezier(.22,1,.36,1);
}
.rbc-page #rbc-niveles .rbc-level::after {
  content: attr(data-level);
  position: absolute;
  top: 32px;
  left: 10px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--level-accent) 70%, #fff);
  border-radius: 50%;
  color: #080A0D;
  background: var(--level-accent);
  box-shadow: 0 0 0 8px #0A0B0E, 0 0 26px color-mix(in srgb, var(--level-accent) 48%, transparent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.rbc-page #rbc-niveles .rbc-level:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--level-accent) 52%, transparent);
  box-shadow: 0 34px 110px rgba(0,0,0,.48);
}
.rbc-page #rbc-niveles .rbc-level:hover::before { translate: 100% 0; }
.rbc-page #rbc-niveles .rbc-level:nth-child(even) {
  grid-template-columns: minmax(340px, .84fr) minmax(0, 1.16fr);
}
.rbc-page #rbc-niveles .rbc-level--stage0 { --level-accent: #51E0B5; }
.rbc-page #rbc-niveles .rbc-level--stage1 { --level-accent: #72D8E6; }
.rbc-page #rbc-niveles .rbc-level--stage2 { --level-accent: #55A7FF; }
.rbc-page #rbc-niveles .rbc-level--stage3 { --level-accent: #A78BFA; }
.rbc-page #rbc-niveles .rbc-level--stage4 { --level-accent: #F2A84B; }
.rbc-page #rbc-niveles .rbc-level--stage5 { --level-accent: #E3C77E; }
.rbc-page #rbc-niveles .rbc-level-media {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / -1;
  min-height: 430px;
  overflow: hidden;
  background: #090A0D;
}
.rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-media { grid-column: 2; }
.rbc-page #rbc-niveles .rbc-level-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 45%, rgba(10,11,14,.78) 100%),
    linear-gradient(180deg, transparent 52%, rgba(5,6,8,.8) 100%);
}
.rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-media::after {
  background:
    linear-gradient(270deg, transparent 45%, rgba(10,11,14,.78) 100%),
    linear-gradient(180deg, transparent 52%, rgba(5,6,8,.8) 100%);
}
.rbc-page #rbc-niveles .rbc-level-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  filter: saturate(.86) contrast(1.08) brightness(.78);
  transition: transform 1.1s cubic-bezier(.22,1,.36,1), filter .7s;
}
.rbc-page #rbc-niveles .rbc-level:hover .rbc-level-media img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.08) brightness(.88);
}
.rbc-page #rbc-niveles .rbc-level-hud {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}
.rbc-page #rbc-niveles .rbc-level-hud span {
  color: var(--level-accent);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rbc-page #rbc-niveles .rbc-level-hud strong {
  max-width: 16ch;
  color: #fff;
  font-size: clamp(1.08rem, 1.7vw, 1.5rem);
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.rbc-page #rbc-niveles .rbc-level-top {
  position: relative;
  z-index: 2;
  grid-column: 2;
  padding: 32px 30px 17px;
  border-top: 0;
  background: transparent;
}
.rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-top,
.rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-body,
.rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-foot { grid-column: 1; }
.rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-top { padding-left: 82px; }
.rbc-page #rbc-niveles .rbc-level-num {
  color: var(--level-accent);
  font-size: .72rem;
}
.rbc-page #rbc-niveles .rbc-level-top h3 {
  margin-top: 17px;
  color: #F3F0E9;
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.rbc-page #rbc-niveles .rbc-level-body {
  position: relative;
  z-index: 2;
  grid-column: 2;
  padding: 0 30px 26px;
}
.rbc-page #rbc-niveles .rbc-level-body p { color: #9D9E9F; font-size: .92rem; }
.rbc-page #rbc-niveles .rbc-level-foot {
  position: relative;
  z-index: 2;
  grid-column: 2;
  padding: 15px 30px;
  color: #85868A;
  border-top-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.025);
}
.rbc-page #rbc-niveles .rbc-chip--neutro { background: rgba(255,255,255,.08); color: #C9C8C3; }
.rbc-page #rbc-niveles .rbc-legend span { color: #95969A; }

/* --- FAQ oscuro, paneles y CTA --- */
.rbc-page #rbc-faq .rbc-faq details {
  background: #111216;
  border-color: rgba(255,255,255,.11);
  border-radius: 3px;
}
.rbc-page #rbc-faq .rbc-faq summary { color: #E9E7E2; padding: 19px 21px; }
.rbc-page #rbc-faq .rbc-faq details[open] summary {
  background: #17181D;
  border-bottom-color: rgba(255,255,255,.09);
}
.rbc-page #rbc-faq .rbc-faq .rbc-faq-a { color: #A6A6A2; }
.rbc-page .rbc-cta {
  border-radius: 4px;
  background:
    radial-gradient(70% 140% at 100% 0%, rgba(237,28,36,.34), transparent 58%),
    linear-gradient(130deg, #111216, #251315);
  box-shadow: 0 34px 90px rgba(34,14,16,.26);
}
.rbc-page .rbc-panel-foto { border-radius: 3px; min-height: 260px; }

/* Profundidad interactiva activada desde JS, solo para puntero fino. */
@media (hover: hover) and (pointer: fine) {
  .rbc-page .rbc-depth {
    will-change: transform;
    transition: transform .26s cubic-bezier(.22,1,.36,1), box-shadow .26s ease;
  }
}

@media (max-width: 1000px) {
  .rbc-page .rbc-hero--cinematic { height: 260svh; min-height: 1420px; }
  .rbc-page .rbc-hero-chapter { width: min(680px, calc(100% - 90px)); }
  .rbc-page #rbc-niveles .rbc-levels { grid-template-columns: 1fr; padding-left: 54px; }
  .rbc-page #rbc-niveles .rbc-levels::before { left: 86px; }
  .rbc-page #rbc-niveles .rbc-level::after { left: 10px; }
}

@media (max-width: 760px) {
  .rbc-page .rbc-inst-band { padding: 9px 0; }
  .rbc-page .rbc-inst-band-inner { display: grid; grid-template-columns: 1fr auto; }
  .rbc-page .rbc-inst-band-inner > .rbc-inst-logo:nth-child(3),
  .rbc-page .rbc-inst-sep { display: none; }
  .rbc-page .rbc-inst-gestion { width: auto; margin-left: 0; text-align: right; }
  .rbc-page .rbc-inst-txt span { display: none; }
  .rbc-page .rbc-hero--cinematic { height: 230svh; min-height: 1180px; }
  .rbc-page .rbc-hero-stage { min-height: 520px; }
  .rbc-page .rbc-hero-video { object-position: 58% center; }
  .rbc-page .rbc-hero-shade {
    background:
      linear-gradient(90deg, rgba(7,8,11,.9), rgba(7,8,11,.38)),
      linear-gradient(180deg, rgba(7,8,11,.15), transparent 35%, rgba(7,8,11,.94));
  }
  .rbc-page .rbc-hero-scenes { padding-left: 22px; padding-right: 22px; }
  .rbc-page .rbc-hero-chapter {
    top: 44%;
    left: 22px;
    width: calc(100% - 44px);
  }
  .rbc-page .rbc-hero-chapter h1,
  .rbc-page .rbc-hero-chapter h2 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 14vw, 4.9rem);
  }
  .rbc-page .rbc-hero-chapter p { max-width: 34ch; font-size: .98rem; }
  .rbc-page .rbc-hero-tag { max-width: calc(100vw - 44px); font-size: .63rem; }
  .rbc-page .rbc-hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .rbc-page .rbc-hero-actions .btn { width: 100%; }
  .rbc-page .rbc-hero-progress { right: 15px; }
  .rbc-page .rbc-hero-progress-label { display: none; }
  .rbc-page .rbc-hero-progress > i { height: 92px; }
  .rbc-page .rbc-hero-meta { left: 22px; right: 22px; bottom: 18px; }
  .rbc-page .rbc-hero-meta span:nth-child(-n+3) { display: none; }
  .rbc-page .rbc-scroll-cue { display: none; }
  .rbc-page .rbc-section { padding: 72px 0; }
  .rbc-page .rbc-head h2 { font-size: clamp(2.1rem, 11vw, 3.35rem); }
  .rbc-page #rbc-niveles .rbc-levels { grid-template-columns: 1fr; gap: 28px; padding-left: 28px; }
  .rbc-page #rbc-niveles .rbc-levels::before { left: 43px; }
  .rbc-page #rbc-niveles .rbc-level {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) { grid-template-columns: 1fr; }
  .rbc-page #rbc-niveles .rbc-level::after {
    top: 20px;
    left: 0;
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 5px #0A0B0E, 0 0 18px color-mix(in srgb, var(--level-accent) 42%, transparent);
    font-size: .56rem;
  }
  .rbc-page #rbc-niveles .rbc-level-media,
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-media {
    grid-column: 1;
    grid-row: auto;
    min-height: 245px;
    aspect-ratio: 16 / 10;
  }
  .rbc-page #rbc-niveles .rbc-level-media::after,
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-media::after {
    background: linear-gradient(180deg, transparent 40%, rgba(5,6,8,.86) 100%);
  }
  .rbc-page #rbc-niveles .rbc-level-top,
  .rbc-page #rbc-niveles .rbc-level-body,
  .rbc-page #rbc-niveles .rbc-level-foot,
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-top,
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-body,
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-foot { grid-column: 1; }
  .rbc-page #rbc-niveles .rbc-level-top { padding: 25px 22px 14px; }
  .rbc-page #rbc-niveles .rbc-level:nth-child(even) .rbc-level-top { padding-left: 22px; }
  .rbc-page #rbc-niveles .rbc-level-body { padding: 0 22px 22px; }
  .rbc-page #rbc-niveles .rbc-level-foot { padding: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .rbc-page .rbc-hero--cinematic { height: auto; min-height: 0; }
  .rbc-page .rbc-hero-stage { position: relative; top: 0; height: min(820px, calc(100svh - var(--navbar-h))); }
  .rbc-page .rbc-hero-video { display: block; }
  .rbc-page .rbc-hero-chapter { display: none; transition: none; }
  .rbc-page .rbc-hero-chapter:first-child { display: block; opacity: 1; visibility: visible; transform: none; }
  .rbc-page .rbc-scroll-cue,
  .rbc-page .rbc-hero-progress { display: none; }
  .rbc-page .rbc-scroll-cue i::after { animation: none; }
  .rbc-page .rbc-diagrama.rbc-anim.is-visible::after { animation: none; }
  .rbc-page #rbc-niveles .rbc-level-media img { transition: none; }
  .rbc-page #rbc-niveles .rbc-level:hover .rbc-level-media img { transform: none; }
}

@media print {
  .rbc-page { background: #fff; color: #000; }
  .rbc-page .rbc-hero--cinematic { height: auto; min-height: 0; }
  .rbc-page .rbc-hero-stage { position: relative; top: 0; height: 620px; }
  .rbc-page .rbc-hero-chapter { display: none; }
  .rbc-page .rbc-hero-chapter:first-child { display: block; opacity: 1; visibility: visible; transform: none; }
  .rbc-page .rbc-hero-progress,
  .rbc-page .rbc-scroll-cue { display: none; }
}

/* ============================================================
   EXPERIENCIA DE CAMPAÑA — PROGRESO, MISIONES Y CREDENCIALES
   ============================================================ */
.rbc-page #rbc-una-ruta .rbc-head h2 em,
.rbc-page #rbc-primera-etapa .rbc-head h2 em,
.rbc-page #rbc-siguientes .rbc-head h2 em,
.rbc-page #rbc-certificaciones .rbc-head h2 em {
  color: #9D7415;
  font-style: normal;
}

/* Sistema de progreso */
.rbc-progress-system {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.55fr);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid rgba(20,22,28,.16);
  border-radius: 10px;
  background: #FAF8F3;
  box-shadow: 0 36px 100px rgba(37,29,20,.13);
}
.rbc-progress-console {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: clamp(34px, 5vw, 62px);
  color: #F4F1EA;
  background:
    radial-gradient(90% 65% at 80% 4%, rgba(227,199,126,.22), transparent 58%),
    radial-gradient(75% 50% at 10% 82%, rgba(237,28,36,.2), transparent 62%),
    #111217;
}
.rbc-progress-console::before {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.09);
  clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 0 100%);
}
.rbc-progress-console::after {
  content: "RUTA";
  position: absolute;
  top: 42px;
  right: -12px;
  z-index: -1;
  color: rgba(255,255,255,.035);
  font-size: clamp(4.5rem, 9vw, 8rem);
  font-weight: 900;
  letter-spacing: -.08em;
  writing-mode: vertical-rl;
}
.rbc-console-kicker {
  margin-bottom: auto;
  color: #E3C77E;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.rbc-progress-console > h2,
.rbc-progress-console > strong {
  display: block;
  margin: 0 0 22px;
  color: #F5F2EC;
  font-size: clamp(2.4rem, 4.2vw, 4.6rem);
  font-weight: 650;
  line-height: .91;
  letter-spacing: -.065em;
}
.rbc-progress-console p { max-width: 32ch; margin: 0; color: #9D9EA2; font-size: .91rem; line-height: 1.7; }
.rbc-console-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 36px; }
.rbc-console-meter span { height: 3px; background: color-mix(in srgb, #E3C77E calc(var(--meter) * 24%), #383A40); }
.rbc-progress-console small { margin-top: 11px; color: #6F7075; font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }

.rbc-progress-steps {
  position: relative;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  margin: 0;
  padding: 26px clamp(26px, 4vw, 52px);
  list-style: none;
  counter-reset: progress;
}
.rbc-progress-steps::before {
  content: "";
  position: absolute;
  top: 16.5%;
  bottom: 16.5%;
  left: clamp(77px, 8vw, 105px);
  width: 1px;
  background: linear-gradient(#4DBFA0, #55A7FF, #C8A24A, #ED1C24);
}
.rbc-progress-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 54px 1fr;
  align-items: center;
  gap: clamp(15px, 2vw, 26px);
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid rgba(20,22,28,.09);
}
.rbc-progress-steps li:last-child { border-bottom: 0; }
/* Dato concreto bajo cada punto: horas, requisitos o entregable */
.rbc-progress-dato {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 11px;
  border: 1px solid rgba(20,22,28,.13);
  border-radius: 999px;
  background: rgba(20,22,28,.03);
  color: #6B7280;
  font-size: .74rem;
  line-height: 1.5;
}
.rbc-progress-dato b { color: var(--rbc-tinta); font-weight: 700; }
.rbc-progress-index { color: #9A948A; font-size: .63rem; font-weight: 900; letter-spacing: .14em; }
.rbc-progress-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #D9D2C7;
  border-radius: 50%;
  color: #14161C;
  background: #FAF8F3;
  box-shadow: 0 0 0 8px #FAF8F3;
}
.rbc-progress-steps li:nth-child(1) .rbc-progress-icon { color: #15835B; }
.rbc-progress-steps li:nth-child(2) .rbc-progress-icon { color: #1565C0; }
.rbc-progress-steps li:nth-child(3) .rbc-progress-icon { color: #956F15; }
.rbc-progress-steps li:nth-child(4) .rbc-progress-icon { color: #C31820; }
.rbc-progress-steps h3 { margin: 0 0 6px; color: #17191F; font-size: clamp(1.06rem, 1.55vw, 1.32rem); letter-spacing: -.025em; }
.rbc-progress-steps p { max-width: 54ch; margin: 0; color: #696B72; font-size: .87rem; line-height: 1.63; }

/* Primer acto: expedientes de misión */
.rbc-act-status {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin: -8px 0 24px;
  padding: 16px 20px;
  border: 1px solid rgba(20,22,28,.12);
  border-radius: 6px;
  background: rgba(255,255,255,.58);
}
.rbc-act-status > div:first-child { display: grid; gap: 2px; }
.rbc-act-status span { color: #888178; font-size: .62rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.rbc-act-status strong { color: #1B1D22; font-size: .88rem; }
.rbc-act-status-track { height: 5px; overflow: hidden; border-radius: 10px; background: #D7D1C8; }
.rbc-act-status-track i { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg, #3EC197, #67DBBD); box-shadow: 0 0 14px rgba(62,193,151,.5); }
.rbc-act-status > a { color: #A3151C; font-size: .77rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; }
.rbc-act-status > a i { margin-left: 7px; }
.rbc-mission-dossiers { display: grid; gap: clamp(28px, 5vw, 54px); }
.rbc-mission-dossier {
  --dossier-accent: #51E0B5;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(20,22,28,.14);
  border-radius: 10px;
  background: #FCFAF6;
  box-shadow: 0 30px 90px rgba(36,28,18,.12);
}
.rbc-mission-dossier--one { --dossier-accent: #72D8E6; grid-template-columns: minmax(420px, 1.08fr) minmax(0, .92fr); }
.rbc-dossier-media { position: relative; min-height: 540px; overflow: hidden; background: #111216; }
.rbc-mission-dossier--one .rbc-dossier-media { grid-column: 2; grid-row: 1; }
.rbc-dossier-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,9,12,.05) 35%, rgba(8,9,12,.9) 100%);
}
.rbc-dossier-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.05); transition: transform 1s cubic-bezier(.22,1,.36,1); }
.rbc-mission-dossier:hover .rbc-dossier-media img { transform: scale(1.035); }
.rbc-dossier-hud { position: absolute; z-index: 2; right: 26px; bottom: 25px; left: 26px; color: #fff; }
.rbc-dossier-hud span { display: block; margin-bottom: 8px; color: var(--dossier-accent); font-size: .66rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.rbc-dossier-hud strong { display: block; max-width: 12ch; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: .94; text-transform: uppercase; letter-spacing: -.045em; }
.rbc-dossier-content { display: flex; flex-direction: column; padding: clamp(30px, 4.3vw, 58px); }
.rbc-mission-dossier--one .rbc-dossier-content { grid-column: 1; grid-row: 1; }
.rbc-dossier-title > span { color: #168162; font-size: .67rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.rbc-dossier-title h3 { max-width: 20ch; margin: 14px 0 13px; color: #17191F; font-size: clamp(1.55rem, 2.6vw, 2.5rem); line-height: 1.04; letter-spacing: -.045em; }
.rbc-dossier-title p { max-width: 52ch; margin: 0 0 22px; color: #6A6C72; font-size: .9rem; line-height: 1.67; }
.rbc-dossier-content .rbc-dl { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 22px; }
.rbc-dossier-content .rbc-dl > div { display: block; padding: 10px 0; border-bottom: 1px solid #E5DFD6; }
.rbc-dossier-content .rbc-dl dt { margin-bottom: 4px; color: #969087; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.rbc-dossier-content .rbc-dl dd { color: #25272D; font-size: .86rem; line-height: 1.45; }
.rbc-dossier-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 24px; }
.rbc-dossier-open { display: inline-flex; align-items: center; gap: 9px; color: #217D60; font-size: .69rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.rbc-dossier-open i { width: 8px; height: 8px; border-radius: 50%; background: #3EC197; box-shadow: 0 0 0 5px rgba(62,193,151,.13); animation: rbc-status-pulse 2s ease-in-out infinite; }
@keyframes rbc-status-pulse { 50% { box-shadow: 0 0 0 9px rgba(62,193,151,0); } }
.rbc-dossier-action .btn { white-space: nowrap; border-radius: 3px; }
.rbc-dossier-action .btn i { margin-left: 7px; }

/* Mapa de misiones avanzadas */
.rbc-campaign-key { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: -10px 0 30px; color: #79736A; font-size: .76rem; }
.rbc-campaign-key span { display: inline-flex; align-items: center; gap: 7px; }
.rbc-campaign-key i { width: 8px; height: 8px; border-radius: 50%; }
.rbc-campaign-key .is-ready { background: #368CCB; box-shadow: 0 0 0 4px rgba(54,140,203,.12); }
.rbc-campaign-key .is-progress { background: #D69A23; box-shadow: 0 0 0 4px rgba(214,154,35,.12); }
.rbc-campaign-key .is-next { background: #8B8D94; box-shadow: 0 0 0 4px rgba(139,141,148,.12); }
.rbc-mission-map { position: relative; gap: 22px; padding-left: 38px; }
.rbc-mission-map::before { content: ""; position: absolute; top: 36px; bottom: 36px; left: 12px; width: 2px; background: linear-gradient(#55A7FF, #A78BFA 38%, #F2A84B 72%, #9C9DA2); }
.rbc-map-mission {
  --mission-accent: #55A7FF;
  position: relative;
  overflow: visible;
  border: 1px solid rgba(20,22,28,.13);
  border-radius: 8px;
  background: #F8F6F1;
  box-shadow: 0 24px 65px rgba(38,31,22,.09);
}
.rbc-map-mission--three { --mission-accent: #A78BFA; }
.rbc-map-mission--four { --mission-accent: #F2A84B; }
.rbc-map-mission--five { --mission-accent: #A5A6AA; }
.rbc-map-mission::before {
  content: "";
  position: absolute;
  top: 74px;
  left: -33px;
  width: 13px;
  height: 13px;
  border: 3px solid #E6E0D6;
  border-radius: 50%;
  background: var(--mission-accent);
  box-shadow: 0 0 0 1px var(--mission-accent), 0 0 18px color-mix(in srgb, var(--mission-accent) 42%, transparent);
}
.rbc-map-mission > summary {
  display: grid;
  grid-template-columns: 210px 48px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  min-height: 150px;
  padding: 14px 20px 14px 14px;
  border-radius: 7px;
}
.rbc-map-mission[open] > summary { border-bottom: 1px solid #DED8CF; background: #F0EDE7; border-radius: 7px 7px 0 0; }
.rbc-map-thumb { position: relative; display: block; height: 122px; overflow: hidden; border-radius: 5px; background: #111216; }
.rbc-map-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,8,10,.72)); }
.rbc-map-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.05) brightness(.82); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.rbc-map-mission:hover .rbc-map-thumb img { transform: scale(1.05); }
.rbc-map-thumb i { position: absolute; z-index: 1; right: 10px; bottom: 8px; color: #fff; font-size: .58rem; font-style: normal; font-weight: 900; letter-spacing: .13em; }
.rbc-map-mission .rbc-panel-n { width: 48px; height: 48px; border: 1px solid color-mix(in srgb, var(--mission-accent) 55%, #aaa); border-radius: 50%; color: #17191F; background: transparent; font-size: .73rem; }
.rbc-map-mission .rbc-panel-tit small { display: block; margin-bottom: 8px; color: color-mix(in srgb, var(--mission-accent) 70%, #333); font-size: .61rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.rbc-map-mission .rbc-panel-tit b { color: #181A20; font-size: clamp(1.05rem, 1.65vw, 1.35rem); letter-spacing: -.025em; }
.rbc-map-mission .rbc-panel-tit > span { margin-top: 7px; color: #77736E; font-size: .75rem; }
.rbc-map-status { padding: 7px 10px; border-radius: 999px; font-size: .59rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.rbc-map-status.is-ready { color: #17659B; background: rgba(54,140,203,.12); }
.rbc-map-status.is-progress { color: #8D6110; background: rgba(214,154,35,.15); }
.rbc-map-status.is-next { color: #606169; background: rgba(139,141,148,.15); }
.rbc-map-mission .rbc-panel-mas { color: var(--mission-accent); }
.rbc-map-mission .rbc-panel-cuerpo { padding: clamp(24px, 4vw, 44px); background: #FBF9F5; border-radius: 0 0 8px 8px; }
.rbc-map-mission .rbc-tags { gap: 8px; }
.rbc-map-mission .rbc-tag { border-color: #DDD6CC; background: #F2EEE7; }
.rbc-mission-intro { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 18px; margin-bottom: 24px; padding: 20px; border-left: 3px solid var(--mission-accent); background: #F0ECE5; }
.rbc-mission-intro > i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #17191F; background: var(--mission-accent); }
.rbc-mission-intro p { margin: 0; color: #555860; font-size: .9rem; line-height: 1.66; }

/* Mapa de credenciales */
.rbc-credential-note { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 22px; margin: -12px 0 32px; padding: 17px 20px; border: 1px solid #D4C9B8; border-left: 4px solid #C8A24A; background: rgba(255,255,255,.55); }
.rbc-credential-note > span { color: #8A6508; font-size: .64rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.rbc-credential-note p { margin: 0; color: #5D5A56; font-size: .87rem; line-height: 1.55; }
.rbc-credential-note strong { color: #181A20; }
.rbc-credential-map { position: relative; }
.rbc-credential-origin {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  max-width: 420px;
  margin: 0 auto 58px;
  padding: 22px 25px;
  color: #F5F2EC;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  background: #131419;
  box-shadow: 0 20px 60px rgba(20,18,15,.2);
}
.rbc-credential-origin::after { content: ""; position: absolute; top: 100%; left: 50%; width: 1px; height: 59px; background: #B9A77F; }
.rbc-credential-origin span { color: #918F8B; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.rbc-credential-origin strong { grid-column: 1; margin-top: 4px; font-size: 1.3rem; }
.rbc-credential-origin > i { grid-column: 2; grid-row: 1 / 3; color: #E3C77E; font-size: 1.5rem; }
.rbc-credential-paths { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 24px; }
.rbc-credential-paths::before { content: ""; position: absolute; top: -30px; right: 25%; left: 25%; height: 30px; border: solid #B9A77F; border-width: 1px 1px 0; }
.rbc-credential-path {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(20,22,28,.14);
  border-radius: 8px;
  background: #FBF9F5;
  box-shadow: 0 28px 75px rgba(37,29,20,.1);
}
.rbc-credential-path > header { padding: 28px 30px 24px; border-bottom: 1px solid #E1DCD3; }
.rbc-credential-path header > span { color: #9D7415; font-size: .62rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.rbc-credential-path h3 { margin: 10px 0 8px; color: #17191F; font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.04em; }
.rbc-credential-path header p { max-width: 50ch; margin: 0; color: #6B6C72; font-size: .87rem; line-height: 1.6; }
.rbc-credential-items { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; }
.rbc-credential-items > div { padding: 26px 22px; border-right: 1px solid #E1DCD3; }
.rbc-credential-items > div:last-child { border-right: 0; }
.rbc-credential-number { color: #B4ADA2; font-size: .6rem; font-weight: 900; letter-spacing: .12em; }
.rbc-credential-items h4 { min-height: 2.5em; margin: 12px 0 9px; color: #22242A; font-size: .94rem; line-height: 1.25; }
.rbc-credential-items p { min-height: 5.4em; margin: 0 0 17px; color: #6B6C72; font-size: .8rem; line-height: 1.58; }
.rbc-credential-items p b { color: #2A2C32; }
.rbc-credential-items small { display: flex; gap: 8px; color: #77736D; font-size: .7rem; line-height: 1.45; }
.rbc-credential-items small i { margin-top: 2px; color: #9D7415; }
.rbc-credential-path > footer { margin-top: auto; padding: 15px 22px; color: #6F6C67; border-top: 1px solid #E1DCD3; background: #F0ECE5; font-size: .72rem; font-weight: 700; }
.rbc-credential-path > footer i { margin-right: 7px; color: #9D7415; }
.rbc-credential-path--external { color: #F2EFE8; border-color: #27292F; background: #121318; }
.rbc-credential-path--external > header { border-bottom-color: rgba(255,255,255,.09); }
.rbc-credential-path--external header > span { color: #72D8E6; }
.rbc-credential-path--external h3 { color: #F4F1EA; }
.rbc-credential-path--external header p { color: #999A9E; }
.rbc-external-badge { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 34px 30px 22px; }
.rbc-external-badge > i { display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid #72D8E6; border-radius: 50%; color: #72D8E6; font-size: 1.8rem; box-shadow: 0 0 30px rgba(114,216,230,.12); }
.rbc-external-badge span { color: #D5D3CE; font-size: 1.05rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; }
.rbc-external-requirements { display: grid; gap: 0; padding: 0 26px 26px; }
.rbc-external-requirements span { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 13px 0; color: #95969A; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .78rem; }
.rbc-external-requirements span:last-child { border-bottom: 0; }
.rbc-external-requirements i { color: #72D8E6; }
.rbc-external-requirements b { color: #DAD8D2; }
.rbc-external-requirements > span > span { display: block; padding: 0; border: 0; color: #95969A; }
.rbc-credential-path--external > footer { color: #9A9B9F; border-top-color: rgba(255,255,255,.09); background: #191A20; }
.rbc-credential-path--external > footer i { color: #72D8E6; }
.rbc-scope-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 34px; }
.rbc-scope-card { padding: clamp(26px, 3.5vw, 42px); border: 1px solid rgba(20,22,28,.13); background: rgba(255,255,255,.55); }
.rbc-scope-card--yes { border-top: 3px solid #279874; }
.rbc-scope-card--no { border-top: 3px solid #B9A77F; }
.rbc-scope-label { display: inline-flex; align-items: center; gap: 8px; color: #397E68; font-size: .65rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.rbc-scope-card--no .rbc-scope-label { color: #81724F; }
.rbc-scope-card h3 { margin: 12px 0 18px; color: #1A1C22; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.035em; }
.rbc-scope-card .rbc-list li { color: #62646B; }

@media (max-width: 980px) {
  .rbc-progress-system { grid-template-columns: 1fr; }
  .rbc-progress-console { min-height: 440px; }
  .rbc-mission-dossier,
  .rbc-mission-dossier--one { grid-template-columns: 1fr; }
  .rbc-dossier-media,
  .rbc-mission-dossier--one .rbc-dossier-media { grid-column: 1; grid-row: 1; min-height: 390px; }
  .rbc-dossier-content,
  .rbc-mission-dossier--one .rbc-dossier-content { grid-column: 1; grid-row: 2; }
  .rbc-map-mission > summary { grid-template-columns: 165px 44px minmax(0, 1fr) 24px; }
  .rbc-map-mission .rbc-map-status { display: none; }
  .rbc-credential-paths { grid-template-columns: 1fr; }
  .rbc-credential-paths::before { right: 50%; left: 50%; border-width: 0 0 0 1px; }
}

@media (max-width: 700px) {
  .rbc-progress-system { border-radius: 6px; }
  .rbc-progress-console { min-height: 390px; padding: 32px 27px; }
  .rbc-progress-console::before { inset: 16px; }
  .rbc-progress-steps { padding: 16px 22px; }
  .rbc-progress-steps::before { left: 74px; }
  .rbc-progress-steps li { grid-template-columns: 24px 42px 1fr; gap: 12px; padding: 22px 0; }
  .rbc-progress-icon { width: 42px; height: 42px; box-shadow: 0 0 0 6px #FAF8F3; }
  .rbc-progress-steps p { font-size: .81rem; }
  .rbc-act-status { grid-template-columns: 1fr; gap: 12px; }
  .rbc-act-status-track { grid-row: 2; }
  .rbc-mission-dossier { min-height: 0; border-radius: 6px; }
  .rbc-dossier-media,
  .rbc-mission-dossier--one .rbc-dossier-media { min-height: 270px; }
  .rbc-dossier-content { padding: 28px 22px; }
  .rbc-dossier-content .rbc-dl { grid-template-columns: 1fr; }
  .rbc-dossier-action { align-items: stretch; flex-direction: column; }
  .rbc-dossier-action .btn { width: 100%; }
  .rbc-campaign-key { display: grid; gap: 12px; }
  .rbc-mission-map { padding-left: 20px; }
  .rbc-mission-map::before { left: 4px; }
  .rbc-map-mission::before { top: 42px; left: -22px; width: 9px; height: 9px; }
  .rbc-map-mission > summary { grid-template-columns: 82px minmax(0, 1fr) 20px; gap: 12px; min-height: 110px; padding: 12px; }
  .rbc-map-thumb { height: 78px; }
  .rbc-map-mission .rbc-panel-n { display: none; }
  .rbc-map-mission .rbc-panel-tit small { margin-bottom: 5px; font-size: .54rem; }
  .rbc-map-mission .rbc-panel-tit b { font-size: .91rem; }
  .rbc-map-mission .rbc-panel-tit > span { display: none; }
  .rbc-map-mission .rbc-panel-cuerpo { padding: 22px 18px; }
  .rbc-mission-intro { grid-template-columns: 38px 1fr; padding: 16px; }
  .rbc-mission-intro > i { width: 36px; height: 36px; }
  .rbc-credential-note { grid-template-columns: 1fr; gap: 6px; }
  .rbc-credential-origin { margin-bottom: 45px; }
  .rbc-credential-origin::after { height: 46px; }
  .rbc-credential-paths::before { top: -22px; height: 22px; }
  .rbc-credential-items { grid-template-columns: 1fr; }
  .rbc-credential-items > div { border-right: 0; border-bottom: 1px solid #E1DCD3; }
  .rbc-credential-items > div:last-child { border-bottom: 0; }
  .rbc-credential-items h4,
  .rbc-credential-items p { min-height: 0; }
  .rbc-scope-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .rbc-dossier-open i { animation: none; }
  .rbc-dossier-media img,
  .rbc-map-thumb img { transition: none; }
}

@media print {
  .rbc-progress-console,
  .rbc-credential-path--external { color: #000; background: #fff; }
  .rbc-progress-console > strong,
  .rbc-credential-path--external h3 { color: #000; }
}

/* ============================================================
   EDICIÓN ESENCIAL — MENOS RUIDO, MÁS MOVIMIENTO AMBIENTAL
   ============================================================ */
.rbc-page .rbc-section--ambient {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.rbc-page section[hidden] { display: none !important; }
.rbc-page .rbc-section--ambient > .container { position: relative; z-index: 2; }
.rbc-page .rbc-section--ambient::before,
.rbc-page .rbc-section--ambient::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.rbc-page .rbc-section--ambient::before {
  inset: -25%;
  background:
    radial-gradient(circle at 18% 28%, var(--ambient-a, rgba(74,144,226,.12)), transparent 27%),
    radial-gradient(circle at 76% 20%, var(--ambient-b, rgba(200,162,74,.12)), transparent 25%),
    radial-gradient(circle at 62% 82%, var(--ambient-c, rgba(237,28,36,.08)), transparent 28%);
  filter: blur(16px);
  animation: rbc-ambient-drift 16s ease-in-out infinite alternate;
}
.rbc-page .rbc-section--ambient::after {
  top: 50%;
  right: -360px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  opacity: .42;
  transform: translateY(-50%);
  background: repeating-radial-gradient(circle, transparent 0 70px, var(--ambient-ring, rgba(21,101,192,.13)) 71px 72px);
  -webkit-mask-image: linear-gradient(90deg, transparent 6%, #000 64%);
  mask-image: linear-gradient(90deg, transparent 6%, #000 64%);
  animation: rbc-orbit-turn 44s linear infinite;
}
.rbc-page .rbc-ambient--light {
  --ambient-a: rgba(55,144,194,.11);
  --ambient-b: rgba(200,162,74,.14);
  --ambient-c: rgba(237,28,36,.075);
  --ambient-ring: rgba(91,126,170,.12);
}
.rbc-page .rbc-ambient--dark {
  --ambient-a: rgba(37,99,235,.2);
  --ambient-b: rgba(14,165,233,.14);
  --ambient-c: rgba(139,92,246,.13);
  --ambient-ring: rgba(125,211,252,.16);
}
@keyframes rbc-ambient-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); opacity: .66; }
  50% { transform: translate3d(3%, 2%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.03); opacity: .78; }
}
@keyframes rbc-orbit-turn {
  to { transform: translateY(-50%) rotate(360deg); }
}

.rbc-page #rbc-una-ruta,
.rbc-page #rbc-niveles,
.rbc-page #rbc-primera-etapa,
.rbc-page #rbc-siguientes,
.rbc-page #rbc-certificaciones,
.rbc-page #rbc-faq,
.rbc-page #rbc-preinscripcion { padding: clamp(64px, 7vw, 94px) 0; }
.rbc-page #rbc-una-ruta .rbc-head,
.rbc-page #rbc-niveles .rbc-head,
.rbc-page #rbc-primera-etapa .rbc-head,
.rbc-page #rbc-siguientes .rbc-head,
.rbc-page #rbc-certificaciones .rbc-head,
.rbc-page #rbc-faq .rbc-head { margin-bottom: clamp(28px, 3.5vw, 42px); }

/* Sistema de progreso más corto */
.rbc-page #rbc-una-ruta .rbc-progress-system { min-height: 430px; }
.rbc-page #rbc-una-ruta .rbc-progress-console { min-height: 430px; padding: 38px; }
.rbc-page #rbc-una-ruta .rbc-progress-console > strong { font-size: clamp(2.2rem, 3.5vw, 3.7rem); }
.rbc-page #rbc-una-ruta .rbc-progress-steps { padding-block: 15px; }
.rbc-page #rbc-una-ruta .rbc-progress-steps li { padding-block: 13px; }
.rbc-page #rbc-una-ruta .rbc-progress-steps p { font-size: .81rem; line-height: 1.5; }

/* Selector compacto de los seis niveles */
/* Mapa general: una sola columna, seis filas */
.rbc-level-select { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rbc-level-tile {
  --tile-accent: #51E0B5;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 172px;
  overflow: hidden;
  color: #F4F1EA;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  background: rgba(15,16,21,.84);
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
  text-decoration: none;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s, box-shadow .35s;
}
.rbc-level-tile--one { --tile-accent: #72D8E6; }
.rbc-level-tile--two { --tile-accent: #55A7FF; }
.rbc-level-tile--three { --tile-accent: #A78BFA; }
.rbc-level-tile--four { --tile-accent: #F2A84B; }
.rbc-level-tile--five { --tile-accent: #C6B581; }
.rbc-level-tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tile-accent) 60%, transparent); box-shadow: 0 26px 65px rgba(0,0,0,.35); }
.rbc-level-tile-media { position: relative; overflow: hidden; background: #090A0D; }
.rbc-level-tile-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(5,6,8,.78)); }
/* Numeral grande: permite recorrer la columna 0-1-2-3-4-5 de un vistazo */
.rbc-level-tile-media::before {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 4px;
  color: var(--tile-accent);
  opacity: .3;
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  pointer-events: none;
}
.rbc-level-tile--zero  .rbc-level-tile-media::before { content: "0"; }
.rbc-level-tile--one   .rbc-level-tile-media::before { content: "1"; }
.rbc-level-tile--two   .rbc-level-tile-media::before { content: "2"; }
.rbc-level-tile--three .rbc-level-tile-media::before { content: "3"; }
.rbc-level-tile--four  .rbc-level-tile-media::before { content: "4"; }
.rbc-level-tile--five  .rbc-level-tile-media::before { content: "5"; }
.rbc-level-tile-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.86) contrast(1.06) brightness(.8); transition: transform .6s cubic-bezier(.22,1,.36,1); }
.rbc-level-tile:hover img { transform: scale(1.06); }
/* Placa de nivel: debe leerse de inmediato sobre cualquier fotografía */
.rbc-level-tile-media > span {
  position: absolute;
  z-index: 2;
  left: 14px;
  top: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--tile-accent);
  color: #0B0C10;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 5px 16px rgba(0,0,0,.45);
}
/* En fila completa el texto se reparte: rótulo y título a la izquierda, estado a la derecha */
.rbc-level-tile-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 4px 22px;
  min-width: 0;
  padding: 22px 28px;
}
.rbc-level-tile-copy small { grid-column: 1; grid-row: 1; color: var(--tile-accent); font-size: .6rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rbc-level-tile-copy h3 { grid-column: 1; grid-row: 2; margin: 4px 0 0; color: #F4F1EA; font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.16; letter-spacing: -.02em; }
.rbc-level-tile-copy > span { grid-column: 2; grid-row: 1 / span 2; justify-self: end; margin: 0; padding: 5px 10px; border-radius: 999px; color: #AFB0B4; background: rgba(255,255,255,.07); font-size: .56rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }

/* Cada tarjeta entra por separado al hacer scroll */
.rbc-level-select .rbc-level-tile { opacity: 0; transform: translateY(26px); }
.rbc-level-select .rbc-level-tile.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s cubic-bezier(.22,1,.36,1) var(--rbc-delay, 0s),
              transform .55s cubic-bezier(.22,1,.36,1) var(--rbc-delay, 0s),
              border-color .35s, box-shadow .35s;
}
.rbc-level-select .rbc-level-tile.is-visible:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) {
  .rbc-level-select .rbc-level-tile { opacity: 1; transform: none; transition: none; }
}
.rbc-level-tile-copy > span.is-open { color: #7BE4C4; }
.rbc-level-tile-copy > span.is-ready { color: #80C1FF; }
.rbc-level-tile-copy > span.is-progress { color: #F5C064; }

/* Primer acto: dos tarjetas, detalle bajo demanda */
.rbc-page .rbc-mission-dossiers--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rbc-page .rbc-mission-dossiers--compact .rbc-mission-dossier,
.rbc-page .rbc-mission-dossiers--compact .rbc-mission-dossier--one { display: flex; flex-direction: column; min-height: 0; }
.rbc-page .rbc-mission-dossiers--compact .rbc-dossier-media,
.rbc-page .rbc-mission-dossiers--compact .rbc-mission-dossier--one .rbc-dossier-media { grid-column: auto; grid-row: auto; min-height: 0; height: 238px; }
.rbc-page .rbc-mission-dossiers--compact .rbc-dossier-content,
.rbc-page .rbc-mission-dossiers--compact .rbc-mission-dossier--one .rbc-dossier-content { grid-column: auto; grid-row: auto; flex: 1; padding: 27px; }
.rbc-page .rbc-mission-dossiers--compact .rbc-dossier-title h3 { margin-block: 10px; font-size: clamp(1.3rem, 2vw, 1.85rem); }
.rbc-page .rbc-mission-dossiers--compact .rbc-dossier-title p { margin-bottom: 18px; font-size: .84rem; }
.rbc-dossier-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 17px; overflow: hidden; border: 1px solid #E3DDD4; border-radius: 4px; background: #E3DDD4; }
.rbc-dossier-quick span { display: grid; gap: 3px; padding: 11px 9px; color: #87827B; background: #F5F2EC; font-size: .58rem; text-transform: uppercase; letter-spacing: .05em; }
.rbc-dossier-quick b { color: #24262C; font-size: .75rem; letter-spacing: 0; text-transform: none; }
.rbc-dossier-more { margin-bottom: 18px; border-top: 1px solid #E3DDD4; border-bottom: 1px solid #E3DDD4; }
.rbc-dossier-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; cursor: pointer; list-style: none; color: #5F5D59; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rbc-dossier-more > summary::-webkit-details-marker { display: none; }
.rbc-dossier-more > summary i { color: #A3151C; transition: transform .25s; }
.rbc-dossier-more[open] > summary i { transform: rotate(180deg); }
.rbc-page .rbc-mission-dossiers--compact .rbc-dossier-more .rbc-dl { grid-template-columns: repeat(2, 1fr); padding-bottom: 12px; }
.rbc-page .rbc-mission-dossiers--compact .rbc-dossier-action { margin-top: auto; padding-top: 0; }

/* Misiones avanzadas: cerradas por defecto y compactas */
.rbc-page #rbc-siguientes .rbc-map-mission > summary { min-height: 128px; }
.rbc-page #rbc-siguientes .rbc-map-thumb { height: 100px; }

/* Credenciales: comparación visible, letra pequeña plegada */
.rbc-credential-glance { display: grid; grid-template-columns: 1fr 52px 1fr; align-items: stretch; }
.rbc-credential-glance-card { position: relative; min-width: 0; padding: clamp(26px, 4vw, 44px); border: 1px solid rgba(20,22,28,.14); border-radius: 8px; background: rgba(251,249,245,.88); box-shadow: 0 24px 70px rgba(37,29,20,.09); }
.rbc-credential-glance-card.is-external { color: #F4F1EA; border-color: rgba(255,255,255,.12); background: rgba(17,18,23,.96); }
.rbc-credential-glance-card > i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 25px; border-radius: 50%; color: #9D7415; background: rgba(200,162,74,.13); }
.rbc-credential-glance-card.is-external > i { color: #72D8E6; background: rgba(114,216,230,.1); }
.rbc-credential-glance-card > span { color: #8A6508; font-size: .62rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.rbc-credential-glance-card.is-external > span { color: #72D8E6; }
.rbc-credential-glance-card h3 { margin: 10px 0 8px; color: #181A20; font-size: clamp(1.35rem, 2.3vw, 2rem); letter-spacing: -.04em; }
.rbc-credential-glance-card.is-external h3 { color: #F4F1EA; }
.rbc-credential-glance-card p { margin: 0 0 28px; color: #696A70; font-size: .88rem; line-height: 1.6; }
.rbc-credential-glance-card.is-external p { color: #9C9DA1; }
.rbc-credential-glance-card small { display: block; margin-top: auto; color: #807D77; font-size: .7rem; font-weight: 700; }
.rbc-credential-glance-card.is-external small { color: #A5A6AA; }
.rbc-credential-vs { display: grid; place-items: center; position: relative; z-index: 2; margin: auto -8px; width: 68px; height: 68px; border: 8px solid #F0ECE4; border-radius: 50%; color: #F4F1EA; background: #B48723; font-size: 1.55rem; font-weight: 900; }
.rbc-credential-disclosure { margin-top: 22px; overflow: hidden; border: 1px solid #D8D1C7; border-radius: 6px; background: rgba(255,255,255,.55); }
.rbc-credential-disclosure > summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px 22px; cursor: pointer; list-style: none; color: #26282E; font-size: .82rem; font-weight: 800; }
.rbc-credential-disclosure > summary::-webkit-details-marker { display: none; }
.rbc-credential-disclosure > summary i { color: #A3151C; transition: transform .25s; }
.rbc-credential-disclosure[open] > summary i { transform: rotate(180deg); }
.rbc-credential-disclosure-body { padding: 28px; border-top: 1px solid #D8D1C7; }
.rbc-credential-compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rbc-credential-compare > div { padding: 22px; border-left: 3px solid #C8A24A; background: #F4F0E9; }
.rbc-credential-compare > div:last-child { border-left-color: #72D8E6; background: #17181D; }
.rbc-credential-compare span { color: #8A6508; font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.rbc-credential-compare > div:last-child span { color: #72D8E6; }
.rbc-credential-compare h4 { margin: 12px 0 4px; color: #22242A; font-size: .93rem; }
.rbc-credential-compare p { margin: 0; color: #696B72; font-size: .82rem; line-height: 1.55; }
.rbc-credential-compare > div:last-child h4 { color: #F0EDE6; }
.rbc-credential-compare > div:last-child p { color: #9A9B9F; }
.rbc-credential-disclosure .rbc-scope-grid { margin-top: 18px; }
.rbc-credential-disclosure .rbc-scope-card { padding: 24px; }
.rbc-credential-disclosure .rbc-scope-card h3 { margin-bottom: 12px; font-size: 1.2rem; }

/* FAQ y CTA reducidos */
.rbc-page #rbc-faq .rbc-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: none; }
.rbc-page #rbc-faq .rbc-faq details { margin: 0; }
.rbc-page #rbc-faq .rbc-faq summary { min-height: 64px; }
.rbc-page .rbc-cta--compact { max-width: 980px; margin-inline: auto; padding: clamp(34px, 6vw, 68px); }
.rbc-page .rbc-cta--compact > .rbc-eyebrow { color: #E3C77E; }
.rbc-page .rbc-cta--compact h2 { margin-top: 14px; font-size: clamp(2rem, 4.8vw, 4rem); letter-spacing: -.05em; }
.rbc-page .rbc-cta--compact p { max-width: 55ch; }
.rbc-cta-trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.rbc-cta-trust span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #C2C1BD; background: rgba(255,255,255,.05); font-size: .72rem; }
.rbc-cta-trust i { color: #E3C77E; }

@media (max-width: 1000px) {
  .rbc-level-select { grid-template-columns: 1fr; }
  .rbc-level-tile { grid-template-columns: 220px minmax(0, 1fr); min-height: 150px; }
  .rbc-level-tile-media::before { font-size: 4.2rem; }
  .rbc-page .rbc-mission-dossiers--compact { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .rbc-page .rbc-section--ambient::after { right: -520px; opacity: .28; }
  .rbc-page #rbc-una-ruta .rbc-progress-console { min-height: 330px; }
  .rbc-level-select { grid-template-columns: 1fr; gap: 12px; }
  .rbc-level-tile { grid-template-columns: 118px minmax(0, 1fr); min-height: 118px; }
  /* Con la miniatura estrecha, la placa se compacta y el numeral se retira */
  .rbc-level-tile-media > span { left: 8px; top: 8px; padding: 5px 8px; font-size: .68rem; letter-spacing: .06em; }
  .rbc-level-tile-media::before { font-size: 2.6rem; right: 7px; bottom: 3px; opacity: .26; }
  /* En móvil el estado baja debajo del título, no cabe al costado */
  .rbc-level-tile-copy { grid-template-columns: 1fr; padding: 14px 16px; gap: 2px; }
  .rbc-level-tile-copy h3 { grid-column: 1; grid-row: 2; margin: 4px 0 8px; font-size: 1rem; }
  .rbc-level-tile-copy > span { grid-column: 1; grid-row: 3; justify-self: start; }
  .rbc-page .rbc-mission-dossiers--compact .rbc-dossier-media,
  .rbc-page .rbc-mission-dossiers--compact .rbc-mission-dossier--one .rbc-dossier-media { height: 220px; }
  .rbc-page .rbc-mission-dossiers--compact .rbc-dossier-content { padding: 22px; }
  .rbc-dossier-quick { grid-template-columns: 1fr; }
  .rbc-page .rbc-mission-dossiers--compact .rbc-dossier-more .rbc-dl { grid-template-columns: 1fr; }
  .rbc-credential-glance { grid-template-columns: 1fr; gap: 0; }
  .rbc-credential-vs { margin: -12px auto; width: 58px; height: 58px; border-width: 6px; }
  .rbc-credential-compare,
  .rbc-page #rbc-faq .rbc-faq { grid-template-columns: 1fr; }
  .rbc-credential-disclosure-body { padding: 16px; }
  .rbc-page .rbc-cta--compact .rbc-cta-actions { display: grid; grid-template-columns: 1fr; }
  .rbc-page .rbc-cta--compact .rbc-cta-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rbc-page .rbc-section--ambient::before,
  .rbc-page .rbc-section--ambient::after { animation: none; }
}

/* El prólogo conserva sus cuatro capítulos, pero exige menos desplazamiento. */
.rbc-page .rbc-hero--cinematic { height: 220svh; min-height: 1320px; }
@media (max-width: 1000px) {
  .rbc-page .rbc-hero--cinematic { height: 200svh; min-height: 1200px; }
}
@media (max-width: 760px) {
  .rbc-page .rbc-hero--cinematic { height: 180svh; min-height: 1080px; }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-page .rbc-hero--cinematic { height: auto; min-height: 0; }
}

/* Portada simplificada: una sola escena, sin capítulos ni recorrido lateral. */
.rbc-page .rbc-hero--cinematic {
  height: calc(100svh - var(--navbar-h));
  min-height: 680px;
  overflow: hidden;
}
.rbc-page .rbc-hero-stage {
  position: relative;
  top: 0;
  height: 100%;
  min-height: 680px;
}
.rbc-page .rbc-hero-wm {
  right: 15.5vw;
  top: 44%;
  width: min(34vw, 480px);
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 1;
  filter: none;
}
.rbc-page .rbc-hero-wm > img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 1;
  filter: none;
}
.rbc-page .rbc-hero-wm-copy {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.78);
}
.rbc-page .rbc-hero-wm-copy strong {
  color: #FFFFFF;
  font-size: clamp(.92rem, 1.25vw, 1.15rem);
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rbc-page .rbc-hero-wm-copy span {
  color: #F0E2BB;
  font-size: clamp(.74rem, .95vw, .94rem);
  font-weight: 600;
  letter-spacing: .06em;
}
@media (max-width: 1000px) {
  .rbc-page .rbc-hero--cinematic,
  .rbc-page .rbc-hero-stage { height: calc(100svh - var(--navbar-h)); min-height: 620px; }
  .rbc-page .rbc-hero-wm { right: 22vw; top: 45%; width: min(38vw, 370px); }
  .rbc-page .rbc-hero-wm > img { opacity: 1; }
}
@media (min-width: 1600px) {
  .rbc-page .rbc-hero-wm { right: 24.5vw; width: 480px; }
}
@media (max-width: 760px) {
  .rbc-page .rbc-hero--cinematic,
  .rbc-page .rbc-hero-stage { height: calc(100svh - var(--navbar-h)); min-height: 610px; }
  .rbc-page .rbc-hero-wm {
    display: block;
    top: 58%;
    right: 50%;
    width: 66vw;
    transform: translate(50%, -50%);
  }
  .rbc-page .rbc-hero-wm > img { opacity: 1; }
  .rbc-page .rbc-hero-wm-copy {
    margin-top: 8px;
    opacity: .8;
  }
}

/* ============================================================
   v5 · Titular del hero en una sola línea, mayor y más junto al logo
   ============================================================ */

/* El bloque de texto se ensancha para que "Ruta BIM Cusco" quepa entero.
   `left: 24px` compensa el relleno del contenedor: al estar posicionado en
   absoluto, el capítulo lo ignoraba y el titular se salía por el borde
   izquierdo en pantallas de menos de 1200 px. */
.rbc-page .rbc-hero-chapter {
  left: 24px;
  width: min(830px, calc(100% - 148px));
}

.rbc-page .rbc-hero-chapter h1 {
  max-width: none;                 /* antes 13ch: partía "Ruta BIM Cusco" */
  margin-bottom: 15px;
  font-size: clamp(2.35rem, 6.4vw, 6.1rem);
  text-wrap: nowrap;
}
/* La primera línea nunca se parte */
.rbc-page .rbc-hero-chapter h1 .rbc-hero-linea {
  display: block;
  white-space: nowrap;
}
.rbc-page .rbc-hero-chapter h1 em { display: block; white-space: nowrap; }

/* Logo más grande y visualmente unido al titular */
.rbc-page .rbc-hero-wm {
  right: clamp(150px, 18vw, 300px);
  width: min(38vw, 545px);
  gap: 4px;
}

@media (min-width: 1600px) {
  .rbc-page .rbc-hero-wm { right: 18vw; width: 575px; }
}
@media (max-width: 1000px) {
  .rbc-page .rbc-hero-chapter { left: 24px; width: calc(100% - 48px); }
  .rbc-page .rbc-hero-chapter h1 { font-size: clamp(2.1rem, 6.6vw, 3.4rem); }
  .rbc-page .rbc-hero-wm { right: clamp(130px, 16vw, 180px); width: min(40vw, 380px); }
}
@media (max-width: 760px) {
  /* En móvil el logo va centrado bajo el titular: no compiten por el ancho.
     Hay que reponer `right` y `transform` porque la regla base de este
     bloque v5 se declara después del centrado original y lo anulaba. */
  .rbc-page .rbc-hero-chapter h1 { font-size: clamp(1.85rem, 8.6vw, 2.9rem); }
  .rbc-page .rbc-hero-wm {
    right: 50%;
    width: 62vw;
    transform: translate(50%, -50%);
  }
  /* En móvil la marca queda de filigrana: si va opaca tapa el botón
     "Explorar la Ruta", que es transparente y se vuelve ilegible.
     La identidad ya está clara en la banda institucional superior. */
  .rbc-page .rbc-hero-wm > img { opacity: .17; }
  .rbc-page .rbc-hero-wm-copy { opacity: .62; }
}


/* ============================================================
   SITIO INDEPENDIENTE · barra del Comite y pie legal
   ============================================================ */
.rbc-nav-marca { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.rbc-nav-marca img { height: 42px; width: auto; display: block; }
.rbc-nav-marca span { display: grid; line-height: 1.25; }
.rbc-nav-marca strong { color: #fff; font-size: .84rem; font-weight: 800; letter-spacing: -.01em; }
.rbc-nav-marca small { color: #A9AAB0; font-size: .68rem; }

.rbc-pie-legal {
  background: #0A0B0E;
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 26px 0 30px;
}
.rbc-pie-legal p { margin: 0; color: #9A9BA1; font-size: .82rem; line-height: 1.6; }
.rbc-pie-legal strong { color: #E9E7E2; }
.rbc-pie-legal-nota {
  margin-top: 9px !important;
  max-width: 92ch;
  font-size: .76rem !important;
  color: #74757B !important;
}

@media (max-width: 900px) {
  .rbc-nav-marca span { display: none; }
  .rbc-nav-marca img { height: 38px; }
}


/* ============================================================
   AVISO FLOTANTE · preinscripcion todavia sin formulario
   ============================================================ */
.rbc-aviso-flotante {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 9000;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 13px;
  width: min(560px, calc(100vw - 32px));
  padding: 17px 19px;
  border: 1px solid rgba(243, 156, 18, .42);
  border-left: 4px solid #F39C12;
  border-radius: 10px;
  background: #14161C;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity .26s ease, transform .26s ease;
}
.rbc-aviso-flotante.visible { opacity: 1; transform: translate(-50%, 0); }
.rbc-aviso-flotante > i { color: #F39C12; font-size: 1.15rem; line-height: 1.4; }
.rbc-aviso-flotante p {
  margin: 0;
  color: #D8D6D1;
  font-size: .89rem;
  line-height: 1.55;
}
.rbc-aviso-flotante strong { color: #fff; font-weight: 700; }
.rbc-aviso-flotante > button {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #86878D;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: color .18s ease;
}
.rbc-aviso-flotante > button:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .rbc-aviso-flotante { transition: none; }
}


/* ============================================================
   FORMULARIO DE PREINSCRIPCION
   ============================================================ */
.rbc-form-marco {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(26px, 4.4vw, 52px);
  border: 1px solid rgba(0, 0, 0, .09);
  border-top: 4px solid #C41E3A;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(11, 12, 16, .10);
}
.rbc-form-encabezado { text-align: center; margin-bottom: 30px; }
.rbc-form-encabezado h2 { margin: 10px 0 12px; line-height: 1.12; }
.rbc-form-encabezado > p { margin: 0 auto 18px; max-width: 56ch; color: #4A4B52; }
.rbc-form-encabezado .rbc-cta-trust { justify-content: center; }

.rbc-form-leyenda { margin: 0 0 20px; color: #6A6B72; font-size: .82rem; }
.rbc-form-leyenda span { color: #C41E3A; font-weight: 800; }

.rbc-form-fila {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  margin-bottom: 16px;
}
.rbc-form-campo { display: grid; align-content: start; gap: 6px; }
.rbc-form-campo--ancho { grid-column: 1 / -1; margin-bottom: 16px; }

.rbc-form-campo label,
.rbc-form-grupo legend {
  color: #17181E;
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: -.005em;
}
.rbc-form-campo label small,
.rbc-form-grupo legend small { color: #86878D; font-weight: 500; }
.rbc-form-campo label span[aria-hidden],
.rbc-form-grupo legend span[aria-hidden] { color: #C41E3A; }

.rbc-form input[type="text"],
.rbc-form input[type="email"],
.rbc-form input[type="tel"],
.rbc-form select,
.rbc-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #CFD0D5;
  border-radius: 7px;
  background: #FBFBFC;
  color: #17181E;
  font-family: inherit;
  font-size: .95rem;
  line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.rbc-form textarea { resize: vertical; min-height: 84px; }
.rbc-form input::placeholder,
.rbc-form textarea::placeholder { color: #9FA0A6; }

.rbc-form input:focus,
.rbc-form select:focus,
.rbc-form textarea:focus {
  outline: none;
  border-color: #C41E3A;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, .14);
}
.rbc-form [aria-invalid="true"] {
  border-color: #C41E3A;
  background: rgba(196, 30, 58, .045);
}

.rbc-form-error {
  color: #A3182F;
  font-size: .79rem;
  font-weight: 600;
  line-height: 1.4;
}

/* --- grupos de opciones --- */
.rbc-form-grupo {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.rbc-form-grupo legend { padding: 0; margin-bottom: 10px; }
.rbc-form-opciones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.rbc-form-opcion {
  position: relative;
  display: block;
  cursor: pointer;
}
.rbc-form-opcion input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rbc-form-opcion > span {
  display: grid;
  gap: 3px;
  padding: 13px 15px;
  border: 1px solid #CFD0D5;
  border-radius: 8px;
  background: #FBFBFC;
  color: #5A5B62;
  font-size: .81rem;
  line-height: 1.35;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.rbc-form-opcion strong {
  color: #17181E;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rbc-form-opcion input:hover + span { border-color: #A8A9AF; }
.rbc-form-opcion input:checked + span {
  border-color: #C41E3A;
  background: rgba(196, 30, 58, .06);
  box-shadow: inset 0 0 0 1px #C41E3A;
}
.rbc-form-opcion input:checked + span strong { color: #A3182F; }
.rbc-form-opcion input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(196, 30, 58, .22);
}

/* --- consentimiento --- */
.rbc-form-consentimiento {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 6px;
  padding: 15px 17px;
  border: 1px solid rgba(0, 0, 0, .10);
  border-radius: 8px;
  background: #F6F6F7;
  color: #4A4B52;
  font-size: .82rem;
  line-height: 1.6;
  cursor: pointer;
}
.rbc-form-consentimiento input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #C41E3A;
  cursor: pointer;
}
.rbc-form-consentimiento span[aria-hidden] { color: #C41E3A; font-weight: 800; }

/* --- trampa antirrobots --- */
.rbc-form-trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- envio --- */
.rbc-form-envio { margin-top: 26px; text-align: center; }
.rbc-form-envio .rbc-cta-note { margin: 14px auto 0; max-width: 62ch; }
.rbc-form-envio button[disabled] { opacity: .68; cursor: progress; }

/* --- mensajes de resultado --- */
.rbc-form-estado {
  margin: 0 0 22px;
  padding: 16px 18px;
  border-radius: 8px;
  font-size: .9rem;
  line-height: 1.6;
}
.rbc-form-estado:focus { outline: 2px solid #C41E3A; outline-offset: 3px; }
.rbc-form-estado--error {
  border: 1px solid rgba(196, 30, 58, .34);
  border-left: 4px solid #C41E3A;
  background: rgba(196, 30, 58, .07);
  color: #7E1226;
}
.rbc-form-estado--exito {
  border: 1px solid rgba(30, 132, 73, .34);
  border-left: 4px solid #1E8449;
  background: rgba(30, 132, 73, .08);
  color: #145A32;
}
.rbc-form-estado strong { font-weight: 800; }

@media (max-width: 720px) {
  .rbc-form-fila { grid-template-columns: 1fr; }
  .rbc-form-opciones { grid-template-columns: 1fr; }
  .rbc-form-marco { padding: 24px 18px 30px; }
}

/* Las etiquetas de confianza fueron disenadas para el bloque oscuro:
   sobre la tarjeta blanca del formulario hay que devolverles el contraste. */
.rbc-form-encabezado .rbc-cta-trust span {
  border: 1px solid rgba(0, 0, 0, .12);
  background: #F4F4F5;
  color: #45464D;
}
.rbc-form-encabezado .rbc-cta-trust i { color: #C41E3A; }


/* ============================================================
   MODELOS DE CONSTANCIA · uno por nivel
   El cambio de nivel es CSS puro: seis radios y sus etiquetas,
   de modo que funciona con teclado y sin JavaScript.
   ============================================================ */
.rbc-cred-modelos { margin: 42px 0 8px; }

.rbc-cred-modelos-head { max-width: 62ch; margin: 0 auto 24px; text-align: center; }
.rbc-cred-modelos-head h3 {
  margin: 0 0 9px;
  color: #17181E;
  font-size: clamp(1.25rem, 2.4vw, 1.62rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.rbc-cred-modelos-head p { margin: 0; color: #55565D; font-size: .93rem; line-height: 1.62; }

/* Los radios quedan fuera de la vista pero siguen siendo enfocables */
.rbc-cred-radio {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* --- botones de nivel --- */
.rbc-cred-mandos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 22px;
}
.rbc-cred-mandos label {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border: 1px solid #D2D3D8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.rbc-cred-mandos label b {
  color: #17181E;
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rbc-cred-mandos label span {
  color: #74757B;
  font-size: .72rem;
  line-height: 1.3;
}
.rbc-cred-mandos label:hover { border-color: #A8A9AF; transform: translateY(-1px); }

/* Etiqueta activa: se marca con el color del nivel */
#rbcCred0:checked ~ .rbc-cred-mandos label[for="rbcCred0"],
#rbcCred1:checked ~ .rbc-cred-mandos label[for="rbcCred1"],
#rbcCred2:checked ~ .rbc-cred-mandos label[for="rbcCred2"],
#rbcCred3:checked ~ .rbc-cred-mandos label[for="rbcCred3"],
#rbcCred4:checked ~ .rbc-cred-mandos label[for="rbcCred4"],
#rbcCred5:checked ~ .rbc-cred-mandos label[for="rbcCred5"] {
  border-color: var(--cred-color);
  background: color-mix(in srgb, var(--cred-color) 8%, #fff);
  box-shadow: inset 0 0 0 1px var(--cred-color);
}
#rbcCred0:checked ~ .rbc-cred-mandos label[for="rbcCred0"] b,
#rbcCred1:checked ~ .rbc-cred-mandos label[for="rbcCred1"] b,
#rbcCred2:checked ~ .rbc-cred-mandos label[for="rbcCred2"] b,
#rbcCred3:checked ~ .rbc-cred-mandos label[for="rbcCred3"] b,
#rbcCred4:checked ~ .rbc-cred-mandos label[for="rbcCred4"] b,
#rbcCred5:checked ~ .rbc-cred-mandos label[for="rbcCred5"] b { color: var(--cred-color); }

/* Foco visible al recorrer con el teclado */
#rbcCred0:focus-visible ~ .rbc-cred-mandos label[for="rbcCred0"],
#rbcCred1:focus-visible ~ .rbc-cred-mandos label[for="rbcCred1"],
#rbcCred2:focus-visible ~ .rbc-cred-mandos label[for="rbcCred2"],
#rbcCred3:focus-visible ~ .rbc-cred-mandos label[for="rbcCred3"],
#rbcCred4:focus-visible ~ .rbc-cred-mandos label[for="rbcCred4"],
#rbcCred5:focus-visible ~ .rbc-cred-mandos label[for="rbcCred5"] {
  outline: 3px solid rgba(196, 30, 58, .35);
  outline-offset: 2px;
}

/* --- escenario y hojas --- */
.rbc-cred-escenario { position: relative; }
.rbc-cred { display: none; }
#rbcCred0:checked ~ .rbc-cred-escenario .rbc-cred--cero,
#rbcCred1:checked ~ .rbc-cred-escenario .rbc-cred--uno,
#rbcCred2:checked ~ .rbc-cred-escenario .rbc-cred--dos,
#rbcCred3:checked ~ .rbc-cred-escenario .rbc-cred--tres,
#rbcCred4:checked ~ .rbc-cred-escenario .rbc-cred--cuatro,
#rbcCred5:checked ~ .rbc-cred-escenario .rbc-cred--cinco {
  display: block;
  animation: rbcCredEntra .34s ease both;
}
@keyframes rbcCredEntra {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-cred { animation: none !important; }
}

.rbc-cred-hoja {
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 42px) clamp(22px, 4vw, 46px) clamp(22px, 3vw, 32px);
  border: 1px solid rgba(0, 0, 0, .11);
  border-top: 5px solid var(--cred-color);
  border-radius: 4px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    repeating-linear-gradient(45deg, #FBFBFC 0 12px, #FFF 12px 24px);
  box-shadow: 0 22px 58px rgba(11, 12, 16, .13), 0 2px 5px rgba(11, 12, 16, .06);
  text-align: center;
}

/* Marca de agua: deja claro que es una muestra */
.rbc-cred-marca-agua {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-24deg);
  color: rgba(196, 30, 58, .085);
  font-size: clamp(1.5rem, 4.6vw, 2.9rem);
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.rbc-cred-cabecera {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, .10);
}
.rbc-cred-logo-comite { height: 46px; width: auto; }
.rbc-cred-logo-cip { height: 46px; width: auto; }
.rbc-cred-emisor { display: grid; gap: 2px; }
.rbc-cred-emisor strong {
  color: #17181E;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.rbc-cred-emisor span { color: #74757B; font-size: .71rem; }

.rbc-cred-tipo {
  margin: 20px 0 22px;
  color: var(--cred-color);
  font-size: clamp(.86rem, 1.9vw, 1.02rem);
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.rbc-cred-cuerpo { position: relative; }
.rbc-cred-formula { margin: 0; color: #6A6B72; font-size: .87rem; font-style: italic; }
.rbc-cred-nombre {
  margin: 8px auto 14px;
  padding-bottom: 8px;
  max-width: 30ch;
  border-bottom: 1px dashed #C6C7CC;
  color: #A8A9AF;
  font-size: clamp(1rem, 2.3vw, 1.24rem);
  font-weight: 600;
}
.rbc-cred-nivel { margin: 12px 0 6px; display: grid; gap: 3px; }
.rbc-cred-nivel b {
  color: var(--cred-color);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.rbc-cred-nivel span {
  color: #0F1014;
  font-size: clamp(1.32rem, 3.4vw, 1.94rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
}
.rbc-cred-ruta { margin: 6px 0 0; color: #74757B; font-size: .81rem; }

.rbc-cred-datos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 17px 0;
  border-top: 1px solid rgba(0, 0, 0, .09);
  border-bottom: 1px solid rgba(0, 0, 0, .09);
  text-align: left;
}
.rbc-cred-datos > div { display: grid; gap: 3px; }
.rbc-cred-dato-ancho { grid-column: 1 / -1; }
.rbc-cred-datos dt {
  color: #8B8C92;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.rbc-cred-datos dd {
  margin: 0;
  color: #26272D;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.35;
}

.rbc-cred-pie {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 20px;
  margin-top: 20px;
  text-align: left;
}
.rbc-cred-verificacion { display: grid; gap: 3px; }
.rbc-cred-verificacion span {
  color: #8B8C92;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.rbc-cred-verificacion b {
  color: #17181E;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.rbc-cred-verificacion small { color: #86878D; font-size: .74rem; }
.rbc-cred-base {
  color: #86878D;
  font-size: .69rem;
  line-height: 1.5;
  text-align: right;
}

/* --- descargo --- */
.rbc-cred-descargo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  max-width: 720px;
  margin: 20px auto 0;
  padding: 15px 17px;
  border: 1px solid rgba(243, 156, 18, .40);
  border-left: 4px solid #F39C12;
  border-radius: 8px;
  background: rgba(243, 156, 18, .07);
  color: #6C4A08;
  font-size: .82rem;
  line-height: 1.6;
}
.rbc-cred-descargo i { color: #B8790C; font-size: 1rem; line-height: 1.5; }
.rbc-cred-descargo strong { color: #4E3505; font-weight: 800; }

@media (max-width: 900px) {
  .rbc-cred-mandos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rbc-cred-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rbc-cred-mandos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rbc-cred-cabecera { grid-template-columns: auto 1fr; gap: 11px; }
  .rbc-cred-logo-cip { grid-column: 2; grid-row: 1; justify-self: end; }
  .rbc-cred-emisor { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .rbc-cred-datos { grid-template-columns: 1fr; }
  .rbc-cred-pie { grid-template-columns: 1fr; gap: 13px; }
  .rbc-cred-base { text-align: left; }
}


/* ============================================================
   CARRUSEL DE CONSTANCIAS
   El desplazamiento es nativo (scroll-snap): se desliza con el
   dedo en el telefono y con las flechas en el escritorio.
   ============================================================ */
.rbc-carrusel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.rbc-carrusel-pista {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 2px 10px;
  border-radius: 10px;
}
.rbc-carrusel-pista::-webkit-scrollbar { display: none; }
.rbc-carrusel-pista:focus-visible {
  outline: 3px solid rgba(196, 30, 58, .45);
  outline-offset: 3px;
}

.rbc-carrusel-lamina {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  display: grid;
  gap: 12px;
}
.rbc-carrusel-lamina img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(11, 12, 16, .16), 0 2px 5px rgba(11, 12, 16, .07);
}

.rbc-carrusel-lamina figcaption {
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}
.rbc-carrusel-lamina figcaption b {
  color: #17181E;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
.rbc-carrusel-lamina figcaption span {
  color: var(--cred-color);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* --- flechas --- */
.rbc-carrusel-flecha {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 50%;
  background: #fff;
  color: #17181E;
  font-size: .95rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 12, 16, .12);
  transition: background .16s ease, color .16s ease, transform .16s ease,
              border-color .16s ease, opacity .16s ease;
}
.rbc-carrusel-flecha:hover:not(:disabled) {
  background: #C41E3A;
  border-color: #C41E3A;
  color: #fff;
  transform: scale(1.06);
}
.rbc-carrusel-flecha:focus-visible {
  outline: 3px solid rgba(196, 30, 58, .4);
  outline-offset: 2px;
}
.rbc-carrusel-flecha:disabled {
  opacity: .3;
  cursor: default;
  box-shadow: none;
}

/* --- botones de nivel, hacen de indicadores --- */
.rbc-carrusel-puntos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
.rbc-carrusel-puntos button {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border: 1px solid #D2D3D8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.rbc-carrusel-puntos button b {
  color: #17181E;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rbc-carrusel-puntos button span {
  color: #74757B;
  font-size: .71rem;
  line-height: 1.3;
}
.rbc-carrusel-puntos button:hover { border-color: #A8A9AF; transform: translateY(-1px); }
.rbc-carrusel-puntos button:focus-visible {
  outline: 3px solid rgba(196, 30, 58, .35);
  outline-offset: 2px;
}
.rbc-carrusel-puntos button.es-actual {
  border-color: var(--cred-color);
  background: color-mix(in srgb, var(--cred-color) 8%, #fff);
  box-shadow: inset 0 0 0 1px var(--cred-color);
}
.rbc-carrusel-puntos button.es-actual b { color: var(--cred-color); }

@media (prefers-reduced-motion: reduce) {
  .rbc-carrusel-pista { scroll-behavior: auto; }
  .rbc-carrusel-flecha:hover:not(:disabled) { transform: none; }
  .rbc-carrusel-puntos button:hover { transform: none; }
}

@media (max-width: 900px) {
  .rbc-carrusel-puntos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  /* En pantalla pequena las flechas estorban: se desliza con el dedo */
  .rbc-carrusel { grid-template-columns: 1fr; }
  .rbc-carrusel-flecha { display: none; }
  .rbc-carrusel-puntos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Abrir la constancia a tamano completo.
   En el telefono la lamina mide unos 380 px: la letra pequena no se lee. */
.rbc-carrusel-ampliar {
  position: relative;
  display: block;
  border-radius: 5px;
  text-decoration: none;
}
.rbc-carrusel-ampliar:focus-visible {
  outline: 3px solid rgba(196, 30, 58, .45);
  outline-offset: 4px;
}
.rbc-carrusel-lupa {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(15, 16, 20, .82);
  color: #fff;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  backdrop-filter: blur(3px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.rbc-carrusel-ampliar:hover .rbc-carrusel-lupa,
.rbc-carrusel-ampliar:focus-visible .rbc-carrusel-lupa { opacity: 1; transform: none; }

/* Sin raton no hay hover: en tactil la pista siempre se ve */
@media (hover: none) {
  .rbc-carrusel-lupa { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rbc-carrusel-lupa { transition: none; }
}


/* ============================================================
   MALLA CURRICULAR
   Seis columnas, una por nivel, mas una franja transversal.
   ============================================================ */
.rbc-malla { margin-top: 34px; }

.rbc-malla-rejilla {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.rbc-malla-columna { display: grid; gap: 8px; align-content: start; }

/* --- cabecera de cada nivel --- */
.rbc-malla-cabeza {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #26272D;
  color: #fff;
  text-align: center;
}
.rbc-malla-cabeza b { font-size: .9rem; font-weight: 800; letter-spacing: -.01em; }
.rbc-malla-cabeza span { color: #C9CAD0; font-size: .72rem; line-height: 1.3; }
.rbc-malla-cabeza small { color: #94959B; font-size: .66rem; margin-top: 2px; }

/* --- celda de modulo --- */
.rbc-malla-celda {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  min-height: 132px;
  padding: 10px 11px 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.rbc-malla-celda:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11,12,16,.22); }
.rbc-malla-celda:focus-visible { outline: 3px solid rgba(196,30,58,.5); outline-offset: 2px; }
.rbc-malla-celda.es-abierta { box-shadow: 0 0 0 3px #C41E3A, 0 14px 30px rgba(11,12,16,.28); }

.rbc-malla-nombre {
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.012em;
  align-self: start;
}
.rbc-malla-horas { font-size: .74rem; font-weight: 700; opacity: .82; }
.rbc-malla-marcas { display: flex; gap: 4px; justify-content: flex-end; min-height: 17px; }

/* Colores por tipo de modulo */
.rbc-malla-celda--obligatorio   { background: #1F3A6E; color: #F2F3F6; }
.rbc-malla-celda--electiva      { background: #2E63B8; color: #F4F7FC; }
.rbc-malla-celda--especializado { background: #B08D3F; color: #1C1608; }
.rbc-malla-celda--informativo   { background: #D7D4CD; color: #26272D; }

/* Marcas de area y de Normalizacion */
.rbc-malla-area {
  display: inline-grid;
  place-items: center;
  min-width: 30px; height: 17px;
  padding: 0 5px;
  border-radius: 3px;
  background: var(--area);
  color: #fff;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .05em;
}
.rbc-malla-norm {
  display: inline-grid;
  place-items: center;
  min-width: 19px; height: 17px;
  padding: 0 4px;
  border-radius: 3px;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .04em;
}
.rbc-malla-norm--si      { background: #F4F1EA; color: #1F2126; }
.rbc-malla-norm--parcial { background: rgba(244,241,234,.4); color: #F4F1EA; }

/* --- franja transversal --- */
.rbc-malla-transversal {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px dashed rgba(0,0,0,.16);
}
.rbc-malla-transversal-rotulo {
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 7px;
  background: #4A4B52;
  color: #fff;
  text-align: center;
}
.rbc-malla-transversal-rotulo b { font-size: .86rem; font-weight: 800; }
.rbc-malla-transversal-rotulo span { color: #C9CAD0; font-size: .7rem; }
.rbc-malla-celda--ancha { min-height: 0; grid-template-rows: auto auto auto; }
.rbc-malla-celda--ancha .rbc-malla-nombre { font-size: .92rem; }
.rbc-malla-transversal-nota {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #55565D;
  font-size: .78rem;
  line-height: 1.5;
}
.rbc-malla-transversal-nota strong { color: #17181E; font-weight: 800; }

/* --- detalle emergente --- */
.rbc-malla-detalle { margin-top: 14px; }
.rbc-malla-detalle-caja {
  position: relative;
  padding: 20px 46px 20px 22px;
  border: 1px solid rgba(0,0,0,.12);
  border-left: 4px solid #C41E3A;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(11,12,16,.10);
}
.rbc-malla-detalle-nivel {
  color: #C41E3A;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.rbc-malla-detalle-caja h4 {
  margin: 6px 0 15px;
  color: #17181E;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.rbc-malla-detalle-caja dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 26px;
  margin: 0;
}
.rbc-malla-detalle-caja dt {
  color: #8B8C92;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.rbc-malla-detalle-caja dd {
  margin: 0;
  color: #34353B;
  font-size: .87rem;
  line-height: 1.55;
}
.rbc-malla-detalle-cerrar {
  position: absolute;
  top: 12px; right: 14px;
  padding: 0 5px;
  border: 0;
  background: none;
  color: #86878D;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.rbc-malla-detalle-cerrar:hover { color: #C41E3A; }

/* --- leyenda --- */
.rbc-malla-leyenda {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 30px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,.11);
}
.rbc-malla-leyenda h3 {
  margin: 0 0 10px;
  color: #8B8C92;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.rbc-malla-leyenda ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.rbc-malla-leyenda li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  align-items: center;
  color: #45464D;
  font-size: .8rem;
  line-height: 1.35;
}
.rbc-malla-muestra { width: 26px; height: 16px; border-radius: 3px; }
.rbc-malla-muestra--obligatorio   { background: #1F3A6E; }
.rbc-malla-muestra--electiva      { background: #2E63B8; }
.rbc-malla-muestra--especializado { background: #B08D3F; }
.rbc-malla-muestra--informativo   { background: #D7D4CD; border: 1px solid rgba(0,0,0,.15); }
.rbc-malla-chip {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 17px; padding: 0 5px;
  border-radius: 3px; background: var(--area); color: #fff;
  font-size: .58rem; font-weight: 900; font-style: normal; letter-spacing: .05em;
}
.rbc-malla-leyenda .rbc-malla-norm--si,
.rbc-malla-leyenda .rbc-malla-norm--parcial { font-style: normal; }
.rbc-malla-leyenda .rbc-malla-norm--si { background: #26272D; color: #fff; }
.rbc-malla-leyenda .rbc-malla-norm--parcial { background: #86878D; color: #fff; }

/* --- tabla completa --- */
.rbc-malla-tabla-caja {
  margin-top: 26px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 9px;
  background: #fff;
}
.rbc-malla-tabla-caja > summary {
  padding: 15px 19px;
  color: #17181E;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rbc-malla-tabla-caja > summary::-webkit-details-marker { display: none; }
.rbc-malla-tabla-caja > summary i { color: #C41E3A; transition: transform .2s ease; }
.rbc-malla-tabla-caja[open] > summary i { transform: rotate(180deg); }
.rbc-malla-tabla-scroll { overflow-x: auto; padding: 0 4px 4px; }

.rbc-malla-tabla { width: 100%; border-collapse: collapse; min-width: 1080px; }
.rbc-malla-tabla caption {
  padding: 0 16px 13px;
  color: #74757B;
  font-size: .78rem;
  line-height: 1.5;
  text-align: left;
}
.rbc-malla-tabla th, .rbc-malla-tabla td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.09);
  font-size: .79rem;
  line-height: 1.48;
  text-align: left;
  vertical-align: top;
}
.rbc-malla-tabla thead th {
  position: sticky; top: 0;
  background: #26272D;
  color: #fff;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rbc-malla-tabla tbody tr:nth-child(even) { background: #FAFAFB; }
.rbc-malla-tabla tbody tr:hover { background: rgba(196,30,58,.045); }
.rbc-malla-tabla td b { color: #17181E; font-weight: 700; }

/* --- pie --- */
.rbc-malla-pie {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  margin: 22px 0 0;
  padding: 15px 17px;
  border-radius: 8px;
  background: rgba(0,0,0,.045);
  color: #55565D;
  font-size: .79rem;
  line-height: 1.6;
}
.rbc-malla-pie i { color: #86878D; margin-top: 2px; }
.rbc-malla-pie strong { color: #17181E; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .rbc-malla-celda:hover { transform: none; }
  .rbc-malla-tabla-caja[open] > summary i { transition: none; }
}

@media (max-width: 1100px) {
  .rbc-malla-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rbc-malla-detalle-caja dl { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .rbc-malla-leyenda { grid-template-columns: 1fr; gap: 18px; }
  .rbc-malla-transversal { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .rbc-malla-rejilla { grid-template-columns: 1fr; gap: 16px; }
  .rbc-malla-celda { min-height: 0; }
}


/* ============================================================
   MALLA CURRICULAR · anadidos de la revision
   ============================================================ */

/* Las insignias pasan a ser lineas que recorren varios niveles */
.rbc-malla-linea {
  display: inline-grid; place-items: center;
  min-width: 32px; height: 17px; padding: 0 5px;
  border-radius: 3px; background: var(--linea); color: #fff;
  font-size: .57rem; font-weight: 900; letter-spacing: .04em;
}

/* Pie de celda: horas, estado y requisito */
.rbc-malla-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.rbc-malla-req {
  display: block;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid currentColor;
  font-size: .66rem;
  font-weight: 600;
  opacity: .68;
  line-height: 1.3;
}
.rbc-malla-estado {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .03em;
  white-space: nowrap;
}
.rbc-malla-estado--abierta     { background: #1E8449; color: #fff; }
.rbc-malla-estado--posterior   { background: rgba(255,255,255,.22); color: inherit; }
.rbc-malla-estado--etapa       { background: rgba(0,0,0,.20); color: inherit; }
.rbc-malla-estado--elaboracion { background: #B8790C; color: #fff; }
.rbc-malla-celda--informativo .rbc-malla-estado--elaboracion { color: #fff; }
.rbc-malla-leyenda .rbc-malla-estado--posterior { background: #C6C7CC; color: #26272D; }
.rbc-malla-leyenda .rbc-malla-estado--etapa     { background: #8B8C92; color: #fff; }

/* Ampliacion propuesta: se distingue a simple vista de lo aprobado */
.rbc-malla-celda--propuesta {
  background: repeating-linear-gradient(-45deg, #EFEBE2 0 9px, #E7E2D7 9px 18px);
  color: #46474E;
  border: 1px dashed #A9A092;
}

/* Electivas del Nivel 4 */
.rbc-malla-electivas {
  padding: 11px 12px;
  border: 1px dashed rgba(0,0,0,.28);
  border-radius: 7px;
  background: rgba(255,255,255,.5);
}
.rbc-malla-electivas b {
  display: block; margin-bottom: 6px;
  color: #17181E; font-size: .7rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
}
.rbc-malla-electivas ul { margin: 0 0 7px; padding-left: 15px; display: grid; gap: 3px; }
.rbc-malla-electivas li { color: #34353B; font-size: .76rem; line-height: 1.35; }
.rbc-malla-electivas small { color: #74757B; font-size: .66rem; line-height: 1.45; display: block; }

/* Bloque de ampliaciones propuestas */
.rbc-malla-ampliaciones {
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px dashed #B8790C;
  border-radius: 10px;
  background: rgba(243,156,18,.06);
}
.rbc-malla-amp-cabeza span {
  color: #8A5A06; font-size: .64rem; font-weight: 900;
  letter-spacing: .13em; text-transform: uppercase;
}
.rbc-malla-amp-cabeza h3 {
  margin: 7px 0 8px; color: #17181E;
  font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em;
}
.rbc-malla-amp-cabeza p { margin: 0 0 16px; max-width: 76ch; color: #55565D;
  font-size: .85rem; line-height: 1.6; }
.rbc-malla-amp-lista {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px; margin: 0; padding: 0; list-style: none;
}
.rbc-malla-amp-lista li {
  padding: 14px 15px;
  border: 1px solid rgba(0,0,0,.11);
  border-radius: 8px;
  background: #fff;
}
.rbc-malla-amp-lista b { display: block; color: #17181E; font-size: .89rem;
  font-weight: 800; letter-spacing: -.015em; line-height: 1.3; }
.rbc-malla-amp-meta { display: block; margin: 4px 0 8px; color: #8A5A06;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.rbc-malla-amp-lista p { margin: 0; color: #4A4B52; font-size: .78rem; line-height: 1.55; }

/* Criterios de aprobacion */
.rbc-malla-criterios {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  background: #fff;
}
.rbc-malla-criterios h3 {
  margin: 0 0 14px; color: #17181E;
  font-size: 1.02rem; font-weight: 800; letter-spacing: -.02em;
}
.rbc-malla-criterios table { width: 100%; border-collapse: collapse; }
.rbc-malla-criterios th[scope="col"] {
  color: #8B8C92; font-size: .63rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; text-align: left;
  padding: 0 12px 8px 0; border-bottom: 1px solid rgba(0,0,0,.12);
}
.rbc-malla-criterios th[scope="row"] {
  color: #17181E; font-size: .84rem; font-weight: 800; text-align: left;
  white-space: nowrap;
}
.rbc-malla-criterios td, .rbc-malla-criterios th[scope="row"] {
  padding: 9px 12px 9px 0; border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: .84rem; line-height: 1.5; vertical-align: top; color: #34353B;
}
.rbc-malla-criterios > p {
  margin: 14px 0 0; color: #74757B; font-size: .78rem; line-height: 1.6;
}

@media (max-width: 900px) {
  .rbc-malla-amp-lista { grid-template-columns: 1fr; }
  .rbc-malla-criterios table, .rbc-malla-criterios thead,
  .rbc-malla-criterios tbody, .rbc-malla-criterios tr,
  .rbc-malla-criterios th, .rbc-malla-criterios td { display: block; }
  .rbc-malla-criterios thead { display: none; }
  .rbc-malla-criterios tr { padding: 10px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
  .rbc-malla-criterios td { border: 0; padding: 2px 0; }
}

/* Correccion: la leyenda usaba --area, pero los datos nuevos definen --linea.
   Sin esa variable el distintivo quedaba sin fondo y no se leia. */
.rbc-malla-leyenda .rbc-malla-chip { background: var(--linea, var(--area, #26272D)); }

/* Faltaba la muestra del tipo "ampliacion propuesta" */
.rbc-malla-muestra--propuesta {
  background: repeating-linear-gradient(-45deg, #EFEBE2 0 5px, #D8D2C5 5px 10px);
  border: 1px dashed #A9A092;
}

/* Contraste: el ambar de "En elaboracion" quedaba en 3,63 sobre blanco */
.rbc-malla-estado--elaboracion { background: #8F5D08; }

/* Las ampliaciones pasan a vivir dentro de la malla, en su columna */
.rbc-malla-estado--propuesta { background: #8A5A06; color: #fff; }
.rbc-malla-celda--propuesta .rbc-malla-nombre { color: #26272D; }
.rbc-malla-celda--propuesta .rbc-malla-req { border-top-color: rgba(0,0,0,.22); }

/* El motivo ocupa el ancho completo de la ficha emergente */
.rbc-malla-detalle-motivo { grid-column: 1 / -1; }
.rbc-malla-detalle-motivo dd {
  padding: 9px 12px;
  border-left: 3px solid #B8790C;
  border-radius: 0 5px 5px 0;
  background: rgba(243,156,18,.09);
}

/* La opacidad .68 del requisito funciona sobre las casillas oscuras, pero
   sobre las claras (propuesta y transversal) dejaba el texto en 3,41. */
.rbc-malla-celda--propuesta .rbc-malla-req,
.rbc-malla-celda--informativo .rbc-malla-req { opacity: .88; }
.rbc-malla-celda--propuesta .rbc-malla-horas,
.rbc-malla-celda--informativo .rbc-malla-horas { opacity: .95; }

/* El engranaje de la portada dominaba la escena y competia con el titulo.
   Se reduce de 38vw / 545 px a 25vw / 340 px. */
.rbc-page .rbc-hero-wm { width: min(25vw, 340px); }
.rbc-page .rbc-hero-wm-copy strong { font-size: .82rem; }
.rbc-page .rbc-hero-wm-copy span { font-size: .68rem; }

@media (max-width: 760px) {
  .rbc-page .rbc-hero-wm { width: 46vw; }
}


/* ============================================================
   CONSTELACION DE FONDO
   Va detras del contenido: las secciones ambient ya declaran
   position:relative, isolation:isolate y .container en z-index 2.
   ============================================================ */
.rbc-constelacion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.rbc-page .rbc-ambient--light .rbc-constelacion { opacity: .85; }
.rbc-page .rbc-ambient--dark  .rbc-constelacion { opacity: .62; }

/* En pantallas pequenas estorba mas que aporta y gasta bateria */
@media (max-width: 620px) {
  .rbc-constelacion { display: none; }
}
