*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif, Arial, Helvetica, sans-serif;
    

}

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;

    & .logo{
        display: flex;
        align-items: center;
        gap: 10px;

        & img{
            width: 50px;
            height: 50px;
        }

        & h1{
            font-size: 1.5rem;
            font-weight: bold;
        }

    }

    & .options{
        display: flex;
        gap: 2rem;
        list-style: none;

        & a{
            font-size: 1.1rem;
            cursor: pointer;
            padding: 0.5rem 1rem;
            border-radius: 8px;
            transition: background 0.2s, color 0.2s;
            text-decoration: none;
            color: #191919;
        }

        & a:hover{
            background-color: #0051ff;
            color: white;
        }
    }

    & .menu-toggle {
        display: none;
        font-size: 2rem;
        cursor: pointer;
        color: #0051ff;
        background: #fff;
        border-radius: 8px;
        padding: 0.3rem 0.7rem;
        margin-left: auto;
    }
}



main{
    display: flex;
    align-items: center;
    gap: 8vw;
    background-size: cover;
    margin-bottom: 3rem;
    padding: 0  20%;

}

main > .left {
    gap: 200%;


    & h1{
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 1rem;
        gap: 10px; 
        }
    & p{
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    & button{
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        border-radius: 10px;
        background-color: #25D366;
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

}

main > .right img{
    width: 30dvw;
}

.about{
    padding: 0  20%;
    
    margin-bottom: 3rem;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    & img{
        width: 15dvw;
        margin-bottom: 1rem;
    }
    & h1{
        text-align: center;
        font-size: clamp(1rem, 5vw, 2.2rem);
        margin-bottom: 1rem;
        gap: 10px; 
        font-weight: 500;
    }

    & p{
        text-align: center;
    }
}

.projects{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;

    & h1{
        font-size: clamp(1rem, 5vw, 2.2rem);
        margin-bottom: 1rem;
        gap: 10px; 
    }

    & .items{
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 4rem;
        width: 100%;
        max-width: 900px;

        & .item{
            display: flex;
            gap: 1.5rem;
            & .left{
                > svg{
                    border-radius: 15px;
                    padding: 5%;
                    background-color: #0051ff;
                    fill: #fff;
                }
            }

            & .right{
                display: flex;
                flex-direction: column;
                justify-content: center;

                > h3{
                    font-size: 1.3rem;
                    margin-bottom: 0.5rem;
                }

                > p{
                    font-size: 1rem;
                    color: #313131;
                    margin-bottom: 0.3rem;
                }

                > button{
                    background-color: #0051ff;
                    padding: 0.5rem 1rem;
                    border-radius: 10px;
                    color: white;
                    border: none;
                    cursor: pointer;
                    display: flex;
                    justify-content: center;
                    flex-direction: row;
                    gap: 10px;
                    align-items: center;
                    
                }
            }
        }
    }

}

.contact{
    margin: 0  20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    background-color: #0051ff;
    border-radius: 10px;
    cursor: pointer;
    gap: 10px;
    padding: 1%;
    & h2{
        font-size: clamp(1rem, 5vw, 1.5rem);
        gap: 10px; 
        color: #fff;
    }

    & p{
        text-align: center;
        font-size: clamp(0.5rem, 5vw, 1.1rem);
        color: rgba(251, 255, 0, 0.87)
    }
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 5%;
    background-color: #f1f1f1;
    color: #191919;
    font-size: 0.9rem;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #0051ff;
    text-decoration: none;
}

/* Estilos para las ubicaciones */
footer .locations {
    margin-bottom: 1rem;
}

footer .locations h4 {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

footer .locations ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .locations li {
    margin-bottom: 0.3rem;
}



/* Animación de entrada */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplica animación a los principales componentes */
header,
main,
.about,
.projects,
.contact,
footer {
    opacity: 0;
    animation: fadeUp 1.5s ease forwards;
}

header { animation-delay: 0.5s; }
main { animation-delay: 0.7s; }
.about { animation-delay: 0.8s; }
.projects { animation-delay: 0.9s; }
.contact { animation-delay: 1s; }y

footer { animation-delay: 1.1s; }

/* Opcional: animar los items de proyectos */
.projects .item {
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 1.3s;
}
.projects .item:nth-child(2) { animation-delay: 0.8s; }
.projects .item:nth-child(3) { animation-delay: 0.9s; }
.projects .item:nth-child(4) { animation-delay: 1s; }

@media (max-width: 700px) {
    
    header {
        flex-direction: row;
        align-items: center;
        padding: 1rem 1rem;
        position: relative;
        display: flex;
        justify-content: center; 
        
    }

    header .options {
        display: none;
    }


}

@media (max-width: 500px) {
    main {
        flex-direction: column-reverse;
        align-items: center;
        padding: 0 5%;
    }
    main > .left {
        display: flex;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    main > .right img {
        width: 80vw;
    }

    .projects{
        padding: 0 5%;
    }
    
    .projects .items {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .contact{
        padding: 5%;
        & h2{
            text-align: center;
        }
    }
}

