.blog-seccion {
  font-family: 'Barlow', sans-serif;
  background: #f2f2f0;
  padding: 72px 48px 96px;
}
.blog-seccion-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── ENCABEZADO / HERO ── */
.blog-header {
  background-size: cover;
  background-position: center 40%;
  padding: 80px 56px;
  margin-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.86) 42%, rgba(10,10,10,.55) 100%);
  pointer-events: none;
}
.blog-header::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 340px; height: 100%;
  background-image: radial-gradient(circle, rgba(245,168,0,.18) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.blog-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  color: #F5A800; margin-bottom: 18px;
  position: relative; z-index: 1;
}
.blog-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 2px; background: #F5A800;
}
.blog-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 800; line-height: 1.08;
  color: #ffffff !important; /* el tema fija color de h1 dentro del área de contenido; forzamos blanco sobre el hero oscuro */
  max-width: 720px;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.blog-titulo .accent { color: #F5A800; }
.blog-subtitulo {
  font-size: clamp(14px, 1.4vw, 16px);
  color: #ddd !important; /* mismo motivo: el tema fija color de párrafo dentro del área de contenido */
  line-height: 1.7;
  max-width: 620px;
  position: relative; z-index: 1;
}

/* ── LAYOUT: contenido + sidebar ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* ── GRID DE ARTÍCULOS (2 columnas) ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid transparent;
  display: flex;
  flex-direction: column;
  transition: border-top-color .22s, transform .18s, box-shadow .22s;
}
.blog-card:hover {
  border-top-color: #F5A800;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.blog-card-thumb {
  height: 170px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg,#2c2c2c,#4a4a4a);
}
.blog-card-thumb svg {
  width: 44px; height: 44px;
  stroke: #F5A800; opacity: .55;
  fill: none; stroke-width: 1.5;
}
.blog-card-cat {
  position: absolute; top: 14px; left: 14px;
  background: #F5A800;
  color: #1a1a1a;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 12px;
  z-index: 1;
}
.blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800;
  line-height: 1.22; color: #1a1a1a;
  margin-bottom: 10px;
}
.blog-card-titulo a { color: inherit; text-decoration: none; }
.blog-card-titulo a:hover { color: #D4900A; }
.blog-card-extracto {
  font-size: 13.5px; color: #666; line-height: 1.65;
  flex-grow: 1; margin-bottom: 16px;
}
.blog-card-meta {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase;
  color: #999;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}
.blog-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.blog-card-meta svg { width: 13px; height: 13px; stroke: #bbb; fill: none; stroke-width: 2; }

/* Tarjeta destacada (primer artículo, ancho completo) */
.blog-card-destacada {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.blog-card-destacada .blog-card-thumb { height: 100%; min-height: 220px; }
.blog-card-destacada .blog-card-titulo { font-size: 26px; }
.blog-card-destacada .blog-card-body { justify-content: center; padding: 32px 36px; }

/* Paginación — clases nativas que genera paginate_links() de WordPress */
.blog-paginacion { margin-top: 40px; }
.blog-paginacion ul.page-numbers {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; list-style: none; margin: 0; padding: 0;
}
.blog-paginacion .page-numbers {
  min-width: 38px; height: 38px;
  padding: 0 6px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px; font-weight: 700;
  color: #1a1a1a; background: #ffffff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.blog-paginacion a.page-numbers:hover { border-color: #F5A800; color: #D4900A; }
.blog-paginacion .page-numbers.current { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }

/* ── SIDEBAR ── */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; }
.widget {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  padding: 26px 24px;
}
.widget-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: #1a1a1a;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid #F5A800;
}

/* Widget 1: Buscador */
.widget-buscador { padding: 0; overflow: hidden; }
.buscador-form { position: relative; }
.buscador-input {
  width: 100%;
  padding: 18px 52px 18px 20px;
  border: none;
  font-family: 'Barlow', sans-serif;
  font-size: 14px; color: #1a1a1a;
  background: #ffffff;
  box-sizing: border-box;
}
.buscador-input::placeholder { color: #999; }
.buscador-input:focus { outline: 2px solid #F5A800; outline-offset: -2px; }
.buscador-btn {
  position: absolute; top: 0; right: 0;
  width: 52px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #1a1a1a;
  border: none; cursor: pointer;
  transition: background .2s;
}
.buscador-btn:hover { background: #F5A800; }
.buscador-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.buscador-btn:hover svg { stroke: #1a1a1a; }

/* Widget 2: Recientes */
.recientes-item {
  display: flex; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
}
.recientes-item:last-child { border-bottom: none; padding-bottom: 0; }
.recientes-item:first-child { padding-top: 0; }
.recientes-thumb {
  width: 56px; height: 56px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#2c2c2c,#4a4a4a);
  overflow: hidden;
}
.recientes-thumb svg { width: 20px; height: 20px; stroke: #F5A800; fill: none; stroke-width: 1.5; opacity: .6; }
.recientes-info { min-width: 0; }
.recientes-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13.5px; font-weight: 700; line-height: 1.3;
  color: #1a1a1a; text-decoration: none;
  display: block; margin-bottom: 5px;
}
.recientes-titulo:hover { color: #D4900A; }
.recientes-fecha {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase;
  color: #aaa;
}

/* Widget 3: Categorías */
.categorias-lista { list-style: none; margin: 0; padding: 0; }
.categorias-item { border-bottom: 1px solid #f0f0f0; }
.categorias-item:last-child { border-bottom: none; }
.categorias-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px;
  font-size: 14px; color: #444;
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.categorias-link:hover { color: #D4900A; padding-left: 6px; }
.categorias-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700;
  color: #aaa;
}
.categorias-link:hover .categorias-count { color: #F5A800; }

/* ── BREAKPOINTS ── */
@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { order: -1; }
}
@media (max-width: 720px) {
  .blog-seccion { padding: 48px 20px 64px; }
  .blog-header { padding: 44px 28px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-destacada { grid-column: span 1; grid-template-columns: 1fr; }
  .blog-card-destacada .blog-card-thumb { min-height: 180px; }
}

/* ─────────────────────────────────────────────────────────────
   FIX: el tema Industrial agrega su propia columna de sidebar
   (.btSidebar, con su buscador "Looking for..." y "Recent Posts"
   en inglés) al lado de .btContent, y le da a .btContent un ancho
   fijo más angosto para dejarle espacio. Como esta plantilla ya
   trae su propio sidebar (buscador / recientes / categorías)
   dentro de .blog-layout, ocultamos el del tema y expandimos
   nuestro contenido al 100% del ancho disponible.
   Todo esto scoped a esta plantilla vía la clase que WordPress
   agrega automáticamente al <body>, para no afectar el resto
   del sitio.
   ───────────────────────────────────────────────────────────── */
body.page-template-page-blog-tecnico .btSidebar,
body.single-post .btSidebar {
  display: none !important;
}
body.page-template-page-blog-tecnico .btContent,
body.single-post .btContent {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.page-template-page-blog-tecnico .btContentHolder,
body.single-post .btContentHolder {
  display: block !important;
}

/* ─────────────────────────────────────────────────────────────
   ARTÍCULO INDIVIDUAL (single.php)
   ───────────────────────────────────────────────────────────── */
.blog-articulo-header {
  max-width: 780px;
  margin: 0 auto 32px;
}
.blog-articulo-cat {
  display: inline-block;
  background: #F5A800;
  color: #1a1a1a;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.blog-articulo-titulo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1.12;
  color: #1a1a1a !important;
  margin-bottom: 16px;
}
.blog-articulo-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: .3px; text-transform: uppercase;
  color: #999;
  margin-bottom: 18px;
}
.blog-articulo-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-articulo-meta svg { width: 14px; height: 14px; stroke: #bbb; fill: none; stroke-width: 2; }
.blog-articulo-volver {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: .3px;
  color: #D4900A !important;
  text-decoration: none;
}
.blog-articulo-volver:hover { color: #1a1a1a !important; }

.blog-articulo-imagen {
  max-width: 1200px;
  margin: 0 auto 40px;
}
.blog-articulo-imagen img {
  width: 100%; height: auto;
  display: block;
}

.blog-articulo-cuerpo {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  padding: 40px 44px;
  font-size: 16px;
  line-height: 1.85;
  color: #333 !important;
}
.blog-articulo-cuerpo h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  color: #1a1a1a !important;
  margin: 36px 0 14px;
}
.blog-articulo-cuerpo h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 800;
  color: #1a1a1a !important;
  margin: 28px 0 12px;
}
.blog-articulo-cuerpo p { margin: 0 0 18px; color: #333 !important; }
.blog-articulo-cuerpo ul, .blog-articulo-cuerpo ol { margin: 0 0 18px; padding-left: 22px; }
.blog-articulo-cuerpo li { margin-bottom: 8px; color: #333 !important; }
.blog-articulo-cuerpo strong { color: #1a1a1a; }
.blog-articulo-cuerpo table {
  width: 100%; border-collapse: collapse; margin: 8px 0 24px;
  font-size: 14px;
}
.blog-articulo-cuerpo table th, .blog-articulo-cuerpo table td {
  border: 1px solid #e8e8e8; padding: 10px 14px; text-align: left;
}
.blog-articulo-cuerpo table th {
  background: #1a1a1a; color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
}

@media (max-width: 720px) {
  .blog-articulo-cuerpo { padding: 28px 22px; }
}
