body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.blog-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.blog-header {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
}

.blog-posts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

@media (min-width: 1200px) {
    .blog-posts {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
        row-gap: 50px; /* Espaciado vertical entre filas de tarjetas */
    }
}

  @media (max-width: 768px) {
      .blog-posts {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          padding: 0;
          margin: 0 auto;
          width: 100%;               /* Asegura que ocupe todo el ancho disponible */
          box-sizing: border-box;    /* Considera el padding y el borde en el cálculo del ancho */
      }
  
      .blog-post {
          width: 90%;                /* Ajusta el ancho para un mejor centrado */
          max-width: 320px;
          padding: 10px;
          margin: 0 auto;            /* Centrado horizontal */
          box-sizing: border-box;
      }

    .blog-container {
        display: flex;
        flex-direction: column;
        align-items: center;        /* Centra todo el contenedor sobre el fondo gris */
        justify-content: center;
        margin: 0 auto;             /* Centrado horizontal */
        width: 100%;                /* Asegura que ocupe todo el ancho */
        box-sizing: border-box;
    }
}




.blog-post {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.blog-post:hover {
    transform: scale(1.05);
}

.blog-post-image {
    width: 100%;
    height: auto;
    border-radius: 10px 10px 0 0;
}

.blog-post-content {
    flex-grow: 1;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.blog-post-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0;
}

.blog-post-summary {
    font-size: 0.9em;
    color: #666;
}

.blog-post-image-expanded {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 10px;
    display: block;
}

.blog-full-post {
     text-align: justify;
    max-width: 100%;
    width: 95%;             /* Aumenta el ancho para una mejor visualización */
    margin: auto;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
    padding-left: 3%;       /* Reduce el padding lateral */
    padding-right: 3%;
    overflow-x: hidden;
    max-width: 95vw;        /* Permite mayor expansión horizontal */
    box-sizing: border-box;
}

.blog-full-post h1 {
    text-align: center;
    margin-top: 20px;
}

.blog-read-more {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    text-align: center;
    align-self: center;
}

.blog-read-more:hover {
    background: #0056b3;
}

@media screen and (min-width: 1024px) {
    .blog-container {
        position: relative;
        top: -100px; /* Ajusta el valor según lo que necesites */
    }
}


@media screen and (min-width: 1024px) {
    .blog-container {
        max-width: 95vw; /* Hace que el contenedor ocupe el 95% del ancho de la pantalla */
        width: 95vw; /* Alternativa para asegurar el ajuste */
        margin: auto; /* Mantiene centrado el contenedor */
    }
}

