/* =====================================================
   NAVIA GLOBAL — Blog Posts Enhanced Styles
   Versión 1.0 · 2026
   ===================================================== */

/* ── Reading Progress Bar ────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, #1ABC9C, #16A085);
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ── Navbar upgrade ────────────────────────── */
.header {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(27,75,140,0.95) !important;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* ── Hero improvements ───────────────────── */
.hero {
  background: linear-gradient(135deg, #0F2447 0%, #1B4B8C 50%, #1e6b5e 100%) !important;
}
.hero h1 { text-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.hero .meta {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  border-radius: 30px;
  display: inline-flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* ── TOC upgrades ──────────────────────────── */
.toc {
  background: linear-gradient(135deg, #f0f7ff, #e8f8f5) !important;
  border-left: 4px solid #1ABC9C !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
  box-shadow: 0 4px 20px rgba(26,188,156,0.10);
}
.toc h3 {
  color: #1B4B8C !important;
  font-size: 1.1rem !important;
  margin-bottom: 16px !important;
}
.toc h3::before { content: '📋 '; }
.toc ol { counter-reset: toc-counter; list-style: none; padding: 0; }
.toc ol li {
  counter-increment: toc-counter;
  padding: 6px 0;
  border-bottom: 1px solid rgba(26,188,156,0.12);
}
.toc ol li:last-child { border-bottom: none; }
.toc ol li a {
  color: #1B4B8C !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  background: linear-gradient(135deg, #1ABC9C, #16A085);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}
.toc ol li a:hover { color: #1ABC9C !important; }

/* ── Highlight / Info boxes ─────────────────── */
.highlight-box {
  background: linear-gradient(135deg, #e8f8f5, #d4f3ee) !important;
  border: 1px solid rgba(26,188,156,0.25) !important;
  border-left: 5px solid #1ABC9C !important;
  border-radius: 16px !important;
  padding: 28px 32px !important;
}
.info-box {
  border-radius: 16px !important;
  padding: 28px 32px !important;
  border: 1px solid rgba(27,75,140,0.15) !important;
}
.warning-box {
  border-radius: 16px !important;
  padding: 28px 32px !important;
}

/* ── CTA boxes (mid-article) ─────────────────── */
.cta-box {
  background: linear-gradient(135deg, #1B4B8C 0%, #1e6b5e 100%) !important;
  border-radius: 20px !important;
  padding: 36px 40px !important;
  text-align: center;
  box-shadow: 0 12px 40px rgba(27,75,140,0.25) !important;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.cta-box p { color: rgba(255,255,255,0.9) !important; font-size: 1.15rem !important; margin-bottom: 20px !important; }
.cta-button {
  background: linear-gradient(135deg, #1ABC9C, #16A085) !important;
  border-radius: 30px !important;
  padding: 16px 40px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px rgba(26,188,156,0.4) !important;
  transition: all 0.3s ease !important;
  display: inline-block;
}
.cta-button:hover { transform: translateY(-3px) !important; box-shadow: 0 10px 30px rgba(26,188,156,0.5) !important; }

/* ── Content images ────────────────────────── */
.content-image, .section-image, .hero-image {
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
  display: block;
  width: 100%;
}

/* ── Headings ──────────────────────────────── */
.content h2 {
  color: #1B4B8C;
  border-bottom: 3px solid #1ABC9C;
  padding-bottom: 10px;
  margin-top: 50px !important;
  scroll-margin-top: 100px;
}

/* ── Back-to-top button ───────────────────── */
#back-to-top {
  position: fixed;
  bottom: 100px; right: 30px;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #1B4B8C, #1ABC9C);
  color: white;
  border: none; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(27,75,140,0.3);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  text-decoration: none;
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(27,75,140,0.4); }

/* ── FAQ ────────────────────────────────────── */
.faq-item {
  border-radius: 14px !important;
  border: 1px solid #e8f0fe !important;
  margin-bottom: 16px !important;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: 0 4px 20px rgba(27,75,140,0.10); }

/* ── Share section ────────────────────────── */
.share-section {
  background: #f0f7ff; border-radius: 16px;
  padding: 28px 32px; text-align: center; margin: 48px 0;
}
.share-section h4 { color: #1B4B8C; font-size: 1.1rem; margin-bottom: 16px; }
.share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 24px;
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s; border: none; cursor: pointer;
}
.share-btn-wa { background: #25D366; color: white; }
.share-btn-wa:hover { background: #1da851; transform: translateY(-2px); }
.share-btn-copy { background: #1B4B8C; color: white; }
.share-btn-copy:hover { background: #0F2447; transform: translateY(-2px); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .cta-box { padding: 24px 20px !important; }
  .toc { padding: 20px 16px !important; }
  .highlight-box { padding: 20px 16px !important; }
  .hero .meta { flex-direction: column; gap: 12px; }
  #back-to-top { bottom: 90px; right: 16px; }
}
