/* ============================================
   Estilos compartidos para artículos del blog
   Charbel Joseph Realtor
============================================ */

:root {
  --bg: #F7F9FC;
  --bg-soft: #E8EEF5;
  --bg-dark: #0B1E3F;
  --bg-darker: #07142B;
  --ink: #0B1E3F;
  --ink-soft: #3A4A66;
  --ink-mute: #6B7790;
  --gold: #C9A961;
  --gold-deep: #8B6F3D;
  --line: rgba(11, 30, 63, 0.10);
  --line-soft: rgba(11, 30, 63, 0.05);
  --display: 'Cormorant Garamond', Georgia, serif;
  --body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid var(--line-soft);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo span {
  color: var(--gold);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold-deep); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* === ARTICLE HEADER === */
.article-header {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: "";
  position: absolute;
  top: 100px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.article-header .container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--gold-deep); }

.breadcrumb-separator { color: var(--gold); }

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 28px;
}

.article-eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.article-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 32px;
}

.article-title .accent { color: var(--gold-deep); }

.article-lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  font-weight: 400;
  margin-bottom: 36px;
}

.article-meta {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-mute);
  flex-wrap: wrap;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-soft);
  background-size: cover;
  background-position: center;
}

.article-author strong {
  color: var(--ink);
  font-weight: 500;
}

.article-meta-divider {
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* === ARTICLE BODY === */
.article-body {
  padding: 40px 0 100px;
}

.article-body .container {
  max-width: 760px;
}

.article-body h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 56px 0 24px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h2 .accent { color: var(--gold-deep); }

.article-body h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin: 40px 0 18px;
}

.article-body p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 22px;
}

.article-body p.intro {
  font-size: 20px;
  color: var(--ink);
  font-weight: 400;
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.article-body a:hover { color: var(--ink); }

.article-body ul, .article-body ol {
  margin: 22px 0 28px;
  padding-left: 0;
  list-style: none;
}

.article-body ul li, .article-body ol li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 14px;
  height: 1px;
  background: var(--gold);
}

.article-body ol {
  counter-reset: ol-counter;
}

.article-body ol li {
  counter-increment: ol-counter;
  padding-left: 40px;
}

.article-body ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  color: var(--gold-deep);
}

/* === PULL QUOTE === */
.pull-quote {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.4;
  color: var(--ink);
  padding: 32px 0 32px 36px;
  border-left: 3px solid var(--gold);
  margin: 40px 0;
  font-weight: 500;
}

/* === INFO BOX === */
.info-box {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  padding: 28px 32px;
  margin: 36px 0;
  border-radius: 4px;
}

.info-box h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.info-box p {
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.info-box p:last-child { margin-bottom: 0; }

/* === COMPARISON TABLE === */
.comparison-table {
  margin: 36px 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.comparison-table thead {
  background: var(--ink);
  color: var(--bg);
}

.comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}

.comparison-table tr:nth-child(even) td {
  background: var(--bg-soft);
}

.comparison-table td:first-child {
  font-weight: 500;
  color: var(--ink);
}

/* === FAQ === */
.faq-section {
  margin: 60px 0;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq-item {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-soft);
}

.faq-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.faq-item h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
}

.faq-item p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* === AUTHOR BOX === */
.author-box {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 48px 40px;
  border-radius: 6px;
  margin: 60px 0 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

@media (max-width: 700px) {
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
  }
}

.author-box-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 2px solid var(--gold);
}

.author-box-text { flex: 1; }

.author-box-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.author-box h4 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 10px;
}

.author-box p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(247, 249, 252, 0.8);
  margin-bottom: 16px;
}

.author-box-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (max-width: 700px) {
  .author-box-links { justify-content: center; }
}

.author-box-links a {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: all 0.3s;
}

.author-box-links a:hover {
  color: var(--bg);
  border-color: var(--bg);
}

/* === CTA BOX === */
.cta-box {
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
  border: 1px solid var(--line);
  padding: 48px 40px;
  border-radius: 6px;
  margin: 60px 0;
  text-align: center;
}

.cta-box h3 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.2;
}

.cta-box p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  background: var(--gold-deep);
  transform: translateY(-2px);
  color: var(--bg);
  text-decoration: none;
}

/* === DISCLAIMER === */
.disclaimer {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 40px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.6;
}

.disclaimer strong {
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === RELATED ARTICLES === */
.related-section {
  padding: 100px 0;
  background: var(--bg-soft);
}

.related-section .container {
  max-width: 1280px;
}

.related-header {
  margin-bottom: 40px;
}

.related-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}

.related-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 800px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
}

.related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.related-card-body {
  padding: 28px 28px 32px;
}

.related-card-meta {
  font-size: 12px;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}

.related-card h4 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.related-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* === FOOTER === */
footer {
  background: var(--bg-darker);
  color: rgba(247, 249, 252, 0.7);
  padding: 80px 0 40px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.footer-brand span {
  color: var(--gold);
  font-style: italic;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(247, 249, 252, 0.55);
  max-width: 320px;
  margin-bottom: 24px;
}

.footer-broker {
  background: rgba(247, 249, 252, 0.04);
  border: 1px solid rgba(247, 249, 252, 0.08);
  border-radius: 4px;
  padding: 14px 18px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-broker-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(247, 249, 252, 0.5);
}

.footer-broker img {
  height: 32px;
  width: auto;
}

.footer-col h5 {
  font-family: var(--body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(247, 249, 252, 0.45);
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: rgba(247, 249, 252, 0.85);
  text-decoration: none;
  padding: 7px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(247, 249, 252, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(247, 249, 252, 0.4);
}

.legal-disclaimer {
  max-width: 700px;
  line-height: 1.6;
}

/* Reading time indicator at top */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 200;
}

.reading-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.1s;
}
