.blog {
  display: flex;
  padding: 10%;
  padding-top: 6%;
  justify-content: space-between;
  padding-left: 10%;
  padding-right: 5%;
}

.blog p, .blog ul {
  font-size: 20px;
}


.blog h1, .blog h2, .blog h3 {
  text-align: start;
  padding-right: 0;
  padding-left: 0;
}

.blog section {
  width: 65%;
  max-width: 1000px;
}

.blog aside {
  width: 28%;
  border-left: 1px solid rgba(145, 145, 145, 0.288);
  padding-left: 2%;
}

.blog aside div{
  background-color: rgba(250, 235, 215, 0.425);
  border: 1px solid rgba(153, 153, 153, 0.39);

  padding:5%;
  margin:2%;
}


.blog aside a {
  text-decoration: none;
  color: rgb(196, 127, 0);
  font-size: 23px;
}

.blog aside a.actual {
  color: rgb(0, 126, 78);
}

.blog aside a:hover {
  color: rgb(0, 126, 78);
}

.blog aside ul {
  list-style: none;
}

.blog aside ul a {
  font-size: 18px;
}


.blog img {
  margin-top: 2%;
  margin-bottom: 2%;
  max-width: 90%;
}

.blog aside li {
  margin-top: 5%;
  border-bottom: 1px solid black;
}

.blog section ul {
  margin-left: 5%;
}
.blog section h3 {
  margin-bottom: 1%;
  margin-top: 3%;
}


.blog aside p {
  font-size: 14px;
}

.otros-articulos {
  display: flex;
}

@media screen and (max-width: 900px){
  .blog {
    flex-direction: column;

  }
  .blog section {
    width: 100%;
  }
  
  .blog aside {
    width: 100%;
    border-left:0;
  }
  main h1 {
    margin-top: 10%;
  }
  .otros-articulos {
    display: block;
  }
}






section.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 3 columnas en pantallas grandes */
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

.blog-item {
  text-align: center;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease-in-out;
}

.blog-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.image-container {
  width: 100%;
  height: 200px; /* Mantiene todas las imágenes del mismo tamaño */
  overflow: hidden;
  border-radius: 30px;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta y ajusta la imagen sin deformarla */
  display: block;
}

.blog-item h3 {
  margin-top: 10px;
  font-size: 1.2rem;
}

/* Efecto hover */
.blog-item:hover {
  transform: scale(1.05);
}

/* Media Queries para hacerlo responsivo */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  }
}



nav.pagination {
  position: initial;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px;
  margin-top: 40px;
  justify-content: space-between;
}

nav.pagination a,
nav.pagination span {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  background: #f4f4f4;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

nav.pagination a:hover {
  background: #0073e6;
  color: #fff;
  transform: scale(1.1);
}

nav.pagination .active {
  background: #0073e6;
  color: #fff;
  font-weight: bold;
}

nav.pagination .dots {
  background: transparent;
  color: #555;
  pointer-events: none;
}

/* Responsive: Se compacta en pantallas pequeñas */
@media (max-width: 600px) {
  nav.pagination {
    gap: 5px;
  }
  
  nav.pagination a, .pagination span {
    padding: 8px 12px;
    font-size: 14px;
  }
}