/* IG Studio Pro — Blog / Recursos. Estilos compartidos. Mismo lenguaje visual que
   la landing: Inter + Source Serif 4, acento negro editorial, mucho aire. */

:root {
  --bg: #ffffff;
  --bg-soft: #fafaf9;
  --bg-mute: #f4f4f5;
  --text: #18181b;
  --text-muted: #52525b;
  --text-soft: #a1a1aa;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #18181b;
  --brand: #0f9d63;
  --brand-soft: #e7f6ee;
  --brand-fg: #0b6e46;
  --highlight-bg: #fef3c7;
  --maxw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.brand .dot { color: var(--brand); }
.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 10px;
  white-space: nowrap;
}
.nav-cta:hover { background: #000; }

/* LAYOUT */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* BREADCRUMB */
.crumb { font-size: 13px; color: var(--text-soft); margin: 28px 0 0; }
.crumb a { color: var(--text-muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.crumb span { margin: 0 6px; color: var(--border-strong); }

/* ARTICLE HEADER */
.kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-fg); margin: 22px 0 14px;
}
h1.title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 40px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.standfirst { font-size: 20px; line-height: 1.55; color: var(--text-muted); margin: 0 0 22px; }
.byline {
  font-size: 13px; color: var(--text-soft); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 14px 0; margin: 0 0 40px;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
}
.byline b { color: var(--text-muted); font-weight: 500; }

/* PROSE */
.prose { font-size: 17px; }
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em;
  margin-top: 52px; scroll-margin-top: 76px;
}
.prose h3 { font-size: 20px; font-weight: 600; margin-top: 34px; }
.prose p { color: #27272a; }
.prose a { color: var(--brand-fg); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-left: 22px; color: #27272a; }
.prose li { margin-top: 8px; }
.prose li::marker { color: var(--text-soft); }
.prose strong { font-weight: 600; color: var(--text); }
.prose blockquote {
  border-left: 3px solid var(--brand); padding: 4px 0 4px 20px; margin-left: 0;
  font-family: 'Source Serif 4', Georgia, serif; font-size: 22px; line-height: 1.4;
  color: var(--text); font-style: italic;
}

/* STAT CALLOUT */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 34px 0; }
.stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; }
.stat .n { font-family: 'Source Serif 4', Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.stat .l { font-size: 13px; color: var(--text-muted); margin-top: 8px; line-height: 1.4; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

/* CARD / TIP BOX */
.box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 24px; margin: 30px 0;
}
.box .box-t { font-weight: 600; font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.box.brandy { background: var(--brand-soft); border-color: #cdeadd; }
.box.brandy .box-t { color: var(--brand-fg); }

/* EXAMPLE / SCRIPT */
.example { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin: 22px 0; }
.example .ex-h { background: var(--bg-mute); padding: 10px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.example .ex-b { padding: 16px 18px; font-size: 16px; }
.example .ex-b p + p { margin-top: 12px; }

/* HASHTAG PILLS */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { background: var(--bg-mute); border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--brand-fg); }

/* CTA BLOCK */
.cta {
  background: var(--accent); color: #fff; border-radius: 20px; padding: 40px 32px;
  margin: 56px 0; text-align: center;
}
.cta h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 26px; font-weight: 600; line-height: 1.2; margin-bottom: 10px; }
.cta p { color: #d4d4d8; font-size: 16px; max-width: 460px; margin: 0 auto 22px; }
.cta a { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-size: 17px; font-weight: 500; padding: 15px 28px; border-radius: 12px; }
.cta a:hover { background: #0c8a56; }
.cta .fine { color: var(--text-soft); font-size: 13px; margin-top: 14px; }

/* SOURCES */
.sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.sources h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-soft); margin-bottom: 12px; }
.sources ol { padding-left: 20px; }
.sources li { margin-top: 6px; }
.sources a { color: var(--text-muted); }

/* RELATED / CHILD LINKS */
.related { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.related a {
  display: block; text-decoration: none; color: inherit; border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 18px; transition: border-color .15s, transform .15s;
}
.related a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.related .r-k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-fg); }
.related .r-t { font-family: 'Source Serif 4', Georgia, serif; font-size: 18px; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.related .r-d { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 620px) { .related { grid-template-columns: 1fr; } }

/* BLOG INDEX */
.hero-b { text-align: center; padding: 64px 0 40px; }
.hero-b h1 { font-family: 'Source Serif 4', Georgia, serif; font-size: 44px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero-b p { font-size: 19px; color: var(--text-muted); max-width: 560px; margin: 16px auto 0; }
.rubros { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0 70px; }
.rubro {
  text-decoration: none; color: inherit; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px 20px; display: block; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.rubro.live:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(22,36,63,.06); }
.rubro .r-name { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; font-weight: 600; }
.rubro .r-sub { font-size: 14px; color: var(--text-muted); margin-top: 6px; }
.rubro .r-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: 12px; padding: 3px 9px; border-radius: 999px; }
.rubro.live .r-badge { background: var(--brand-soft); color: var(--brand-fg); }
.rubro.soon { opacity: .62; }
.rubro.soon .r-badge { background: var(--bg-mute); color: var(--text-soft); }
@media (max-width: 860px) { .rubros { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rubros { grid-template-columns: 1fr; } .hero-b h1 { font-size: 34px; } h1.title { font-size: 31px; } }

/* FOOTER */
footer { border-top: 1px solid var(--border); margin-top: 40px; }
.foot-row { max-width: 1080px; margin: 0 auto; padding: 26px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted); }
.foot-row a { color: var(--text-muted); text-decoration: none; }
.foot-row a:hover { color: var(--text); }
