/* ====================================================
   PRIMER PLANO — BLOG STYLES  v2
   blog.css — importado solo en páginas de blog
   ==================================================== */

/* ========================
   READING PROGRESS BAR
   ======================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-dark), var(--emerald), var(--emerald-light));
  z-index: 2000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(31, 126, 92, 0.6);
}

/* ========================
   BLOG HERO
   ======================== */
.blog-hero {
  position: relative;
  background: var(--navy-dark);
  padding: calc(var(--nav-height) + 64px) 24px 80px;
  overflow: hidden;
}

/* Layered decorative background */
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 5% 50%, rgba(31, 126, 92, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 95% 20%, rgba(31, 126, 92, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grid texture */
.blog-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 126, 92, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 126, 92, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

.blog-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  margin-bottom: 32px;
}

.breadcrumb a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--emerald); }
.breadcrumb-sep { color: var(--navy-border); font-size: 0.65rem; }
.breadcrumb-current { color: var(--gray-500); }

/* ── Meta row ── */
.post-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.post-category {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-dark);
  background: linear-gradient(135deg, var(--emerald-dark), var(--emerald-light));
  padding: 5px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 12px rgba(31, 126, 92, 0.3);
}

.post-meta-info {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 0.78rem;
  color: var(--gray-700);
}

.post-meta-info span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  border-right: 1px solid var(--navy-border);
}

.post-meta-info span:first-child { padding-left: 0; }
.post-meta-info span:last-child  { border-right: none; }

/* ── Title ── */
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.post-title-line {
  display: block;
  overflow: hidden;
}

/* ── Gold separator ── */
.post-title-sep {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.post-title-sep-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, var(--emerald), transparent);
}

.post-title-sep-diamond {
  width: 8px;
  height: 8px;
  background: var(--emerald);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Lead quote ── */
.post-lead {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gray-300);
  line-height: 1.65;
  font-style: italic;
  position: relative;
  padding: 0 0 0 28px;
}

.post-lead::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald), var(--emerald-dark));
  border-radius: 2px;
}

/* ========================
   LAYOUT
   ======================== */
.blog-layout {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* Sidebar hidden to focus on reading */
aside.sidebar {
  display: none;
}

/* ========================
   POST CONTENT
   ======================== */
.post-content { min-width: 0; }

.post-intro {
  font-size: 1.15rem;
  color: var(--gray-100);
  line-height: 1.8;
  margin-bottom: 56px;
  padding: 0;
  background: transparent;
  border: none;
}

.post-section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.post-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald-dark) 0%, transparent 100%);
  opacity: 0.5;
}

/* ========================
   LINEAMIENTO CARDS  (redesigned)
   ======================== */
.lineamiento {
  position: relative;
  background: transparent;
  padding: 0 0 32px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--navy-border);
}

.lineamiento:last-child {
  border-bottom: none;
}

/* Top accent line that fills on hover */
.lineamiento::before {
  display: none;
}

.lineamiento-inner {
  display: block;
}

.lineamiento-num-col {
  display: inline-block;
  margin-right: 12px;
}

.lineamiento-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--emerald);
}

/* Right content column */
.lineamiento-body {
  display: inline;
}

.lineamiento-title {
  display: inline;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.4;
}

.lineamiento-why {
  display: block;
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--gray-300);
  line-height: 1.8;
}

.lineamiento-why-label {
  color: var(--emerald);
  font-style: italic;
  font-weight: 600;
  margin-right: 4px;
}

/* Note block */
.lineamiento-note {
  margin-top: 14px;
  padding: 12px 16px;
  background: rgba(31, 126, 92, 0.06);
  border: 1px solid rgba(31, 126, 92, 0.18);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.lineamiento-note strong { color: var(--emerald-light); }

/* ========================
   BONUS SECTION
   ======================== */
.bonus-section { margin-top: 56px; }

.bonus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bonus-card {
  position: relative;
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-md);
  padding: 22px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.bonus-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-dark), var(--emerald-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.bonus-card:hover {
  border-color: rgba(31, 126, 92, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.bonus-card:hover::after { transform: scaleX(1); }

.bonus-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}

.bonus-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 8px;
}

.bonus-text {
  font-size: 0.865rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========================
   END CTA BOX
   ======================== */
.post-cta-box {
  margin-top: 64px;
  position: relative;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(19, 34, 56, 0.95));
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  text-align: center;
  overflow: hidden;
}

.post-cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(37, 211, 102, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.post-cta-box > * { position: relative; z-index: 1; }

.post-cta-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #25D366;
  margin-bottom: 16px;
}

.post-cta-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-cta-text {
  font-size: 0.97rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  line-height: 1.75;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.btn-whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 4px 28px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-base);
}

.btn-whatsapp-cta:hover {
  background: #20BA5A;
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.6);
  color: #fff;
}

/* ========================
   SIDEBAR
   ======================== */
.blog-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition-base);
}

.sidebar-card:hover { border-color: rgba(31, 126, 92, 0.2); }

.sidebar-title {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reading progress mini */
.sidebar-progress {
  margin-bottom: 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.progress-bar-wrap {
  height: 4px;
  background: var(--navy-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--emerald-dark), var(--emerald-light));
  border-radius: var(--radius-full);
  transition: width 0.2s linear;
}

/* Table of contents */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--gray-700);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1.4;
  border-left: 2px solid transparent;
}

.toc-link:hover,
.toc-link.toc-active {
  color: var(--emerald-light);
  background: var(--emerald-subtle);
  border-left-color: var(--emerald);
}

.toc-num {
  color: var(--emerald);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.7rem;
  min-width: 18px;
  margin-top: 1px;
}

/* Share */
.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--navy-border);
  color: var(--gray-500);
  background: transparent;
}

.share-btn:hover {
  border-color: var(--emerald);
  color: var(--emerald-light);
  background: var(--emerald-subtle);
  transform: translateX(3px);
}

/* Key takeaways box */
.sidebar-takeaways { }

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--navy-border);
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

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

.takeaway-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
  margin-top: 5px;
}

/* Back link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-700);
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  background: transparent;
}

.back-to-blog:hover {
  color: var(--emerald-light);
  border-color: rgba(31, 126, 92, 0.4);
  background: var(--emerald-subtle);
  transform: translateX(-3px);
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 260px;
    gap: 48px;
  }
}

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

  .blog-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .back-to-blog { grid-column: 1 / -1; }
  .bonus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blog-hero { padding: calc(var(--nav-height) + 40px) 20px 56px; }

  .lineamiento-inner { flex-direction: column; }

  .lineamiento-num-col {
    width: 100%;
    height: 44px;
    border-right: none;
    border-bottom: 1px solid var(--navy-border);
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 20px;
    gap: 10px;
  }

  .blog-sidebar { grid-template-columns: 1fr; }

  .post-cta-box { padding: 36px 24px; }
}
