.principal {
    margin-top: 40px;
}

.publicacion-header {
    padding: 12px 16px;
    border-radius: 15px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid #e4e6eb;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: start;
    cursor: pointer;
    transition: all 0.2s ease;
}

.publicacion-header:hover {
    background: #f0f2f5;
}

.avatar-publicacion {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.link-publicar {
    width: 100%;
    color: #65676b;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-size: 15px;
    font-weight: 400;
}

.link-publicar:hover {
    color: #65676b;
}

.uk-modal {
    padding-top: 6%;
}

.contenido-tarea {
    border: none;
    resize: none;
    background-color: transparent !important;
}

.avatar-publicacion {
    width: 40px;
    height: 40px;
}

.nombre-perfil {
    font-size: 14px;
    font-weight: 600;

}

.uk-icon-button {
    width: 36px;
    height: 36px;
}

.uk-icon-button svg {
    width: 20px;
    height: 20px;
}

.dos-lineas {
    line-height: 1.5em;
    height: 2em;
}

.fondo-modelo {
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e4e6eb;
    margin-top: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.titulo_destacado {
    font-size: 18px;
    margin: 0;
}

.destacado-carousel {
    margin-top: 15px;
}

.destacado-card {
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    color: #050505;
    border: 1px solid #e4e6eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.uk-grid-small> :first-child {
    padding-left: 0 !important;
}

.encabezado-card {
    margin-bottom: 12px;
}

.encabezado-card h5 {
    color: #050505;
    margin: 0;
    font-weight: 600;
    font-size: 15px;
}

.destacado-card small,
.encabezado-card small {
    margin: 0;
    font-size: 13px;
    color: #65676b;
}

.fondo-modelo p {
    margin: 0;
    font-size: 15px;
    color: #050505;
    line-height: 1.3333;
}

.imagen-destacado {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.logo-mini {
    margin-right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.post-actions {
    gap: 20px;
    padding-top: 8px;
    border-top: 1px solid #e4e6eb;
    margin-top: 12px;
}

.post-actions i {
    margin-right: 6px;
    color: #65676b;
    font-size: 18px;
    transition: all 0.2s;
}

.post-actions span {
    font-size: 15px;
    color: #65676b;
    font-weight: 500;
    /* padding: 8px 12px; */
    border-radius: 6px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.post-actions span:hover {
    background: #f0f2f5;
}

.post-actions span:hover i {
    transform: scale(1.1);
}

.like-btn .fas {
    color: #DA291C !important;
}

.segundopost {
    gap: 5%;
}

.imagen-destacado {
    width: 100%;
}

.en-linea-compartir {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* .en-linea-compartir {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
} */

.contenido-con-media {
    /* display: flex;
    gap: 16px; */
    margin-top: 10px;
}

.texto-publicacion {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}



.uk-dropdown {
    padding: 10px !important;
}

[class*=uk-dropdown-bottom] {
    margin-top: 0px !important;
}

.media-lateral {
    width: 100%;
    /* height: 220px; */
    object-fit: cover;
    border-radius: 8px;
}

.dos-iconos {
    padding: 10px !important;
}

.uk-nav li>a>* {
    flex: none;
    /* flex: auto; */
}

.uk-dropdown-nav a {
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    /* .contenido-con-media {
        flex-direction: column;
    } */

    .media-lateral {
        height: auto;
    }
}


.en-linea-compartir input {
    flex: 1;
    height: 40px;
    font-size: 14px;
}

.icono-copiar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f7fa;
    color: #1e87f0;
    /* azul UIkit */
    transition: all 0.2s ease;
}

.icono-copiar:hover {
    background: #1e87f0;
    color: #fff;
}

.flecha {
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, transform 0.2s;
}

.flecha svg {
    color: black;
    width: 16px;
    height: 16px;
}

.card-position{
    position: fixed;
    max-width: 25%;
}

.titulo_ranking {
    font-size: 17px;
    margin: 0 0 12px 0;
    color: #050505;
    font-weight: 700;
}

.ranking-list .posicion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.ranking-list .posicion:hover {
    background: #f0f2f5;
}

.item-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}



.rank {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f2f5;
    color: #000;
    font-weight: bold;
    flex-shrink: 0;
    /* clave si está dentro de flex */
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e4e6eb;
}

.name {
    font-weight: 600;
    color: #050505;
}

.score {
    font-weight: 700;
    color: #DA291C;
    font-size: 15px;
}

.titulo-calificacion {
    text-align: center;
    color: #DA291C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.titulo-calificacion:hover {
    color: #DA291C;
    text-decoration: underline;
}

.link-derecho {
    margin: 16px 0;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-telegram {
    background-color: #0088cc;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-telegram:hover {
    background-color: #006699;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

/* Estilos para Comentarios */
.comentario-principal {
    margin-bottom: 12px;
}

.comentario-respuesta {
    margin-left: 40px;
    margin-top: 8px;
}

.comentario-contenido {
    background: #f0f2f5;
    border-radius: 5px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 100%;
}

.comentario-autor {
    font-size: 13px;
    font-weight: 600;
    color: #050505;
    display: block;
}

.comentario-texto {
    font-size: 15px;
    color: #050505;
    margin: 2px 0 0 0;
    word-wrap: break-word;
}

.comentario-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding-left: 12px;
}

.comentario-tiempo {
    font-size: 12px;
    color: #65676b;
}

.comentario-btn {
    background: none;
    border: none;
    color: #65676b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.comentario-btn:hover {
    color: #050505;
    text-decoration: underline;
}

.comentario-contador-respuestas {
    font-size: 12px;
    color: #65676b;
}

.formulario-respuesta input {
    font-size: 14px;
    padding: 8px 12px;
}

.formulario-respuesta input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.respuestas-container {
    margin-top: 8px;
}


.upload-card {
    position: relative;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fafafa;
    text-align: center;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-card:hover {
    background: #f5f5f5;
    border-color: #a3a3a3;
}

.upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    width: 28px;
    height: 28px;
    color: #888;
    margin-bottom: 8px;
}

.upload-content p {
    font-size: 14px;
    margin: 4px 0;
    color: #444;
}

.upload-content small {
    color: #777;
}

.upload-preview img,
.upload-preview video {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

/* Mejoras estilo Facebook */
.post-options-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.post-options-btn:hover {
    background: #f0f2f5;
}

.uk-modal-dialog {
    border-radius: 12px !important;
}

.uk-modal-title {
    text-align: center;
    border-bottom: 1px solid #e4e6eb;
    padding-bottom: 15px;
    font-weight: 600;
}

.comentario-tarea {
    height: auto !important;
}

@media (max-width: 640px) {
    .uk-modal-dialog {
        margin: 10px !important;
        max-width: calc(100% - 20px) !important;
    }

    .uk-modal-body {
        padding: 15px !important;
    }

    /* #upload-container img,
    #upload-container video {
        max-height: 150px !important;
    } */
}

.logo-mini {
    border-radius: 50%;
    object-fit: cover;
}

@media (min-width: 1600px) {
    .card-position {
        max-width: 20%;
    }

}

@media (max-width: 1300px) {
    .titulo_ranking {
        font-size: 16px;
    }

    .titulo_destacado {
        font-size: 16px;
    }

    .encabezado-card h5 {
        font-size: 14px;
    }

}

@media (max-width: 768px) {
    .principal {
        margin-top: 20px;
    }

    .uk-modal-title {
        font-size: 15px;
    }

    .fondo-modelo {
        padding: 12px;
        margin-top: 12px;
    }

    .titulo_destacado {
        font-size: 16px;
    }

    .encabezado-card h5 {
        font-size: 14px;
    }

    .destacado-card small,
    .encabezado-card small {
        font-size: 12px;
    }

    .fondo-modelo p {
        font-size: 14px;
    }

    .publicacion-header {
        padding: 10px 14px;
    }

    .avatar-publicacion {
        width: 36px;
        height: 36px;
    }

    .link-publicar {
        font-size: 14px;
    }

    .logo-mini {
        width: 36px;
        height: 36px;
    }

    .post-actions {
        gap: 12px;
    }

    .post-actions span {
        font-size: 13px;
        padding: 6px 10px;
    }

    .post-actions i {
        font-size: 16px;
    }

    .flecha {
        width: 30px;
        height: 30px;
    }

    .item-left {
        font-size: 13px;
        gap: 10px;
    }

    .rank {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .avatar {
        width: 32px;
        height: 32px;
    }

    .score {
        font-size: 14px;
    }

    .titulo-calificacion {
        font-size: 13px;
    }

    .uk-button {
        padding: 8px 14px;
        font-size: 12px;
    }

    .destacado-card {
        padding: 12px;
    }

    .titulo_ranking {
        font-size: 15px;
    }

    .nombre-perfil {
        font-size: 12px;
    }

    .uk-icon-button svg {
        width: 14px;
        height: 14px;
    }

    .uk-padding-small {
        padding: 10px;
    }

    .avatar-publicacion {
        width: 25px;
        height: 25px;
    }
}