* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

#nosotros {
    scroll-margin-top: 100px;
}

#servicios {
    scroll-margin-top: 80px;
}

#trabajos {
    scroll-margin-top: 85px;
}

#contactanos {
    scroll-margin-top: 120px;
}

@media (max-width: 600px) {
    #nosotros {
    scroll-margin-top: 130px;
    }

    #servicios {
        scroll-margin-top: 110px;
    }

    #trabajos {
        scroll-margin-top: 90px;
    }

    #contactanos {
        scroll-margin-top: 120px;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: rgb(235, 235, 235);
    border-bottom: 1px solid rgb(213, 213, 213);
    top: 0;
    z-index: 100;
    display: fixed;
    position: sticky;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.header-nav {
    display: flex;
    gap: 2.5rem;
    font-family: 'Jost', sans-serif;
    color: rgb(138, 138, 138);
    font-weight: bold;
    padding: 1rem 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgb(100, 100, 100);
    padding: 0.5rem;
}

.header-nav a {
    justify-content: center;
    align-items: center;
    transition: 0.3s ease;
}

@media (min-width: 900px) {
    .header-nav a:hover{
        transform: scale(1.07);
        color: rgb(70, 180, 117);
    }
}

.header-nav a.active {
    transform: scale(1.07);
    color: rgb(70, 180, 117);
}

.logo {
    height: 100px;
    width: auto;
    display: block;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .header-nav {
        border-top: 1px solid rgb(138, 138, 138);
        justify-content: center;
        display: none;
        flex-direction: row;
        width: 100%;
        padding: 0.5rem 1 1rem;
        gap: 1rem;
        font-size: 0.8rem;
    }

    .header-nav.open {
        position: relative;
        display: flex;
    }

    .logo {
        height: 70px;
        width: auto;
        display: block;
    }
}



.logo-img {
    height: 200px;
    width: auto;
    display: block;
}

@media (max-width: 600px) {
    .logo-img {
        height: 120px;
    }
}



#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    gap: 4rem;
    padding: 3rem;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-cover {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.imagen-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-h1 {
    position: relative;
    z-index: 3;
    text-align: left;
    font-family: 'Yeseva One', sans-serif;
    font-size: clamp(2.3rem, 4vw + 1rem, 5rem);
    width: fit-content;
    background-color: rgb(235, 235, 235);
    outline: 1px solid rgb(138, 138, 138);
    border-radius: 15px;
    padding: 0.5rem 1rem;
}

.hero-btn-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.hero-btn {
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(120px, 10vw + 80px, 170px);
    padding: clamp(0.8rem, 1.5vw + 0.3rem, 1.5rem) clamp(1rem, 1.5vw + 0.5rem, 2rem);
    background-color: rgb(235, 235, 235);;
    outline: 1px solid rgb(138, 138, 138);
    border-radius: 24px;
    font-family: 'Jost', serif;
    font-size: clamp(0.8rem, 0.5vw + 0.6rem, 1rem);
    font-weight: bold;
    color: rgb(100, 100, 100);
    transition: 0.3s ease;
}

.hero-btn:hover {
    transform: scale(1.07);
    color:rgb(70, 180, 117);
    outline-color: rgb(70, 180, 117);
}

@media (max-width: 600px) {
    #hero {
        align-items: center;
        gap: 2rem;
        justify-content: flex-start;
        padding-top: 5rem;  
    }
}



.section-title p {
    font-family: 'Jost', serif;
    color: rgb(70, 180, 117);
    font-weight: bold;
}

.section-title h2 {
    color: rgba(27, 67, 182);
    font-family: 'Yeseva One', serif;
    font-size: 3rem;
    font-weight: 500;
}



.nosotros {
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.nosotros-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
}

.nosotros-cont {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center
}

.nosotros-desc {
    font-family: 'Jost', serif;
    color: rgb(138, 138, 138);
    max-width: 600px;
}

.nosotros-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.nosotros-card {
    background-color: rgb(235, 235, 235);
    outline: 1px solid rgb(213, 213, 213);
    border-radius: 10px;
    max-width: 200px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    box-shadow: -6px -6px 12px #ffffff, 6px 6px 12px #bebebe;
}

.nosotros-card-title {
    font-family: 'DM Serif Display', serif;
    color: rgb(70, 180, 117);
    font-size: 2rem;
}

.nosotros-card-cont {
    font-family: 'Jost', serif;
    color: rgb(138, 138, 138);
    font-size: 0.7rem;
}

.nosotros-img {
    height: 400px;
    width: auto;
    outline: 1px solid rgb(213, 213, 213);
    border-radius: 20px;
    box-shadow: -6px -6px 12px #ffffff, 6px 6px 12px #bebebe;
}

@media (max-width: 768px) {
    .nosotros-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem;
    }

    .nosotros-img {
        height: 250px;
        justify-self: center;
    }

    .nosotros-card {
        display: none;
    }
}



.servicios {
    padding: 2.5rem 1.5rem;
    background-color: rgb(235, 235, 235);
}

.servicios .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.servicios-container {
    display: flex;
    flex-direction: row;
    padding: 2rem;
}

.servicios-card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.2rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.servicios-card {
    background-color: white;
    outline: 1px solid rgb(213, 213, 213);
    border-radius: 10px;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    height: 230px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: -6px -6px 12px #ffffff, 6px 6px 12px #bebebe;
}

.servicios-card p {
    font-family: 'Jost', serif;
    color: rgb(138, 138, 138);
    font-size: clamp(0.65rem, 0.5vw + 0.5rem, 0.88rem);
}

.servicios-card ul {
    padding-top: 0.7rem;
    font-family: 'Jost', serif;
    color: rgb(138, 138, 138);
    padding-left: 2rem;
    font-size: clamp(0.6rem, 0.4vw + 0.45rem, 0.82rem);
}

.servicios-card-title {
    display: flex;
    align-items: center;
    font-size: clamp(0.75rem, 0.8vw + 0.4rem, 1rem);
    gap: 0.7rem;
    color: rgba(27, 67, 182);
}

.servicios-card li::marker {
    color: rgb(70, 180, 117);
}

@media (max-width: 600px) {
    .servicios-card-container {
        grid-template-columns: 1fr;
    }

    .servicios .section-title {
        text-align: left;
    }

    .servicios-card {
        height: auto;
    }
}



.trabajos {
    padding: 3.5rem 1.5rem;
}

.trabajos .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.slider {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0;
}

.slider-track {
    width: 100%;
}

@keyframes slide-loop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.trabajos-card-container {
    display: flex;
    width: max-content;
    gap: 32px;
    animation: slide-loop 24s linear infinite;
}

@media (hover: hover) {
    .trabajos-card-container:hover {
        animation-play-state: paused;
    }
}

.trabajos-card {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    flex-shrink: 0;
}

.trabajos-img {
    border-radius: 20px;
    outline: 1px solid rgb(213, 213, 213);
    height: 360px;
    width: auto;
    display: block;
    transition: ease 0.3s;
}

@media (hover: hover) {
    .trabajos-img:hover {
        transform: scale(1.01);
        outline: 1px solid rgb(70, 180, 117);
    }
}

@media (max-width: 600px) {
    .trabajos .section-title h2 {
        font-size: 2.5rem;
    }

    .trabajos .section-title{
        text-align: left;
    }

    .trabajos-card {
        min-width: 85vw;
    }

    .trabajos-img {
        height: 280px;
        width: 100%;
        object-fit: contain;
    }

    .slider {
        overflow: hidden;
        padding: 0 1rem;
    }
}


.contactanos {
    background-color: rgb(235, 235, 235);
    justify-content: center;
    margin: 0 auto;
    padding: 4rem;
}

.contactanos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: center;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.contactanos-info {
    font-family: 'Jost', serif;
    color: rgb(138, 138, 138);
    margin-top: 1.5rem;
}

.contactanos-info ul {
    justify-self: left;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0;
}

.contactanos-info ul li {
    text-align: left;
    justify-content: flex-start;
}

.contactanos-info ul li a {
    font-size: 1.3rem;
    color: rgb(70, 180, 117);
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.contactanos-info ul li a:hover {
    transform: translateX(8px);
}

.contactanos-mapa {
    width: 100%;
    height: 300px;
    outline: 2px solid rgb(213, 213, 213);
    border-radius: 10px;
    border: none;
    box-shadow: -6px -6px 12px #ffffff, 6px 6px 12px #bebebe;
}

@media (max-width: 600px) {
    .contactanos .section-title h2 {
        font-size: 2.5rem;
    }

    .contactanos .section-title{
        text-align: left;
    }

    .contactanos {
        padding: 2rem;
    }
}



footer {
    text-align: center;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    justify-content: center;
    align-items: center;
    padding: 2rem;
}


.footer-container address {
    align-items: center;
    justify-content: center;
    color: rgb(138, 138, 138);
    font-size: 1.5rem;
}

.footer-container address a {
    display: inline-block;
    transition: 0.3s ease;
}

.footer-container address a:hover {
    transform: scale(1.1);
    color: rgb(70, 180, 117);
}

.footer-container address p {
    font-family: 'Jost', serif;
    color: rgb(138, 138, 138);
    font-size: 1rem;
}

.footer-logo-copy {
    color: rgb(138, 138, 138);
}

@media (max-width: 600px) {
    .footer-container {  
        gap: 2rem;
        display: flex;
        flex-direction: column-reverse;
    }

    .footer-container address {
        font-size: 2rem;
    }
}



.whatsapp-flotante {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 999;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-flotante:hover {
    transform: scale(1.1);
}