
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f9f8f4; 
        }


        /* Social Media */

        /* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f8f4;
}

/* Sección entera */
.publicaciones-section {
  padding: 40px 0;
  background-color: #1F4F5B;
  padding-top: 10%;
  padding-right: 0px;
  padding-bottom: 40px;
  padding-left: 0px;
  width: 100%;
  height: auto;
}

.publicaciones-section2 {
  padding: 40px 0;
  background-color: #1F4F5B;
  padding-right: 0px;
  padding-bottom: 40px;
  padding-left: 0px;
  width: 100%;
  height: auto;
}

/* Contenedor Grid */
.grid-wrapper {
  display: grid;
  grid-template-columns: 300px repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  width: 90%;
  margin: 0 auto;
  align-items: start; /* Alinea todo al tope del grid :contentReference[oaicite:1]{index=1} */
}

/* Título junto a la primera tarjeta */
.grid-title {
  grid-column: 1 / 2;
  font-size: 2.8rem;
  color: #B79D86;
  align-self: start;
  padding-top: 10px;
}

/* Tarjetas estilo */
.blog-post {
  text-decoration: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.blog-post:hover {
  transform: translateY(-5px);
}

/* Imagen con proporción y texto superpuesto */
.blogimageoption {
  width: 100%;
  padding-top: 60%;
  position: relative;
  background-size: cover;
  background-position: center;
}
.blog-textoption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(255,255,255,0.5);
  color: #333;
  font-size: 1rem;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  transition: background 0.3s ease;
}
.blog-post:hover .blog-textoption {
  background: rgba(255,255,255,0.8);
}

/* Responsive: ajustar en móviles */
@media (max-width: 640px) {
  .grid-wrapper {
    grid-template-columns: 1fr; /* una columna */
  }
  .grid-title {
    grid-column: 1 / -1;
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}




 .blog-section {
    background-color: #f2f2f2; /* Color de fondo */
    padding: 50px 0; /* Espaciado interno superior e inferior */
    overflow: hidden; /* Para evitar que el contenido sobresalga */
                     width: 100%;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 2.5%;
    padding-bottom: 5%;
    color: #B79D86;
    font-size: 15px;
}

.blog-post {
    background-color: #fff; /* Color de fondo de cada publicación */
    border-radius: 8px; /* Bordes redondeados */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Sombra */
    overflow: hidden; /* Para evitar que el contenido sobresalga */
    transition: transform 0.3s ease; /* Efecto de transición */
}

.blog-post:hover {
    transform: translateY(-5px); /* Efecto de levantamiento al pasar el ratón */
}

.blog-post-content {
    padding: 20px; /* Espaciado interno */
}

.blog-post-content a {
    color: #333; /* Color del enlace */
    text-decoration: none; /* Sin subrayado */
}

.blog-post-content a:hover {
    text-decoration: underline; /* Subrayado al pasar el ratón */
}

.read-more {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
}

.read-more:hover {
    background-color: #0056b3;
}
        
        /* Media Query para pantallas de hasta 768px */
@media only screen and (max-width: 768px) {
    .blog-post {
        width: calc(50% - 20px); /* Reducir el ancho de las publicaciones para pantallas más pequeñas */
    }
}

/* Media Query para pantallas de hasta 576px */
@media only screen and (max-width: 576px) {
    .blog-post {
        width: calc(100% - 20px); /* Reducir el ancho de las publicaciones para pantallas aún más pequeñas */
    }
}


@media (max-width: 1600px) { 

.blogtitle {
  font-size: 30px;
  padding-right: 1%;
}

.blog-textoption {
font-size: 16px;
  color: #333;
  text-align: justify;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  font-weight: bolder;
  width: 40%;
        text-decoration: none;
}

.blogsection {
  display: flex;
  margin-left: 5%;
  width: 90%;
  margin-right: 5%;
  margin-top: 5%;
  margin-bottom: 2.5%;
}

}

@media (max-width: 1450px) { 

.blogtitle {
  font-size: 20px;
  padding-right: 1%;
}

.blog-textoption {
font-size: 14px;
  color: #333;
  text-align: justify;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  font-weight: bolder;
  width: 80%;
        text-decoration: none;
}

.blogsection {
  display: flex;
  margin-left: 2%;
  width: 96%;
  margin-right: 2%;
  margin-top: 5%;
  margin-bottom: 2.5%;
}

}



@media (max-width: 850px) { 

.blogtitle {
  font-size: 18px;
  padding-right: 1%;
}

.blog-textoption {
font-size: 12px;
  color: #333;
  text-align: justify;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  font-weight: bolder;
  width: 75%;
        text-decoration: none;
}

.blogsection {
  display: flex;
  margin-left: 2%;
  width: 96%;
  margin-right: 2%;
  margin-top: 5%;
  margin-bottom: 2.5%;
}

}

@media (max-width: 768px) { 

.blogtitle {
  font-size: 15px;
  padding-right: 1%;
}

.blog-textoption {
font-size: 10px;
  color: #333;
  text-align: justify;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  font-weight: bolder;
  width: 70%;
        text-decoration: none;
}

.blogsection {
  display: flex;
  margin-left: 2%;
  width: 96%;
  margin-right: 2%;
  margin-top: 5%;
  margin-bottom: 2.5%;
}

} 

@media (max-width: 576px) { 
    .blogtitle {
        font-size: 12px;
        padding-right: 1%;
      }
}
