/* ============================================================
   ClicNegocio — Perspectivas (hub + artículos)
   Depende de styles.css (tokens, tipografía, botones, header)
   ============================================================ */

/* ---- Static header on content pages ---- */
.header--static { position: sticky; top: 0; }
.header--static .nav a.is-active { color: var(--ink); background: var(--bg-warm); }

/* ============================================================
   HUB — Perspectivas
   ============================================================ */
.hub-hero { padding-block: clamp(48px, 7vw, 92px) clamp(32px, 4vw, 52px); }
.hub-hero .eyebrow { margin-bottom: 18px; }
.hub-hero h1 {
  font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.02em;
  max-width: 18ch; font-weight: 500;
}
.hub-hero h1 em { font-style: italic; color: var(--navy); }
.hub-hero .lead { margin-top: 24px; max-width: 56ch; }

/* framework legend chips */
.framework-legend {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.framework-legend .fl {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 600;
  color: var(--navy); background: var(--surface); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.framework-legend .fl b { color: var(--amber); font-family: var(--font-display); }
.framework-legend .arr { color: var(--muted); }

/* posts grid */
.hub-section { padding-bottom: clamp(64px, 9vw, 120px); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer; height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #DCD6CA; }
.post-card__cat {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); display: inline-flex; align-items: center; gap: 9px; margin-bottom: 16px;
}
.post-card__cat .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-content: center;
  background: var(--amber-tint); border: 1px solid #F0DCC2; color: var(--amber); }
.post-card h2 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; line-height: 1.2; margin-bottom: 12px; }
.post-card p { font-size: 16px; line-height: 1.6; color: var(--text); flex: 1; }
.post-card__beats { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; }
.post-card__beats span {
  font-size: 12px; font-weight: 600; color: var(--text); background: var(--bg-warm);
  border: 1px solid var(--line-soft); padding: 5px 11px; border-radius: 999px;
}
.post-card__meta {
  display: flex; align-items: center; gap: 12px; padding-top: 18px; margin-top: auto;
  border-top: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted);
}
.post-card__meta .tlink { margin-left: auto; font-size: 14px; }

/* featured */
.post-card--feat { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.post-card--feat .feat-side {
  flex: 0 0 42%; background: linear-gradient(150deg, var(--navy-950), var(--navy));
  color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.post-card--feat .feat-side .dark__glow { top: auto; bottom: -30%; right: -20%; width: 70%; height: 70%; }
.post-card--feat .feat-side .post-card__cat { color: var(--amber-soft); }
.post-card--feat .feat-side .post-card__cat .ic { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: var(--amber-soft); }
.post-card--feat .feat-side h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); position: relative; }
.post-card--feat .feat-side .feat-tag { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 18px; }
.post-card--feat .feat-body { flex: 1; padding: 40px; display: flex; flex-direction: column; }

/* ---- Home blog preview ---- */
.insights__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.insights__head .section-title { margin-top: 4px; }
.insights__head .tlink { white-space: nowrap; padding-bottom: 6px; }

/* ===== Unit detail page ===== */
.unit-hero { padding-block: clamp(40px,5vw,72px) clamp(20px,3vw,36px); }
.unit-hero__grid { display:grid; grid-template-columns:auto 1fr; gap:clamp(24px,4vw,46px); align-items:center; }
.unit-hero__icon { width:100px; height:100px; border-radius:26px; display:grid; place-content:center; background:linear-gradient(135deg,var(--navy),var(--navy-950)); color:var(--amber-soft); box-shadow:var(--shadow-lg); flex:none; }
.unit-hero__role { font-size:12.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--amber); margin-bottom:14px; }
.unit-hero h1 { font-size:clamp(34px,5vw,58px); line-height:1.03; letter-spacing:-0.02em; font-weight:500; }
.unit-hero__dek { margin-top:20px; font-size:clamp(18px,1.9vw,22px); line-height:1.5; color:var(--text); max-width:54ch; }
.unit-hero__cta { margin-top:28px; display:flex; gap:14px; flex-wrap:wrap; }

.unit-section { padding-block: clamp(40px,5vw,64px); }
.unit-section .wrap { max-width: 900px; }
.unit-section .eyebrow { margin-bottom:16px; }
.unit-section h2 { font-size:clamp(24px,3vw,34px); line-height:1.15; max-width:26ch; margin-bottom:22px; }
.unit-prose p { font-size:18px; line-height:1.75; color:var(--text); margin-bottom:18px; max-width:66ch; }
.unit-prose b { color:var(--ink); font-weight:600; }

.feature-list { display:grid; grid-template-columns:1fr 1fr; gap:15px 32px; margin-top:6px; }
.feature-list .fi { display:flex; gap:13px; align-items:flex-start; font-size:16.5px; color:var(--ink); line-height:1.45; }
.feature-list .fi svg { color:var(--amber); flex:none; margin-top:3px; }

@media (max-width:760px){ .unit-hero__grid{grid-template-columns:1fr;} .feature-list{grid-template-columns:1fr;} }

/* ============================================================
   ARTICLE
   ============================================================ */
.article { padding-block: clamp(40px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.article__head { max-width: 760px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb .sep { color: var(--line); }
.article__cat {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 18px;
}
.article h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 500; max-width: 20ch;
}
.article__dek { margin-top: 24px; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--text); max-width: 58ch; }
.article__meta {
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); flex-wrap: wrap;
}
.article__meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }

/* article body — ensayo */
.article__body { max-width: 680px; margin: 0 auto; }
.article__body p {
  font-family: var(--font-display); font-size: 20px; line-height: 1.82; color: #3B4258;
  margin-bottom: 26px; letter-spacing: .002em;
}
.article__body > p:first-of-type::first-letter {
  font-family: var(--font-display); float: left; font-size: 4.4em; line-height: .72;
  font-weight: 600; color: var(--navy); margin: 8px 14px 0 0;
}
.article__body p b, .article__body strong { color: var(--ink); font-weight: 600; }
.article__body ul { margin: 0 0 26px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article__body ul li { position: relative; padding-left: 26px; font-family: var(--font-display); font-size: 19px; line-height: 1.6; color: #3B4258; }
.article__body ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.essay-break { text-align: center; color: var(--amber); letter-spacing: .6em; margin: clamp(34px, 5vw, 54px) 0; font-size: 13px; user-select: none; }

.pullquote {
  margin: clamp(32px, 4vw, 48px) 0; padding-left: 26px; border-left: 3px solid var(--amber);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(21px, 2.6vw, 28px); line-height: 1.35; color: var(--navy);
}

/* article unit CTA */
.article-cta {
  max-width: 720px; margin: clamp(48px, 6vw, 72px) auto 0; padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(120deg, #fff, var(--amber-tint)); border: 1px solid #F0DEC4;
  border-radius: var(--r-xl); display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.article-cta__icon { width: 56px; height: 56px; border-radius: 15px; flex: none; display: grid; place-content: center; background: var(--amber); color: #fff; box-shadow: 0 8px 20px rgba(190,101,22,.25); }
.article-cta__body { flex: 1; min-width: 220px; }
.article-cta__body .u { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.article-cta__body h4 { font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.article-cta__body p { font-size: 15.5px; line-height: 1.55; color: var(--text); }

/* related */
.related { background: var(--bg-warm); border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 88px); }
.related h3 { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card--feat { grid-column: span 1; flex-direction: column; }
  .post-card--feat .feat-side { flex: none; padding: 32px; }
  .post-card--feat .feat-body { padding: 30px; }
  .related-grid { grid-template-columns: 1fr; }
}
