/* ═══════════════════════════════════════════════
   todos-los-estudios.css — Estilos específicos de biblioteca de estudios
   ═══════════════════════════════════════════════ */

/* Reutilización del Hero del Blog */
.blog-hero {
  position: relative;
  min-height: 340px;
  background: linear-gradient(135deg, var(--navy) 0%, #0a0e1a 50%, #0d1535 100%);
  display: flex;
  align-items: flex-end;
  padding: 120px 0 60px;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.12), transparent 65%);
  pointer-events: none;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.10), transparent 65%);
  pointer-events: none;
}

.blog-hero__content {
  position: relative;
  z-index: 2;
}

.blog-hero__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
  display: block;
}

.blog-hero__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.blog-hero__subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  max-width: 560px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}

/* MAIN LAYOUT */
.blog-main {
  background: var(--light);
  min-height: 70vh;
  padding: 60px 0 100px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* SIDEBAR */
.blog-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-sidebar__section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.blog-sidebar__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Search */
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 16px;
  transition: all var(--transition-fast);
}

.blog-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.08);
}

.blog-search svg {
  color: var(--muted);
  flex-shrink: 0;
}

.blog-search input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  outline: none;
}

.blog-search input::placeholder {
  color: var(--subtle);
}

/* Category buttons */
.blog-categories-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blog-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-cat-btn:hover {
  background: #f8fafc;
  color: var(--blue);
}

.blog-cat-btn svg {
  color: #64748b;
  width: 20px;
  height: 20px;
  transition: color 0.3s ease;
}

.blog-cat-btn.active {
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.8), rgba(245, 243, 255, 0.8));
  border: 1px solid rgba(0, 174, 239, 0.2);
  color: #0f172a;
}

.blog-cat-btn.active svg {
  color: var(--blue);
}

.blog-cat-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  border-radius: 100px;
  padding: 4px 10px;
  color: #64748b;
  transition: all 0.3s ease;
}

.blog-cat-btn.active .blog-cat-count {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.15);
}

/* Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-tag-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--light);
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.blog-tag-pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 174, 239, 0.06);
}

.blog-tag-pill.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.2);
}

/* Sidebar CTA */
.blog-sidebar__cta {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1628 100%);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
}

.blog-sidebar__cta-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.blog-sidebar__cta h4 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-sidebar__cta p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* ESTUDIOS GRID & ADAPTATIONS */
.estudios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.estudios-grid .report-card {
  height: 100%;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 240px 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .estudios-grid {
    grid-template-columns: 1fr;
  }

  .blog-hero {
    padding: 100px 0 40px;
  }
}
