/* ============================================================
   RECURSOS HUB + ARTICLE PAGES
   ============================================================ */

/* HUB HERO */
.rec-hero {
  background: linear-gradient(135deg, var(--color-navy-grad-start) 0%, var(--color-navy-grad-mid) 50%, var(--color-navy-grad-end) 100%);
  color: var(--color-white);
  padding: 140px 24px 88px;
  position: relative;
  overflow: hidden;
}
.rec-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 30%, rgba(212,168,83,0.08), transparent 60%),
    radial-gradient(ellipse 500px 300px at 80% 70%, rgba(42,134,199,0.10), transparent 60%);
  pointer-events: none;
}
.rec-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.rec-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  max-width: 18ch;
  line-height: 1.05;
  color: #fff;
}
.rec-hero h1 .accent { color: var(--color-gold); }
.rec-hero-lede {
  font-size: 19px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  max-width: 60ch;
  margin: 0;
}

/* CARDS GRID */
.rec-grid-section {
  padding: 88px 24px 32px;
  background: var(--color-gray-50);
}
.rec-grid-container {
  max-width: 1180px;
  margin: 0 auto;
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.rec-card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.rec-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.rec-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(9,25,48,0.10);
  border-color: var(--color-gold);
}
.rec-card:hover::before { transform: scaleX(1); }
.rec-card-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
}
.rec-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0;
}
.rec-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-gray-600);
  margin: 0;
  flex: 1;
}
.rec-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-gray-200);
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-gray-600);
}
.rec-card-read {
  color: var(--color-blue);
  font-weight: 600;
}

/* HUB CTA */
.rec-cta {
  padding: 80px 24px 100px;
  background: var(--color-gray-50);
}
.rec-cta-inner {
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-navy);
  color: #fff;
  border-radius: 16px;
  padding: 48px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.rec-cta-inner h3 {
  font-size: 24px;
  margin: 0 0 6px;
  color: #fff;
}
.rec-cta-inner p {
  margin: 0;
  color: rgba(255,255,255,0.72);
  font-size: 15px;
}
.rec-cta-btn {
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
}
.rec-cta-btn:hover {
  transform: translateY(-2px);
  color: var(--color-navy);
  box-shadow: 0 8px 20px rgba(212,168,83,0.35);
}

/* ============================================================
   ARTICLE PAGES
   ============================================================ */
.art-hero {
  background: linear-gradient(135deg, var(--color-navy-grad-start) 0%, var(--color-navy-grad-mid) 50%, var(--color-navy-grad-end) 100%);
  color: #fff;
  padding: 140px 24px 72px;
  position: relative;
}
.art-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.art-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color .2s;
}
.art-back:hover { color: var(--color-gold); }
.art-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}
.art-hero h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: #fff;
}
.art-hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin: 0 0 26px;
  font-weight: 400;
}
.art-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.art-meta-author { color: rgba(255,255,255,0.85); font-weight: 600; }
.art-meta-dot { opacity: .5; }

/* ARTICLE BODY */
.art-body-wrap {
  background: #fff;
  padding: 72px 24px 96px;
}
.art-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #1f2937;
}
.art-body h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.art-body h2:first-child { margin-top: 0; }
.art-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 36px 0 12px;
}
.art-body p {
  margin: 0 0 18px;
}
.art-body ul, .art-body ol {
  margin: 0 0 22px;
  padding-left: 24px;
}
.art-body li {
  margin-bottom: 10px;
}
.art-body li::marker { color: var(--color-blue); }
.art-body a {
  color: var(--color-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.art-body a:hover { color: var(--color-navy); }
.art-body strong { color: var(--color-navy); font-weight: 700; }
.art-body blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  color: var(--color-gray-700);
  font-style: italic;
}
.art-body hr {
  border: 0;
  border-top: 1px solid var(--color-gray-200);
  margin: 40px 0;
}
.art-body .callout {
  background: var(--color-light-blue);
  border-left: 4px solid var(--color-blue);
  padding: 20px 24px;
  border-radius: 8px;
  margin: 28px 0;
}
.art-body .callout p:last-child { margin-bottom: 0; }
.art-body .check-list {
  list-style: none;
  padding: 0;
}
.art-body .check-list li {
  padding-left: 32px;
  position: relative;
}
.art-body .check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

/* ARTICLE FOOTER CTA */
.art-foot {
  background: var(--color-gray-50);
  padding: 56px 24px;
  border-top: 1px solid var(--color-gray-200);
}
.art-foot-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.art-foot-inner h3 {
  font-size: 26px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.art-foot-inner p {
  color: var(--color-gray-600);
  margin: 0 0 24px;
  font-size: 16px;
}
.art-foot-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.art-foot-btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.art-foot-btn.is-primary {
  background: var(--color-green-whatsapp);
  color: #fff;
}
.art-foot-btn.is-secondary {
  background: #fff;
  color: var(--color-navy);
  border: 1px solid var(--color-gray-200);
}
.art-foot-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.10);
}

/* RELATED ARTICLES */
.art-related {
  background: #fff;
  padding: 72px 24px 96px;
  border-top: 1px solid var(--color-gray-200);
}
.art-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.art-related h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin: 0 0 24px;
}
.art-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.art-related-card {
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.art-related-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9,25,48,0.06);
}
.art-related-card .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
}
.art-related-card h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.3;
}

/* GLOSSARY TERM LINKS */
.art-body a.glossary-link,
.svc-card a.glossary-link,
.svc-service a.glossary-link,
a.glossary-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--color-blue);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.art-body a.glossary-link:hover,
a.glossary-link:hover {
  color: var(--color-blue);
  text-decoration-style: solid;
}

/* Glossary page: smooth scroll target highlight */
.art-body li:target {
  background: rgba(42,134,199,0.08);
  border-radius: 6px;
  padding: 8px 12px;
  margin-left: -12px;
  margin-right: -12px;
}

@media (max-width: 720px) {
  .rec-cta-inner { grid-template-columns: 1fr; padding: 36px 28px; text-align: center; }
  .art-body { font-size: 16px; }
  .art-body h2 { font-size: 24px; }
}
