/* ─────────────────────────────────────────────────────────
   WuClock — Blog shared styles
   Used by /blog/index.html and all /blog/*.html articles.
   Inherits the same WuClock design system as sobre/contacto/app.
   ───────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Barlow:wght@300;400;500;600;700&family=Michroma&display=swap");

:root {
  --bg:        #000005;
  --bg-deep:   #08000C;
  --bg-glow:   #1A051F;
  --gold:      #D4A852;
  --gold-light:#E4BE6A;
  --gold-dark: #AE8330;
  --fg:        #F1EFF3;
  --fg-muted:  #B3B295;
  --fg-dim:    rgba(241,239,243,0.45);
  --card:      rgba(212,168,82,0.05);
  --card-2:    rgba(212,168,82,0.08);
  --border:    rgba(212,168,82,0.20);
  --border-hi: rgba(212,168,82,0.45);
  --hair:      rgba(241,239,243,0.06);
  --positive:  #10B981;

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body:    "Barlow", system-ui, sans-serif;
  --font-eyebrow: "Michroma", "Eurostile", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 280ms;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 300; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
::selection { background: var(--gold); color: var(--bg); }
::-webkit-scrollbar { width: 0; height: 0; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--font-eyebrow); font-weight: 400;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
  color: #1A051F;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  letter-spacing: 0.02em; text-decoration: none;
  box-shadow: 0 8px 28px rgba(212,168,82,0.30);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { box-shadow: 0 10px 36px rgba(212,168,82,0.45); }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid var(--border); box-shadow: none; height: 56px; }
.btn--ghost:hover { background: var(--card-2); border-color: var(--border-hi); }

/* ──────── Atmosphere ──────── */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(212,168,82,0.10) 0%, transparent 60%),
    radial-gradient(80% 60% at 50% 100%, rgba(45,27,78,0.40) 0%, transparent 60%),
    var(--bg);
}
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 27% 72%, rgba(255,255,255,0.40), transparent 60%),
    radial-gradient(1.5px 1.5px at 48% 30%, rgba(228,190,106,0.55), transparent 60%),
    radial-gradient(1px 1px at 64% 84%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 78% 22%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(1px 1px at 88% 60%, rgba(228,190,106,0.40), transparent 60%),
    radial-gradient(1px 1px at 8% 52%, rgba(255,255,255,0.35), transparent 60%);
}

/* ──────── NAV ──────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(0,0,5,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: rgba(212,168,82,0.10); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; max-width: 1400px; margin: 0 auto; position: relative; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--fg); }
.nav-brand img { height: 92px; width: auto; }
.nav-links { display: none; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
@media (min-width: 880px) { .nav-links { display: inline-flex; align-items: center; } }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--fg); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; transition: color var(--dur), background var(--dur); }
.nav-links a:hover { color: var(--gold); }
.nav-links a.active { background: var(--card-2); color: var(--gold); }
.nav-cta { padding: 10px 18px; height: auto; font-size: 13px; }

/* Mobile burger */
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--gold);
  transition: background var(--dur), border-color var(--dur);
}
.nav-burger:hover { background: var(--card-2); border-color: var(--border-hi); }
.nav-burger .ic-x { display: none; }
.nav.open .nav-burger .ic-bars { display: none; }
.nav.open .nav-burger .ic-x { display: inline; }
@media (min-width: 880px) { .nav-burger { display: none; } }
@media (max-width: 879px) {
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 16px; right: 16px;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    border-radius: 22px;
    background: rgba(0,0,5,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
    display: none; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav.open .nav-links { display: flex; opacity: 1; transform: none; }
  .nav-links a { padding: 14px 18px; border-radius: 14px; text-align: center; font-size: 15px; }
  .nav-links a:hover { background: var(--card); }
  .nav-links .mobile-cta {
    margin-top: 6px; padding: 14px 18px; border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold) 45%, var(--gold-dark));
    color: var(--bg-deep) !important; font-weight: 600; font-size: 14px;
    letter-spacing: 0.02em; box-shadow: 0 6px 18px rgba(212,168,82,0.25);
  }
}
@media (min-width: 880px) { .nav-links .mobile-cta { display: none; } }

/* ──────── Reveal ──────── */
.reveal { opacity: 0; transform: translateY(20px); filter: blur(8px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease), filter 700ms var(--ease);
}
.reveal.visible { opacity: 1; transform: none; filter: blur(0); }
.reveal--d1 { transition-delay: 80ms; }
.reveal--d2 { transition-delay: 160ms; }
.reveal--d3 { transition-delay: 240ms; }

/* ──────── Blog index ──────── */
.blog-hero {
  padding: 160px 0 60px;
  text-align: center;
}
.blog-hero .eyebrow { margin-bottom: 20px; display: inline-block; }
.blog-hero h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.94; letter-spacing: -0.02em;
  margin: 0 auto 22px; max-width: 18ch;
}
.blog-hero h1 .hl {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.blog-hero p.lead {
  font-size: 18px; line-height: 1.55; color: var(--fg-muted);
  max-width: 56ch; margin: 0 auto;
}

.blog-list { padding: 60px 0 120px; }
.blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
@media (min-width: 720px) { .blog-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1000px) { .blog-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.post-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 22px; padding: 28px 26px;
  text-decoration: none; color: inherit;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), background 320ms var(--ease);
  position: relative;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  background: var(--card-2);
}
.post-card--featured {
  grid-column: 1 / -1;
  padding: 40px 36px;
}
@media (min-width: 1000px) {
  .post-card--featured { grid-column: 1 / 2; grid-row: 1 / 3; padding: 40px 36px; }
}
.post-meta {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-eyebrow); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 4px;
}
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: 0.5; }
.post-meta .date { color: var(--fg-muted); }
.post-card h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 0;
}
.post-card--featured h2 {
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.0;
}
.post-card p {
  color: var(--fg-muted); font-size: 15px; line-height: 1.55; margin: 0;
}
.post-card .read-more {
  margin-top: auto; padding-top: 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--gold); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-card .read-more svg { width: 12px; height: 12px; }

/* ──────── Article page ──────── */
.article {
  padding: 140px 0 40px;
}
.article-head {
  max-width: 760px; margin: 0 auto; padding: 0 28px;
  text-align: center;
}
.article-head .breadcrumb {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--font-body); font-size: 13px;
  color: var(--fg-muted); margin-bottom: 28px;
}
.article-head .breadcrumb a { color: var(--fg-muted); text-decoration: none; transition: color var(--dur); }
.article-head .breadcrumb a:hover { color: var(--gold); }
.article-head .breadcrumb .sep { color: var(--fg-dim); }

.article-head h1 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 6.6vw, 84px);
  line-height: 0.98; letter-spacing: -0.015em;
  margin: 0 auto 28px;
}
.article-head h1 .hl {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article-head .article-meta {
  display: inline-flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; align-items: center;
  font-family: var(--font-body); font-size: 13px;
  color: var(--fg-muted); letter-spacing: 0.02em;
}
.article-head .article-meta .pill {
  padding: 6px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
}
.article-head .article-meta .author {
  color: var(--fg); font-weight: 500;
}
.article-head .article-meta .sep { color: var(--fg-dim); }

.article-body {
  max-width: 720px; margin: 70px auto 0;
  padding: 0 28px;
  font-size: 19px; line-height: 1.75;
  color: var(--fg);
}
.article-body p {
  margin: 0 0 26px;
}
.article-body p.lead {
  font-size: 22px; line-height: 1.55; color: var(--fg-muted);
  border-left: 2px solid var(--gold);
  padding-left: 22px; margin-bottom: 36px;
  font-weight: 300;
}
.article-body h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1; letter-spacing: -0.005em;
  margin: 60px 0 18px;
  color: var(--fg);
}
.article-body h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 22px; line-height: 1.3;
  margin: 40px 0 12px;
  color: var(--gold);
}
.article-body strong { color: var(--fg); font-weight: 600; }
.article-body em { color: var(--fg-muted); }
.article-body a {
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(212,168,82,0.30);
  transition: border-color var(--dur), color var(--dur);
}
.article-body a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.article-body ul, .article-body ol {
  margin: 0 0 28px; padding-left: 0; list-style: none;
}
.article-body ul li, .article-body ol li {
  position: relative; padding-left: 28px; margin-bottom: 12px;
}
.article-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 14px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 8px rgba(212,168,82,0.5);
}
.article-body ol { counter-reset: art-c; }
.article-body ol li { counter-increment: art-c; }
.article-body ol li::before {
  content: counter(art-c) ".";
  position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-style: italic;
  color: var(--gold); font-size: 18px;
}

/* Pull quote */
.article-body .pullquote {
  margin: 40px -10px;
  padding: 28px 32px;
  background: var(--card);
  border-radius: 18px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.35;
  color: var(--fg);
}
.article-body .pullquote::before {
  content: '"';
  font-family: var(--font-display); font-style: italic;
  font-size: 60px; color: var(--gold);
  line-height: 0.4; margin-right: 8px;
  vertical-align: -10px;
  opacity: 0.7;
}

/* Callout */
.article-body .callout {
  margin: 40px 0;
  padding: 24px 28px;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.article-body .callout h4 {
  font-family: var(--font-eyebrow); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 12px;
}
.article-body .callout p:last-child { margin-bottom: 0; }

/* Table */
.article-body table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: 16px;
}
.article-body th, .article-body td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--hair);
}
.article-body thead th {
  font-family: var(--font-eyebrow); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 400;
  background: var(--card);
}

/* ──────── Article end CTA ──────── */
.article-end {
  margin: 80px auto 0; max-width: 720px; padding: 0 28px;
}
.article-end-card {
  border: 1px solid var(--border-hi);
  background: linear-gradient(180deg, rgba(212,168,82,0.10), rgba(212,168,82,0.02));
  border-radius: 24px; padding: 36px;
  text-align: center;
  box-shadow: 0 0 60px rgba(212,168,82,0.10);
}
.article-end-card .eyebrow { margin-bottom: 12px; display: inline-block; }
.article-end-card h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.0;
  margin: 0 0 14px;
}
.article-end-card p {
  color: var(--fg-muted); font-size: 16px; line-height: 1.55;
  margin: 0 auto 22px; max-width: 50ch;
}

/* ──────── Related articles ──────── */
.related {
  padding: 80px 0 120px;
}
.related .container { max-width: 1080px; }
.related h3 {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1.1; text-align: center;
  margin: 0 0 36px;
}

/* ──────── Footer ──────── */
.footer { background: var(--bg-deep); border-top: 1px solid var(--hair); padding: 64px 0 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand img { height: 144px; width: auto; align-self: flex-start; margin-left: -24px; }
.footer-brand p { color: var(--fg-muted); font-size: 14px; max-width: 32ch; margin: 0; }
.footer-col h3 {
  font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--fg); text-decoration: none; font-size: 14px; transition: color var(--dur); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 12px; color: var(--fg-dim);
}
