/* Editorial guides for SiFactura Argentina. */
.guide-page {
  --guide-accent: #525c8f;
  --guide-soft: #f0eff4;
  background: var(--canvas);
}

.guide-nav-current { color: var(--brand-deep) !important; }

.guides-hero {
  padding: 118px 0 110px;
  background: radial-gradient(ellipse 65% 30% at 50% 94%, rgba(116, 114, 171, .08), transparent 75%), var(--canvas);
  border-bottom: 1px solid var(--line);
}

.guides-hero-inner { max-width: 1100px; text-align: center; }
.guides-hero .eyebrow { display: inline-flex; margin: 0 auto; }
.guides-hero h1 { max-width: 1060px; margin: 30px auto 24px; font-size: clamp(3rem, 4.8vw, 4.85rem); line-height: 1.04; text-wrap: balance; }
.guides-hero .hero-lead { max-width: 820px; margin: 0 auto; font-size: clamp(1.05rem, 1.45vw, 1.28rem); text-align: center; }

.guides-section { padding: 88px 0 100px; background: var(--soft); }
.guides-heading { max-width: 820px; margin: 0 auto 40px; text-align: center; }
.guides-heading > div { max-width: none; }
.guides-heading h2 { margin-bottom: 12px; }
.guides-heading p { margin-bottom: 0; }
.guide-count { display: block; margin-top: 14px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.guides-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; min-height: 330px; flex-direction: column; padding: 29px; border: 1px solid var(--line); border-radius: 16px; background: #fdfdfb; transition: transform .2s, border-color .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-2px); border-color: #adb5d6; box-shadow: 0 14px 30px rgba(35, 39, 71, .06); }
.guide-card-meta, .article-meta { display: flex; flex-wrap: wrap; gap: 9px 16px; color: var(--muted); font-size: .77rem; font-weight: 700; }
.guide-card-tag { color: #525c8f; text-transform: uppercase; letter-spacing: .08em; }
.guide-card h3 { margin: 23px 0 13px; font-size: clamp(1.35rem, 1.8vw, 1.72rem); }
.guide-card p { margin-bottom: 25px; color: var(--muted); font-size: .95rem; }
.guide-card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; color: var(--brand-deep); font-weight: 800; }

.guides-method { padding: 72px 0; border-top: 1px solid var(--line); background: var(--canvas); }
.guides-method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7%; align-items: start; }
.guides-method-grid h2 { margin-bottom: 18px; }
.guides-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guides-principles article { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fdfdfb; }
.guides-principles span { color: #525c8f; font-size: .75rem; font-weight: 800; }
.guides-principles h3 { margin: 16px 0 9px; font-size: 1.1rem; }
.guides-principles p { margin: 0; color: var(--muted); font-size: .88rem; }

.article-hero { padding: 66px 0 60px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 87% 8%, rgba(115, 116, 175, .07), transparent 37%), var(--canvas); }
.article-hero .breadcrumbs { margin-bottom: 40px; }
.article-hero-inner { max-width: 930px; }
.article-kicker { display: inline-flex; padding: 8px 12px; border: 1px solid #e0dfe8; border-radius: 999px; background: #f4f3f8; color: #525c8f; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-hero h1 { margin: 22px 0 20px; font-size: clamp(2.6rem, 5.1vw, 4.9rem); line-height: 1.03; text-wrap: balance; }
.article-deck { max-width: 800px; margin-bottom: 26px; font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 290px; gap: 72px; align-items: start; padding: 62px 0 96px; }
.article-content { min-width: 0; }
.article-answer { margin-bottom: 42px; padding: 27px 29px; border: 1px solid #dedde6; border-left: 4px solid #69709a; border-radius: 16px; background: #f3f2f5; }
.article-answer strong { display: block; margin-bottom: 8px; color: #525c8f; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.article-answer p { margin: 0; color: var(--ink); font-size: 1.08rem; line-height: 1.62; }
.article-content h2 { margin: 52px 0 18px; font-size: clamp(1.75rem, 3vw, 2.5rem); scroll-margin-top: 110px; }
.article-content h3 { margin: 34px 0 13px; font-size: 1.35rem; }
.article-content p, .article-content li { color: var(--ink-soft); }
.article-content p { margin-bottom: 20px; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-left: 23px; }
.article-content li { margin-bottom: 10px; padding-left: 4px; }
.article-content a:not(.button) { color: var(--brand-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-note { margin: 30px 0; padding: 22px 24px; border: 1px solid #dedbd3; border-radius: 14px; background: #f5f4f1; color: #4f4c44; }
.article-note strong { color: #3f3d38; }
.article-warning { border-color: #ddd9e1; background: #f3f2f5; color: #4c4954; }
.article-checklist { display: grid; gap: 10px; margin: 24px 0 30px !important; padding: 0 !important; list-style: none; }
.article-checklist li { position: relative; margin: 0; padding: 14px 16px 14px 46px; border: 1px solid var(--line); border-radius: 13px; background: #fdfdfb; }
.article-checklist li::before { content: "✓"; position: absolute; left: 15px; top: 14px; display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: #e9e9f0; color: #525c8f; font-size: .75rem; font-weight: 900; }
.article-table-wrap { margin: 26px 0 34px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.article-table { width: 100%; border-collapse: collapse; background: #fdfdfb; font-size: .9rem; }
.article-table th, .article-table td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-table th { background: #f3f2f5; color: var(--ink); font-weight: 800; }
.article-table tr:last-child td { border-bottom: 0; }
.article-steps { list-style: none; counter-reset: guide-step; margin: 26px 0 34px !important; padding: 0 !important; }
.article-steps li { position: relative; min-height: 58px; margin-bottom: 16px; padding: 2px 0 0 65px; }
.article-steps li::before { counter-increment: guide-step; content: counter(guide-step, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; width: 46px; height: 46px; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; font-size: .76rem; font-weight: 800; }
.article-steps strong { display: block; margin-bottom: 4px; color: var(--ink); }
.article-source-list { margin-top: 24px !important; padding: 0 !important; list-style: none; }
.article-source-list li { margin-bottom: 11px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fdfdfb; }
.article-disclaimer { margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted) !important; font-size: .83rem; }

.article-sidebar { position: sticky; top: 112px; }
.article-toc, .article-help { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fdfdfb; }
.article-toc strong, .article-help strong { display: block; margin-bottom: 13px; font-size: .83rem; letter-spacing: .06em; text-transform: uppercase; }
.article-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.article-toc a:hover { color: var(--brand-deep); }
.article-help { margin-top: 14px; border-color: #30364f; background: #242a42; color: #fff; }
.article-help p { color: #ced8ec; font-size: .86rem; }
.article-help .button { width: 100%; min-height: 44px; padding-inline: 12px; }

.related-guides { padding: 76px 0; border-top: 1px solid var(--line); background: var(--soft); }
.related-guides h2 { margin-bottom: 27px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.related-card { display: flex; min-height: 180px; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fdfdfb; }
.related-card span { color: #525c8f; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.related-card h3 { margin: 15px 0 22px; font-size: 1.13rem; }
.related-card b { margin-top: auto; color: var(--brand-deep); font-size: .86rem; }

@media (max-width: 1060px) {
  .guides-method-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .article-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .article-help { margin-top: 0; }
}

@media (max-width: 760px) {
  .guides-hero { padding: 74px 0 70px; }
  .guides-grid, .guides-principles, .related-grid { grid-template-columns: 1fr; }
  .article-hero { padding-top: 40px; }
  .article-hero .breadcrumbs { margin-bottom: 30px; }
  .article-layout { padding-top: 42px; }
  .article-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .guide-card { min-height: 0; padding: 23px; }
  .article-answer { padding: 22px; }
  .article-table { min-width: 620px; }
}
