/* ================================================
   DOCER BLOG CSS
   Identidad consistente con docer.cl
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ink:      #08090d;
  --ink-2:    #0d1018;
  --card:     #141820;
  --card-2:   #1a2030;
  --border:   rgba(255,255,255,0.07);
  --border-hi:rgba(255,255,255,0.13);
  --text:     #dde3ec;
  --muted:    rgba(221,227,236,0.5);
  --muted-2:  rgba(221,227,236,0.7);
  --green:    #1cb978;
  --green-bg: rgba(28,185,120,0.10);
  --white:    #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */

.blog-header {
  background: rgba(8,9,13,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo img {
  height: 36px; width: auto;
  max-width: 140px; display: block;
  object-fit: contain;
}

.blog-nav { display: flex; align-items: center; gap: 24px; }

.blog-nav a {
  font-size: 14px; font-weight: 450;
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.blog-nav a:hover { color: var(--white); }

.blog-nav .nav-cta {
  background: var(--green); color: #08090d;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 8px;
  transition: background .2s;
}
.blog-nav .nav-cta:hover { background: #21d689; color: #08090d; }

/* ── BREADCRUMBS ── */

.breadcrumbs {
  padding: 14px 24px;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
}
.breadcrumbs a {
  color: var(--muted); text-decoration: none;
  transition: color .2s;
}
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs span { color: rgba(221,227,236,0.25); }

/* ── BLOG HERO ── */

.blog-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.blog-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900; letter-spacing: -1px;
  color: var(--white); margin-bottom: 12px;
}

.blog-hero p {
  font-size: 17px; color: var(--muted);
  max-width: 520px; line-height: 1.7;
}

/* ── POST GRID ── */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding-bottom: 80px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s;
  text-decoration: none;
}
.post-card:hover {
  border-color: rgba(28,185,120,0.25);
  transform: translateY(-3px);
}

.post-title {
  font-size: 16px; font-weight: 700;
  color: var(--white); line-height: 1.35;
  margin-bottom: 10px;
}
.post-title a {
  color: inherit; text-decoration: none;
  transition: color .2s;
}
.post-title a:hover { color: var(--green); }

.post-excerpt {
  font-size: 14px; color: var(--muted);
  line-height: 1.6; flex: 1;
  margin-bottom: 16px;
}

.post-meta {
  font-size: 12px; color: rgba(221,227,236,0.3);
  margin-bottom: 14px;
}

.read-more {
  font-size: 13px; font-weight: 600;
  color: var(--green); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.read-more:hover { gap: 8px; }

/* ── POST DETAIL ── */

.post {
  padding: 48px 0 80px;
  max-width: 680px;
  margin: 0 auto;
}

.post h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900; letter-spacing: -1px;
  color: var(--white); line-height: 1.1;
  margin-bottom: 16px;
}

.post-date {
  font-size: 13px; color: var(--muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.post-content {
  font-size: 17px; line-height: 1.8;
  color: var(--muted-2);
}

.post-content h2 {
  font-size: 22px; font-weight: 700;
  color: var(--white); letter-spacing: -0.5px;
  margin: 40px 0 14px;
}

.post-content h3 {
  font-size: 18px; font-weight: 600;
  color: var(--white); margin: 28px 0 10px;
}

.post-content p { margin-bottom: 20px; }

.post-content ul, .post-content ol {
  padding-left: 24px; margin-bottom: 20px;
}
.post-content li { margin-bottom: 8px; }

.post-content a {
  color: var(--green); text-decoration: none;
  border-bottom: 1px solid rgba(28,185,120,0.3);
  transition: border-color .2s;
}
.post-content a:hover { border-color: var(--green); }

.post-content strong { color: var(--white); font-weight: 600; }

.post-content blockquote {
  border-left: 3px solid var(--green);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--green-bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.post-content table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0; font-size: 15px;
}
.post-content th {
  background: var(--card-2);
  color: var(--white); font-weight: 600;
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--border-hi);
}
.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted-2);
}
.post-content tr:last-child td { border-bottom: none; }

/* ── POST CTA ── */

.post-cta {
  background: var(--card);
  border: 1px solid rgba(28,185,120,0.2);
  border-radius: 16px; padding: 32px;
  margin-top: 56px; text-align: center;
}

.post-cta h2 {
  font-size: 22px; font-weight: 800;
  color: var(--white); margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.post-cta p {
  font-size: 15px; color: var(--muted);
  margin-bottom: 24px; line-height: 1.6;
}

.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #08090d;
  font-size: 15px; font-weight: 700;
  padding: 14px 28px; border-radius: 12px;
  text-decoration: none; transition: background .2s;
}
.cta-btn:hover { background: #21d689; }

/* ── FOOTER ── */

.blog-footer {
  background: var(--ink-2, #0d1018);
  border-top: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.blog-footer h3 {
  font-size: 20px; font-weight: 800;
  color: var(--white); margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.blog-footer p {
  font-size: 15px; color: var(--muted);
  max-width: 400px; margin: 0 auto 24px;
  line-height: 1.6;
}

.footer-links {
  display: flex; gap: 20px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.footer-links a {
  font-size: 13px; color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 12px; color: rgba(221,227,236,0.18);
  margin-top: 16px;
}

/* ── RESPONSIVE ── */

@media(max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-nav .nav-cta { display: none; }
  .post { padding: 32px 0 60px; }
}
