body {
    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-wr {
        width: 30px;
    }

    #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);
    }

    #top:hover {
        background-color: antiquewhite;
    }

    /* .princinfo {
        width: 100%;
        height: auto;
        margin-top: 20px;
        text-align: justify;
        position: absolute;
        justify-content: start;
        top: 70%;
        left: 15%;
    } */
    /* 
    .p h1 {
        font-family: "Parkinsans", sans-serif;
        font-size: 25px;
    }

    .p p {
        font-family: "Montserrat", sans-serif;
        font-size: 18px;
        line-height: 5px;
    } */
    .main-layout {
        display: flex;
        height: 100vh;
        width: 100%;
    }

    .scroll-text-wrapper {
        flex: 1;
        height: 100%;
        overflow-y: scroll;
        padding: 0 40px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .text-scroll-area {
        padding-top: 50px;
        padding-bottom: 50px;
    }




    .estatico-content {
        height: 500px;
        display: flex;
        flex: 0 0 40%;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        padding: 50px;
    }

    .imagen {
        width: 500px;
        height: auto;
        display: block;
        object-fit: cover;
    }

    .imagen {
        height: 500px;
        display: block;
        object-fit: cover;
        border-radius: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25),
            0 5px 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease-in-out;
    }

    .imagen:hover {
        transform: translateY(-15px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35),
            0 8px 15px rgba(0, 0, 0, 0.2);
    }

    #tit {
        font-family: "Gloria Hallelujah", cursive;

        position: relative;
        color: #333;
        padding: auto;
        font-size: 85px;
        text-align: center;
        font-style: oblique;
    }

    #tit::after,
    #sub::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 5px;
        background-color: #000000;
        transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    #tit:hover::after,
    #sub:hover::after {
        width: 100%;
    }

    #sub {
        font-size: 40px;
        text-align: center;
        font-style: oblique;
        position: relative;
        display: inline-block;
        font-family: "Montserrat", sans-serif;
        margin: -5px;
    }

    .princinfo {
        padding: 40px;
        margin-left: 100px;
        margin-top: -90px;
    }

    .princinfo p {
        font-size: 18px;
        line-height: 1.6;
        margin-bottom: 15px;
        font-family: "Montserrat", sans-serif;
        color: #555;
    }

    .anim-con {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        margin-top: 40px;
    }

    .show-item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 80px;

    }

    .show-item img {
        width: 50px;
        height: 50px;
        transition: transform 0.3s ease-in-out;
    }

    .show-item:hover img {
        transform: scale(1.1);
        cursor: pointer;
    }

    .txts {
        position: absolute;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;

    }

    .show-item:hover .txts {
        border-radius: 20px;
        cursor: pointer;
        height: 50px;
        width: 50px;
        font-size: 20px;
        font-family: "Montserrat", sans-serif;
        opacity: 1;
        top: -60px;
        text-align: center;
        padding: 20px;
    }


    #pf {
        font-family: "Kalam", cursive;

        font-size: 25px;
        font-weight: 800;

    }
}

@media (max-width: 1023px) {
    body {
        font-family: "Montserrat", sans-serif;

        background-color: grey;
    }


    .barra {
        opacity: 0;

    }

    #logo {
        text-align: center;
        justify-content: center;
        height: 50px;
        width: 50px;
    }

    .logo-wr {
        margin-top: 20px;
        text-align: center;
        justify-content: center;
        gap: 15px;

    }

    .princinfo {
        margin-top: 300px;
        justify-content: safe;
        padding: 20px;
    }

    .p h1 {
        font-family: "Parkinsans", sans-serif;
        font-size: 25px;
    }

    br {
        display: none;
    }

    .p p {
        font-family: "Montserrat", sans-serif;
        font-size: 18px;
        line-height: 1;
    }

    .anim-con img {
        height: 50px;
        width: 50px;
    }

    .anim-con {
        display: inline-flex;
        width: 100%;
        padding: 10px;
        margin: -10px;
        justify-content: center;

    }

    .anim-con span {
        display: none;
    }
    .estatico-content img {
        height: auto;
        width: 200px;
        justify-content: center;
        text-align: center;
        padding: 20px;
    }
    .estatico-content {
        width: max-width;
        display: flex;
        align-items: center;
        position: absolute;
        top: 10%;
        margin: 10px;
        padding: 20px;
    }
}