
/* =================================
   SECCIÓN DE PROYECTOS
================================= */

.seccion-proyectos {
    width: 86%;
    max-width: 1250px;
    margin: 80px auto 50px;
}

/* SEPARADOR SUPERIOR */

.separador-proyectos {
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        #BFA0FF,
        #FFFFFF,
        #BFA0FF,
        transparent
    );
    margin-bottom: 50px;
}

/* TÍTULO */

.titulo-proyectos {
    text-align: center;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 46px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 50px;
    position: relative;
    text-shadow: 0 3px 15px rgba(191, 160, 255, 0.35);
}

/* LÍNEA DECORATIVA DEL TÍTULO */

.titulo-proyectos::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    margin: 18px auto 0;
    border-radius: 10px;
    background: linear-gradient(
        to right,
        #8B5CF6,
        #D8B4FE
    );
}

/* CONTENEDOR DE PROYECTOS */

.contenedor-proyectos {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* =================================
   TARJETA DE PROYECTO
================================= */

.tarjeta-proyecto {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 35px;

    padding: 25px;
    background: rgba(20, 16, 38, 0.85);
    border: 1px solid rgba(191, 160, 255, 0.3);
    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-proyecto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* =================================
   IMAGEN DEL PROYECTO
================================= */


/* IMAGEN DEL PROYECTO */

.imagen-proyecto {
    display: block;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    justify-self: center;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}

.imagen-proyecto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: transparent;
    transition: transform 0.4s ease;
}

.imagen-proyecto:hover img {
    transform: scale(1.04);
}


/* =================================
   INFORMACIÓN DEL PROYECTO
================================= */

.informacion-proyecto {
    color: #F5F0FF;
}

.informacion-proyecto h3 {
    color: #BFA0FF;
    font-family: 'Montserrat', sans-serif;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 18px;
}

.informacion-proyecto p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 22px;
}

/* ENLACE AL PROYECTO */

.enlace-proyecto {
    display: inline-block;
    color: #BFA0FF;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.enlace-proyecto:hover {
    color: #FFFFFF;
}

/* =================================
   DISEÑO RESPONSIVE
================================= */

@media (max-width: 800px) {

    .seccion-proyectos {
        width: 90%;
    }

    .titulo-proyectos {
        font-size: 34px;
        letter-spacing: 1px;
    }

    .contenedor-proyectos {
        grid-template-columns: 1fr;
    }

    .tarjeta-proyecto {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .imagen-proyecto img {
        height: 220px;
    }

    .informacion-proyecto h3 {
        font-size: 22px;
    }
}

/* =================================
   DISEÑO PARA MÓVILES
================================= */

@media (max-width: 800px) {

    .seccion-proyectos {
        width: 92%;
        margin: 50px auto 35px;
    }

    .titulo-proyectos {
        font-size: 30px;
        letter-spacing: 1px;
        margin-bottom: 30px;
    }

    .contenedor-proyectos {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* TARJETA */

    .tarjeta-proyecto {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;

        padding: 18px;
        margin: 0;
    }

    /* IMAGEN */

    .imagen-proyecto {
        width: 190px;
        height: 190px;
        max-width: 100%;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        flex-shrink: 0;
    }

    .imagen-proyecto img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        margin: 0;
    }

    /* TEXTO */

    .informacion-proyecto {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .informacion-proyecto h3 {
        font-size: 21px;
        margin-bottom: 12px;
    }

    .informacion-proyecto p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .enlace-proyecto {
        font-size: 14px;
    }
}

/* PROYECTO EN DESARROLLO */

.proyecto-en-proceso {
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(135deg, #30204f, #7135b8);
    border-radius: 12px;
    min-height: 220px;
}

.proyecto-en-proceso span {
    color: white;
    font-size: 38px;
    font-weight: 800;
}

/* ESTADO DEL PROYECTO */

.estado-proyecto {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 15px;

    color: #D6BFFF;
    background: rgba(191, 160, 255, 0.12);

    border: 1px solid #BFA0FF;
    border-radius: 20px;

    font-size: 13px;
    font-weight: 600;
}


/* ENLACE A GITHUB */

.enlace-github-proyectos {
    text-align: center;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.enlace-github-proyectos p {
    color: #D8D0E8;
    font-size: 16px;
    line-height: 1.7;
}

.enlace-github-proyectos a {
    color: #BFA0FF;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.enlace-github-proyectos a:hover {
    color: #FFFFFF;
}

.enlace-github-proyectos a span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.enlace-github-proyectos a:hover span {
    transform: translate(3px, -3px);
}

@media (max-width: 600px) {
    .enlace-github-proyectos {
        margin: 15px auto 25px;
    }

    .enlace-github-proyectos p {
        font-size: 14px;
    }
}

/* TECNOLOGÍAS DE CADA PROYECTO */

.tecnologias-proyecto {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.tecnologias-proyecto span {
    display: inline-block;
    padding: 7px 13px;

    background: rgba(191, 160, 255, 0.12);
    border: 1px solid rgba(191, 160, 255, 0.5);
    border-radius: 20px;

    color: #D6BFFF;
    font-size: 12px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.tecnologias-proyecto span:hover {
    background: #BFA0FF;
    color: #211B30;
    transform: translateY(-2px);
}

/* ADAPTACIÓN MÓVIL */

@media (max-width: 600px) {
    .tecnologias-proyecto {
        gap: 7px;
        margin-top: 14px;
    }

    .tecnologias-proyecto span {
        padding: 6px 10px;
        font-size: 11px;
    }
}



