/* ===== BLOG SECTION ===== */
#blog {
  position: relative;
  background: var(--bg-deep); /* Se mantiene oscuro para contrastar con Providers */
  padding: 80px 60px;
  overflow: hidden;
  z-index: 2;
}

.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header Section */
.blog-header {
  text-align: center;
  margin-bottom: 60px;
}

.blog-header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 3px;
}

.blog-header p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* Igualado exactamente a tu clase .btn-outline */
.view-all-btn {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  display: inline-block;
  text-decoration: none;
}

.view-all-btn:hover {
  background: rgba(0,212,255,0.1);
  box-shadow: 0 0 30px rgba(0,212,255,0.15);
  transform: translateY(-2px);
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas en escritorio */
  gap: 32px;
}

/* Blog Card: Exactamente igual a .provider-card, sin destellos extra */
.blog-card {
  background: rgba(10, 24, 46, 0.6); 
  border: 1px solid rgba(0,212,255,0.1); 
  border-radius: 16px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.25,.8,.25,1);
  position: relative;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.blog-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(0,212,255,0.1), 0 20px 50px rgba(0,0,0,0.3);
  transform: translateY(-6px);
}

/* Card Image */
.card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #061022;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Mantenemos solo la transición del zoom, eliminando los filtros de brillo */
  transition: transform 0.6s cubic-bezier(.25,.8,.25,1);
}

.blog-card:hover .card-image img {
  /* Un zoom muy sutil y elegante, sin cambios de luz */
  transform: scale(1.08); 
}

/* Card Content */
.card-content {
  padding: 28px;
  position: relative;
  z-index: 2;
}

/* Tags */
.card-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(0,212,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,212,255,0.2);
  transition: all 0.3s;
}

.blog-card:hover .tag {
  background: rgba(0,212,255,0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0,212,255,0.2);
}

.tag.date {
  background: rgba(0,102,255,0.1);
  color: var(--blue-bright);
  border-color: rgba(0,102,255,0.2);
}

.blog-card:hover .tag.date {
  background: rgba(0,102,255,0.15);
  border-color: var(--blue-bright);
}

/* Title */
.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.4;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.blog-card:hover .card-title {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0,212,255,0.3);
}

/* Description */
.card-description {
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3; /* Esta es la línea estándar que solicita el editor */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Read More Link */
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
}

.read-more::after {
  content: '→';
  transition: transform 0.3s;
}

.blog-card:hover .read-more::after {
  transform: translateX(6px);
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 768px) {
  #blog {
    padding: 60px 24px;
  }
  .blog-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
  .blog-header h1 {
    font-size: 2rem;
  }
}