/* ============================================================
   HUELLA AGENCIA DIGITAL — Blog Post Styles
   ============================================================ */

/* ── BREADCRUMB ─────────────────────────────────────────── */
.post-breadcrumb {
  padding-top: calc(80px + var(--space-md));
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.breadcrumb-list a:hover {
  color: var(--accent);
}

.breadcrumb-list .sep {
  color: var(--line-strong);
}

.breadcrumb-list li:last-child {
  color: var(--accent);
}

/* ── POST HERO ──────────────────────────────────────────── */
.post-hero {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--line);
}

.post-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.post-hero-content {}

.post-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(21, 126, 251, 0.12);
  border: 1px solid rgba(21, 126, 251, 0.25);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: var(--space-sm);
}

.post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.post-excerpt {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: var(--space-md);
  max-width: 520px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-meta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #7B61FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.post-meta-name {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.post-meta-sep {
  width: 1px;
  height: 20px;
  background: var(--line-strong);
}

.post-meta-date,
.post-meta-read {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero image */
.post-hero-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.post-hero-img-fill {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* ── POST LAYOUT ────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-lg);
  padding-block: var(--space-lg);
  align-items: start;
}

/* ── ARTICLE BODY ───────────────────────────────────────── */
.post-body {
  min-width: 0;
}

.post-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

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

.post-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.35;
  color: var(--text-primary);
  margin-top: var(--space-md);
  margin-bottom: 12px;
}

.post-body p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.85;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: var(--space-sm);
}

.post-body ul,
.post-body ol {
  margin-bottom: var(--space-sm);
  padding-left: 1.4rem;
}

.post-body li {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 6px;
}

.post-body li::marker {
  color: var(--accent);
}

.post-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Pull quote */
.post-quote {
  border-left: 3px solid var(--accent);
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-block: var(--space-md);
}

.post-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: 8px !important;
}

.post-quote cite {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-style: normal;
}

/* Highlight box */
.post-highlight {
  background: rgba(21, 126, 251, 0.07);
  border: 1px solid rgba(21, 126, 251, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-block: var(--space-md);
}

.post-highlight-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.post-highlight ul {
  margin-bottom: 0 !important;
}

/* Divider */
.post-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin-block: var(--space-lg);
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.sidebar-toc-title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.sidebar-toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-toc-list a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background 0.2s, color 0.2s;
}

.sidebar-toc-list a:hover {
  background: rgba(21, 126, 251, 0.08);
  color: var(--accent);
}

.sidebar-toc-list a.active {
  background: rgba(21, 126, 251, 0.12);
  color: var(--accent);
  font-weight: 600;
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--accent) 0%, #0D62D4 100%);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.sidebar-cta-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 10px;
}

.sidebar-cta-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: var(--space-sm);
}

.sidebar-cta-btn {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── RELATED POSTS ──────────────────────────────────────── */
.post-related {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--line);
}

.post-related-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

/* ── POST CTA BANNER ────────────────────────────────────── */
.post-cta-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-block: var(--space-xl);
}

.post-cta-banner-text {}

.post-cta-banner-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.post-cta-banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.post-cta-banner-btn {
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.post-cta-banner-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .sidebar-toc {
    display: none;
  }

  .post-hero-inner {
    grid-template-columns: 1fr;
  }

  .post-hero-image {
    display: none;
  }

  .post-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .post-meta {
    gap: 12px;
  }
}
