.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  position: relative;
  width: 100%;
  height: 590px;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* overlay solo capa visual */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* ESTE ES EL EQUIVALENTE A slide-inner */
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: flex-start;

  padding: 0 0 51px 0; /* o 40px si quieres aire */
}
.hero-sub {
  color: #fff;
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 22.222px;
}
.hero h1 {
  color: #fff;
  font-size: 57.778px;
  font-style: normal;
  font-weight: 500;
  line-height: 66.667px; /* 115.385% */
}

/* FILTROS */
.filtros {
  background: #F3EEE3;
  padding: 33px 0;
  margin-bottom: 51px;
}

.filtros-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.filtro-label {
  color: #555;
}

.filtros-list a {
  text-decoration: none;
  color: #333;
  margin-right: 15px;
}

.filtros-list a.activo {
  font-weight: bold;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* CARD */
.card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #D4D4D4;
}

.card-img {
  position: relative;
  height: 226px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff7a00;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding: 3px 10px;
  text-transform: uppercase;
  border-radius: 20px;
}

.card-body {
  padding: 18px;
  justify-content: space-between;
  display: flex;
    flex-direction: column;
    height: 205px;
}

.card-body h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  margin-bottom: 10px;
}

.date {
  display: block;
  font-size: 16px;
  color: #000;
  font-weight: 400;
  margin-bottom: 15px;
}
.blog-primal{
    padding-bottom: 120px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid #2A3570;
  padding: 12px 16px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  color: #2A3570;
  width: 100%;
  text-align: center;
}
.btn:hover {
 background: #2A3570;
 color: #fff;
}
/* PAGINACION */
.paginacion {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.paginacion a,
.paginacion span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(0, 0, 0, 0.40);
}

.paginacion span.activo {
  background: #ff7a00;
  color: #fff;
    border: 1px solid #ff7a00;

}
/* =========================================
DETALLE POST
========================================= */

.detallepost {
    padding: 50px 0 100px;
}

.detallepost .container {
    max-width: 1260px;
}

/* =========================================
TOC
========================================= */

.toc-box {
    width: 100%;
    background: #F3EEE3;
    border-radius: 12px;
    padding: 36px 36px;
    margin-bottom: 48px;
}

.toc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.toc-header h3 {
    font-size: 24px;
    font-weight: 400;
    color: #000;
}

.toc-toggle {
    width: 42px;
    height: 42px;
    border: none;
    background: #f3eee3;
    cursor: pointer;
    color: #222;
    transition: .3s ease;
}

.toc-toggle:hover {
    transform: scale(1.08);
}
.toc-toggle img{
  mix-blend-mode: multiply;
  width: 36px;
}
.toc-content {
    padding-top: 26px;
}

.toc-content.active {
    display: none;
}

.toc-content ul {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.toc-content li {
    list-style: decimal;
    margin-left: 18px;
}

.toc-content li.h3 {
    margin-left: 36px;
}

.toc-content li.h4 {
    margin-left: 54px;
}

.toc-content li.h5 {
    margin-left: 72px;
}

.toc-content a {
    font-size: 16px;
    line-height: 25px;
    color: #000;
    transition: .3s ease;
}

.toc-content a:hover {
    color: #E87D0D;
}

/* =========================================
CONTENT
========================================= */

.detallepost__contenido {
    width: 100%;
}

.detallepost__contenido > *:first-child {
    margin-top: 0;
}

.detallepost__contenido h2,
.detallepost__contenido h3,
.detallepost__contenido h4,
.detallepost__contenido h5 {
    color: #111;
    font-weight: 600;
    line-height: 1.2;
    scroll-margin-top: 120px;
}

.detallepost__contenido h2 {
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 18px;
}

.detallepost__contenido h3 {
    font-size: 18px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.detallepost__contenido h4 {
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 18px;
}

.detallepost__contenido h5 {
    font-size: 18px;
    margin-top: 34px;
    margin-bottom: 16px;
}

.detallepost__contenido p {
    font-size: 16px;
    line-height: 24px;
    color: #000;
    font-weight: 400;
    margin-bottom: 24px;
}

.detallepost__contenido ul,
.detallepost__contenido ol {
    margin-bottom: 28px;
    padding-left: 24px;
}

.detallepost__contenido li {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.detallepost__contenido img {
    width: 100%;
    border-radius: 18px;
    margin: 34px 0;
    display: block;
}

.detallepost__contenido a {
    color: #E87D0D;
    text-decoration: underline;
}

/* =========================================
SHARE
========================================= */

.detallepost__share {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 50px;
    margin-top: 50px;
    border-top: 1px solid rgba(0,0,0,.08);
}

.detallepost__share span {
    font-size: 16px;
    font-weight: 400;
}

.detallepost__share-links {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.detallepost__share-links a {
    height: 46px;
    padding: 0 12px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s ease;
}
.detallepost__share-links svg{
  width: 22px;
    max-height: 20px;
    object-fit: contain;
}
.share-btn.share-facebook {
    background: #1877F2;
    color: #fff;
}

.share-btn.share-twitter {
    background: #1DA1F2;
    color: #fff;
}
.share-btn.share-linkedin {
    background: #0077B5;
    color: #fff;
}
.share-btn.share-whatsapp {
    background: #25D366;
    color: #fff;
}
/* =========================================
RELATED
========================================= */

.detallepost__related {
    margin-top: 90px;
}

.detallepost__related-top {
    margin-bottom: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detallepost__related-top h2 {
    font-size: 32px;
    line-height: 38px;
    color: #000;
    font-weight: 400;
}

.relatedSwiperPost {
    margin-bottom: 100px;
}
.relatedPost-prev,
.relatedPost-next {
    width: 42px;
    height: 42px;
    border: 1px solid #000;
    border-radius: 50%;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.relatedPost-prev:hover,
.relatedPost-next:hover {

    border: 1px solid #ee7203;
    background: #ee7203;
  
}
.related-arrows{
  display: flex;
  gap: 13px;
}


/* RESPONSIVE */

@media (max-width: 1320px) {
.hero-inner{
    max-width: 100%;
    padding: 50px;
}
}
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 44px;
  }
  .hero-inner{
    max-width: 100%;
    padding: 20px;
}
}
@media (max-width: 789px) {
      .hero {
    height: 400px;
  }
   .hero h1 {
    font-size: 32px;
  }
  .toc-box{
    padding: 26px;
  }
  .toc-header h3{
    font-size: 20x;
  }
  .toc-content a{
    font-size: 14px;
  }
  .detallepost__contenido p{
    font-size: 14px;
  }
  .detallepost__related-top h2{
    font-size: 26px;

  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 300px;
  }

  .hero h1 {
    font-size: 24px;
    line-height: 34px;
  }
  .filtros{
    padding: 20px 0px;
  }
  .hero-sub{
    font-size: 14px;
  }
  .card-img{
    height: 187px;
  }
  .card-body h3{
    font-size: 15px;
    line-height: 19px;
  }
  .date{
    font-size: 14px;
  }
}
