.proyect{
    width: 100%;
    height: auto;
    background-color: #acb9c2;
    display: flex;
    padding: 3rem 0rem;
    box-sizing: border-box;
    overflow: hidden; /* evita que un SVG sin viewBox rompa el layout */
}

.proyectText{
    width: 50%;
    height: auto;
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: 'light';
    color: var(--main-color);
    box-sizing: border-box;
}

.proyectText h1{
    font-size: 5rem;
    text-align: center;
}
.proyectText span{
    font-family: 'Strong';
    font-size: 6rem;
}
.proyectText p{
    font-size: 1.5rem;
    text-align: justify;
}

.proyectIMG{
    width: 60%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-sizing: border-box;
}

.proyectTop{
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.proyectTop img{
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    padding: 2rem;
    box-sizing: border-box;
}

.proyectIMG a{
    display: block;
    width: 100%;
    /* FIX: centra el botón dentro del contenedor */
    display: flex;
    justify-content: center;
}

.proyectIMG a > img{
    width: 100%;
    max-width: 280px;   /* FIX: tamaño real de botón, ya no ocupa el 100% del contenedor */
    height: auto;
    display: block;
    object-fit: cover;
}

/* --- RESPONSIVE --- */

/* Laptops pequeñas / tablets grandes */
@media (max-width: 1024px) {
    .proyectText{
        padding: 3rem 2rem;
    }

    .proyectText h1{
        font-size: 3.5rem;
    }

    .proyectText span{
        font-size: 4.25rem;
    }

    .proyectText p{
        font-size: 1.2rem;
    }

    .proyectIMG a > img{
        max-width: 240px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .proyect{
        flex-direction: column;
        padding: 2rem 0;
    }

    .proyectText{
        width: 100%;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .proyectText h1{
        font-size: 2.75rem;
    }

    .proyectText span{
        font-size: 3.25rem;
    }

    .proyectText p{
        font-size: 1.05rem;
        text-align: center;
    }

    .proyectIMG{
        width: 100%;
    }

    .proyectTop img{
        padding: 2rem;
    }

    .proyectIMG a > img{
        max-width: 220px;
    }
}

/* Celulares medianos */
@media (max-width: 480px) {
    .proyectText{
        padding: 1.5rem 1rem;
    }

    .proyectText h1{
        font-size: 2rem;
    }

    .proyectText span{
        font-size: 2.4rem;
    }

    .proyectText p{
        font-size: 0.95rem;
    }

    .proyectTop img{
        padding: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .proyectIMG a > img{
        max-width: 200px;
        padding: 0;
        margin-left: 0; /* ya no es necesario, el flex centra */
    }
}

/* Celulares muy pequeños */
@media (max-width: 360px) {
    .proyectText h1{
        font-size: 1.7rem;
    }

    .proyectText span{
        font-size: 2rem;
    }

    .proyectText p{
        font-size: 0.85rem;
    }

    .proyectIMG a > img{
        max-width: 180px;
    }
}