/* ========================================================================== 
   CONTRALORÍA DISTRITAL DE MEDELLÍN
   Responsabilidad Fiscal y Jurisdicción Coactiva · Microsoft Editorial UX
   CSS aislado para Microsoft Power Pages
   ========================================================================== */

.rf-page {
  --rf-green-950: #031f19;
  --rf-green-900: #06372b;
  --rf-green-800: #0a4f3d;
  --rf-green-700: #126c4e;
  --rf-green-600: #16815d;
  --rf-lime: #8bd936;
  --rf-lime-soft: #e7f7d4;
  --rf-mint: #78d6b1;
  --rf-gold: #d7ad35;
  --rf-white: #ffffff;
  --rf-paper: #fbfdfc;
  --rf-bg: #f2f7f4;
  --rf-ink: #102d25;
  --rf-text: #435951;
  --rf-muted: #6d7e77;
  --rf-line: rgba(16, 45, 37, 0.14);
  --rf-line-strong: rgba(16, 45, 37, 0.24);
  --rf-shadow: 0 24px 68px rgba(3, 31, 25, 0.12);
  --rf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rf-ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --rf-max: 1360px;
  --rf-reading: 820px;

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--rf-text);
  background: var(--rf-white);
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}

.rf-page *,
.rf-page *::before,
.rf-page *::after {
  box-sizing: border-box;
  min-width: 0;
}

.rf-page a,
.rf-page button,
.rf-page input,
.rf-page select {
  font: inherit;
}

.rf-page a {
  color: inherit;
}

.rf-page a:hover,
.rf-page a:focus,
.rf-page a:active,
.rf-page a:visited {
  text-decoration: none;
}

.rf-page button,
.rf-page a {
  -webkit-tap-highlight-color: transparent;
}

.rf-page [hidden] {
  display: none !important;
}

.rf-page svg {
  display: block;
  max-width: 100%;
}

.rf-page :focus-visible {
  outline: 3px solid var(--rf-lime);
  outline-offset: 4px;
}

.rf-shell {
  width: min(var(--rf-max), calc(100% - 64px));
  margin-inline: auto;
}

.rf-skip {
  position: fixed;
  top: -70px;
  left: 18px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--rf-green-950) !important;
  background: var(--rf-white);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--rf-shadow);
  font-weight: 800;
  transition: top 180ms ease;
}

.rf-skip:focus-visible {
  top: 0;
}

.rf-label,
.rf-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--rf-green-700);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.rf-label::before,
.rf-kicker::before {
  content: "";
  flex: 0 0 30px;
  width: 30px;
  height: 2px;
  background: currentColor;
}

.rf-label--light {
  color: #c5f18f;
}

.rf-btn {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;

  transition:
    transform 220ms var(--rf-ease),
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.rf-btn:hover {
  transform: translateY(-2px);
}

.rf-btn--primary,
.rf-btn--primary:visited,
.rf-btn--primary:hover,
.rf-btn--primary:focus,
.rf-btn--primary:active {
  color: var(--rf-green-950) !important;
  -webkit-text-fill-color: var(--rf-green-950);
  background: var(--rf-lime);
  box-shadow: 0 16px 36px rgba(139, 217, 54, 0.20);
}

.rf-btn--primary:hover {
  box-shadow: 0 20px 44px rgba(139, 217, 54, 0.28);
}

.rf-btn--ghost,
.rf-btn--ghost:visited,
.rf-btn--ghost:hover,
.rf-btn--ghost:focus,
.rf-btn--ghost:active {
  color: var(--rf-white) !important;
  -webkit-text-fill-color: var(--rf-white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ========================================================================== 
   HERO · RED INSTITUCIONAL GENERATIVA
   ========================================================================== */

.rf-hero {
  position: relative;
  min-height: clamp(680px, 82svh, 840px);
  overflow: hidden;
  color: var(--rf-white);

  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(139, 217, 54, 0.15),
      transparent 23%
    ),
    radial-gradient(
      circle at 22% 110%,
      rgba(120, 214, 177, 0.13),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      #071d19 0%,
      #062c23 44%,
      #041f1a 100%
    );
}

.rf-hero__ambient,
.rf-hero__grid,
.rf-hero__network {
  position: absolute;
  inset: 0;
}

.rf-hero__ambient {
  pointer-events: none;
}

.rf-hero__grid {
  opacity: 0.34;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );

  background-size: 64px 64px;

  mask-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.92),
      rgba(0, 0, 0, 0.38) 60%,
      transparent 100%
    );

  -webkit-mask-image:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.92),
      rgba(0, 0, 0, 0.38) 60%,
      transparent 100%
    );
}

.rf-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.7;
}

.rf-hero__orb--one {
  right: 4%;
  top: 8%;
  width: 360px;
  height: 360px;

  background:
    radial-gradient(
      circle,
      rgba(139, 217, 54, 0.20),
      transparent 67%
    );
}

.rf-hero__orb--two {
  left: 28%;
  bottom: -16%;
  width: 480px;
  height: 480px;

  background:
    radial-gradient(
      circle,
      rgba(120, 214, 177, 0.12),
      transparent 68%
    );
}

.rf-hero__network {
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.rf-path {
  fill: none;
  stroke: url(#rfLineGradient);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 7 14;
  animation: rfDash 18s linear infinite;
}

.rf-path--two {
  opacity: 0.55;
  animation-duration: 24s;
  animation-direction: reverse;
}

.rf-path--three {
  opacity: 0.45;
  animation-duration: 28s;
}

.rf-network-nodes circle {
  fill: var(--rf-lime);
  opacity: 0.88;
  transform-box: fill-box;
  transform-origin: center;
  animation: rfNodePulse 3.2s ease-in-out infinite;
}

.rf-network-nodes circle:nth-child(2n) {
  animation-delay: -1.4s;
}

.rf-hero__inner {
  position: relative;
  z-index: 2;
  min-height: clamp(680px, 82svh, 840px);
  padding-block: clamp(78px, 10vw, 118px) 54px;
  display: grid;

  grid-template-columns:
    minmax(0, 0.95fr)
    minmax(400px, 0.75fr);

  grid-template-rows: 1fr auto;
  column-gap: clamp(48px, 7vw, 110px);
  align-items: center;
}

.rf-hero__copy {
  max-width: 820px;
}

.rf-kicker {
  margin-bottom: 20px;
  color: #c5f18f;
}

.rf-hero h1 {
  margin: 0;
  color: var(--rf-white);
  font-size: clamp(3.5rem, 6.1vw, 7rem);
  font-weight: 650;
  line-height: 0.93;
  letter-spacing: -0.058em;
}

.rf-hero h1 strong {
  display: block;
  margin-top: 10px;
  color: var(--rf-lime);
  font-weight: 440;
}

.rf-hero__copy > p {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.76;
}

.rf-hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.rf-hero__signal {
  position: relative;
  min-height: 390px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.rf-signal__core {
  position: relative;
  width: min(330px, 78vw);
  aspect-ratio: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;

  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(139, 217, 54, 0.13),
      transparent 42%
    ),
    rgba(2, 24, 19, 0.42);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    inset 0 0 0 20px rgba(255, 255, 255, 0.015),
    0 36px 90px rgba(0, 0, 0, 0.28);
}

.rf-signal__core::before,
.rf-signal__core::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(139, 217, 54, 0.24);
  border-radius: 50%;
  animation: rfOrbit 12s linear infinite;
}

.rf-signal__core::after {
  inset: 25%;
  border-style: dashed;
  animation-duration: 18s;
  animation-direction: reverse;
}

.rf-signal__pulse {
  width: 12px;
  height: 12px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--rf-lime);

  box-shadow:
    0 0 0 10px rgba(139, 217, 54, 0.08),
    0 0 40px rgba(139, 217, 54, 0.65);

  animation: rfPulse 2.6s ease-in-out infinite;
}

.rf-signal__core strong,
.rf-signal__core small {
  display: block;
  position: relative;
  z-index: 2;
}

.rf-signal__core strong {
  color: var(--rf-white);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.rf-signal__core small {
  max-width: 220px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  line-height: 1.5;
}

.rf-signal__rail {
  width: min(520px, 100%);
  margin-top: 30px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-signal__rail i {
  height: 1px;

  background:
    linear-gradient(
      90deg,
      rgba(139, 217, 54, 0.25),
      var(--rf-lime),
      rgba(139, 217, 54, 0.25)
    );
}

.rf-hero__metrics {
  grid-column: 1 / -1;
  margin: 36px 0 0;
  padding: 26px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.rf-hero__metrics div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.rf-hero__metrics dt {
  color: var(--rf-lime);
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
  font-weight: 700;
}

.rf-hero__metrics dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ========================================================================== 
   EDITORIAL INTRO
   ========================================================================== */

.rf-intro {
  padding: clamp(92px, 10vw, 150px) 0;
  background: var(--rf-white);
}

.rf-editorial {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 4vw, 68px);
  align-items: start;
}

.rf-editorial__index {
  color: rgba(16, 45, 37, 0.12);
  font-size: clamp(4.5rem, 8vw, 8rem);
  font-weight: 650;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.rf-editorial__headline h2,
.rf-section-heading h2,
.rf-search-hero h2,
.rf-coactive h2,
.rf-note h2 {
  margin: 12px 0 0;
  color: var(--rf-ink);
  font-size: clamp(2.4rem, 4.7vw, 4.8rem);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.rf-editorial__prose {
  padding-top: 24px;
}

.rf-editorial__prose p {
  max-width: var(--rf-reading);
  margin: 0 0 22px;
  color: var(--rf-text);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.83;
}

.rf-source-line {
  margin-top: 32px !important;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--rf-line);
}

.rf-source-line span {
  color: var(--rf-muted);
}

.rf-source-line strong {
  color: var(--rf-green-800);
}

/* ========================================================================== 
   GUIDE · NARRATIVE JOURNEY
   ========================================================================== */

.rf-guide,
.rf-collections,
.rf-note {
  padding: clamp(88px, 9vw, 132px) 0;
  background: var(--rf-bg);
}

.rf-section-heading {
  max-width: 940px;
  margin-bottom: 56px;
}

.rf-section-heading p,
.rf-search-hero p {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--rf-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.rf-journey {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rf-journey::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 34px;
  bottom: 34px;
  width: 1px;

  background:
    linear-gradient(
      var(--rf-lime),
      rgba(16, 45, 37, 0.12)
    );
}

.rf-journey li {
  position: relative;
  min-height: 150px;
  padding: 12px 0 38px 106px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.rf-journey li > span {
  position: absolute;
  left: 0;
  top: 0;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  color: var(--rf-green-950);
  background: var(--rf-lime);
  border-radius: 50%;
  font-weight: 900;
  box-shadow: 0 0 0 10px var(--rf-bg);
}

.rf-journey h3 {
  margin: 0 0 7px;
  color: var(--rf-ink);
  font-size: clamp(1.5rem, 2.3vw, 2.25rem);
  font-weight: 580;
  letter-spacing: -0.03em;
}

.rf-journey p {
  margin: 0;
  color: var(--rf-muted);
  font-size: 1rem;
}

/* ========================================================================== 
   LEGAL · AUTHORITY STREAM
   ========================================================================== */

.rf-legal {
  padding: clamp(96px, 10vw, 150px) 0;
  color: #dbe6e1;

  background:
    radial-gradient(
      circle at 84% 16%,
      rgba(139, 217, 54, 0.12),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #061e19,
      #082f25 65%,
      #07372b
    );
}

.rf-section-heading--legal h2 {
  color: var(--rf-white);
}

.rf-section-heading--legal p {
  color: rgba(255, 255, 255, 0.60);
}

.rf-section-heading--legal .rf-label {
  color: var(--rf-lime);
}

.rf-legal-stream {
  counter-reset: law;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.rf-law {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 58px);
  align-items: center;
  min-height: 190px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);

  transition:
    padding 260ms var(--rf-ease),
    background 260ms ease;
}

.rf-law::after {
  content: "↗";
  align-self: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 1.7rem;

  transition:
    color 220ms ease,
    transform 220ms var(--rf-ease);
}

.rf-law:hover {
  padding-inline: 18px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035),
      transparent
    );
}

.rf-law:hover::after {
  color: var(--rf-lime);
  transform: translate(4px, -4px);
}

.rf-law__year {
  color: var(--rf-lime);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.rf-law small {
  color: #9cc6b4;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rf-law h3 {
  margin: 6px 0 8px;
  color: var(--rf-white);
  font-size: clamp(1.2rem, 2vw, 1.72rem);
  font-weight: 560;
  line-height: 1.25;
}

.rf-law p {
  max-width: 800px;
  margin: 0;
  color: rgba(255, 255, 255, 0.60);
  line-height: 1.7;
}

.rf-law a {
  display: inline-flex;
  margin-top: 14px;
  gap: 8px;
  color: #c8f49a !important;
  -webkit-text-fill-color: #c8f49a;
  font-size: 0.86rem;
  font-weight: 800;
}

.rf-law--featured {
  background:
    linear-gradient(
      90deg,
      rgba(139, 217, 54, 0.08),
      transparent 65%
    );
}

/* ========================================================================== 
   SEARCH · PRIMARY ENTERPRISE EXPERIENCE
   ========================================================================== */

.rf-consult {
  position: relative;
  padding: clamp(100px, 11vw, 160px) 0;

  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(139, 217, 54, 0.08),
      transparent 24%
    ),
    var(--rf-white);
}

.rf-search-hero {
  max-width: 980px;
  margin-bottom: 42px;
}

.rf-search-hero .rf-label {
  color: var(--rf-green-700);
}

.rf-search-workbench {
  position: relative;
  z-index: 3;
  padding: clamp(24px, 3.5vw, 42px);

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.96),
      rgba(246, 251, 248, 0.92)
    );

  border: 1px solid rgba(16, 45, 37, 0.14);
  border-radius: 26px;

  box-shadow:
    0 30px 90px rgba(3, 31, 25, 0.12);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.rf-search-workbench__query {
  display: block;
}

.rf-search-workbench label > span,
.rf-filter-row label > span {
  display: block;
  margin-bottom: 8px;
  color: var(--rf-green-800);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-search-input {
  position: relative;
}

.rf-search-input svg {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 25px;
  height: 25px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--rf-green-700);
  stroke-width: 1.8;
}

.rf-search-input input {
  width: 100%;
  height: 72px;
  padding: 0 22px 0 60px;
  color: var(--rf-ink);
  background: var(--rf-white);
  border: 1px solid var(--rf-line-strong);
  border-radius: 18px;
  outline: none;
  font-size: clamp(1rem, 1.4vw, 1.15rem);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.rf-search-input input:focus {
  border-color: var(--rf-green-600);
  box-shadow: 0 0 0 5px rgba(22, 129, 93, 0.10);
}

.rf-filter-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 0.82fr 1.35fr 0.72fr auto;
  gap: 12px;
  align-items: end;
}

.rf-filter-row select {
  width: 100%;
  height: 50px;
  padding: 0 38px 0 14px;
  color: var(--rf-ink);
  background-color: var(--rf-white);
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  outline: none;
}

.rf-filter-row select:focus {
  border-color: var(--rf-green-600);
  box-shadow: 0 0 0 4px rgba(22, 129, 93, 0.08);
}

.rf-clear {
  min-height: 50px;
  padding: 0 18px;
  color: var(--rf-green-800);
  background: transparent;
  border: 1px solid var(--rf-line-strong);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
}

.rf-clear:hover {
  background: var(--rf-lime-soft);
  border-color: rgba(139, 217, 54, 0.55);
}

.rf-consult__toolbar {
  margin-top: 34px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rf-line);
}

.rf-consult__toolbar strong,
.rf-consult__toolbar span {
  display: block;
}

.rf-consult__toolbar strong {
  color: var(--rf-ink);
  font-size: 1.08rem;
}

.rf-consult__toolbar span {
  margin-top: 3px;
  color: var(--rf-muted);
  font-size: 0.84rem;
}

.rf-view-switch {
  display: flex;
  gap: 6px;
}

.rf-view-switch button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--rf-green-800);
  background: transparent;
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  cursor: pointer;
}

.rf-view-switch button.is-active {
  color: var(--rf-green-950);
  background: var(--rf-lime-soft);
  border-color: rgba(139, 217, 54, 0.7);
}

.rf-collection-navigation {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.rf-collection-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  color: var(--rf-green-800);
  background: transparent;
  border: 1px solid var(--rf-line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;

  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.rf-collection-chip:hover,
.rf-collection-chip.is-active {
  color: var(--rf-white);
  background: var(--rf-green-800);
  border-color: var(--rf-green-800);
}

/* Resultados como registros editoriales, no tarjetas */

.rf-results {
  margin-top: 20px;
  border-top: 1px solid var(--rf-line);
}

.rf-document {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rf-line);

  transition:
    padding 220ms var(--rf-ease),
    background 220ms ease;
}

.rf-document:hover {
  padding-inline: 16px;

  background:
    linear-gradient(
      90deg,
      rgba(139, 217, 54, 0.045),
      transparent 75%
    );
}

.rf-document__top {
  display: grid;
  gap: 8px;
}

.rf-document__type {
  color: var(--rf-green-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-document__date {
  color: var(--rf-muted);
  font-size: 0.75rem;
}

.rf-document__body {
  min-width: 0;
}

.rf-document__group {
  color: var(--rf-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rf-document h3,
.rf-document h4 {
  margin: 7px 0 12px;
  color: var(--rf-ink);
  font-size: clamp(1.12rem, 1.8vw, 1.5rem);
  font-weight: 590;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.rf-document__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.rf-document__meta span {
  color: var(--rf-muted);
  font-size: 0.79rem;
}

.rf-document__meta b {
  margin-right: 4px;
  color: var(--rf-green-800);
}

.rf-document__footer {
  display: grid;
  justify-items: end;
  gap: 10px;
  text-align: right;
}

.rf-document__footer > span {
  color: var(--rf-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.rf-document__footer a,
.rf-document__footer a:visited,
.rf-document__footer a:hover,
.rf-document__footer a:focus,
.rf-document__footer a:active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rf-green-800) !important;
  -webkit-text-fill-color: var(--rf-green-800);
  font-weight: 850;
}

.rf-document__footer a:hover {
  color: var(--rf-green-600) !important;
  -webkit-text-fill-color: var(--rf-green-600);
}

.rf-document.is-pending {
  opacity: 0.72;
}

.rf-results.is-list .rf-document {
  grid-template-columns: 90px minmax(0, 1fr) 180px;
  padding-block: 20px;
}

.rf-empty {
  max-width: 680px;
  margin: 50px auto 0;
  padding: 46px 0;
  text-align: center;
  border-top: 1px solid var(--rf-line);
  border-bottom: 1px solid var(--rf-line);
}

.rf-empty > span {
  color: var(--rf-green-700);
  font-size: 2rem;
}

.rf-empty h3 {
  margin: 10px 0 8px;
  color: var(--rf-ink);
}

.rf-empty p {
  margin: 0;
  color: var(--rf-muted);
}

.rf-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.rf-pagination button {
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  color: var(--rf-green-800);
  background: transparent;
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  cursor: pointer;
}

.rf-pagination button:hover,
.rf-pagination button.is-active {
  color: var(--rf-white);
  background: var(--rf-green-800);
  border-color: var(--rf-green-800);
}

.rf-pagination button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ========================================================================== 
   COLLECTIONS · EDITORIAL INDEX
   ========================================================================== */

.rf-collections__stream {
  border-top: 1px solid var(--rf-line);
}

.rf-collection-card {
  display: grid;
  grid-template-columns: 90px 190px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--rf-line);

  transition:
    padding 220ms var(--rf-ease),
    background 220ms ease;
}

.rf-collection-card:hover {
  padding-inline: 14px;

  background:
    linear-gradient(
      90deg,
      rgba(139, 217, 54, 0.05),
      transparent 72%
    );
}

.rf-collection-card__code {
  color: var(--rf-lime);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.rf-collection-card small {
  color: var(--rf-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rf-collection-card h4 {
  margin: 0 0 6px;
  color: var(--rf-ink);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 580;
  line-height: 1.3;
}

.rf-collection-card p {
  max-width: 720px;
  margin: 0;
  color: var(--rf-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.rf-collection-card button {
  padding: 10px 0;
  color: var(--rf-green-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  white-space: nowrap;
}

.rf-collection-card button:hover {
  color: var(--rf-green-950);
}

/* ========================================================================== 
   JURISDICCIÓN COACTIVA · PROCESS TIMELINE
   ========================================================================== */

.rf-coactive {
  padding: clamp(100px, 11vw, 160px) 0;
  color: var(--rf-white);

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(139, 217, 54, 0.14),
      transparent 25%
    ),
    linear-gradient(
      145deg,
      var(--rf-green-900),
      var(--rf-green-950)
    );
}

.rf-coactive__layout {
  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(420px, 1.1fr);

  gap: clamp(56px, 8vw, 120px);
  align-items: center;
}

.rf-coactive h2 {
  color: var(--rf-white);
}

.rf-coactive__copy p {
  max-width: 650px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.rf-coactive__timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rf-coactive__timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 25px;
  bottom: 25px;
  width: 1px;

  background:
    linear-gradient(
      var(--rf-lime),
      rgba(255, 255, 255, 0.15)
    );
}

.rf-coactive__timeline li {
  position: relative;
  min-height: 92px;
  padding: 7px 0 24px 86px;
}

.rf-coactive__timeline li span {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--rf-green-950);
  background: var(--rf-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 8px var(--rf-green-900);
  font-weight: 900;
}

.rf-coactive__timeline strong {
  display: block;
  padding-top: 11px;
  color: var(--rf-white);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 580;
}

/* ========================================================================== 
   NOTE
   ========================================================================== */

.rf-note__layout {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.rf-note__mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  color: var(--rf-green-950);
  background: var(--rf-lime);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 900;
}

.rf-note h2 {
  max-width: 860px;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.rf-note p {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--rf-muted);
  line-height: 1.8;
}

/* ========================================================================== 
   MOTION
   ========================================================================== */

[data-rf-reveal] {
  opacity: 1;
}

.rf-page.rf-js-ready [data-rf-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

.rf-page.rf-js-ready [data-rf-reveal] {
  transition:
    opacity 720ms ease,
    transform 720ms var(--rf-ease-soft);
}

.rf-page.rf-js-ready [data-rf-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.rf-back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1400;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--rf-green-950);
  background: var(--rf-lime);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.rf-back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@keyframes rfDash {
  to {
    stroke-dashoffset: -210;
  }
}

@keyframes rfNodePulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes rfOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rfPulse {
  0%,
  100% {
    transform: scale(0.9);
  }

  50% {
    transform: scale(1.15);
  }
}

/* ========================================================================== 
   RESPONSIVE · ULTRAWIDE / LAPTOP / TABLET / MOBILE
   ========================================================================== */

@media (min-width: 1900px) {

  .rf-page {
    --rf-max: 1500px;
  }

  .rf-hero__inner {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(480px, 0.72fr);
  }

}

@media (max-width: 1180px) {

  .rf-hero__inner,
  .rf-coactive__layout {
    grid-template-columns: 1fr;
  }

  .rf-hero__signal {
    min-height: 330px;
  }

  .rf-signal__core {
    width: 270px;
  }

  .rf-editorial {
    grid-template-columns:
      82px
      0.82fr
      1.18fr;

    gap: 28px;
  }

  .rf-filter-row {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .rf-clear {
    grid-column: 2;
  }

  .rf-document {
    grid-template-columns:
      110px
      minmax(0, 1fr)
      180px;
  }

  .rf-collection-card {
    grid-template-columns:
      78px
      160px
      minmax(0, 1fr);
  }

  .rf-collection-card button {
    grid-column: 3;
    justify-self: start;
  }

}

@media (max-width: 900px) {

  .rf-shell {
    width:
      min(
        var(--rf-max),
        calc(100% - 36px)
      );
  }

  .rf-hero {
    min-height: auto;
  }

  .rf-hero__inner {
    min-height: auto;
    padding-block: 72px 40px;
  }

  .rf-hero__signal {
    margin-top: 8px;
  }

  .rf-hero__metrics {
    margin-top: 12px;
  }

  .rf-editorial {
    grid-template-columns:
      72px
      1fr;
  }

  .rf-editorial__prose {
    grid-column: 2;
    padding-top: 0;
  }

  .rf-law {
    grid-template-columns:
      95px
      minmax(0, 1fr);
  }

  .rf-law::after {
    display: none;
  }

  .rf-document,
  .rf-results.is-list .rf-document {
    grid-template-columns:
      95px
      minmax(0, 1fr);
  }

  .rf-document__footer {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .rf-collection-card {
    grid-template-columns:
      70px
      minmax(0, 1fr);
  }

  .rf-collection-card small {
    grid-column: 2;
  }

  .rf-collection-card > div,
  .rf-collection-card h4,
  .rf-collection-card p {
    grid-column: 2;
  }

  .rf-collection-card button {
    grid-column: 2;
  }

}

@media (max-width: 620px) {

  .rf-shell {
    width:
      min(
        var(--rf-max),
        calc(100% - 28px)
      );
  }

  .rf-hero__inner {
    padding-block: 58px 34px;
  }

  .rf-hero h1 {
    font-size:
      clamp(
        3rem,
        15vw,
        4.7rem
      );
  }

  .rf-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .rf-btn {
    width: 100%;
  }

  .rf-signal__rail {
    grid-template-columns:
      auto
      1fr
      auto
      1fr
      auto;
  }

  .rf-signal__rail span:nth-of-type(4),
  .rf-signal__rail i:nth-of-type(3) {
    display: none;
  }

  .rf-hero__metrics {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rf-hero__metrics div {
    justify-content: space-between;
    padding-bottom: 10px;

    border-bottom:
      1px solid
      rgba(255, 255, 255, 0.08);
  }

  .rf-editorial {
    grid-template-columns: 1fr;
  }

  .rf-editorial__index {
    font-size: 4rem;
  }

  .rf-editorial__prose {
    grid-column: 1;
  }

  .rf-source-line {
    flex-direction: column;
    gap: 4px;
  }

  .rf-journey::before {
    left: 25px;
  }

  .rf-journey li {
    min-height: 130px;
    padding-left: 76px;
  }

  .rf-journey li > span {
    width: 50px;
    height: 50px;
    box-shadow: 0 0 0 7px var(--rf-bg);
  }

  .rf-law {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 0;
  }

  .rf-law:hover {
    padding-inline: 0;
  }

  .rf-search-workbench {
    padding: 20px;
    border-radius: 20px;
  }

  .rf-search-input input {
    height: 62px;
    padding-left: 54px;
  }

  .rf-filter-row {
    grid-template-columns: 1fr;
  }

  .rf-clear {
    grid-column: auto;
  }

  .rf-consult__toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .rf-document,
  .rf-results.is-list .rf-document {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rf-document__top {
    grid-template-columns:
      auto
      1fr;

    align-items: center;
  }

  .rf-document__date {
    text-align: right;
  }

  .rf-document__footer {
    grid-column: 1;
  }

  .rf-document:hover {
    padding-inline: 0;
  }

  .rf-collection-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .rf-collection-card small,
  .rf-collection-card > div,
  .rf-collection-card h4,
  .rf-collection-card p,
  .rf-collection-card button {
    grid-column: 1;
  }

  .rf-collection-card:hover {
    padding-inline: 0;
  }

  .rf-coactive__layout {
    gap: 46px;
  }

  .rf-note__layout {
    grid-template-columns: 1fr;
  }

  .rf-note__mark {
    width: 58px;
    height: 58px;
  }

}

@media (max-width: 380px) {

  .rf-shell {
    width:
      min(
        var(--rf-max),
        calc(100% - 22px)
      );
  }

  .rf-search-workbench {
    padding: 16px;
  }

  .rf-collection-chip {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

}

@media (prefers-reduced-motion: reduce) {

  .rf-page *,
  .rf-page *::before,
  .rf-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .rf-page.rf-js-ready [data-rf-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

}

/* BEGIN CDM_RF_SQL_DOCUMENTAL */

/* Resultados SQL/API - componente aislado */
[data-rf-page] .rf-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

[data-rf-page] .rf-results.is-list {
  grid-template-columns: minmax(0, 1fr);
}

[data-rf-page] .rf-result-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 28px 24px;
  border: 1px solid rgba(0, 63, 47, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.995),
      rgba(245, 250, 247, 0.97)
    );
  box-shadow:
    0 12px 32px rgba(0, 63, 47, 0.07);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

[data-rf-page] .rf-result-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background:
    linear-gradient(
      180deg,
      #8bd936,
      #0b7a35,
      #003f2f
    );
}

[data-rf-page] .rf-result-card:hover {
  transform: translateY(-2px);
  border-color: rgba(11, 122, 53, 0.26);
  box-shadow:
    0 18px 42px rgba(0, 63, 47, 0.11);
}

[data-rf-page] .rf-result-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

[data-rf-page] .rf-result-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

[data-rf-page] .rf-result-badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

[data-rf-page] .rf-result-badge--type {
  color: #004633;
  background: #edf6e8;
  border: 1px solid rgba(11, 122, 53, 0.16);
}

[data-rf-page] .rf-result-badge--year {
  color: #003f2f;
  background: #ffffff;
  border: 1px solid rgba(0, 63, 47, 0.16);
}

[data-rf-page] .rf-result-card__date {
  flex: 0 0 auto;
  color: #63736d;
  font-size: 0.78rem;
  line-height: 1.4;
}

[data-rf-page] .rf-result-card__title {
  margin: 0;
  color: #082f25;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  font-weight: 760;
  line-height: 1.35;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

[data-rf-page] .rf-result-card__meta {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

[data-rf-page] .rf-result-card__meta-item {
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid rgba(0, 63, 47, 0.09);
}

[data-rf-page] .rf-result-card__meta dt {
  margin: 0 0 3px;
  color: #547068;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

[data-rf-page] .rf-result-card__meta dd {
  margin: 0;
  color: #173d33;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

[data-rf-page] .rf-result-card__description {
  margin: 0;
  color: #4e635c;
  font-size: 0.9rem;
  line-height: 1.62;
}

[data-rf-page] .rf-result-card__footer {
  margin-top: auto;
  padding-top: 4px;
}

[data-rf-page] .rf-result-download {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #0b7a35;
  border-radius: 11px;
  color: #ffffff;
  background: #075f42;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

[data-rf-page] .rf-result-download:hover {
  color: #ffffff;
  background: #004733;
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px rgba(0, 63, 47, 0.16);
}

[data-rf-page] .rf-result-download__icon {
  font-size: 1rem;
  line-height: 1;
}

[data-rf-page] .rf-result-unavailable {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 10px;
  color: #66736f;
  background: #f0f3f1;
  font-size: 0.82rem;
  font-weight: 700;
}

[data-rf-page] .rf-results.is-list .rf-result-card {
  display: grid;
  grid-template-columns:
    minmax(0, 1.35fr)
    minmax(220px, 0.65fr);
  align-items: center;
  gap: 14px 24px;
}

[data-rf-page] .rf-results.is-list .rf-result-card__top,
[data-rf-page] .rf-results.is-list .rf-result-card__title,
[data-rf-page] .rf-results.is-list .rf-result-card__description {
  grid-column: 1;
}

[data-rf-page] .rf-results.is-list .rf-result-card__meta,
[data-rf-page] .rf-results.is-list .rf-result-card__footer {
  grid-column: 2;
}

[data-rf-page] .rf-pagination,
[data-rf-page] #rjf-paginacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 28px;
}

[data-rf-page] .rf-page-button {
  min-width: 42px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(0, 63, 47, 0.18);
  border-radius: 10px;
  color: #15473a;
  background: #ffffff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 760;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

[data-rf-page] .rf-page-button:hover:not(:disabled) {
  border-color: #0b7a35;
  background: #eff8e9;
}

[data-rf-page] .rf-page-button.is-current {
  color: #ffffff;
  border-color: #075f42;
  background: #075f42;
}

[data-rf-page] .rf-page-button:disabled {
  cursor: default;
  opacity: 0.45;
}

[data-rf-page] .rf-empty {
  max-width: 680px;
  margin: 34px auto 0;
  padding: 36px 28px;
  border-top: 1px solid rgba(0, 63, 47, 0.14);
  border-bottom: 1px solid rgba(0, 63, 47, 0.14);
  text-align: center;
}

[data-rf-page] .rf-empty h3 {
  margin: 0 0 8px;
  color: #082f25;
  font-size: 1.22rem;
}

[data-rf-page] .rf-empty p {
  margin: 0;
  color: #60716b;
  line-height: 1.6;
}

[data-rf-page] .rf-view-switch button {
  min-width: 42px;
  min-height: 42px;
}

[data-rf-page] :is(
  .rf-result-download,
  .rf-page-button,
  .rf-view-switch button,
  .rf-collection-chip,
  .rf-collection-card__button
):focus-visible {
  outline: 3px solid #8bd936;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  [data-rf-page] .rf-results {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-rf-page] .rf-results.is-list .rf-result-card {
    display: flex;
  }
}

@media (max-width: 640px) {
  [data-rf-page] .rf-result-card {
    padding: 22px 20px 20px 24px;
    border-radius: 16px;
  }

  [data-rf-page] .rf-result-card__top {
    flex-direction: column;
    gap: 10px;
  }

  [data-rf-page] .rf-result-card__meta {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-rf-page] .rf-result-download {
    width: 100%;
  }

  [data-rf-page] .rf-pagination,
  [data-rf-page] #rjf-paginacion {
    gap: 5px;
  }

  [data-rf-page] .rf-page-button {
    min-width: 40px;
    min-height: 40px;
    padding: 0 9px;
  }
}

/* END CDM_RF_SQL_DOCUMENTAL */
