/* ══════════════════════════════════════════════════════════════════
   post.css — CSS específico de post.php
   ══════════════════════════════════════════════════════════════════ */

/* ── BREADCRUMB ── */
.breadcrumb { padding-top: 104px; padding-bottom: 0; }
.breadcrumb-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mid); padding: 20px 0;
}
.breadcrumb-inner a { color: var(--mid); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--mint); }
.breadcrumb-inner .sep { color: var(--line); }
.breadcrumb-inner .current { color: var(--ink); }

/* ── POST HEADER ── */
.post-header-section { padding: 120px 0 56px; border-bottom: 1px solid var(--line); }
.post-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dim); margin-bottom: 16px; }
.post-cat::before { content: ''; width: 14px; height: 2px; background: var(--mint); display: block; }
.post-title { font-size: clamp(1.9rem,4.5vw,3.2rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.08; margin-bottom: 20px; }
.post-intro { font-size: 1.05rem; color: var(--mid); line-height: 1.7; max-width: 640px; margin-bottom: 32px; }

/* ── META BAR ── */
.post-meta-bar { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 0; flex-wrap: wrap; }
.post-author-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.post-author-name { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.post-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.post-meta-item { font-size: .82rem; color: var(--mid); }
.post-share { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.post-share-btn { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s; color: var(--mid); }
.post-share-btn:hover { border-color: var(--mint); color: var(--mint); }
.post-share-btn svg { width: 14px; height: 14px; fill: currentColor; }

/* ── FEATURED IMAGE ── */
.post-featured-img { margin: 48px 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 21/9; }
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ── POST LAYOUT 2 COL ── */
.post-layout { display: grid; grid-template-columns: 1fr 260px; gap: 64px; align-items: start; padding-bottom: 80px; }
.post-sidebar { position: sticky; top: 104px; }

/* ── CONTENIDO ── */
.post-content { font-size: 1rem; color: var(--ink); line-height: 1.85; }
.post-content p { margin-bottom: 24px; }
.post-content h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin: 44px 0 16px; line-height: 1.2; }
.post-content h3 { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.post-content h4 { font-size: 1rem; font-weight: 700; color: var(--ink); margin: 24px 0 10px; }
.post-content blockquote { border-left: 3px solid var(--mint); padding: 20px 24px; background: var(--mint-bg); border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 32px 0; font-style: italic; color: var(--mid); }
.post-content blockquote p { margin: 0; }
.post-content ul { list-style: none; margin: 0 0 24px; }
.post-content ul li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.7; margin-bottom: 10px; }
.post-content ul li::before { content: '→'; color: var(--mint); font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.post-content ol { margin: 0 0 24px 20px; }
.post-content ol li { margin-bottom: 10px; line-height: 1.7; }
.post-content a { color: var(--mint-dim); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.post-content a:hover { color: var(--ink); }
.post-content img { border-radius: var(--r-md); margin: 32px 0; max-width: 100%; height: auto; display: block; }
.post-content code { background: var(--off); padding: 2px 6px; border-radius: 4px; font-size: .88em; font-family: monospace; }
.post-content pre { background: var(--ink-soft); color: rgba(255,255,255,.85); padding: 24px; border-radius: var(--r-md); overflow-x: auto; margin: 32px 0; font-size: .88rem; line-height: 1.6; }
.post-content pre code { background: none; padding: 0; font-size: inherit; }
.post-content figure { margin: 32px 0; }
.post-content figcaption { font-size: .78rem; color: var(--mid); text-align: center; margin-top: 10px; }

/* ── VÍDEOS EMBEBIDOS ── */
.post-content .wp-block-embed,
.post-content .wp-video,
.post-content .video-container { margin: 32px 0; }
.post-content .wp-block-embed__wrapper,
.post-content .wp-video-shortcode-wrap { position: relative; padding-bottom: 56.25%; height: 0 !important; overflow: hidden; border-radius: var(--r-md); }
.post-content .wp-block-embed__wrapper iframe,
.post-content .wp-block-embed__wrapper video { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none; max-width: none; }
.post-content > iframe,
.post-content p > iframe { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16/9; border: none; border-radius: var(--r-md); margin: 32px 0; }
.post-content iframe { max-width: 100%; }

/* ── TAGS ── */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-tag { display: inline-block; padding: 5px 14px; border-radius: 50px; border: 1.5px solid var(--line); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); transition: all .2s; }
.post-tag:hover { border-color: var(--mint); color: var(--mint-dim); }

/* ── SIDEBAR ── */
.sidebar-card { background: var(--off); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; }
.sidebar-title { font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 14px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a { display: block; font-size: .82rem; color: var(--mid); padding: 6px 10px; border-radius: var(--r-sm); transition: all .2s; border-left: 2px solid transparent; }
.toc-list a:hover { color: var(--ink); background: var(--white); }
.toc-list a.active { background: var(--white); color: var(--ink); font-weight: 600; border-left-color: var(--mint); }
.sidebar-author-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; filter: grayscale(1); margin-bottom: 12px; }
.sidebar-author-name { font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.sidebar-author-role { font-size: .75rem; color: var(--mid); }
.sidebar-cta { background: var(--ink); border-color: var(--ink); }
.sidebar-cta .sidebar-title { color: rgba(255,255,255,.5); }
.sidebar-cta p { font-size: .82rem; color: rgba(255,255,255,.6); line-height: 1.6; margin-bottom: 16px; }
.sidebar-cta-btn { display: block; text-align: center; background: var(--mint); color: var(--ink); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; padding: 11px 20px; border-radius: 50px; transition: background .2s; }
.sidebar-cta-btn:hover { background: var(--mint-dim); }

/* ── POSTS RELACIONADOS ── */
.relacionados { background: var(--off); padding: 64px 0; }
.relacionados-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; }
.relacionados-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post-card { background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: all .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--mint); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(18,227,188,.08); }
.post-card-img { background: var(--off); overflow: hidden; aspect-ratio: 16/9; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mint-dim); margin-bottom: 8px; }
.post-card-cat::before { content: ''; width: 14px; height: 2px; background: var(--mint); display: block; }
.post-card-title { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -.02em; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: .68rem; color: var(--mid); padding-top: 14px; border-top: 1px solid var(--line); margin-top: 16px; }
.post-card-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); flex-shrink: 0; display: inline-block; }
.post-card-meta .sep { color: var(--line); }

/* ── CTA FINAL ── */
.post-cta { background: var(--mint); padding: 72px 0; }
.post-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.post-cta h2 { font-size: clamp(1.5rem,3vw,2.2rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.1; }
.post-cta p { font-size: .95rem; color: rgba(9,16,14,.7); margin-top: 8px; }
.post-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── 404 ── */
.post-not-found { padding: 160px 0 120px; text-align: center; }
.post-not-found h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: 16px; }
.post-not-found p { font-size: 1rem; color: var(--mid); margin-bottom: 32px; }

/* ── SCROLL TO TOP (variante post) ── */
.scroll-top { position: fixed; bottom: 28px; right: 28px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); border: 1.5px solid rgba(255,255,255,.1); color: var(--white); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); z-index: 100; }
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--mint); color: var(--ink); border-color: var(--mint); }
.scroll-top svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
  .relacionados-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .relacionados-grid { grid-template-columns: 1fr; }
  .post-cta-inner { flex-direction: column; text-align: center; }
  .post-cta-actions { justify-content: center; }
  .post-featured-img { aspect-ratio: 16/9; }
  .post-meta-bar { gap: 12px; }
  .post-share { margin-left: 0; width: 100%; }
}
