:root {
  --color-primary: #1a2e44;
  --color-accent: #2563eb;
  --color-accent-light: #eff6ff;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-surface: #f9fafb;
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Quicksand', sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}
/* ─── NAV ─── */
.navbar {
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  text-decoration: none;
}
.nav-brand span {
  color: var(--color-accent);
}
.nav-link-custom {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.2s;
  margin-left: 1.5rem;
}
.nav-link-custom:hover {
  color: var(--color-primary);
}
.btn-nav {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: 1.5rem;
}
.btn-nav:hover {
  background: var(--color-accent);
  color: #fff;
}
/* ─── BLOG HEADER ─── */
.blog-header {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.blog-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.blog-header p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 500px;
  margin: 0;
}
/* ─── FILTRO CATEGORÍAS ─── */
.filter-bar {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.filter-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid var(--color-border);
  color: var(--color-muted);
  transition: all 0.2s;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
}
.filter-pill:hover,
.filter-pill.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
/* ─── GRID ─── */
.blog-grid-section {
  padding: 4rem 0;
  background: var(--color-surface);
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
  color: inherit;
}
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card-img-placeholder svg {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  opacity: 0.35;
}
.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.blog-card-tag {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-muted);
  flex: 1;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
/* ─── FEATURED POST ─── */
.featured-post {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}
.featured-post:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09);
  color: inherit;
}
@media (min-width: 768px) {
  .featured-post {
    flex-direction: row;
  }
}
.featured-post-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .featured-post-img {
    width: 50%;
    height: auto;
    min-height: 300px;
  }
}
.featured-post-img-placeholder {
  background: var(--color-accent-light);
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .featured-post-img-placeholder {
    width: 50%;
    height: auto;
    min-height: 300px;
  }
}
.featured-post-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.featured-post-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.featured-post-excerpt {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}
/* ─── PAGINACIÓN ─── */
.pagination-custom {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.page-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s;
}
.page-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.page-btn.current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.page-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
}
/* ─── FOOTER ─── */
footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}
footer p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0;
}
