/* ===========================
   RESET
=========================== */

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

html{
    scroll-behavior:smooth;
}

body{
    cursor:url("imagenes/cursor.png"), auto;
    background:#efd8ff;
    background-image:radial-gradient(#fff 2px, transparent 2px);
    background-size:32px 32px;
    font-family:Verdana, Geneva, sans-serif;
    color:#5a3d73;
}

/* ===========================
   TOP AREA
=========================== */

.top-area{
    max-width:1500px;
    margin:0 auto;
}

.banner{
    width:100%;
    display:block;
    border-bottom:4px solid #c889ff;
}

/* ===========================

/* PANEL DERECHO */
.right-panel{

    width:280px;
    min-height:450px;

    margin-left:auto;
    margin-right:20px;
    margin-top:20px;

    background:#e6c8ff;

    background-image:linear-gradient(
        to bottom,
        rgba(255,255,255,.9),
        rgba(255,255,255,.3),
        rgba(230,200,255,1)
    );

    border:3px solid #ffffff;

    border-radius:20px;

    padding:15px;

    box-shadow:0 0 15px rgba(255,255,255,.8);


}

/* Barra de scroll */

.right-panel::-webkit-scrollbar{

    width:10px;

}

.right-panel::-webkit-scrollbar-track{

    background:#d9b8ff;

    border-radius:10px;

}

.right-panel::-webkit-scrollbar-thumb{

    background:linear-gradient(#ffffff,#c78cff);

    border-radius:10px;

}

.right-panel h2{

    color:#6f3cc8;

    text-align:center;

    margin-bottom:10px;

    text-shadow:0 0 6px white;

}

.right-panel p{

    color:#4a2a70;

    line-height:1.5;

}


.top-nav{
    display:flex;
    justify-content:center;
    gap:15px;
    padding:15px;
    background:white;
    border-bottom:3px solid #d3b2ff;
    position:sticky;
    top:0;
    z-index:1000;
}

.top-nav a{
    text-decoration:none;
    color:#7b4da7;
    background:#f5ebff;
    padding:8px 18px;
    border-radius:20px;
    transition:.25s;
}

.top-nav a:hover{
    background:#c889ff;
    color:white;
}

/* ===========================
   CONTENEDOR
=========================== */

.container{
    max-width:1400px;
    margin:25px auto;
    padding:0 20px;

    display:grid;
    grid-template-columns:1fr 300px;

    gap:25px;
}

/* ===========================
   VENTANAS
=========================== */

.window{
    background:white;
    border:3px solid #d7b8ff;
    border-radius:18px;
    padding:18px;
    margin-bottom:20px;
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}

.window h1,
.window h2{
    color:#a25fe5;
    margin-bottom:12px;
}

/* ===========================
   PERFIL
=========================== */

.profile{
    width:180px;
    display:block;
    margin:0 auto 20px;
}

/* ===========================
   GALERÍA
=========================== */

.gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.gallery img{
    width:100%;
    border-radius:10px;
}

/* ===========================
   MUSIC PLAYER
=========================== */

.media-player{
    background:#ececec;
    border:2px solid #888;
    padding:10px;
    border-radius:8px;
}

.player-title{
    font-weight:bold;
    margin-bottom:10px;
}

.song-info{
    display:flex;
    align-items:center;
    gap:10px;
}

.song-info img{
    width:60px;
    height:60px;
    border:2px solid #777;
    object-fit:cover;
}

#progress,
#volume{
    width:100%;
    margin-top:8px;
}

button{
    margin-top:8px;
    padding:4px 10px;
    cursor:pointer;
}

/* ===========================
   SIDEBAR
=========================== */

.left,
.right{
    display:flex;
    flex-direction:column;
}

/* ===========================
   FOOTER
=========================== */

footer{
    text-align:center;
    padding:25px;
    color:#7b4da7;
}

/* ===========================
   CURSOR SPARKLES
=========================== */

#sparkles{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:9999;
}

.sparkle{
    position:absolute;
    width:8px;
    height:8px;
    background:white;
    border-radius:50%;
    box-shadow:0 0 8px white;
    animation:sparkle .8s linear forwards;
}

@keyframes sparkle{
    from{
        opacity:1;
        transform:scale(1);
    }

    to{
        opacity:0;
        transform:translateY(-20px) scale(0);
    }
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width:900px){

    .container{
        grid-template-columns:1fr;
    }

    .left,
    .right{
        order:2;
    }

    main{
        order:1;
    }

    .top-nav{
        flex-wrap:wrap;
    }

    .profile{
        width:150px;
    }
}