.hero {
  margin-bottom: 20px;
}
.hero a {
  transition: var(--transicion-time) ease all;
}
.hero a:hover {
  color: white;
  background-color: var(--secundario);
  text-decoration: underline;
}
.hero .hero-content {
  position: relative;
  height: 290px;
  overflow: hidden;
  font-size: clamp(60px, 5.6vw, 70px);
  font-weight: 400;
}
.hero .hero-content .capa-base,
.hero .hero-content .capa-verde {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.hero .hero-content .texto-superior {
  position: absolute;
  top: 50px;
  left: 30%;
  font-weight: inherit;
}
.hero .hero-content .texto-inferior {
  position: absolute;
  top: 140px;
  left: 44%;
  font-weight: inherit;
}
.hero .hero-content .capa-verde {
  z-index: 2;
  color: white;
  background-color: var(--primario);
  clip-path: circle(200px at 55% 45%);
  transition: var(--transicion-time) ease all;
}
.hero .hero-content .capa-verde:hover {
  background-color: var(--secundario);
}
.hero .barra-navegacion {
  width: auto;
}
/* Tu código original (se aplicará en pantallas grandes) */
.hero .barra-navegacion ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 10px 50px;
  padding: 0px 8%;
  color: var(--secundario-variacion);
  font-weight: 600;
  list-style: none;
  background-color: rgba(255, 119, 0, 0);
}

.hero .barra-navegacion li a {
  display: inline-block;
  padding: 5px;
}

/* --- NUEVO CÓDIGO --- */
/* Cuando la pantalla sea de 768px o menos (tablets/móviles) */
@media (max-width: 768px) {
  .hero .barra-navegacion ul {
    display: grid;
    grid-template-columns: repeat(
      2,
      1fr
    ); /* Crea exactamente 2 columnas del mismo tamaño */
    justify-items: center; /* Centra los enlaces dentro de su columna */
    gap: 15px 20px; /* Es recomendable reducir el gap en móviles para que no quede tan separado */
  }
}
.blog {
  padding: 2% 4%;
  background-color: white;
}
.blog .blog-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.blog .blog-grid .post-card {
  margin-bottom: 20px;
}
.blog .blog-grid .post-card a {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 5px;
}
.blog .blog-grid .post-card .post-image {
  overflow: hidden;
  border-radius: 15px;
}
.blog .blog-grid .post-card .post-image img {
  min-height: 342px;
  width: 100%;
  object-position: 50% 50%;
  object-fit: contain;
  transform: scale(105%);
  transition: var(--transicion-time) ease all;
}
.blog .blog-grid .post-card .post-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1%;
}
.blog .blog-grid .post-card .post-content .date {
  margin-bottom: 10px;
  font-weight: 300;
}
.blog .blog-grid .post-card .post-content h4 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.4;
  text-align: justify;
  text-transform: capitalize;
}
.blog .blog-grid .post-card .post-content .abstract {
  margin-bottom: 25px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.2;
  text-align: justify;
}
.blog .blog-grid .post-card .post-content .category {
  color: var(--gris);
}
.blog .blog-grid .post-card .post-content .leer-mas {
  color: var(--secundario);
}
.blog .blog-grid .post-card:hover {
  background-color: var(--gris-claro);
}
.blog .blog-grid .post-card:hover img {
  transform: scale(100%);
}
.blog .blog-grid .post-card:hover .leer-mas,
.blog .blog-grid .post-card:hover h4 {
  text-decoration: underline;
}
@media (max-width: 992px) {
  .blog .blog-grid .post-card a {
    grid-template-columns: 80%;
    justify-content: center;
  }
  .blog .blog-grid .post-card a::after {
    content: "";
    display: block;
    justify-self: center;
    width: 99%;
    height: 3px;
    margin-top: 10px;
    background-color: var(--gris);
    border-radius: 20px;
  }
}
.paginacion {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 20px;
}
@media (max-width: 768px) {
  .hero .hero-content .texto-superior {
    left: 18%;
  }
  .hero .hero-content .texto-inferior {
    left: 18%;
  }
  .hero .hero-content .capa-verde {
    clip-path: circle(200px at 50% 50%);
  }
}
