/* IMARAD · blog
   Reusa la paleta del home, optimizado para lectura larga */
:root{
  --bg:#0a0a0c; --bg-2:#111115; --bg-3:#18181d; --bg-panel:#1a1a20;
  --border:#2a2a33; --border-light:#333340;
  --accent:#00dcd2; --accent-dim:rgba(0,220,210,.12); --accent-bright:#4dffec;
  --text:#e8e8ec; --text-dim:#a0a0aa; --text-faint:#6a6a76;
  --font-display:'Inter',-apple-system,system-ui,'Segoe UI',Roboto,sans-serif;
  --font-body:'Inter',-apple-system,system-ui,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;
  --max:1200px; --reader:740px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-body); background:var(--bg); color:var(--text);
  line-height:1.65; font-weight:400; -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale; text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
body::before{
  content:''; position:fixed; inset:0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,rgba(0,220,210,.06),transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 100%,rgba(0,220,210,.03),transparent 50%);
  pointer-events:none; z-index:0;
}
main,header,footer{position:relative; z-index:2}

a{color:var(--accent); text-decoration:none}
a:hover{color:var(--accent-bright); text-decoration:underline}

/* ── NAV ─────────────────────────────── */
.nav{
  position:sticky; top:0;
  background:rgba(10,10,12,.78); backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border); z-index:100;
}
.nav-inner{
  max-width:var(--max); margin:0 auto; padding:18px 32px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.nav-brand{
  display:flex; align-items:center; gap:10px; color:var(--text);
  text-decoration:none; font-weight:700; font-size:18px; letter-spacing:-.01em;
}
.nav-brand img{width:28px; height:28px; border-radius:6px}
.nav-brand span em{color:var(--accent); font-style:normal}
.nav-links{display:flex; gap:24px; align-items:center; list-style:none}
.nav-links a{color:var(--text-dim); font-size:14px; font-weight:500}
.nav-links a:hover{color:var(--text); text-decoration:none}
.nav-cta{
  background:var(--accent); color:#0a0a0c; padding:8px 16px; border-radius:8px;
  font-weight:600; font-size:13px;
}
.nav-cta:hover{background:var(--accent-bright); text-decoration:none}

@media (max-width:720px){
  .nav-links li:not(:last-child){display:none}
}

/* ── BREADCRUMB ──────────────────────── */
.crumb{
  max-width:var(--max); margin:24px auto 0; padding:0 32px;
  font-size:13px; color:var(--text-faint);
}
.crumb a{color:var(--text-dim)}
.crumb span{margin:0 8px; color:var(--text-faint)}

/* ── BLOG INDEX (lista) ──────────────── */
.blog-hero{
  max-width:var(--max); margin:48px auto 32px; padding:0 32px;
}
.blog-hero .eyebrow{
  display:inline-block; font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent); margin-bottom:16px; font-weight:600;
}
.blog-hero h1{
  font-family:var(--font-display); font-size:clamp(36px,5vw,56px);
  font-weight:800; letter-spacing:-.025em; line-height:1.08; margin-bottom:18px;
}
.blog-hero h1 em{color:var(--accent); font-style:normal}
.blog-hero .lede{
  font-size:18px; color:var(--text-dim); max-width:680px; line-height:1.6;
}

.posts{
  max-width:var(--max); margin:32px auto 96px; padding:0 32px;
  display:grid; gap:24px;
  grid-template-columns:repeat(auto-fill,minmax(340px,1fr));
}
.post-card{
  background:var(--bg-panel); border:1px solid var(--border);
  border-radius:14px; padding:28px; transition:all .2s;
  display:flex; flex-direction:column; gap:14px;
}
.post-card:hover{
  border-color:var(--accent); background:var(--bg-3); transform:translateY(-2px);
}
.post-card .meta{
  font-size:12px; color:var(--text-faint); display:flex; gap:12px; align-items:center;
}
.post-card .meta .tag{
  background:var(--accent-dim); color:var(--accent); padding:2px 10px;
  border-radius:10px; font-weight:600; font-size:11px;
  text-transform:uppercase; letter-spacing:.05em;
}
.post-card h2{
  font-family:var(--font-display); font-size:22px; font-weight:700;
  letter-spacing:-.015em; line-height:1.25;
}
.post-card h2 a{color:var(--text)}
.post-card h2 a:hover{color:var(--accent); text-decoration:none}
.post-card .summary{color:var(--text-dim); font-size:14.5px; line-height:1.55; flex:1}
.post-card .read-more{
  color:var(--accent); font-size:14px; font-weight:600; margin-top:auto;
}

/* ── ARTICLE ─────────────────────────── */
.article{
  max-width:var(--reader); margin:48px auto 80px; padding:0 24px;
}
.article header.article-head{ margin-bottom:48px }
.article .eyebrow{
  display:inline-block; font-size:12px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--accent); margin-bottom:16px; font-weight:600;
}
.article h1{
  font-family:var(--font-display); font-size:clamp(32px,4.5vw,48px);
  font-weight:800; letter-spacing:-.025em; line-height:1.12; margin-bottom:20px;
}
.article .article-meta{
  font-size:13.5px; color:var(--text-faint); padding-top:16px;
  border-top:1px solid var(--border); display:flex; gap:14px; flex-wrap:wrap;
}
.article .article-meta a{color:var(--text-dim)}

.article .body{ font-size:17px; line-height:1.75; color:#e0e0e6 }
.article .body p{ margin:0 0 22px }
.article .body p.lede{ font-size:19px; color:var(--text); margin-bottom:30px }
.article .body h2{
  font-family:var(--font-display); font-size:28px; font-weight:700;
  letter-spacing:-.015em; line-height:1.25; margin:48px 0 16px;
  padding-top:24px; border-top:1px solid var(--border);
}
.article .body h2:first-of-type{ border-top:0; padding-top:0 }
.article .body h3{
  font-family:var(--font-display); font-size:20px; font-weight:700;
  margin:36px 0 12px; color:var(--text);
}
.article .body ul,.article .body ol{ margin:0 0 22px 1.5em; color:#dfdfe5 }
.article .body li{ margin-bottom:10px }
.article .body strong{ color:#fff; font-weight:600 }
.article .body em{ color:var(--accent); font-style:italic }
.article .body code{
  font-family:var(--font-mono); font-size:.92em;
  background:var(--bg-3); border:1px solid var(--border);
  padding:1px 7px; border-radius:5px; color:var(--accent-bright);
}
.article .body blockquote{
  margin:28px 0; padding:18px 24px;
  background:var(--accent-dim); border-left:3px solid var(--accent);
  border-radius:0 8px 8px 0; color:var(--text); font-size:16px;
}
.article .body table{
  width:100%; border-collapse:collapse; margin:24px 0; font-size:14.5px;
  background:var(--bg-panel); border:1px solid var(--border); border-radius:8px;
  overflow:hidden;
}
.article .body th,.article .body td{
  padding:12px 14px; text-align:left; border-bottom:1px solid var(--border);
  vertical-align:top;
}
.article .body th{ background:var(--bg-3); font-weight:600; color:var(--text) }
.article .body tr:last-child td{ border-bottom:0 }
.article .body .callout{
  margin:32px 0; padding:24px;
  background:linear-gradient(135deg,var(--bg-panel),var(--bg-3));
  border:1px solid var(--border); border-radius:12px;
}
.article .body .callout h3{ margin-top:0; color:var(--accent) }
.article .body .callout p:last-child{ margin-bottom:0 }

.article .cta-box{
  margin:56px 0 0; padding:32px;
  background:linear-gradient(135deg,var(--accent-dim),transparent);
  border:1px solid var(--accent); border-radius:14px; text-align:center;
}
.article .cta-box h3{
  font-family:var(--font-display); font-size:24px; font-weight:700;
  margin-bottom:10px; letter-spacing:-.01em;
}
.article .cta-box p{ color:var(--text-dim); margin-bottom:20px }
.article .cta-box a.btn{
  display:inline-block; background:var(--accent); color:#0a0a0c;
  padding:12px 28px; border-radius:8px; font-weight:600; font-size:15px;
}
.article .cta-box a.btn:hover{ background:var(--accent-bright); text-decoration:none }

.author-card{
  margin-top:56px; padding:24px; background:var(--bg-panel);
  border:1px solid var(--border); border-radius:12px;
  display:flex; gap:18px; align-items:center;
}
.author-card img{ width:54px; height:54px; border-radius:50% }
.author-card .who{ font-weight:600; font-size:15px }
.author-card .bio{ color:var(--text-dim); font-size:13.5px; margin-top:4px }

/* ── FOOTER ──────────────────────────── */
.footer{
  border-top:1px solid var(--border); padding:48px 32px;
  background:var(--bg-2); color:var(--text-faint); font-size:13.5px;
}
.footer-inner{
  max-width:var(--max); margin:0 auto;
  display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap;
}
.footer a{color:var(--text-dim)}
.footer .legal{font-size:12px; margin-top:8px}
