/* Estilos para la Vista Blog */

/* Hero Section */
.blog-hero {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 50, 120, 0.8) 0%, rgba(0, 20, 50, 0.5) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.blog-hero .container {
  max-width: 800px;
}

/* Barra de Herramientas */
.blog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
body.theme-dark .blog-toolbar {
  background: rgba(35, 39, 47, 0.5);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-filter {
  background: transparent;
  border: 1px solid #0d6efd;
  color: #0d6efd;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-filter.active, .btn-filter:hover {
  background: #0d6efd;
  color: #fff;
}
.blog-search {
  position: relative;
}
.blog-search .fa-search {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}
.blog-search .form-control {
  padding-left: 40px;
  border-radius: 20px;
}

/* Tarjetas de Artículo */
.blog-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  height: 100%;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
body.theme-dark .blog-card {
  background: #23272f;
}
.blog-card:hover {
  transform: translateY(-10px) rotate3d(0.5, -1, 0, 8deg);
  box-shadow: 0 20px 40px rgba(9, 105, 218, 0.3);
  border-color: #0969da;
}
.blog-card-img-container {
  position: relative;
}
.blog-card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #0d6efd;
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.blog-card-body {
  padding: 1.5rem;
}
.blog-card-date {
  font-size: 0.8rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
  display: block;
}
.blog-card-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.blog-card-excerpt {
  font-size: 0.9rem;
  color: #6c757d;
}
body.theme-dark .blog-card-excerpt, body.theme-dark .blog-card-date {
  color: #adb5bd;
}

/* Animación para filtrar */
.blog-card-wrapper {
  transition: all 0.5s ease;
}
.blog-card-wrapper.hide {
  transform: scale(0.8);
  opacity: 0;
  width: 0;
  padding: 0;
  margin: 0;
  font-size: 0;
}