.grid-container {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    max-width: 1150px;
    margin: 0 auto;
  }

  .grid-item {
    background-color: #3490dc;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 8px;
    font-size: 1.2rem;
  }

  /* 1 columna en móviles */
  .grid-container {
    grid-template-columns: 1fr;
  }

  /* 2 columnas entre 600px y 799px */
  @media (min-width: 600px) {
    .grid-container {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  /* 3 columnas entre 800px y 1109px */
  @media (min-width: 800px) {
    .grid-container {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* 4 columnas desde 1110px en adelante */
  @media (min-width: 1110px) {
    .grid-container {
      grid-template-columns: repeat(4, 1fr);
    }
  }

  /* Blog */
  @media screen and (min-width: 801px) {
    .containerBlogGeneral {
        max-width: 1150px;
        margin: auto;
        background-color: green;
    }
}


.containerBlog {
    display: grid;
    gap: 20px;
    margin: auto;
    padding: 10px;
}

.blog-entry {
position: relative;
overflow: hidden;
height: 300px;
display: flex;
align-items: flex-start;
justify-content: flex-start;
padding: 15px;
color: white;
font-family: Arial, sans-serif;
text-align: left;
border-radius: 10px;
}

/* Fondo con imagen y zoom */
.blog-entry::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-image: inherit; /* Usa el background-image que ya tenías */
z-index: 0;
transition: transform 0.5s ease;
}

/* Zoom interno al pasar el mouse */
.blog-entry:hover::before {
transform: scale(1.2);
}

/* Todo el contenido sobre la imagen */
.blog-entry * {
position: relative;
z-index: 1;
}

.blog-entry h1,
h4 {
    margin: 0;
    /* Elimina los márgenes predeterminados */
    padding: 0;
    /* Asegura que no haya relleno adicional */
    font-family: Playfair Display, serif;
    font-size: 24px;
}

.blog-entry a h4 {
    color: #fff;
}

.blog-entry a {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none; /* opcional: quita subrayado */
  color: inherit; /* mantiene el color heredado */
}

@media screen and (min-width: 801px) {
    .containerBlog {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1150px;
        padding-left:15px;
        padding-right: 15px;
    }
}

@media screen and (min-width: 601px) and (max-width: 800px) {
    .containerBlog {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .containerBlog {
        grid-template-columns: 1fr;
    }
}

.visitContainer {
    display: flex;
    justify-content: flex-end;
    margin-top: 35px;
    padding: 0px 15px; 
}

.visitContainer {
  display: flex;
  justify-content: flex-end;
  margin-top: 35px;
}

.titleBlog {
  font-family: Playfair Display, serif;
  text-align: center;
  font-size: 26px;
}

.blogDetail img {
  height: 550px;
  width: auto;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .mx-20 {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }
}

.header-seccion {
  max-width: 1440px;
  margin: auto;
  padding-top: 30px;
  height: 389px;
  background-image: url("/images/blog/blog_background2.jpg");
  background-size: cover;
} 

.servicios-titulo h1 {
font-family: Playfair Display, serif;
font-size: 51px;
}

.servicios-titulo h2 {
font-family: Playfair Display, serif;
font-size: 32px;
}

.servicios-titulo p {
  font-family: Playfair Display, serif;
font-size: 28px;
}

.subseccion-header {
margin-top: 60px;
display: flex;
flex-direction: column;
padding-left: 25px;
padding-right: 25px;
}

.titleDetail {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

/* Solo aplica corte en pantallas pequeñas (ej. móviles) */
@media (max-width: 600px) {
.titleDetail {
  max-width: 14ch; /* 14 caracteres aprox */
  display: inline-block;
  margin-top: 5px;
}
}