/* ── Article Hero (imagen + texto encima) ──────────────── */
.art-hero {
  position: relative;
  height: 540px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.art-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.art-hero:hover .art-hero-img {
  transform: scale(1);
}

.art-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.10) 100%);
  pointer-events: none;
}

.art-hero-content {
  position: relative;
  z-index: 2;
  padding-bottom: 48px;
}

.art-cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #607561;
  padding: 5px 14px;
  border-radius: 2px;
  margin-bottom: 18px;
}

.art-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 780px;
  margin-bottom: 16px;
}

.art-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 991px) {
  .art-hero { height: 440px; }
}

@media (max-width: 767px) {
  /* min-height en lugar de height fijo — títulos largos pueden expandir el hero */
  .art-hero {
    height: auto;
    min-height: 380px;
    padding-top: 100px; /* espacio para el header fijo */
  }
  .art-hero-content { padding-bottom: 32px; }
}

/* ── Sidebar layout ──────────────────────────────────── */
.art-body .row { align-items: flex-start; }

.art-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Widget base */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid rgba(96,117,97,0.14);
  border-radius: 4px;
  padding: 22px 24px;
}

.sidebar-label {
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #607561;
  margin-bottom: 16px;
}

/* Share */
.sidebar-share {
  display: flex;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(96,117,97,0.22);
  color: #607561;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.share-btn:hover { background: #607561; color: #fff; border-color: #607561; }
.share-btn svg { flex-shrink: 0; }

/* TOC */
.sidebar-toc { border: none; outline: none; }

.sidebar-toc summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  cursor: pointer;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(96,117,97,0.14);
  margin-bottom: 14px;
}

.sidebar-toc summary::-webkit-details-marker { display: none; }

.sidebar-toc summary .toc-arrow {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sidebar-toc[open] summary .toc-arrow { transform: rotate(180deg); }

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

.toc-list a {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(33,37,41,0.65);
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.toc-list a:hover {
  color: #607561;
  border-left-color: #607561;
}

/* CTA card */
.sidebar-cta-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(96,117,97,0.14);
}

.sidebar-cta-img {
  height: 140px;
  background-size: cover;
  background-position: center;
}

.sidebar-cta-body {
  padding: 22px 24px;
  background: #ffffff;
}

.sidebar-cta-label {
  font-family: 'Syne', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #607561;
  margin-bottom: 8px;
}

.sidebar-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.sidebar-cta-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(33,37,41,0.58);
  margin-bottom: 16px;
}

.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  background: #607561;
  padding: 10px 20px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.sidebar-cta-btn:hover { background: #4e6250; color: #fff; transform: translateY(-1px); }

/* Recent posts */
.sidebar-posts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-post-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  align-items: flex-start;
}

.sidebar-post-link:hover .sidebar-post-title { color: #607561; }

.sidebar-post-thumb {
  width: 62px;
  height: 62px;
  border-radius: 3px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.sidebar-post-info { flex: 1; }

.sidebar-post-cat {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #607561;
  margin-bottom: 4px;
}

.sidebar-post-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  color: #1a1a1a;
  margin: 0;
  transition: color 0.2s ease;
}

@media (max-width: 991px) {
  .art-sidebar { position: static; }
}

/* ── Back link ────────────────────────────────────────── */
.art-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #607561;
  text-decoration: none;
  margin-bottom: 52px;
  margin-top: 52px;
  transition: gap 0.2s ease;
}

.art-back:hover { gap: 14px; color: #607561; }

/* ── Article body ─────────────────────────────────────── */
.art-body {
  background: #f0f3f5;
  padding-bottom: 100px;
}

.art-body .art-intro {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #3a3f3a;
  font-weight: 400;
  border-left: 3px solid #607561;
  padding-left: 24px;
  margin-bottom: 48px;
}

.art-body h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-top: 52px;
  margin-bottom: 18px;
}

.art-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 32px;
  margin-bottom: 12px;
}

.art-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a3f3a;
  margin-bottom: 20px;
}

.art-body ul, .art-body ol {
  padding-left: 20px;
  margin-bottom: 24px;
}

.art-body li {
  font-size: 1rem;
  line-height: 1.8;
  color: #3a3f3a;
  margin-bottom: 8px;
}

.art-body strong {
  color: #1a1a1a;
  font-weight: 600;
}

/* ── Pull quote ───────────────────────────────────────── */
.art-quote {
  background: #ffffff;
  border-left: 4px solid #607561;
  border-radius: 0 4px 4px 0;
  padding: 28px 32px;
  margin: 40px 0;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: #2a2e2a;
}

/* ── Info box ─────────────────────────────────────────── */
.art-box {
  background: #fff;
  border: 1px solid rgba(96,117,97,0.18);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 36px 0;
}

.art-box-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #607561;
  margin-bottom: 14px;
}

/* ── Divider ──────────────────────────────────────────── */
.art-divider {
  border: none;
  border-top: 1px solid rgba(96,117,97,0.18);
  margin: 52px 0;
}

/* ── Signature / Author ───────────────────────────────── */
.art-signature {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(96,117,97,0.18);
  border-bottom: 1px solid rgba(96,117,97,0.18);
  margin-top: 52px;
}

.art-signature-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #607561;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.art-signature-logo img {
  width: 36px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.art-signature-text p {
  margin: 0;
  line-height: 1.5;
  color: rgba(33,37,41,0.55);
  font-size: 13px;
}

.art-signature-text strong {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

/* ── CTA ──────────────────────────────────────────────── */
.art-cta {
  background: #607561;
  padding: 72px 0;
}

.art-cta h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 10px;
}

.art-cta p {
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  margin-bottom: 32px;
}

.art-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #ffffff;
  color: #1a1a1a;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s ease, transform 0.25s ease;
  margin-right: 16px;
}

.art-cta-btn:hover {
  background: #e8ede8;
  color: #1a1a1a;
  transform: translateY(-2px);
}

.art-cta-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.2s ease;
}

.art-cta-btn-ghost:hover { color: #fff; }

@media (max-width: 575px) {
  .art-cta-btn { margin-right: 0; margin-bottom: 12px; }
}
