/* Recursos públicos: índice editorial de las páginas existentes de PerimetroX. */
body.page-resources {
  color-scheme: dark;
  --bg-0: #08121b;
  --bg-1: #0c1822;
  --bg-2: #10202b;
  --panel: rgba(14, 27, 38, 0.78);
  --panel-2: rgba(19, 35, 47, 0.94);
  --panel-solid: #101d28;
  --line: rgba(166, 192, 207, 0.17);
  --line-strong: rgba(89, 190, 218, 0.4);
  --line-soft: rgba(166, 192, 207, 0.1);
  --text: #eff5f7;
  --text-muted: #b7c5cc;
  --text-dim: #899ba5;
  --brand: #a94b61;
  --brand-dark: #853448;
  --cyan: #54bde0;
  --teal: #69d5df;
  --indigo: #65b5d7;
  --violet: #86a9c4;
  --high: #26788f;
  --shadow-card: 0 24px 70px -42px rgba(0, 0, 0, 0.85);
  background: var(--bg-0);
  color: var(--text);
}

.resources-hub-main {
  position: relative;
  isolation: isolate;
  color: var(--text);
}
.page-resources .scroll-progress::after { display: none; }

.page-resources .bg-mesh {
  background:
    radial-gradient(38% 34% at 16% 10%, rgba(77, 184, 207, 0.12), transparent 64%),
    radial-gradient(40% 36% at 86% 4%, rgba(169, 75, 97, 0.14), transparent 66%),
    radial-gradient(46% 46% at 82% 86%, rgba(49, 112, 145, 0.16), transparent 64%),
    radial-gradient(42% 42% at 6% 90%, rgba(35, 70, 91, 0.26), transparent 64%),
    linear-gradient(180deg, #09131d, #0a1621 58%, #08121b);
}
.page-resources .bg-grid {
  background-image:
    linear-gradient(to right, rgba(143, 176, 193, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(143, 176, 193, 0.07) 1px, transparent 1px);
}

.page-resources .seo-crumbs { margin-bottom: clamp(30px, 5vw, 58px); }
.page-resources .seo-crumbs a { color: var(--text-muted); }
.page-resources .seo-crumbs a:hover { color: var(--teal); }

.rhub-hero {
  position: relative;
  padding: calc(var(--nav-h) + 34px) 0 clamp(70px, 9vw, 124px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(52% 78% at 86% 16%, rgba(35, 135, 166, 0.16), transparent 70%),
    radial-gradient(42% 68% at 10% 0%, rgba(135, 45, 67, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(13, 27, 38, 0.75), rgba(8, 18, 27, 0.35));
}

.rhub-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(44px, 8vw, 118px);
}

.rhub-hero-copy { min-width: 0; }
.rhub-hero-copy .kicker { color: var(--teal); }
.rhub-hero-copy h1 {
  max-width: 17ch;
  margin: 18px 0 22px;
  color: var(--text);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.rhub-lead {
  max-width: 58ch;
  color: var(--text-muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.68;
}
.rhub-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 26px;
  margin-top: 32px;
}
.rhub-hero-actions .btn { min-height: 52px; }
.rhub-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, transform 180ms ease;
}
.rhub-secondary-link:hover { color: var(--teal); transform: translateX(2px); }

.rhub-reading-index {
  position: relative;
  padding: 8px 0 8px clamp(22px, 3vw, 38px);
  border-left: 1px solid rgba(105, 213, 223, 0.34);
}
.rhub-index-title {
  margin: 0 0 14px;
  color: var(--text-dim);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.045em;
}
.rhub-reading-index > a {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 5px 14px;
  align-items: center;
  padding: 18px 2px 18px 0;
  border-top: 1px solid var(--line);
  transition: padding 220ms ease, color 220ms ease;
}
.rhub-reading-index > a:last-child { border-bottom: 1px solid var(--line); }
.rhub-reading-index > a:hover { padding-left: 7px; }
.rhub-index-topic {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(17px, 1.55vw, 21px);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.rhub-index-detail { color: var(--text-dim); font-size: 13px; }
.rhub-index-arrow {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--teal);
  transition: transform 200ms ease;
}
.rhub-index-arrow svg,
.rhub-entry-go svg { width: 17px; height: 17px; }
.rhub-reading-index > a:hover .rhub-index-arrow { transform: translate(2px, -2px); }

.rhub-directory {
  padding: clamp(74px, 9vw, 126px) 0 clamp(68px, 8vw, 108px);
  background:
    radial-gradient(58% 55% at 100% 40%, rgba(41, 103, 133, 0.11), transparent 72%),
    linear-gradient(180deg, rgba(10, 20, 29, 0.2), rgba(11, 23, 33, 0.72));
}
.rhub-directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
  align-items: end;
  gap: 28px;
  margin-bottom: clamp(44px, 6vw, 78px);
}
.rhub-overline,
.rhub-entry-type {
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.035em;
}
.rhub-directory-heading h2,
.rhub-group-heading h2,
.rhub-close h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.rhub-directory-heading h2 { max-width: 16ch; font-size: clamp(34px, 4.3vw, 56px); line-height: 1.04; }
.rhub-directory-heading > p {
  max-width: 42ch;
  margin: 0 0 3px auto;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.rhub-group {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 8vw, 112px);
  padding: clamp(38px, 5vw, 68px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.rhub-group:last-child { border-bottom: 1px solid var(--line); }
.rhub-group-heading {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr);
  gap: 20px;
  align-content: start;
}
.rhub-group-mark {
  width: 3px;
  min-height: 54px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--teal), rgba(84, 189, 224, 0.12));
}
.rhub-group-mark--cyan { background: linear-gradient(180deg, #6bc9e2, rgba(84, 189, 224, 0.1)); }
.rhub-group-mark--wine { background: linear-gradient(180deg, #b4576a, rgba(169, 75, 97, 0.12)); }
.rhub-group-heading h2 { max-width: 15ch; font-size: clamp(25px, 2.7vw, 35px); line-height: 1.12; }
.rhub-group-heading p {
  max-width: 36ch;
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}
.rhub-entry-list { min-width: 0; }
.rhub-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.rhub-entry:last-child { border-bottom: 1px solid var(--line); }
.rhub-entry > div { min-width: 0; }
.rhub-entry-type { margin-bottom: 7px; color: var(--text-dim); }
.rhub-entry h3 {
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(18px, 1.9vw, 23px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.025em;
}
.rhub-entry h3 a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.rhub-entry h3 a:hover { color: var(--teal); }
.rhub-entry > div > p:last-child {
  max-width: 60ch;
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}
.rhub-entry .rhub-feature-callout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 11px;
  margin-top: 14px;
}
.rhub-feature-callout a { color: #c2eef5; font-size: 13px; font-weight: 600; }
.rhub-feature-callout a:hover { color: var(--teal); }
.rhub-entry-go {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--teal);
  font-size: 18px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.rhub-entry-go:hover {
  transform: translate(2px, -2px);
  border-color: var(--line-strong);
  background: rgba(84, 189, 224, 0.1);
  color: #b9f1fa;
}
.rhub-entry--demo { border-left: 2px solid rgba(84, 189, 224, 0.42); padding-left: 18px; }

.rhub-close {
  padding: clamp(66px, 8vw, 108px) 0;
  background:
    radial-gradient(52% 100% at 90% 35%, rgba(49, 135, 161, 0.19), transparent 70%),
    radial-gradient(42% 90% at 8% 100%, rgba(132, 48, 67, 0.15), transparent 72%);
  border-top: 1px solid var(--line-soft);
}
.rhub-close-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 5vw, 56px) 0;
  border-top: 1px solid rgba(105, 213, 223, 0.26);
  border-bottom: 1px solid var(--line);
}
.rhub-close h2 { max-width: 20ch; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.rhub-close p { max-width: 54ch; margin: 14px 0 0; color: var(--text-muted); line-height: 1.65; }
.rhub-close-actions { display: grid; justify-items: start; gap: 18px; }
.rhub-close-actions .btn { min-height: 52px; }

.page-resources .site-footer {
  border-color: var(--line);
  background:
    radial-gradient(62% 120% at 12% 0%, rgba(77, 184, 207, 0.11), transparent 68%),
    radial-gradient(70% 120% at 88% 12%, rgba(169, 75, 97, 0.13), transparent 70%),
    linear-gradient(180deg, rgba(8, 18, 27, 0.58), #08121b);
}
.page-resources .footer-panel {
  background: linear-gradient(180deg, rgba(18, 34, 46, 0.88), rgba(12, 24, 34, 0.94));
  border-color: var(--line);
  box-shadow: 0 34px 90px -58px rgba(0, 0, 0, 0.9);
}
.page-resources .footer-panel::before {
  background-image:
    linear-gradient(to right, rgba(148, 179, 194, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 179, 194, 0.055) 1px, transparent 1px);
}
.page-resources .footer-col h4 { color: var(--teal); }
.page-resources .footer-mail,
.page-resources .footer-linkedin { background: rgba(9, 20, 29, 0.76); }
.page-resources .footer-legal { border-color: var(--line); }
.page-resources .footer-legal a:hover { color: var(--teal); }
.page-resources .footer-bottom { border-color: var(--line); }

.page-resources :is(a, button):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
}
.page-resources :is(.rhub-group, .rhub-close) { scroll-margin-top: calc(var(--nav-h) + 24px); }

@media (max-width: 900px) {
  .rhub-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 42px; }
  .rhub-reading-index { max-width: 720px; }
  .rhub-group { grid-template-columns: minmax(190px, 0.64fr) minmax(0, 1.36fr); gap: 34px; }
}

@media (max-width: 680px) {
  .rhub-hero { padding-top: calc(var(--nav-h) + 26px); }
  .page-resources .seo-crumbs { margin-bottom: 34px; }
  .rhub-hero-copy h1 { max-width: 14ch; font-size: clamp(42px, 11vw, 58px); }
  .rhub-hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .rhub-hero-actions .btn { width: 100%; max-width: 330px; }
  .rhub-reading-index { padding-left: 18px; }
  .rhub-index-topic { font-size: 18px; }
  .rhub-index-detail { font-size: 12.5px; }
  .rhub-directory-heading { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
  .rhub-directory-heading h2 { max-width: 18ch; font-size: clamp(32px, 9vw, 43px); }
  .rhub-directory-heading > p { margin: 0; }
  .rhub-group { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 36px 0; }
  .rhub-group-heading { gap: 14px; }
  .rhub-group-heading h2 { max-width: 20ch; font-size: 27px; }
  .rhub-group-heading p { max-width: 52ch; margin-top: 9px; }
  .rhub-entry { grid-template-columns: minmax(0, 1fr) 34px; gap: 12px; padding: 19px 0; }
  .rhub-entry h3 { font-size: 19px; }
  .rhub-entry > div > p:last-child { font-size: 13.5px; }
  .rhub-entry-go { width: 34px; height: 34px; }
  .rhub-entry--demo { padding-left: 12px; }
  .rhub-close-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rhub-close h2 { font-size: clamp(31px, 9vw, 42px); }
  .rhub-close-actions { width: 100%; }
  .rhub-close-actions .btn { width: 100%; max-width: 330px; }
}

@media (max-width: 1100px) and (min-width: 681px) {
  .rhub-group { grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1.4fr); }
}

@media (max-width: 360px) {
  .rhub-hero-copy h1 { font-size: 41px; }
  .rhub-index-detail { max-width: 24ch; }
  .rhub-entry { grid-template-columns: minmax(0, 1fr) 30px; }
  .rhub-entry-go { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-resources *,
  .page-resources *::before,
  .page-resources *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
