/* ================================================================
   ESTIMADORPRO — SEO / AEO ARTICLE TEMPLATE STYLESHEET
   Ingeniería Alemana • Modo Oscuro Mate Antialiased • 0% Verde/Azul
   ================================================================ */

.seo-header-divider {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg, rgba(255, 94, 30, 0.85) 0%, rgba(255, 161, 51, 0.55) 50%, rgba(255, 94, 30, 0.15) 100%);
}

.site-header {
  flex-direction: column;
  justify-content: center;
  height: auto !important;
  padding-top: 12px;
  border-bottom: none !important;
}

.site-header .header-container {
  padding-bottom: 12px;
}

.site-logo .brand-logo-svg {
  height: 44px;
  width: auto;
  display: block;
}

.footer-brand-col .site-logo .brand-logo-svg {
  height: 50px;
}

/* ================================================================
   1. ARTICLE HERO & BREADCRUMBS
   ================================================================ */
.seo-article-hero {
  position: relative;
  padding: 48px 24px 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 94, 30, 0.09), transparent 70%),
    var(--bg-canvas);
}

.seo-hero-container {
  max-width: 1160px;
  margin: 0 auto;
}

.seo-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.seo-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.seo-breadcrumbs a:hover {
  color: var(--brand-amber-bolt);
}

.seo-breadcrumbs .crumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

.seo-breadcrumbs .crumb-current {
  color: var(--brand-amber-bolt);
}

.seo-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 7px;
  background: rgba(255, 94, 30, 0.08);
  border: 1px solid rgba(255, 94, 30, 0.42);
  color: var(--brand-amber-bolt);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.seo-article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.9px;
  color: #FFFFFF;
  max-width: 920px;
  margin-bottom: 16px;
}

.seo-article-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 24px;
}

.seo-meta-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--text-muted);
}

.seo-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.seo-meta-item svg {
  color: var(--brand-amber-bolt);
  flex-shrink: 0;
}

.seo-meta-item strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* ================================================================
   2. MAIN 2-COLUMN LAYOUT (CONTENT + STICKY SIDEBAR)
   ================================================================ */
.seo-layout-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 52px;
  align-items: start;
}

/* ================================================================
   3. EDITORIAL PROSE (MARKDOWN CONTENT)
   ================================================================ */
.seo-prose {
  font-family: var(--font-ui);
  font-size: 16.5px;
  line-height: 1.78;
  color: #94A3B8;
}

.seo-prose > *:first-child {
  margin-top: 0;
}

.seo-prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.24;
  margin: 46px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  scroll-margin-top: 96px;
}

.seo-prose h3 {
  font-family: var(--font-heading);
  font-size: 19.5px;
  font-weight: 700;
  color: var(--brand-amber-bolt);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin: 32px 0 12px;
  scroll-margin-top: 96px;
}

.seo-prose p {
  margin-bottom: 20px;
  color: #94A3B8;
}

.seo-prose strong {
  color: #E2E8F0;
  font-weight: 700;
}

.seo-prose em {
  color: #B4C2D4;
  font-style: italic;
}

.seo-prose a {
  color: var(--brand-amber-bolt);
  text-decoration: underline;
  text-decoration-color: rgba(255, 161, 51, 0.4);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.seo-prose a:hover {
  color: var(--brand-orange);
  text-decoration-color: var(--brand-orange);
}

.seo-prose ul,
.seo-prose ol {
  margin: 0 0 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-prose li {
  padding-left: 4px;
  color: #94A3B8;
}

.seo-prose li::marker {
  color: var(--brand-orange);
  font-weight: 700;
}

.seo-prose hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  margin: 40px 0;
}

/* Inline Code & Preformatted Formulas */
.seo-prose code {
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: #131822;
  border: 1px solid rgba(255, 161, 51, 0.22);
  color: var(--brand-amber-bolt);
  padding: 2px 7px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.seo-prose pre {
  background: #10141C;
  border: 1px solid rgba(255, 161, 51, 0.28);
  border-left: 3.5px solid var(--brand-orange);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0 28px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.seo-prose pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Blockquotes & Tactical Callouts */
.seo-prose blockquote {
  background: #11151E;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 3.5px solid var(--brand-amber-bolt);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 24px 0 28px;
  color: #B4C2D4;
}

.seo-prose blockquote p:last-child {
  margin-bottom: 0;
}

.seo-callout {
  background: #12161F;
  border: 1px solid rgba(255, 161, 51, 0.32);
  border-left: 4px solid var(--brand-amber-bolt);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 28px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.seo-callout.callout-warning {
  border-color: rgba(255, 94, 30, 0.42);
  border-left-color: var(--brand-orange);
  background: linear-gradient(180deg, rgba(255, 94, 30, 0.07) 0%, #12161F 100%);
}

.seo-callout.callout-tip {
  border-color: rgba(250, 204, 21, 0.38);
  border-left-color: var(--stage-done-gold);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.06) 0%, #12161F 100%);
}

.seo-callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-amber-bolt);
  margin-bottom: 10px;
}

.seo-callout.callout-warning .seo-callout-title {
  color: var(--brand-orange);
}

.seo-callout.callout-tip .seo-callout-title {
  color: var(--stage-done-gold);
}

.seo-callout p:last-child {
  margin-bottom: 0;
}

/* Data Tables (Tabular Nums) */
.seo-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 32px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #10141C;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.seo-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums lining-nums;
}

.seo-prose thead th {
  background: #161B26;
  color: var(--brand-amber-bolt);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.seo-prose tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  vertical-align: top;
}

.seo-prose tbody tr:last-child td {
  border-bottom: none;
}

.seo-prose tbody tr:hover td {
  background: rgba(255, 161, 51, 0.03);
}

/* ================================================================
   4. STICKY SIDEBAR (COMPACT TOC + CHALÁN CONVERSION CARD — 100% IN VIEWPORT)
   ================================================================ */
.seo-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-chalan-cta-card {
  background: linear-gradient(180deg, #161B24 0%, #0F131A 100%);
  border: 1.5px solid rgba(255, 94, 30, 0.6);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.seo-chalan-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  text-align: left;
}

.seo-chalan-avatar {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

.seo-chalan-pill {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--brand-amber-bolt);
  background: rgba(255, 161, 51, 0.1);
  border: 1px solid rgba(255, 161, 51, 0.35);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 5px;
}

.seo-chalan-cta-card h4 {
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0;
}

.seo-chalan-cta-card p {
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-align: left;
}

.seo-chalan-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  background: var(--brand-orange);
  color: #101318 !important;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(255, 94, 30, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.seo-chalan-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.seo-chalan-micro {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
}

.seo-toc-card {
  background: #11151E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 15px 16px;
}

.seo-toc-header {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-amber-bolt);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.seo-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seo-toc-list a {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 9px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.seo-toc-list a:hover,
.seo-toc-list a.active {
  color: #FFFFFF;
  border-left-color: var(--brand-orange);
  background: rgba(255, 94, 30, 0.07);
  border-radius: 0 5px 5px 0;
}

/* ================================================================
   5. BOTTOM ARTICLE G.U.T.S. CTA BOX & RELATED ARTICLES
   ================================================================ */
.seo-bottom-cta {
  margin-top: 52px;
  background: #10141C;
  border: 1.5px solid rgba(255, 94, 30, 0.65);
  border-radius: 18px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
}

.seo-bottom-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin: 0 0 14px;
}

.seo-bottom-cta p {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 24px;
}

.seo-related-grid {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-related-grid h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 18px;
}

.seo-related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.seo-related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #11151E;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.seo-related-card:hover {
  border-color: var(--brand-amber-bolt);
  transform: translateY(-2px);
}

.seo-related-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-amber-bolt);
  margin-bottom: 6px;
}

.seo-related-card h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 10px;
}

.seo-related-more {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-orange);
}

@media (max-width: 960px) {
  .seo-layout-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .seo-sidebar {
    position: static;
  }
  .seo-related-cards {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   6. E-E-A-T AUTHOR & TECHNICAL REVIEW BOX
   ================================================================ */
.seo-eeat-box {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #11151E;
  border: 1px solid rgba(255, 161, 51, 0.25);
  border-radius: 12px;
}

.seo-eeat-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 161, 51, 0.1);
  border: 1px solid rgba(255, 161, 51, 0.35);
  color: var(--brand-amber-bolt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seo-eeat-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seo-eeat-copy strong {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #E2E8F0;
}

.seo-eeat-copy span {
  font-size: 12px;
  color: #94A3B8;
  line-height: 1.45;
}
