*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    background: var(--color-bg);
    color: var(--color-text);
}

.nav{
    background-color: var(--color-primary-dark);
    height: 76px;
    color: #fff;
    position: fixed;
    width: 100vw;
    z-index: 20;
    box-shadow: var(--shadow-sm);
}

.nav_container{
    display: flex;
    height: 100%;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
}

.nav_menu{
    display: grid;
    grid-auto-flow: column;
    gap:2.4em;
}

.nav_item{
    color:#fff;
    text-decoration: none;
    --clippy: polygon(0 0, 0 0, 0 100%, 0% 100%);
    font-size: 18px;
    font-weight: 600;
}

.nav_item::after{
    content: "";
    display: block;
    background: var(--color-secondary);
    width:99%;
    margin-top:4px;
    height: 3px;
    border-radius: 3px;
    clip-path: var(--clippy) ;
    transition: clip-path .4s;
}

.nav_item:hover{
    --clippy: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav_input:checked + .nav_menu{
    background: var(--gradient-dark);
}

#menuIcon{
    transition: all .5s ease;
}

.nav_label,
.nav_input{
    display: none;
}

.nav_logo{
    width: 45px;
    height: 45px;
    object-fit: cover;
}

.active{
    color:var(--color-secondary-light);
}

.active::after{
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%) !important;
}

.main{
    padding-top: 76px;
}

.intro{
    background: var(--gradient-dark);
    color:#fff;
    text-align: center;
    padding: 70px 20px 60px;
}

.eyebrow{
    display: block;
    color: var(--color-secondary-light);
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 10px;
}

.intro h1{
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 16px;
}

.intro_text{
    color: rgba(255,255,255,.8);
    font-size: 17px;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

.intro_text a{
    color: var(--color-secondary-light);
    font-weight: 700;
    text-decoration: none;
}

.intro_text a:hover{
    text-decoration: underline;
}

.contenedor{
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 64px 0;
}

.servicios{
    background: var(--color-surface);
}

.cards{
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
}

.card{
    background: var(--color-surface);
    width: 29%;
    min-width: 260px;
    flex-grow: 1;
    text-align: center;
    padding: 40px 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    border-top: 4px solid transparent;
    box-shadow: var(--shadow-sm);
    transition: all .3s;
}

.card:hover{
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--color-secondary);
}

.card_icon{
    font-size: 38px;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    width: 84px;
    height: 84px;
    line-height: 84px;
    border-radius: 50%;
    margin-bottom: 20px;
    display: inline-block;
}

.card h4{
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.card p{
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 14.5px;
}

.proceso{
    background: var(--color-bg);
}

.titulo-seccion{
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 48px;
}

.pasos{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.paso{
    width: 22%;
    min-width: 200px;
    flex-grow: 1;
    text-align: center;
}

.paso_numero{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 14px;
}

.paso h4{
    font-size: 17px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.paso p{
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.portafolio{
    background: var(--color-surface);
    text-align: center;
}

.portafolio .eyebrow{
    color: var(--color-secondary);
}

.proyectos{
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 10px;
}

.proyecto{
    width: 22%;
    min-width: 220px;
    flex-grow: 1;
    text-align: left;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: all .3s;
}

.proyecto:hover{
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.proyecto_img{
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
}

.proyecto_img--1{ background: linear-gradient(135deg, #1A237E, #3949AB); }
.proyecto_img--2{ background: linear-gradient(135deg, #FF3D00, #FF8A50); }
.proyecto_img--3{ background: linear-gradient(135deg, #10154F, #1A237E); }
.proyecto_img--4{ background: linear-gradient(135deg, #3949AB, #7986CB); }

.proyecto h4{
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    margin: 16px 16px 6px;
}

.proyecto p{
    color: var(--color-text-muted);
    font-size: 13.5px;
    line-height: 1.5;
    margin: 0 16px 18px;
}

.portafolio_nota{
    margin-top: 32px;
    color: var(--color-text-muted);
    font-style: italic;
    font-size: 14px;
}

.cta{
    background: var(--gradient-primary);
    color: #fff;
    text-align: center;
}

.cta .contenedor{
    padding: 70px 0;
}

.cta h2{
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.cta p{
    color: rgba(255,255,255,.8);
    margin-bottom: 28px;
}

.cta .boton{
    display: inline-block;
    padding: 14px 40px;
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-accent);
    transition: all .3s;
}

.cta .boton:hover{
    transform: translateY(-2px);
}

@media screen and (max-width:900px){
    .card{
        width: 45%;
    }

    .proyecto{
        width: 45%;
    }
}

@media screen and (max-width:660px){

    .intro h1{
        font-size: 32px;
    }

    .card{
        width: 100%;
    }

    .paso{
        width: 45%;
    }

    .proyecto{
        width: 100%;
    }

    .none{
        display: none;
    }

    .nav_label{
        display: block;
        cursor:pointer;
        align-items: center;
        padding-top:30px;
    }

    .nav_menu{
        position: fixed;
        top:76px;
        bottom:0;
        background: var(--gradient-dark);
        width: 100%;
        left: 0px;
        display: flex;
        justify-content: start;
        flex-direction: column;
        align-items: center;
        gap: 1.6em;
        clip-path: circle(0 at center);
        transition: clip-path 0.5s;
        padding-top: 30px;
        z-index: 21;
    }

    .nav_input:checked + .nav_menu{
        clip-path: circle(100% at center);
    }

    .nav_img{
        width: 60px;
        height: 60px;
    }

    .nav_logo{
        width: 35px;
        height: 35px;
        object-fit: cover;
    }
}
