:root {
  --blue: #6990C8;
  --blue-light: #8aadd8;
  --blue-dark: #4a6fa8;
  --black: #0a0a0f;
  --white: #ffffff;
  --gray: #a0a0b0;
  --gray-light: #d0d0e0;
  --surface: #13131a;
  --surface2: #1c1c27;
  --text: #e0e0ee;
}

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

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.7;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(105,144,200,0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* HEADER */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(105,144,200,0.12);
  padding: 18px 0;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--blue-light); }

.nav-link {
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--white); }

/* CONTENEDOR PRINCIPAL */
.main {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* HERO BLOG */
.blog-hero {
  padding: 60px 0 48px;
  text-align: center;
}

.blog-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.blog-hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}

.blog-hero p {
  color: var(--gray);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto;
}

/* GRID DE ARTÍCULOS */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding-top: 8px;
}

.post-card {
  background: var(--surface);
  border: 1px solid rgba(105,144,200,0.12);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-dark), var(--blue-light));
  opacity: 0;
  transition: opacity 0.2s;
}

.post-card:hover {
  border-color: rgba(105,144,200,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(105,144,200,0.1);
}

.post-card:hover::before { opacity: 1; }

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(105,144,200,0.12);
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.post-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
}

.post-card p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
  flex: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.post-date {
  font-size: 11px;
  color: rgba(160,160,176,0.5);
}

.post-read {
  font-size: 12px;
  color: var(--blue);
  font-weight: 600;
}

/* ARTÍCULO INDIVIDUAL */
.article-header {
  padding: 56px 0 40px;
  max-width: 720px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(105,144,200,0.12);
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.article-header h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 16px;
}

.article-header .lead {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(160,160,176,0.6);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.article-meta strong { color: var(--gray); }

/* CUERPO DEL ARTÍCULO */
.article-body {
  max-width: 720px;
  padding-bottom: 56px;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 40px 0 14px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--blue-light);
  margin: 28px 0 10px;
}

.article-body p {
  color: var(--text);
  margin-bottom: 18px;
  font-size: 15.5px;
}

.article-body ul, .article-body ol {
  margin: 0 0 20px 20px;
  color: var(--text);
  font-size: 15.5px;
}

.article-body li { margin-bottom: 8px; line-height: 1.65; }

.article-body strong { color: var(--white); font-weight: 600; }

.article-body a:not(.cta-btn) {
  color: var(--blue-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CALLOUT */
.callout {
  background: rgba(105,144,200,0.08);
  border-left: 3px solid var(--blue);
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 28px 0;
}

.callout p { margin: 0; color: var(--text); }

/* CTA BOX */
.cta-box {
  background: linear-gradient(135deg, rgba(105,144,200,0.15), rgba(105,144,200,0.05));
  border: 1px solid rgba(105,144,200,0.3);
  border-radius: 20px;
  padding: 36px 32px;
  margin: 48px 0 0;
  text-align: center;
}

.cta-box h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.cta-box p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 24px;
}

.cta-btn,
.article-body .cta-btn,
a.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #ffffff !important;
  text-decoration: none !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.cta-btn:hover,
.article-body .cta-btn:hover,
a.cta-btn:hover {
  background: var(--blue-dark);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(105,144,200,0.4);
  text-decoration: none !important;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--white); }

/* FOOTER */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 28px 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(160,160,176,0.35);
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .article-header h1 { font-size: 24px; }
  .cta-box { padding: 28px 20px; }
}
