/* =================================================
   LISTADO BLOG
================================================= */

.blog-listado-header {
  text-align: center;
  padding: 20px 0 40px;
}

.blog-listado-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  padding-bottom: 60px;
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card__imagen {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 16px;
}

.blog-card__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card__imagen img {
  transform: scale(1.08);
}

.blog-card__imagen--vacia {
  background: #f0f0f0;
  height: 220px;
}

.blog-card__titulo {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1a3f16;
  line-height: 1.4;
  text-align: center;
}
.blog-card__titulo:hover {color:#498037;}

/* =================================================
   FILTROS CATEGORÍA BLOG
================================================= */

.blog-categorias {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 0 40px;
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.blog-cat-btn {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #637381;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-cat-btn:hover,
.blog-cat-btn.activa {
  color: #277a44;
  border-bottom: 2px solid #277a44;
  padding-bottom: 1px;
}

/* =================================================
   PAGINADOR BLOG
================================================= */

.blog-listado-grid .js-pager__items {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.blog-listado-grid .js-pager__items li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid #498037;
  color: #498037;
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-listado-grid .js-pager__items li a:hover {
  background: #498037;
  color: #fff;
}

.blog-listado-grid .js-pager__items li:not(:has(a)) {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  color: #498037;
  font-size: 0.9rem;
}

.blog-listado-grid nav[role="navigation"] {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}
/* =================================================
   ENTRADA DE BLOG / NOTA
================================================= */

.blog-entry {
  padding-bottom: 80px;
}

.blog-entry__header {
  text-align: center;
  padding: 20px 0 10px;
}

.blog-titulo-brush {
  font-family: 'VasttagBrush', cursive;
  font-size: 80px;
  color: #1a3f16;
  line-height: 1;
  margin-bottom: 32px;
}

.blog-entry__hero {
  position: relative;
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 40px;
}

.blog-entry__hero-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.blog-entry__body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}

.blog-entry__meta {
  margin-bottom: 24px;
}

.blog-entry__titulo {
  font-family: 'Figtree', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #1a3f16;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-entry__meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.blog-entry__categoria {
  font-family: 'Figtree', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #151515;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-entry__fecha {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  color: #888;
}

.blog-entry__divisor {
  width: 100%;
  height: 10px;
  background: #498037;
  margin-bottom: 24px;
}

.blog-entry__contenido {
  font-family: 'Figtree', sans-serif;
  font-size: 24px;
  color: #1a3f16;
  line-height: 1.5;
}

.blog-entry__contenido p {
  margin-bottom: 16px;
}

/* Sidebar */
.blog-entry__sidebar {
  position: sticky;
  top: 20px;
}

.blog-sidebar__titulo {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 1.35em;
  color: #1a3f16;
  text-transform: uppercase;
  margin-bottom: 20px;
  border-bottom: 2px solid #498037;
  padding-bottom: 10px;
}

.blog-sidebar__productos {
  margin-bottom: 40px;
}

.blog-sidebar__relacionados .views-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.blog-sidebar__relacionados .views-row img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.blog-sidebar__relacionados .views-row a {
  font-family: 'Figtree', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1a3f16;
  text-decoration: none;
}

.blog-sidebar__relacionados .views-row a:hover {
  color: #498037;
}

.blog-entry__contenido .field__label {
  display: none;
}

.blog-entry__contenido .field__label {
  display: none;
}

.blog-sidebar__productos .producto-relacionado-nombre {
  display: none;
}

.blog-sidebar__productos .producto-relacionado-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.blog-sidebar__productos .listado-productos-grid,
.blog-sidebar__productos .views-element-container > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* ==============================
         SECCIÓN TITLE
=================================*/

.blog-entry__meta-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 20px;
  align-items: start;
  margin-bottom: 16px;
}

.blog-entry__meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

/* =================================================
   HERO BLOG CON BLOB
================================================= */

.blog-entry__hero {
  padding: 40px 0;
  overflow: hidden;
}

.blog-entry__hero-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 450px;
}

.blog-hero__bg {
  position: absolute;
  width: 35%;
  left: 20%;
  top: 60%;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}

.blog-hero__foto-wrap {
  position: relative;
  width: 65%;
  height: 450px;
  z-index: 1;
}

.blog-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: url('/themes/custom/aires_theme/images/blob-foto-blog.svg');
  mask-image: url('/themes/custom/aires_theme/images/blob-foto-blog.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.blog-hero__clip {
  display: none;
}

/*==============================
      NOTAS RELACIONADAS
===============================*/

.nota-relacionada a {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  margin-bottom: 16px;
}

.nota-relacionada img,
.nota-relacionada__sin-imagen {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.nota-relacionada span {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: #1a3f16;
  line-height: 1.3;
}

.nota-relacionada span:hover {
  color: #498037;
}

/* =================================================
   BLOG — MÓVIL
================================================= */

@media screen and (max-width: 764px) {
  .blog-listado-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 1px;
  }

  .blog-categorias-movil {
    padding: 0 16px;
    margin-bottom: 24px;
  }

  .blog-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .blog-pills::-webkit-scrollbar {
    display: none;
  }

  .blog-pill {
    font-family: 'Figtree';
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #498037;
    border: 2px solid #498037;
    border-radius: 40px;
    padding: 8px 16px;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .blog-pill.activa,
  .blog-pill:hover {
    background-color: #498037;
    color: #ffffff;
  }

  .blog-card__titulo {
    font-weight: 500;
    font-size: 18px;
  }

  .blog-card {
    padding: 0 8px;
  }

  .blog-card__imagen {
    overflow: hidden;
  }

  .blog-card__titulo {
    padding: 8px 4px 0;
  }

  .blog-entry__body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blog-entry__sidebar {
    position: static;
  }

  .blog-entry__contenido {
    font-size: 18px;
  }

  .blog-entry__titulo {
    font-size: 1.3rem;
  }

 .blog-entry__hero-wrap {
    min-height: 300px;
    flex-direction: column;
  }

  .blog-hero__foto-wrap {
    width: 90%;
    height: 300px;
  }

  .blog-hero__bg {
    width: 70%;
    left: 5%;
    top: 50%;
  }

  .blog-sidebar__productos .views-view-grid,
  .blog-sidebar__productos .js-view-dom-id-3f69f78940c2f792c8ce4c3a8e94083aab388371e7fceae3971b641a42d10bfe {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100%;
  }

  .blog-producto-card {
    width: 100%;
  }

  .blog-producto-card img {
    width: 100%;
    height: auto;
  }

  .blog-sidebar__productos .listado-productos-grid,
  .blog-sidebar__productos .views-element-container > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .blog-sidebar__productos [class^="js-view-dom-id"] {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100% !important;
    overflow: hidden;
  }

  .blog-sidebar__productos {
    overflow: hidden;
    width: 100%;
  }

.blog-entry__main,
  .blog-entry__sidebar {
    padding: 0 16px;
  }
  
  .blog-entry__main {
    border-right: 0px;
    padding-right: 16px;
}

}


/*****************
    Ajustes
*****************/

.blog-entry__main {
  border-right: 2px solid #498037;
  padding-right: 40px;
}

.blog-sidebar__cta {
  font-family: 'Figtree', sans-serif;
  font-size: 20px;
  color: #151515;
  line-height: 1.5;
  margin-bottom: 35px;
}

.btn-mas-recetas__wrap {width: 300px !important;}

.blog-entry__header.container {margin-bottom: -30px;}

.blog-entry__body.container {margin-top: 20px;}

.blog-entry__meta-right {padding-right: 22px;}

.blog-categorias.container {    width: calc(100% - 14px);
    margin: 0 auto 40px;
    padding: 24px 0 22px;
    border-bottom: solid 1px rgba(151, 151, 151, .3);
    overflow-x: auto;}



