* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 140px;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #ffffff;
}

header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 76px;
    display: block;
}

.logo-texto {
    font-size: 1rem;
    font-weight: bold;
    color: #111;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #111;
    font-weight: bold;
    transition: color 0.3s ease;
}
    
nav a:hover {
    color: #8A8F3A;
}

.hero {
    height: 80vh;
    background:
        linear-gradient(
            rgba(0,0,0,0.65),
            rgba(0,0,0,0.35)
        ),
        url('../img/hp-proyectos-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.hero-texto {
    color: white;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.boton {
    background-color: #8A8F3A;
    color: white;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.boton:hover {
    background-color: #74772f;
}

.confianza {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 40px;
    background: #f7f7f7;
}

.confianza div {
    width: 280px;
    background: white;
    padding: 35px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.confianza div:hover {
    transform: translateY(-5px);
}

.confianza h2{
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #111;
}

.confianza p {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
}

.nosotros,
.servicios,
.proyectos,
.contacto,
.blog {
    padding: 90px 40px;
    text-align: center;
}

.nosotros {
    background: white;
}

.nosotros h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #111;
}

.nosotros p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.bloques-servicios {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
}

.servicio {
    width: 42%;
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.servicio:hover {
    transform: translateY(-5px);
}

.servicio h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #111;
}

.servicio p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.servicios {
    background: #f8f8f8;
}

.proyectos h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #111;
}

.galeria-proyectos {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
}

.proyecto-card {
    width: 30%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.proyecto-card:hover {
    transform: translateY(-5px);
}

.proyecto-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.proyecto-card h3 {
    padding: 20px 20px 8px;
    font-size: 1.2rem;
    color: #111;
}

.proyecto-card p {
    font-size: 0.95rem;
    color: #666;
    margin-top: 8px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.boton-card {
    display: inline-block;
    margin: 0px 20px;
    padding: 10px 18px;
    background: #8A8F3A;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.boton-card:hover {
    background: #74772F;
}

.proyectos > p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.proyectos .boton {
    display: inline-block;
    margin-top: 45px;
    padding: 12px 28px;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.proyectos .boton:hover {
    background: #333;
}

.blog {
    background: white;
}

.blog h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #111
}

.blog p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555
}

footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 0.95rem;
}

.contacto {
    background: #f8f8f8;
}

.contacto-box {
    max-width: 500px;
    margin: 35px auto 0;
    background: white;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.contacto-box p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 140px;
    }
    
    header {
        flex-direction: column;
        gap: 8px;
        padding: 10px 16px;
    }

    .logo img {
        height: 52px;
    }

    .logo-texto .marca {
        font-size: 0.95rem;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 14px;
        text-align: center;
    }

    nav a {
        font-size: 0.9rem;
    }

        .hero h1 {
        font-size: 2rem;
    }

    .confianza {
        flex-direction: column;
        align-items: center;
    }

    .bloques-servicios {
        flex-direction: column;
        align-items: center;
    }

    .servicio {
        width: 90%;
    }

    .galeria-proyectos {
        flex-direction: column;
        align-items: center;
    }

    .proyecto-card {
        width: 90%;
    }

}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 15px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
}

.galeria-hero {
    background: #f7f7f7;
    padding: 100px 40px 70px;
    text-align: center;
}

.galeria-hero h1 {
    font-size: 2.6rem;
    color: #111;
    margin-bottom: 20px;
}

.galeria-hero p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.galeria-seccion {
    padding: 80px 40px;
    background: white;
    text-align: center;
}

.galeria-seccion:nth-child(even) {
    background: #f8f8f8;
}

.galeria-seccion h2 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 35px;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.galeria-item:hover {
    transform: translateY(-5px);
}

.galeria-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.galeria-item:hover img {
    transform: scale(1.04);
}

.galeria-item h3 {
    padding: 20px 20px 8px;
    font-size: 1.2rem;
    color: #111;
}

.galeria-item p {
    padding: 0 20px 22px;
    font-size: 0.95rem;
    color: #666;
}

@media (max-width: 768px) {
    .galeria-hero {
        padding: 80px 20px 50px;
    }

    .galeria-hero h1 {
        font-size: 2rem;
    }

    .galeria-seccion {
        padding: 60px 20px;
    }

    .galeria-grid {
        grid-template-columns: 1fr;
    }

    .galeria-item img {
        height: 240px;
    }
}