/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body{
    background:#f5f8fa;
    color:#111;
}

/* NAV (ARREGLADO 🔥) */
nav{
    display:flex;
    align-items:center;
    gap:15px;
    padding:12px 20px;
    background:#fff;
    border-bottom:1px solid #ddd;
}

nav a{
    text-decoration:none;
    color:#555;
    font-size:14px;
    padding:6px 10px;
    border-radius:6px;
    transition:0.2s;
}

nav a:hover{
    background:#f0f0f0;
    color:#111;
}

nav a.active{
    font-weight:bold;
    color:#1da1f2;
}

/* LAYOUT */
.container{
    display:flex;
    max-width:1100px;
    margin:20px auto;
    gap:20px;
}

/* LEFT */
.left{
    width:20%;
    padding:10px;
}

/* CENTER */
.center{
    width:50%;
}

/* RIGHT */
.right{
    width:30%;
    background:#fff;
    padding:15px;
    border-radius:10px;
    height:fit-content;
}

/* TWEET */
.tweet{
    display:flex;
    gap:10px;
    background:#fff;
    padding:12px;
    margin-bottom:15px;
    border-radius:10px;
    border:1px solid #eee;
    transition:0.2s;
}

.tweet:hover{
    background:#f7f7f7;
}

/* AVATAR */
.avatar{
    width:50px;
    height:50px;
    border-radius:50%;
    object-fit:cover;
}

/* TEXTO */
.tweet p{
    margin-top:5px;
    font-size:14px;
}

/* LINKS */
.tweet a{
    text-decoration:none;
    color:#111;
}

.tweet a:hover{
    color:#1da1f2;
}

/* HASHTAGS */
.tweet p a{
    color:#1da1f2;
}

/* IMÁGENES POSTS */
.img-post{
    width:100%;
    max-width:400px;
    height:auto;
    border-radius:12px;
    margin-top:8px;
    display:block;
}

/* PERFIL */
#perfil{
    background:#fff;
    padding:20px;
    border-radius:10px;
    margin-bottom:20px;
    text-align:center;
}

.avatar-big{
    width:100px;
    height:100px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:10px;
}

/* POSTS EN PERFIL */
#posts .tweet{
    flex-direction:column;
}

#posts .img-post{
    max-width:300px;
}

/* COMENTARIOS */
#comentarios{
    margin-top:20px;
}

.comentario{
    background:#fff;
    padding:10px;
    border-radius:8px;
    margin-bottom:10px;
    border:1px solid #eee;
}

/* TENDENCIAS */
#tendencias div{
    padding:8px;
    border-bottom:1px solid #eee;
    cursor:pointer;
    font-size:14px;
}

#tendencias div:hover{
    background:#f5f5f5;
}

/* RESPONSIVE */
@media(max-width:900px){
    .container{
        flex-direction:column;
    }

    .left,
    .right,
    .center{
        width:100%;
    }

    .right{
        order:3;
    }
}