body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(to bottom, #f5f5f5, #d4b89b);
    background-attachment: fixed;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
}

.logo img {
    width: 150px;
    height: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li:first-child a {
    background-color: #25D366;
}

nav ul li:nth-child(2) a {
    background-color: #007BFF;
}

nav ul li a:hover {
    opacity: 0.8;
}

.nav-icon {
    width: 20px;
    height: 20px;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

.hero-text {
    flex: 1;
    text-align: left;
    padding: 20px;
}

.hero-text h1 {
    font-size: 4em;
    font-weight: 700;
    color: #000;
    margin: 40px;
    white-space: pre-wrap; /* Permite el salto de línea */
    max-width: 300px; /* Ajusta el ancho máximo para forzar el salto de línea */
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2em;
        text-align: center;
        max-width: 100%; /* Ajusta el ancho para pantallas pequeñas */
    }
}

.hero-text h3 {
    font-size: 1.2em;
    font-weight: 400;
    color: #333;
    background: #e5a161;
    padding: 20px;
    border-radius: 10px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 2em;
        text-align: center;
    }

    .hero-text h3 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-image img{
        display: none; /* Oculta la imagen en dispositivos móviles */
    }
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #333;
}

h2
{
text-align:center
}

.hero-text h3 {
    font-size: 1.2em;
    font-weight: 400;
    color: #333;
text-align:center;
	background:#e5a161;
	padding:40px;
    border-radius: 10px;
text-align:center;
	margin-left: 40px
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 20px;
/*    background-image: linear-gradient(rgba(0, 0, 255, 0.5), rgba(255, 255, 0, 0.1)),
                      url("piso-piedra2-leo.jpg");
    background-position: 30% 40%;
*/
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 55%;
    height: auto;
    border-radius: 8px;
}

.placeholder {
    background-color: #ddd;
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-weight: 700;
}

#instalamos {
    padding: 40px 20px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
}

.service {
    text-align: center;
    width: 300px;
}

.service-image {
    background-color: #ddd;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden; /* Asegura que las imágenes no se salgan del contenedor */
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen para que cubra todo el contenedor */
    border-radius: 8px; /* Mantiene el borde redondeado */
}

.quote-button {
    background-color: #ff7f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.7em; /* Ajusta el tamaño del texto */
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.quote-button:hover {
    background-color: #e06b00;
}

#blog {
    background-color: #fff; /* Fondo blanco */
    padding: 0; /* Espaciado interno para separar el contenido del borde */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Sombra para darle un efecto de elevación */
    margin-bottom: 60px; /* Espacio inferior para separar de otras secciones */
}

.blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
}

.blog-post {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    text-align: center;
    padding: 20px;
}

.blog-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.blog-post h3 {
    font-size: 1em;
    margin: 10px 0;
    padding: 0 30px;
}

.blog-post p {
    font-size: .9em;
    padding: 0 20px;
    color: #666;
}

.read-more {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 20px;
    background-color: #ff7f00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #e06b00;
}

#about{
    padding: 0; /* Espaciado interno para separar el contenido del borde */
    margin-bottom: 60px; /* Espacio inferior para separar de otras secciones */
}

.reviews-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
}

.review {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px;
    text-align: center;
    padding: 10px;
    font-size: .8em;
}

.review img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.review p {
    margin: 10px 0;
    color: #666;
    font-style: italic;
}
  footer {
       background-color: #333;
       color: #fff;
       text-align: center;
       padding: 80px 0;
       width: 100%;
       box-sizing: border-box;
       height: 400px;
   }

   .contact-actions {
       display: flex;
       justify-content: center;
       gap: 20px;
       margin-bottom: 20px;
   }

   .action.whatsapp {
       background-color: #25D366; /* Mismo color que el botón de Cotizar en la navegación */
   }

   .action.phone {
       background-color: #007BFF; /* Mismo color que el botón de Llamar en la navegación */
   }

   .action {
       border-radius: 8px;
       padding: 15px 20px;
       display: flex;
       align-items: center;
       gap: 10px;
       transition: opacity 0.3s ease;
   }

   .action a {
       color: #fff;
       text-decoration: none;
       display: flex;
       align-items: center;
       gap: 10px;
   }

   .action img {
       width: 24px;
       height: 24px;
   }

   .action span {
       font-size: 1em;
       font-weight: 700;
   }

   .action:hover {
       opacity: 0.8;
   }

main {
    max-width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.article-info {
    display: flex;
    align-items: center;
    font-size: 0.8em;
    color: #999;
    margin-bottom: 20px;
    text-align: left;
}

.author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.blog-article h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
}

.article-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.blog-article h2, .blog-article h3 {
    margin-top: 20px;
    font-weight: 700;
    text-align: left;
}

.blog-article p, .blog-article ul {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.related-articles {
    max-width: 100%;
    margin: 40px auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.related-articles h2 {
    font-size: 1em;
    margin-bottom: 15px;
    text-align: left;
}

.related-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
}

.related-item {
    min-width: 100px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    flex-shrink: 0;
}

.related-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.related-item h3 {
    font-size: 1em;
    margin: 10px 0;
    padding: 0 10px;
    color: #333;
    text-align: left;
}

.related-item a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-item a:hover {
    color: #0056b3;
}

.blog-repository{
max-width: 800px;
    margin: 0 auto;
}

.blog-repository h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
}


.blog-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
padding: 40px;

}

.blog-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.blog-card h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    margin: 15px;
}

.blog-card p {
    margin: 0 15px 15px;
    color: #666;
}

.read-more {
    display: block;
    margin: 15px;
    padding: 10px 20px;
    background-color: #ff7f00;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #e06b00;
}