/* ─── BLOG HEADER ─── */
.blog-hero {
  padding: 180px 5% 80px;
  text-align: center;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
}

.blog-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1.1;
  margin: 15px 0 20px;
  color: #fff;
  letter-spacing: 1px;
}

.blog-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── BLOG GRID ─── */
.blog-grid-section {
  padding: 40px 5% 100px;
  position: relative;
  z-index: 10;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ─── BLOG CARDS ─── */
.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(69, 137, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 
              0 0 40px rgba(69, 137, 255, 0.1);
}

.blog-card-img-wrap {
  width: 100%;
  height: 220px;
  background: #0f111a;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Placeholder temporal para imágenes */
.blog-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.08) 100%);
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-placeholder-img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.blog-tag {
  color: #4589ff;
  background: rgba(69, 137, 255, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.75rem;
}

.blog-date {
  color: rgba(255, 255, 255, 0.5);
}

.blog-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 15px;
}

.blog-card-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card-title a:hover {
  color: #4589ff;
}

.blog-card-excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s ease;
  margin-top: auto;
}

.blog-read-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  color: #4589ff;
}

.blog-read-more:hover svg {
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 120px 5% 60px;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
