body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    overflow-x: hidden;
    transition: opacity 1s ease-in-out;
    
}
.fade-in {
    opacity: 1;
}
.fade-out {
    opacity: 0;
}
@media (min-width: 1024px) {
    body {
        background-image: url(/imagenes/fondo.png);
        overflow-x: hidden;
        overflow-y: hidden;
    }

    .barra {
        height: 100px;
        border-left: 2px solid black;
        margin-top: 550px;
        margin-left: 30px;
        position: absolute;
    }

    #logo {
        width: 30px;
        display: flex;
        height: 30px;
        padding: 20px;
        border-radius: 20px;
        transition: 0.3s ease-in-out;
        cursor: pointer;
    }

    #logo:hover {
        transform: scale(1.1);
    }

    .princinfo {
        display: flex;
        margin: -120px 160px;
        height: 100vh;
        width: 100%;
        bottom: 0;
    }

    .p h1 {
        font-family: "Parkinsans", sans-serif;
        font-size: 25px;
    }

    .p p {
        font-family: "Montserrat", sans-serif;
        font-size: 18px;
        line-height: 5px;
    }

    .estatico-content {
        flex: 0 0 40%;
        padding: 50px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .scroll-proyectos-wrapper {
        flex: 1;
        height: 100%;
        margin: 70px 0;
        overflow-y: scroll;
        scrollbar-width: none;
    }
    .card-content a {
                text-decoration: none;
    }


    .proyectos-scroll-area {
        padding: 50px;
    }

    /* ----------------------------------- */
    /* Estilos de la Tarjeta de Presentación */
    /* ----------------------------------- */

    .project-card {
        width: 90%;
        max-width: 450px;
        margin-bottom: 35px;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .card-image-wrapper {
        width: 100%;
        height: 180px;
        overflow: hidden;
        text-decoration: none;
    }

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        padding: 10px;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .project-card:hover .card-image-wrapper img {
        transform: scale(1.05);
    }

    .card-content {
        padding: 20px 25px;
    }

    .card-title {
        font-size: 1.3em;
        color: #333;
        margin-top: 0;
        margin-bottom: 10px;
        font-family: sans-serif;
    }

    .card-description {
        font-size: 0.9em;
        color: #666;
        line-height: 1.5;
        margin-bottom: 0;
        font-family: sans-serif;
        text-decoration: none;
    }

}

@media (max-width: 1023px) {
    body {
        background-color: grey;
    }
    .barra {
        opacity: 0;

    }

    #logo {
        height: 50px;
        width: 50px;
    }
    .logo-wr {
        margin-top: 20px; 
        text-align: center;
        justify-content: center;

    }

    .princinfo {
        justify-content: safe;
        padding: 20px;
    }

    .p h1 {
        font-family: "Parkinsans", sans-serif;
        font-size: 25px;
    }

    .p p {
        font-family: "Montserrat", sans-serif;
        font-size: 18px;
        line-height: 1;
    }

    .project-card {
        width: 90%;
        max-width: 450px;
        margin-bottom: 35px;
        padding: 20px;
        background-color: #adadad;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .project-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .card-image-wrapper {
        width: 100%;
        height: 180px;
        overflow: hidden;
    }

    .card-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.3s ease;
    }

    .project-card:hover .card-image-wrapper img {
        transform: scale(1.05);
    }

    .card-content {
        padding: 20px 25px;
    }
            .card-content a {
                text-decoration: none;
    }

    .card-title {
        font-size: 1.3em;
        color: #333;
        margin-top: 0;
        margin-bottom: 10px;
        font-family: sans-serif;
    }

    .card-description {
        font-size: 0.9em;
        color: #666;
        line-height: 1.5;
        margin-bottom: 0;
        font-family: sans-serif;
    }
}